public abstract class AbstractAny extends java.lang.Object implements Any, java.io.Serializable
Any.ValueType| Modifier and Type | Field and Description |
|---|---|
protected Any.ValueType |
_valueType
type of this value object.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAny(Any.ValueType valueType)
Constructs a new AbstractAny.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
protected final Any.ValueType _valueType
protected AbstractAny(Any.ValueType valueType)
valueType - the type of the AnbstractAny.public Any.ValueType getValueType()
getValueType in interface Anypublic boolean isMap()
public boolean isSeq()
public boolean isValue()
public boolean isString()
public boolean isDouble()
public boolean isBoolean()
public boolean isLong()
public boolean isDate()
public boolean isDateTime()
isDateTime in interface Anypublic boolean isNumber()
public 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()