public class ObjectValueImpl extends AbstractTypedValue<Object> implements ObjectValue
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isDeserialized |
protected String |
objectTypeName |
protected String |
serializationDataFormat |
protected String |
serializedValue |
isTransient, type, value| Constructor and Description |
|---|
ObjectValueImpl(Object value) |
ObjectValueImpl(Object value,
boolean isTransient) |
ObjectValueImpl(Object deserializedValue,
String serializedValue,
String serializationDataFormat,
String objectTypeName,
boolean isDeserialized) |
| 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.
|
String |
getSerializationDataFormat()
The serialization format used to serialize this value.
|
SerializableValueType |
getType()
The type of the value.
|
Object |
getValue()
The actual value.
|
<T> T |
getValue(Class<T> type)
Returns the object provided by this VariableValue.
|
String |
getValueSerialized()
Returns the serialized value.
|
boolean |
isDeserialized()
Returns true in case the object is deserialized.
|
void |
setObjectTypeName(String objectTypeName) |
void |
setSerializationDataFormat(String serializationDataFormat) |
void |
setSerializedValue(String serializedValue) |
void |
setTransient(boolean isTransient) |
String |
toString() |
isTransientclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisTransientprotected String objectTypeName
protected String serializationDataFormat
protected String serializedValue
protected boolean isDeserialized
public ObjectValueImpl(Object deserializedValue, String serializedValue, String serializationDataFormat, String objectTypeName, boolean isDeserialized)
public ObjectValueImpl(Object value)
public ObjectValueImpl(Object value, boolean isTransient)
public String getSerializationDataFormat()
SerializableValuegetSerializationDataFormat in interface SerializableValuepublic void setSerializationDataFormat(String serializationDataFormat)
public String getObjectTypeName()
ObjectValuegetObjectTypeName in interface ObjectValuepublic void setObjectTypeName(String objectTypeName)
public String getValueSerialized()
SerializableValueSerializableValue.getSerializationDataFormat()) is not text based,
a base 64 encoded representation of the value is returned
The serialized value is a snapshot of the state of the value as it is
serialized to the process engine database.getValueSerialized in interface SerializableValuepublic void setSerializedValue(String serializedValue)
public boolean isDeserialized()
ObjectValueisDeserialized in interface ObjectValueisDeserialized in interface SerializableValuepublic Object getValue()
TypedValuegetValue in interface ObjectValuegetValue in interface SerializableValuegetValue in interface TypedValuegetValue in class AbstractTypedValue<Object>public <T> T getValue(Class<T> type)
ObjectValuegetValue in interface ObjectValuetype - the java class the value should be cast topublic Class<?> getObjectType()
ObjectValuegetObjectType in interface ObjectValuepublic SerializableValueType getType()
TypedValuegetType in interface SerializableValuegetType in interface TypedValuegetType in class AbstractTypedValue<Object>public void setTransient(boolean isTransient)
setTransient in class AbstractTypedValue<Object>public String toString()
toString in class AbstractTypedValue<Object>Copyright © 2022. All rights reserved.