public interface VariableSerializers
TypedValueSerializer
s of variables.Modifier and Type | Method and Description |
---|---|
VariableSerializers |
addSerializer(TypedValueSerializer<?> serializer) |
VariableSerializers |
addSerializer(TypedValueSerializer<?> serializer,
int index)
Add type at the given index.
|
TypedValueSerializer |
findSerializerForValue(org.camunda.bpm.engine.variable.value.TypedValue value)
Same as calling
findSerializerForValue(TypedValue, VariableSerializerFactory)
with no fallback serializer factory. |
TypedValueSerializer |
findSerializerForValue(org.camunda.bpm.engine.variable.value.TypedValue value,
VariableSerializerFactory fallBackSerializerFactory)
Selects the
TypedValueSerializer which should be used for persisting a VariableValue. |
TypedValueSerializer<?> |
getSerializerByName(String serializerName) |
int |
getSerializerIndex(TypedValueSerializer<?> serializer) |
int |
getSerializerIndexByName(String serializerName) |
List<TypedValueSerializer<?>> |
getSerializers()
Returns the serializers as a list in the order of their indices.
|
VariableSerializers |
join(VariableSerializers other)
Merges two
VariableSerializers instances into one. |
VariableSerializers |
removeSerializer(TypedValueSerializer<?> serializer) |
TypedValueSerializer findSerializerForValue(org.camunda.bpm.engine.variable.value.TypedValue value, VariableSerializerFactory fallBackSerializerFactory)
TypedValueSerializer
which should be used for persisting a VariableValue.value
- the value to persistfallBackSerializerFactory
- a factory to build a fallback serializer in case no suiting serializer
can be determined. If this factory is not able to build serializer either, an exception is thrown. May be nullTypedValueSerializer findSerializerForValue(org.camunda.bpm.engine.variable.value.TypedValue value)
findSerializerForValue(TypedValue, VariableSerializerFactory)
with no fallback serializer factory.TypedValueSerializer<?> getSerializerByName(String serializerName)
VariableSerializers addSerializer(TypedValueSerializer<?> serializer)
VariableSerializers addSerializer(TypedValueSerializer<?> serializer, int index)
VariableSerializers removeSerializer(TypedValueSerializer<?> serializer)
int getSerializerIndex(TypedValueSerializer<?> serializer)
int getSerializerIndexByName(String serializerName)
VariableSerializers join(VariableSerializers other)
VariableSerializers
instances into one. Implementations may apply
different merging strategies.List<TypedValueSerializer<?>> getSerializers()
Copyright © 2022. All rights reserved.