|
SMILA 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.AbstractAny
public abstract class AbstractAny
Basic abstract implementation class for Any.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.smila.datamodel.Any |
|---|
Any.ValueType |
| Field Summary | |
|---|---|
protected Any.ValueType |
_valueType
type of this value object. |
| Constructor Summary | |
|---|---|
protected |
AbstractAny(Any.ValueType valueType)
Constructs a new AbstractAny. |
| Method Summary | |
|---|---|
AnyMap |
asMap()
returns this Any as an AnyMap object or throws an InvalidValueTypeException. |
AnySeq |
asSeq()
returns this Any as an AnySeq object or throws an InvalidValueTypeException. |
Value |
asValue()
returns this Any as an Value object or throws an InvalidValueTypeException. |
DataFactory |
getFactory()
|
Any.ValueType |
getValueType()
|
boolean |
isBoolean()
|
boolean |
isDate()
|
boolean |
isDateTime()
|
boolean |
isDouble()
|
boolean |
isLong()
|
boolean |
isMap()
|
boolean |
isNumber()
|
boolean |
isSeq()
|
boolean |
isString()
|
boolean |
isValue()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.smila.datamodel.Any |
|---|
isEmpty, iterator, size |
| Field Detail |
|---|
protected final Any.ValueType _valueType
| Constructor Detail |
|---|
protected AbstractAny(Any.ValueType valueType)
valueType - the type of the AnbstractAny.| Method Detail |
|---|
public Any.ValueType getValueType()
getValueType in interface Anypublic boolean isMap()
isMap in interface Anypublic boolean isSeq()
isSeq in interface Anypublic boolean isValue()
isValue in interface Anypublic boolean isString()
isString in interface Anypublic boolean isDouble()
isDouble in interface Anypublic boolean isBoolean()
isBoolean in interface Anypublic boolean isLong()
isLong in interface Anypublic boolean isDate()
isDate in interface Anypublic boolean isDateTime()
isDateTime in interface Anypublic boolean isNumber()
isNumber in interface Anypublic DataFactory getFactory()
getFactory in interface Anypublic Value asValue()
Value object or throws an InvalidValueTypeException.
asValue in interface AnyAny.asValue()public AnyMap asMap()
AnyMap object or throws an InvalidValueTypeException.
asMap in interface AnyAny.asMap()public AnySeq asSeq()
AnySeq object or throws an InvalidValueTypeException.
asSeq in interface AnyAny.asSeq()
|
SMILA API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||