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>
public class XmlValueSerializer extends SpinValueSerializer
- 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
Constructors Constructor Description XmlValueSerializer()
XmlValueSerializer(org.camunda.spin.spi.DataFormat<org.camunda.spin.xml.SpinXmlElement> dataFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpinValue
convertToTypedValue(UntypedValueImpl untypedValue)
Returns a typed value for the provided untyped value.protected SpinValue
createDeserializedValue(java.lang.Object deserializedObject, java.lang.String serializedStringValue, ValueFields valueFields, boolean asTransientValue)
protected SpinValue
createSerializedValue(java.lang.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
-
-
-
-
Method Detail
-
convertToTypedValue
public SpinValue convertToTypedValue(UntypedValueImpl untypedValue)
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(java.lang.Object deserializedObject, java.lang.String serializedStringValue, ValueFields valueFields, boolean asTransientValue)
- Specified by:
createDeserializedValue
in classAbstractSerializableValueSerializer<SpinValue>
-
createSerializedValue
protected SpinValue createSerializedValue(java.lang.String serializedStringValue, ValueFields valueFields, boolean asTransientValue)
- Specified by:
createSerializedValue
in classAbstractSerializableValueSerializer<SpinValue>
-
-