Class AbstractTypedValueSerializer<T extends TypedValue>
java.lang.Object
org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer<T>
- All Implemented Interfaces:
TypedValueSerializer<T>
- Direct Known Subclasses:
AbstractSerializableValueSerializer,FileValueSerializer,NullValueSerializer,PrimitiveValueSerializer
public abstract class AbstractTypedValueSerializer<T extends TypedValue>
extends Object
implements TypedValueSerializer<T>
- Author:
- Daniel Meyer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(TypedValue value) Used for auto-detecting the value type of a variable.protected abstract booleancanWriteValue(TypedValue value) getType()TheVariableTypesupportedbooleanisMutableValue(T typedValue) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.camunda.bpm.engine.impl.variable.serializer.TypedValueSerializer
convertToTypedValue, getName, readValue, writeValue
-
Field Details
-
BINARY_VALUE_TYPES
-
valueType
-
-
Constructor Details
-
AbstractTypedValueSerializer
-
-
Method Details
-
getType
Description copied from interface:TypedValueSerializerTheVariableTypesupported- Specified by:
getTypein interfaceTypedValueSerializer<T extends TypedValue>- Returns:
- the VariableType supported
-
getSerializationDataformat
- Specified by:
getSerializationDataformatin interfaceTypedValueSerializer<T extends TypedValue>- Returns:
- the dataformat used by the serializer or null if this is not an object serializer
-
canHandle
Description copied from interface:TypedValueSerializerUsed for auto-detecting the value type of a variable. An implementation must return true if it is able to write values of the provided type.- Specified by:
canHandlein interfaceTypedValueSerializer<T extends TypedValue>- Parameters:
value- the value- Returns:
- true if this
TypedValueSerializeris able to handle the provided value
-
canWriteValue
-
isMutableValue
- Specified by:
isMutableValuein interfaceTypedValueSerializer<T extends TypedValue>- Returns:
- whether values serialized by this serializer can be mutable and should be re-serialized if changed
-