Class NullValueSerializer
- java.lang.Object
-
- org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer<NullValueImpl>
-
- org.camunda.bpm.engine.impl.variable.serializer.NullValueSerializer
-
- All Implemented Interfaces:
TypedValueSerializer<NullValueImpl>
public class NullValueSerializer extends AbstractTypedValueSerializer<NullValueImpl>
Used to serialize untyped null values.- Author:
- Daniel Meyer, Tom Baeyens
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer
BINARY_VALUE_TYPES, valueType
-
-
Constructor Summary
Constructors Constructor Description NullValueSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canWriteValue(TypedValue value)
NullValueImpl
convertToTypedValue(UntypedValueImpl untypedValue)
Returns a typed value for the provided untyped value.String
getName()
The name of this serializer.NullValueImpl
readValue(ValueFields valueFields, boolean deserialize, boolean asTransientValue)
Retrieve aTypedValue
from the providedValueFields
.void
writeValue(NullValueImpl value, ValueFields valueFields)
Serialize aTypedValue
to theValueFields
.-
Methods inherited from class org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer
canHandle, getSerializationDataformat, getType, isMutableValue
-
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:TypedValueSerializer
The name of this serializer. The name is used when persisting the ValueFields populated by this serializer.- Returns:
- the name of this serializer.
-
convertToTypedValue
public NullValueImpl convertToTypedValue(UntypedValueImpl untypedValue)
Description copied from interface:TypedValueSerializer
Returns a typed value for the provided untyped value. This is used on cases where the user sets an untyped value which is then detected to be handled by thisTypedValueSerializer
(by invocation ofTypedValueSerializer.canHandle(TypedValue)
).- Parameters:
untypedValue
- the untyped value- Returns:
- the corresponding typed value
-
writeValue
public void writeValue(NullValueImpl value, ValueFields valueFields)
Description copied from interface:TypedValueSerializer
Serialize aTypedValue
to theValueFields
.- Parameters:
value
- theTypedValue
to persistvalueFields
- theValueFields
to which the value should be persisted
-
readValue
public NullValueImpl readValue(ValueFields valueFields, boolean deserialize, boolean asTransientValue)
Description copied from interface:TypedValueSerializer
Retrieve aTypedValue
from the providedValueFields
.- Parameters:
valueFields
- theValueFields
to retrieve the value fromdeserialize
- indicates whether aSerializableValue
should be deserialized.- Returns:
- the
TypedValue
-
canWriteValue
protected boolean canWriteValue(TypedValue value)
- Specified by:
canWriteValue
in classAbstractTypedValueSerializer<NullValueImpl>
-
-