public interface TypedValueSerializer<T extends TypedValue>
TypedValueSerializer persists TypedValues of a given
ValueType to provided ValueFields.
Replaces the "VariableType" interface in previous versions.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(TypedValue value)
Used for auto-detecting the value type of a variable.
|
T |
convertToTypedValue(UntypedValueImpl untypedValue)
Returns a typed value for the provided untyped value.
|
String |
getName()
The name of this serializer.
|
String |
getSerializationDataformat() |
ValueType |
getType()
The
VariableType supported |
boolean |
isMutableValue(T typedValue) |
T |
readValue(ValueFields valueFields,
boolean deserializeValue,
boolean isTransient)
Retrieve a
TypedValue from the provided ValueFields. |
void |
writeValue(T value,
ValueFields valueFields)
Serialize a
TypedValue to the ValueFields. |
String getName()
ValueType getType()
VariableType supportedvoid writeValue(T value, ValueFields valueFields)
TypedValue to the ValueFields.value - the TypedValue to persistvalueFields - the ValueFields to which the value should be persistedT readValue(ValueFields valueFields, boolean deserializeValue, boolean isTransient)
TypedValue from the provided ValueFields.valueFields - the ValueFields to retrieve the value fromdeserializeValue - indicates whether a SerializableValue should be deserialized.TypedValueboolean canHandle(TypedValue value)
value - the valueTypedValueSerializer is able to handle the provided valueT convertToTypedValue(UntypedValueImpl untypedValue)
TypedValueSerializer (by invocation of canHandle(TypedValue)).untypedValue - the untyped valueString getSerializationDataformat()
boolean isMutableValue(T typedValue)
Copyright © 2013–2020 camunda services GmbH. All rights reserved.