public interface VariableSerializers
TypedValueSerializer
s of variables.TypedValueSerializer findSerializerForValue(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(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 © 2019. All rights reserved.