public interface TypedValueSerializer<T extends org.camunda.bpm.engine.variable.value.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(org.camunda.bpm.engine.variable.value.TypedValue value)
Used for auto-detecting the value type of a variable.
|
T |
convertToTypedValue(org.camunda.bpm.engine.variable.impl.value.UntypedValueImpl untypedValue)
Returns a typed value for the provided untyped value.
|
String |
getName()
The name of this serializer.
|
String |
getSerializationDataformat() |
org.camunda.bpm.engine.variable.type.ValueType |
getType()
The
VariableType supported |
boolean |
isMutableValue(T typedValue) |
T |
readValue(ValueFields valueFields,
boolean deserializeValue)
Retrieve a
TypedValue from the provided ValueFields . |
void |
writeValue(T value,
ValueFields valueFields)
Serialize a
TypedValue to the ValueFields . |
String getName()
org.camunda.bpm.engine.variable.type.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)
TypedValue
from the provided ValueFields
.valueFields
- the ValueFields
to retrieve the value fromdeserializeValue
- indicates whether a SerializableValue
should be deserialized.TypedValue
boolean canHandle(org.camunda.bpm.engine.variable.value.TypedValue value)
value
- the valueTypedValueSerializer
is able to handle the provided valueT convertToTypedValue(org.camunda.bpm.engine.variable.impl.value.UntypedValueImpl untypedValue)
TypedValueSerializer
(by invocation of canHandle(TypedValue)
).untypedValue
- the untyped valueString getSerializationDataformat()
boolean isMutableValue(T typedValue)
Copyright © 2019. All rights reserved.