|
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.AbstractAny
org.eclipse.smila.datamodel.impl.ValueImpl
public final class ValueImpl
Any holding a value.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.smila.datamodel.Any |
|---|
Any.ValueType |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.smila.datamodel.impl.AbstractAny |
|---|
_valueType |
| Constructor Summary | |
|---|---|
ValueImpl(Any.ValueType valueType,
java.lang.Object value)
create new empty ValueImpl instance. |
|
ValueImpl(Value object)
create new empty ValueImpl instance as a copy of a given Value. |
|
| Method Summary | |
|---|---|
java.lang.Boolean |
asBoolean()
|
java.util.Date |
asDate()
|
java.util.Date |
asDateTime()
|
java.lang.Double |
asDouble()
|
java.lang.Long |
asLong()
|
java.lang.String |
asString()
|
Value |
asValue()
returns this Any as an Value object or throws an InvalidValueTypeException. |
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
getObject()
|
int |
hashCode()
|
boolean |
isEmpty()
|
java.util.Iterator<Any> |
iterator()
|
int |
size()
|
java.lang.String |
toString()
|
| Methods inherited from class org.eclipse.smila.datamodel.impl.AbstractAny |
|---|
asMap, asSeq, getFactory, getValueType, isBoolean, isDate, isDateTime, isDouble, isLong, isMap, isNumber, isSeq, isString, isValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.smila.datamodel.Any |
|---|
asMap, asSeq, getFactory, getValueType, isBoolean, isDate, isDateTime, isDouble, isLong, isMap, isNumber, isSeq, isString, isValue |
| Constructor Detail |
|---|
public ValueImpl(Any.ValueType valueType,
java.lang.Object value)
valueType - the type of the Valuevalue - the value of the Valuepublic ValueImpl(Value object)
object - the vlaue to be copied| Method Detail |
|---|
public java.lang.Double asDouble()
asDouble in interface Valuepublic java.lang.Long asLong()
asLong in interface Valuepublic java.lang.Boolean asBoolean()
asBoolean in interface Valuepublic java.util.Date asDate()
asDate in interface Valuepublic java.util.Date asDateTime()
asDateTime in interface Valuepublic java.lang.String asString()
asString in interface Valuepublic java.lang.Object getObject()
getObject in interface Valuepublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.util.Iterator<Any> iterator()
iterator in interface java.lang.Iterable<Any>iterator in interface AnyValue, this return an iterator about the value itself. For
AnyMap it returns an iterator on the values.public boolean isEmpty()
isEmpty in interface AnyValue: returns always false.public int size()
size in interface AnyValue this is always 1.public Value asValue()
Value object or throws an InvalidValueTypeException.
asValue in interface AnyasValue in class AbstractAnyAny.asValue()
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||