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
FieldsFields inherited from class org.camunda.bpm.engine.variable.impl.value.AbstractTypedValue
isTransient, type, value -
Constructor Summary
ConstructorsConstructorDescriptionSpinValueImpl(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.booleanReturns true in case the value is deserialized.voidsetSerializationDataFormat(String serializationDataFormat) voidsetValueSerialized(String serializedValue) Methods inherited from class org.camunda.bpm.engine.variable.impl.value.AbstractTypedValue
isTransient, setTransient, toStringMethods 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
-
serializedValue
-
isDeserialized
protected boolean isDeserialized -
dataFormatName
-
-
Constructor Details
-
SpinValueImpl
-
-
Method Details
-
getValue
Description copied from interface:TypedValueThe actual value. May be null in case the value is null.- Specified by:
getValuein interfaceSerializableValue- Specified by:
getValuein interfaceSpinValue- Specified by:
getValuein interfaceTypedValue- Overrides:
getValuein classAbstractTypedValue<Spin<?>>- Returns:
- the value
-
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<Spin<?>>- Returns:
- the type of the value.
-
isDeserialized
public boolean isDeserialized()Description copied from interface:SerializableValueReturns true in case the value is deserialized. If this method returns true, it is safe to call theSerializableValue.getValue()method- Specified by:
isDeserializedin interfaceSerializableValue- Returns:
- true if the object is deserialized.
-
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
-
setValueSerialized
-
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
-
getDataFormat
- Specified by:
getDataFormatin interfaceSpinValue
-