|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.datamodel.impl.DefaultDataFactoryImpl
public class DefaultDataFactoryImpl
Implementation of DataFactory.
| Field Summary | |
|---|---|
static AnyMap |
IMMUTABLE_EMPTY_MAP
immutable empyty map. |
static DefaultDataFactoryImpl |
INSTANCE
instance for sharing. |
| Fields inherited from interface org.eclipse.smila.datamodel.DataFactory |
|---|
DEFAULT |
| Constructor Summary | |
|---|---|
DefaultDataFactoryImpl()
|
|
| Method Summary | |
|---|---|
Value |
autoConvertValue(java.lang.Object object)
auto converts the given object into the object's corresponding Value. |
Any |
cloneAny(Any source)
Clone Any object. |
AnyMap |
cloneAnyMap(AnyMap source)
Clone AnyMap object. |
AnySeq |
cloneAnySeq(AnySeq source)
Clone AnySeq object. |
Record |
cloneRecord(Record source,
java.lang.String newId)
create clone of record with new Id. |
AnyMap |
createAnyMap()
|
AnySeq |
createAnySeq()
|
Value |
createBooleanValue(java.lang.Boolean value)
|
Value |
createDateTimeValue(java.util.Date value)
|
Value |
createDateValue(java.util.Date value)
|
Value |
createDoubleValue(java.lang.Double value)
|
Value |
createDoubleValue(float value)
|
Value |
createLongValue(int value)
|
Value |
createLongValue(java.lang.Long value)
|
Record |
createRecord()
create a new Record. |
Record |
createRecord(java.lang.String id)
create a new Record. |
Record |
createRecord(java.lang.String id,
java.lang.String source)
create a new Record. |
Value |
createStringValue(java.lang.String value)
|
Value |
parseFromObject(java.lang.Object object)
Deprecated. Use autoConvertValue(Object) instead |
Value |
parseFromString(java.lang.String value,
Any.ValueType valueType)
|
Value |
parseFromString(java.lang.String value,
java.lang.String type)
|
Value |
tryDateTimestampParsingFromString(java.lang.String value)
Tries to convert the String to a Date or Timestamp Value, if not possible return a String Value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final DefaultDataFactoryImpl INSTANCE
public static final AnyMap IMMUTABLE_EMPTY_MAP
| Constructor Detail |
|---|
public DefaultDataFactoryImpl()
| Method Detail |
|---|
public Record createRecord()
createRecord in interface DataFactorypublic Record createRecord(java.lang.String id)
createRecord in interface DataFactoryid - record id
public Record createRecord(java.lang.String id,
java.lang.String source)
createRecord in interface DataFactoryid - record idsource - record data source
public AnyMap createAnyMap()
createAnyMap in interface DataFactorypublic AnySeq createAnySeq()
createAnySeq in interface DataFactorypublic Value createStringValue(java.lang.String value)
createStringValue in interface DataFactoryvalue - the String to create the Value from.
public Value createBooleanValue(java.lang.Boolean value)
createBooleanValue in interface DataFactoryvalue - the Boolean to create the Value from.
public Value createLongValue(java.lang.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(java.lang.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(java.util.Date value)
createDateValue in interface DataFactoryvalue - the Date to create the Value from.
public Value createDateTimeValue(java.util.Date value)
createDateTimeValue in interface DataFactoryvalue - the DateTime to create the Value from.
public Value parseFromString(java.lang.String value,
java.lang.String type)
parseFromString in interface DataFactoryvalue - The valuetype - The type
public Value parseFromString(java.lang.String value,
Any.ValueType valueType)
parseFromString in interface DataFactoryvalue - The valuevalueType - The value's type
public Value tryDateTimestampParsingFromString(java.lang.String value)
tryDateTimestampParsingFromString in interface DataFactoryvalue - The value to check for Date/Timestamp
@Deprecated public Value parseFromObject(java.lang.Object object)
autoConvertValue(Object) instead
parseFromObject in interface DataFactoryobject - The object
public Value autoConvertValue(java.lang.Object object)
autoConvertValue in interface DataFactoryobject - The object, must be one of the simple types
public Any cloneAny(Any source)
cloneAny in interface DataFactorysource - the source
public AnyMap cloneAnyMap(AnyMap source)
cloneAnyMap in interface DataFactorysource - the source
public AnySeq cloneAnySeq(AnySeq source)
cloneAnySeq in interface DataFactorysource - the source
public Record cloneRecord(Record source,
java.lang.String newId)
cloneRecord in interface DataFactorysource - a recordnewId - new Id
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||