-
Nested Class Summary
Nested Classes
-
Method Summary
org.apache.olingo.commons.api.edm.EdmPrimitiveType
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeKind
<T> T
Returns the current value casted to the given type.
Serialize the current value as String.
Returns the current value as generic Object.
-
Method Details
-
getTypeKind
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeKind getTypeKind()
-
getType
org.apache.olingo.commons.api.edm.EdmPrimitiveType getType()
-
toValue
Returns the current value as generic Object.
- Returns:
- an uncasted instance of this value
-
toCastValue
<T> T toCastValue(Class<T> reference)
throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
Returns the current value casted to the given type.
- Type Parameters:
T - cast type
- Parameters:
reference - class reference
- Returns:
- the current value as typed java instance
- Throws:
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException - if the object is not assignable to the type T.
-
toString
Serialize the current value as String.
- Overrides:
toString in class Object
- Returns:
- a String representation of this value