Class ObjectValueImpl
java.lang.Object
org.camunda.bpm.engine.variable.impl.value.AbstractTypedValue<Object>
org.camunda.bpm.engine.variable.impl.value.ObjectValueImpl
- All Implemented Interfaces:
Serializable
,ObjectValue
,SerializableValue
,TypedValue
- Author:
- Daniel Meyer
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected String
protected String
protected String
Fields inherited from class org.camunda.bpm.engine.variable.impl.value.AbstractTypedValue
isTransient, type, value
-
Constructor Summary
ConstructorDescriptionObjectValueImpl
(Object value) ObjectValueImpl
(Object value, boolean isTransient) ObjectValueImpl
(Object deserializedValue, String serializedValue, String serializationDataFormat, String objectTypeName, boolean isDeserialized) -
Method Summary
Modifier and TypeMethodDescriptionClass<?>
Returns the Class this object is an instance of.A String representation of the Object's type name.The serialization format used to serialize this value.getType()
The type of the value.getValue()
The actual value.<T> T
Returns the object provided by this VariableValue.Returns the serialized value.boolean
Returns true in case the object is deserialized.void
setObjectTypeName
(String objectTypeName) void
setSerializationDataFormat
(String serializationDataFormat) void
setSerializedValue
(String serializedValue) void
setTransient
(boolean isTransient) toString()
Methods inherited from class org.camunda.bpm.engine.variable.impl.value.AbstractTypedValue
isTransient
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.camunda.bpm.engine.variable.value.TypedValue
isTransient
-
Field Details
-
objectTypeName
-
serializationDataFormat
-
serializedValue
-
isDeserialized
protected boolean isDeserialized
-
-
Constructor Details
-
ObjectValueImpl
-
ObjectValueImpl
-
ObjectValueImpl
-
-
Method Details
-
getSerializationDataFormat
Description copied from interface:SerializableValue
The serialization format used to serialize this value.- Specified by:
getSerializationDataFormat
in interfaceSerializableValue
- Returns:
- the serialization format used to serialize this variable.
-
setSerializationDataFormat
-
getObjectTypeName
Description copied from interface:ObjectValue
A String representation of the Object's type name. Usually the canonical class name of the Java Class this object is an instance of.- Specified by:
getObjectTypeName
in interfaceObjectValue
- Returns:
- the Object's type name.
-
setObjectTypeName
-
getValueSerialized
Description copied from interface:SerializableValue
Returns the serialized value. In case the serializaton data format (as returned bySerializableValue.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.- Specified by:
getValueSerialized
in interfaceSerializableValue
-
setSerializedValue
-
isDeserialized
public boolean isDeserialized()Description copied from interface:ObjectValue
Returns true in case the object is deserialized. If this method returns true, it is safe to call the methods- Specified by:
isDeserialized
in interfaceObjectValue
- Specified by:
isDeserialized
in interfaceSerializableValue
- Returns:
- true if the object is deserialized.
-
getValue
Description copied from interface:TypedValue
The actual value. May be null in case the value is null.- Specified by:
getValue
in interfaceObjectValue
- Specified by:
getValue
in interfaceSerializableValue
- Specified by:
getValue
in interfaceTypedValue
- Overrides:
getValue
in classAbstractTypedValue<Object>
- Returns:
- the value
-
getValue
Description copied from interface:ObjectValue
Returns the object provided by this VariableValue. Allows type-safe access to objects by passing in the class.- Specified by:
getValue
in interfaceObjectValue
- Parameters:
type
- the java class the value should be cast to- Returns:
- the object represented by this TypedValue.
-
getObjectType
Description copied from interface:ObjectValue
Returns the Class this object is an instance of.- Specified by:
getObjectType
in interfaceObjectValue
- Returns:
- the Class this object is an instance of
-
getType
Description copied from interface:TypedValue
The type of the value. See ValueType for a list of built-in ValueTypes.- Specified by:
getType
in interfaceSerializableValue
- Specified by:
getType
in interfaceTypedValue
- Overrides:
getType
in classAbstractTypedValue<Object>
- Returns:
- the type of the value.
-
setTransient
public void setTransient(boolean isTransient) - Overrides:
setTransient
in classAbstractTypedValue<Object>
-
toString
- Overrides:
toString
in classAbstractTypedValue<Object>
-