public interface ObjectValue extends SerializableValue
A typed value representing a Java Object.
Modifier and Type | Method and Description |
---|---|
Class<?> |
getObjectType()
Returns the Class this object is an instance of.
|
String |
getObjectTypeName()
A String representation of the Object's type name.
|
Object |
getValue()
Returns the Object or null in case the value is null.
|
<T> T |
getValue(Class<T> type)
Returns the object provided by this VariableValue.
|
boolean |
isDeserialized()
Returns true in case the object is deserialized.
|
getSerializationDataFormat, getType, getValueSerialized
boolean isDeserialized()
isDeserialized
in interface SerializableValue
Object getValue()
getValue
in interface SerializableValue
getValue
in interface TypedValue
IllegalStateException
- in case the object is not deserialized. See isDeserialized()
.<T> T getValue(Class<T> type)
type
- the java class the value should be cast toIllegalStateException
- in case the object is not deserialized. See isDeserialized()
.Class<?> getObjectType()
IllegalStateException
- in case the object is not deserialized. See isDeserialized()
.String getObjectTypeName()
Copyright © 2018. All rights reserved.