public class DefaultDataFactoryImpl extends Object implements DataFactory
| Modifier and Type | Field and Description |
|---|---|
static AnyMap |
IMMUTABLE_EMPTY_MAP
immutable empyty map.
|
static DefaultDataFactoryImpl |
INSTANCE
instance for sharing.
|
DEFAULT| Constructor and Description |
|---|
DefaultDataFactoryImpl() |
public static final DefaultDataFactoryImpl INSTANCE
public static final AnyMap IMMUTABLE_EMPTY_MAP
public AnyMap createAnyMap()
createAnyMap in interface DataFactorypublic AnySeq createAnySeq()
createAnySeq in interface DataFactorypublic Value createStringValue(String value)
createStringValue in interface DataFactoryvalue - the String to create the Value from.public Value createBooleanValue(Boolean value)
createBooleanValue in interface DataFactoryvalue - the Boolean to create the Value from.public Value createLongValue(Long value)
createLongValue in interface DataFactoryvalue - the Long to create the Value from.public Value createLongValue(int value)
createLongValue in interface DataFactoryvalue - the int to create the Value from.public Value createDoubleValue(Double value)
createDoubleValue in interface DataFactoryvalue - the Double to create the Value from.public Value createDoubleValue(float value)
createDoubleValue in interface DataFactoryvalue - the float to create the Value from.public Value createDateValue(Date value)
createDateValue in interface DataFactoryvalue - the Date to create the Value from.public Value createDateTimeValue(Date value)
createDateTimeValue in interface DataFactoryvalue - the DateTime to create the Value from.public Value parseFromString(String value, String type)
parseFromString in interface DataFactoryvalue - The valuetype - The typepublic Value parseFromString(String value, Any.ValueType valueType)
parseFromString in interface DataFactoryvalue - The valuevalueType - The value's typepublic Value tryDateTimestampParsingFromString(String value)
tryDateTimestampParsingFromString in interface DataFactoryvalue - The value to check for Date/Timestamp@Deprecated public Value parseFromObject(Object object)
autoConvertValue(Object) insteadparseFromObject in interface DataFactoryobject - The objectpublic Value autoConvertValue(Object object)
autoConvertValue in interface DataFactoryobject - The object, must be one of the simple typespublic Any cloneAny(Any source)
cloneAny in interface DataFactorysource - the sourcepublic AnyMap cloneAnyMap(AnyMap source)
cloneAnyMap in interface DataFactorysource - the sourcepublic AnySeq cloneAnySeq(AnySeq source)
cloneAnySeq in interface DataFactorysource - the sourceCopyright © 2017. All rights reserved.