org.camunda.bpm.engine.impl.variable.serializer
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, JPAVariableSerializer, NullValueSerializer, PrimitiveValueSerializer
public abstract class AbstractTypedValueSerializer<T extends TypedValue>
- extends Object
- implements TypedValueSerializer<T>
- Author:
- Daniel Meyer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
valueType
protected ValueType valueType
AbstractTypedValueSerializer
public AbstractTypedValueSerializer(ValueType type)
getType
public ValueType getType()
- Description copied from interface:
TypedValueSerializer
- The
VariableType supported
- Specified by:
getType in interface TypedValueSerializer<T extends TypedValue>
- Returns:
- the VariableType supported
getSerializationDataformat
public String getSerializationDataformat()
- Specified by:
getSerializationDataformat in interface TypedValueSerializer<T extends TypedValue>
- Returns:
- the dataformat used by the serializer or null if this is not an object serializer
canHandle
public boolean canHandle(TypedValue value)
- 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 interface TypedValueSerializer<T extends TypedValue>
- Parameters:
value - the value
- Returns:
- true if this
TypedValueSerializer is able to handle the provided value
canWriteValue
protected abstract boolean canWriteValue(TypedValue value)
isMutableValue
public boolean isMutableValue(T typedValue)
- Specified by:
isMutableValue in interface TypedValueSerializer<T extends TypedValue>
- Returns:
- whether values serialized by this serializer can be mutable and
should be re-serialized if changed
Copyright © 2015 camunda services GmbH. All rights reserved.