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>
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canWriteValue
(TypedValue value) convertToTypedValue
(UntypedValueImpl untypedValue) Returns a typed value for the provided untyped value.getName()
The name of this serializer.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
-
Constructor Details
-
NullValueSerializer
public NullValueSerializer()
-
-
Method Details
-
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
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
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
- Specified by:
canWriteValue
in classAbstractTypedValueSerializer<NullValueImpl>
-