Class ObjectValueMapper
- java.lang.Object
-
- org.camunda.bpm.client.variable.impl.AbstractTypedValueMapper<ObjectValue>
-
- org.camunda.bpm.client.variable.impl.mapper.ObjectValueMapper
-
- All Implemented Interfaces:
ValueMapper<ObjectValue>
public class ObjectValueMapper extends AbstractTypedValueMapper<ObjectValue>
-
-
Field Summary
Fields Modifier and Type Field Description protected DataFormat
dataFormat
protected static ExternalTaskClientLogger
LOG
protected java.lang.String
serializationDataFormat
-
Fields inherited from class org.camunda.bpm.client.variable.impl.AbstractTypedValueMapper
valueType
-
-
Constructor Summary
Constructors Constructor Description ObjectValueMapper(java.lang.String serializationDataFormat, DataFormat dataFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canReadValue(TypedValueField typedValueField)
protected boolean
canWriteValue(TypedValue typedValue)
ObjectValue
convertToTypedValue(UntypedValueImpl untypedValue)
protected ObjectValue
createDeserializedValue(java.lang.Object deserializedObject, java.lang.String serializedValue, TypedValueField typedValueField)
protected ObjectValue
createSerializedValue(java.lang.String serializedValue, TypedValueField typedValueField)
protected java.lang.String
getObjectTypeName(ObjectValue value)
java.lang.String
getSerializationDataformat()
protected java.lang.String
readObjectNameFromFields(TypedValueField typedValueField)
ObjectValue
readValue(TypedValueField value, boolean deserializeObjectValue)
protected void
updateTypedValue(ObjectValue value, java.lang.String serializedValue)
protected void
writeSerializedValue(TypedValueField typedValueField, java.lang.String serializedValue)
void
writeValue(ObjectValue typedValue, TypedValueField typedValueField)
-
Methods inherited from class org.camunda.bpm.client.variable.impl.AbstractTypedValueMapper
canHandleTypedValue, canHandleTypedValueField, getType
-
-
-
-
Field Detail
-
LOG
protected static final ExternalTaskClientLogger LOG
-
dataFormat
protected DataFormat dataFormat
-
serializationDataFormat
protected java.lang.String serializationDataFormat
-
-
Constructor Detail
-
ObjectValueMapper
public ObjectValueMapper(java.lang.String serializationDataFormat, DataFormat dataFormat)
-
-
Method Detail
-
getSerializationDataformat
public java.lang.String getSerializationDataformat()
- Specified by:
getSerializationDataformat
in interfaceValueMapper<ObjectValue>
- Overrides:
getSerializationDataformat
in classAbstractTypedValueMapper<ObjectValue>
-
writeValue
public void writeValue(ObjectValue typedValue, TypedValueField typedValueField)
-
readValue
public ObjectValue readValue(TypedValueField value, boolean deserializeObjectValue)
-
convertToTypedValue
public ObjectValue convertToTypedValue(UntypedValueImpl untypedValue)
-
writeSerializedValue
protected void writeSerializedValue(TypedValueField typedValueField, java.lang.String serializedValue)
-
updateTypedValue
protected void updateTypedValue(ObjectValue value, java.lang.String serializedValue)
-
getObjectTypeName
protected java.lang.String getObjectTypeName(ObjectValue value)
-
canWriteValue
protected boolean canWriteValue(TypedValue typedValue)
- Specified by:
canWriteValue
in classAbstractTypedValueMapper<ObjectValue>
-
canReadValue
protected boolean canReadValue(TypedValueField typedValueField)
- Specified by:
canReadValue
in classAbstractTypedValueMapper<ObjectValue>
-
createDeserializedValue
protected ObjectValue createDeserializedValue(java.lang.Object deserializedObject, java.lang.String serializedValue, TypedValueField typedValueField)
-
createSerializedValue
protected ObjectValue createSerializedValue(java.lang.String serializedValue, TypedValueField typedValueField)
-
readObjectNameFromFields
protected java.lang.String readObjectNameFromFields(TypedValueField typedValueField)
-
-