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>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DataFormatprotected DeserializationTypeValidatorValidates the Java type an object variable is deserialized into, resolved from the (attacker-influenceable)objectTypeNamevariable metadata.protected static final ExternalTaskClientLoggerprotected StringFields inherited from class org.camunda.bpm.client.variable.impl.AbstractTypedValueMapper
valueType -
Constructor Summary
ConstructorsConstructorDescriptionObjectValueMapper(String serializationDataFormat, DataFormat dataFormat) ObjectValueMapper(String serializationDataFormat, DataFormat dataFormat, DeserializationTypeValidator deserializationTypeValidator) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanReadValue(TypedValueField typedValueField) protected booleancanWriteValue(TypedValue typedValue) convertToTypedValue(UntypedValueImpl untypedValue) protected ObjectValuecreateDeserializedValue(Object deserializedObject, String serializedValue, TypedValueField typedValueField) protected ObjectValuecreateSerializedValue(String serializedValue, TypedValueField typedValueField) protected StringgetObjectTypeName(ObjectValue value) protected StringreadObjectNameFromFields(TypedValueField typedValueField) readValue(TypedValueField value, boolean deserializeObjectValue) protected voidupdateTypedValue(ObjectValue value, String serializedValue) protected voidwriteSerializedValue(TypedValueField typedValueField, String serializedValue) voidwriteValue(ObjectValue typedValue, TypedValueField typedValueField) Methods inherited from class org.camunda.bpm.client.variable.impl.AbstractTypedValueMapper
canHandleTypedValue, canHandleTypedValueField, getType
-
Field Details
-
LOG
-
dataFormat
-
serializationDataFormat
-
deserializationTypeValidator
Validates the Java type an object variable is deserialized into, resolved from the (attacker-influenceable)objectTypeNamevariable metadata. May benull(the default), in which case no validation is performed and behavior is unchanged from before this API was introduced - existing customer-defined DTO classes keep working without any configuration.
-
-
Constructor Details
-
ObjectValueMapper
-
ObjectValueMapper
public ObjectValueMapper(String serializationDataFormat, DataFormat dataFormat, DeserializationTypeValidator deserializationTypeValidator)
-
-
Method Details
-
getSerializationDataformat
- Specified by:
getSerializationDataformatin interfaceValueMapper<ObjectValue>- Overrides:
getSerializationDataformatin classAbstractTypedValueMapper<ObjectValue>
-
writeValue
-
readValue
-
convertToTypedValue
-
writeSerializedValue
-
updateTypedValue
-
getObjectTypeName
-
canWriteValue
- Specified by:
canWriteValuein classAbstractTypedValueMapper<ObjectValue>
-
canReadValue
- Specified by:
canReadValuein classAbstractTypedValueMapper<ObjectValue>
-
createDeserializedValue
protected ObjectValue createDeserializedValue(Object deserializedObject, String serializedValue, TypedValueField typedValueField) -
createSerializedValue
protected ObjectValue createSerializedValue(String serializedValue, TypedValueField typedValueField) -
readObjectNameFromFields
-