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
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Stringprotected Stringprotected StringFields inherited from class org.camunda.bpm.engine.variable.impl.value.AbstractTypedValue
isTransient, type, value -
Constructor Summary
ConstructorsConstructorDescriptionObjectValueImpl(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> TReturns the object provided by this VariableValue.Returns the serialized value.booleanReturns true in case the object is deserialized.voidsetObjectTypeName(String objectTypeName) voidsetSerializationDataFormat(String serializationDataFormat) voidsetSerializedValue(String serializedValue) voidsetTransient(boolean isTransient) toString()Methods inherited from class org.camunda.bpm.engine.variable.impl.value.AbstractTypedValue
isTransientMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:SerializableValueThe serialization format used to serialize this value.- Specified by:
getSerializationDataFormatin interfaceSerializableValue- Returns:
- the serialization format used to serialize this variable.
-
setSerializationDataFormat
-
getObjectTypeName
Description copied from interface:ObjectValueA 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:
getObjectTypeNamein interfaceObjectValue- Returns:
- the Object's type name.
-
setObjectTypeName
-
getValueSerialized
Description copied from interface:SerializableValueReturns 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:
getValueSerializedin interfaceSerializableValue
-
setSerializedValue
-
isDeserialized
public boolean isDeserialized()Description copied from interface:ObjectValueReturns true in case the object is deserialized. If this method returns true, it is safe to call the methods- Specified by:
isDeserializedin interfaceObjectValue- Specified by:
isDeserializedin interfaceSerializableValue- Returns:
- true if the object is deserialized.
-
getValue
Description copied from interface:TypedValueThe actual value. May be null in case the value is null.- Specified by:
getValuein interfaceObjectValue- Specified by:
getValuein interfaceSerializableValue- Specified by:
getValuein interfaceTypedValue- Overrides:
getValuein classAbstractTypedValue<Object>- Returns:
- the value
-
getValue
Description copied from interface:ObjectValueReturns the object provided by this VariableValue. Allows type-safe access to objects by passing in the class.- Specified by:
getValuein interfaceObjectValue- Parameters:
type- the java class the value should be cast to- Returns:
- the object represented by this TypedValue.
-
getObjectType
Description copied from interface:ObjectValueReturns the Class this object is an instance of.- Specified by:
getObjectTypein interfaceObjectValue- Returns:
- the Class this object is an instance of
-
getType
Description copied from interface:TypedValueThe type of the value. See ValueType for a list of built-in ValueTypes.- Specified by:
getTypein interfaceSerializableValue- Specified by:
getTypein interfaceTypedValue- Overrides:
getTypein classAbstractTypedValue<Object>- Returns:
- the type of the value.
-
setTransient
public void setTransient(boolean isTransient) - Overrides:
setTransientin classAbstractTypedValue<Object>
-
toString
- Overrides:
toStringin classAbstractTypedValue<Object>
-