Package org.camunda.spin.plugin.impl
Class XmlValueSerializer
java.lang.Object
org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer<T>
org.camunda.bpm.engine.impl.variable.serializer.AbstractSerializableValueSerializer<SpinValue>
org.camunda.spin.plugin.impl.SpinValueSerializer
org.camunda.spin.plugin.impl.XmlValueSerializer
- All Implemented Interfaces:
TypedValueSerializer<SpinValue>
- Author:
- Roman Smirnov
-
Field Summary
Fields inherited from class org.camunda.spin.plugin.impl.SpinValueSerializer
dataFormat, name
Fields inherited from class org.camunda.bpm.engine.impl.variable.serializer.AbstractSerializableValueSerializer
serializationDataFormat
Fields inherited from class org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer
BINARY_VALUE_TYPES, valueType
-
Constructor Summary
ConstructorDescriptionXmlValueSerializer
(org.camunda.spin.spi.DataFormat<org.camunda.spin.xml.SpinXmlElement> dataFormat) -
Method Summary
Modifier and TypeMethodDescriptionconvertToTypedValue
(UntypedValueImpl untypedValue) Returns a typed value for the provided untyped value.protected SpinValue
createDeserializedValue
(Object deserializedObject, String serializedStringValue, ValueFields valueFields, boolean asTransientValue) protected SpinValue
createSerializedValue
(String serializedStringValue, ValueFields valueFields, boolean asTransientValue) Methods inherited from class org.camunda.spin.plugin.impl.SpinValueSerializer
canSerializeValue, deserializeFromByteArray, getName, isSerializationTextBased, serializeToByteArray, updateTypedValue, writeToValueFields
Methods inherited from class org.camunda.bpm.engine.impl.variable.serializer.AbstractSerializableValueSerializer
canWriteValue, getSerializationDataformat, getSerializedBytesValue, getSerializedStringValue, readSerializedValueFromFields, readValue, writeValue
Methods inherited from class org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer
canHandle, getType, isMutableValue
-
Constructor Details
-
XmlValueSerializer
public XmlValueSerializer(org.camunda.spin.spi.DataFormat<org.camunda.spin.xml.SpinXmlElement> dataFormat) -
XmlValueSerializer
public XmlValueSerializer()
-
-
Method Details
-
convertToTypedValue
Description copied from interface:TypedValueSerializer
Returns a typed value for the provided untyped value. This is used on cases where the user sets an untyped value which is then detected to be handled by thisTypedValueSerializer
(by invocation ofTypedValueSerializer.canHandle(TypedValue)
).- Parameters:
untypedValue
- the untyped value- Returns:
- the corresponding typed value
-
createDeserializedValue
protected SpinValue createDeserializedValue(Object deserializedObject, String serializedStringValue, ValueFields valueFields, boolean asTransientValue) - Specified by:
createDeserializedValue
in classAbstractSerializableValueSerializer<SpinValue>
-
createSerializedValue
protected SpinValue createSerializedValue(String serializedStringValue, ValueFields valueFields, boolean asTransientValue) - Specified by:
createSerializedValue
in classAbstractSerializableValueSerializer<SpinValue>
-