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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canHandle
(TypedValue value) Used for auto-detecting the value type of a variable.protected abstract boolean
canWriteValue
(TypedValue value) getType()
TheVariableType
supportedboolean
isMutableValue
(T typedValue) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:TypedValueSerializer
TheVariableType
supported- Specified by:
getType
in interfaceTypedValueSerializer<T extends TypedValue>
- Returns:
- the VariableType supported
-
getSerializationDataformat
- Specified by:
getSerializationDataformat
in 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:TypedValueSerializer
Used 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:
canHandle
in interfaceTypedValueSerializer<T extends TypedValue>
- Parameters:
value
- the value- Returns:
- true if this
TypedValueSerializer
is able to handle the provided value
-
canWriteValue
-
isMutableValue
- Specified by:
isMutableValue
in interfaceTypedValueSerializer<T extends TypedValue>
- Returns:
- whether values serialized by this serializer can be mutable and should be re-serialized if changed
-