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() |
isTransient
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isTransient
protected 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()
SerializableValue
getSerializationDataFormat
in interface SerializableValue
public void setSerializationDataFormat(String serializationDataFormat)
public String getObjectTypeName()
ObjectValue
getObjectTypeName
in interface ObjectValue
public void setObjectTypeName(String objectTypeName)
public String getValueSerialized()
SerializableValue
SerializableValue.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 SerializableValue
public void setSerializedValue(String serializedValue)
public boolean isDeserialized()
ObjectValue
isDeserialized
in interface ObjectValue
isDeserialized
in interface SerializableValue
public Object getValue()
TypedValue
getValue
in interface ObjectValue
getValue
in interface SerializableValue
getValue
in interface TypedValue
getValue
in class AbstractTypedValue<Object>
public <T> T getValue(Class<T> type)
ObjectValue
getValue
in interface ObjectValue
type
- the java class the value should be cast topublic Class<?> getObjectType()
ObjectValue
getObjectType
in interface ObjectValue
public SerializableValueType getType()
TypedValue
getType
in interface SerializableValue
getType
in interface TypedValue
getType
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.