Package org.camunda.spin.plugin.impl
Class JsonValueSerializer
- 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.JsonValueSerializer
-
- All Implemented Interfaces:
TypedValueSerializer<SpinValue>
public class JsonValueSerializer 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 JsonValueSerializer()
JsonValueSerializer(org.camunda.spin.spi.DataFormat<org.camunda.spin.json.SpinJsonNode> 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(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
-
-
-
-
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(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>
-
-