org.camunda.bpm.engine.impl.variable.serializer
Class NullValueSerializer
java.lang.Object
org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer<org.camunda.bpm.engine.variable.impl.value.NullValueImpl>
org.camunda.bpm.engine.impl.variable.serializer.NullValueSerializer
- All Implemented Interfaces:
- TypedValueSerializer<org.camunda.bpm.engine.variable.impl.value.NullValueImpl>
public class NullValueSerializer
- extends AbstractTypedValueSerializer<org.camunda.bpm.engine.variable.impl.value.NullValueImpl>
Used to serialize untyped null values.
- Author:
- Daniel Meyer, Tom Baeyens
|
Method Summary |
protected boolean |
canWriteValue(org.camunda.bpm.engine.variable.value.TypedValue value)
|
org.camunda.bpm.engine.variable.impl.value.NullValueImpl |
convertToTypedValue(org.camunda.bpm.engine.variable.impl.value.UntypedValueImpl untypedValue)
Returns a typed value for the provided untyped value. |
String |
getName()
The name of this serializer. |
org.camunda.bpm.engine.variable.impl.value.NullValueImpl |
readValue(ValueFields valueFields,
boolean deserialize)
Retrieve a TypedValue from the provided ValueFields. |
void |
writeValue(org.camunda.bpm.engine.variable.impl.value.NullValueImpl value,
ValueFields valueFields)
Serialize a TypedValue to the ValueFields. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullValueSerializer
public NullValueSerializer()
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 org.camunda.bpm.engine.variable.impl.value.NullValueImpl convertToTypedValue(org.camunda.bpm.engine.variable.impl.value.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 this
TypedValueSerializer (by invocation of TypedValueSerializer.canHandle(TypedValue)).
- Parameters:
untypedValue - the untyped value
- Returns:
- the corresponding typed value
writeValue
public void writeValue(org.camunda.bpm.engine.variable.impl.value.NullValueImpl value,
ValueFields valueFields)
- Description copied from interface:
TypedValueSerializer
- Serialize a
TypedValue to the ValueFields.
- Parameters:
value - the TypedValue to persistvalueFields - the ValueFields to which the value should be persisted
readValue
public org.camunda.bpm.engine.variable.impl.value.NullValueImpl readValue(ValueFields valueFields,
boolean deserialize)
- Description copied from interface:
TypedValueSerializer
- Retrieve a
TypedValue from the provided ValueFields.
- Parameters:
valueFields - the ValueFields to retrieve the value fromdeserialize - indicates whether a SerializableValue should be deserialized.
- Returns:
- the
TypedValue
canWriteValue
protected boolean canWriteValue(org.camunda.bpm.engine.variable.value.TypedValue value)
- Specified by:
canWriteValue in class AbstractTypedValueSerializer<org.camunda.bpm.engine.variable.impl.value.NullValueImpl>
Copyright © 2017 camunda services GmbH. All rights reserved.