Class SpinValueImpl
java.lang.Object
org.camunda.bpm.engine.variable.impl.value.AbstractTypedValue<Spin<?>>
org.camunda.spin.plugin.variable.value.impl.SpinValueImpl
- All Implemented Interfaces:
Serializable
,SerializableValue
,TypedValue
,SpinValue
- Direct Known Subclasses:
JsonValueImpl
,XmlValueImpl
- Author:
- Roman Smirnov
- See Also:
-
Field Summary
Fields inherited from class org.camunda.bpm.engine.variable.impl.value.AbstractTypedValue
isTransient, type, value
-
Constructor Summary
ConstructorDescriptionSpinValueImpl
(Spin<?> value, String serializedValue, String dataFormatName, boolean isDeserialized, ValueType type, boolean isTransient) -
Method Summary
Modifier and TypeMethodDescriptionDataFormat<? extends Spin<?>>
The serialization format used to serialize this value.getType()
The type of the value.Spin<?>
getValue()
The actual value.Returns the serialized value.boolean
Returns true in case the value is deserialized.void
setSerializationDataFormat
(String serializationDataFormat) void
setValueSerialized
(String serializedValue) Methods inherited from class org.camunda.bpm.engine.variable.impl.value.AbstractTypedValue
isTransient, setTransient, toString
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
-
serializedValue
-
isDeserialized
protected boolean isDeserialized -
dataFormatName
-
-
Constructor Details
-
SpinValueImpl
-
-
Method Details
-
getValue
Description copied from interface:TypedValue
The actual value. May be null in case the value is null.- Specified by:
getValue
in interfaceSerializableValue
- Specified by:
getValue
in interfaceSpinValue
- Specified by:
getValue
in interfaceTypedValue
- Overrides:
getValue
in classAbstractTypedValue<Spin<?>>
- Returns:
- the value
-
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<Spin<?>>
- Returns:
- the type of the value.
-
isDeserialized
public boolean isDeserialized()Description copied from interface:SerializableValue
Returns true in case the value is deserialized. If this method returns true, it is safe to call theSerializableValue.getValue()
method- Specified by:
isDeserialized
in interfaceSerializableValue
- Returns:
- true if the object is deserialized.
-
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
-
setValueSerialized
-
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
-
getDataFormat
- Specified by:
getDataFormat
in interfaceSpinValue
-