org.camunda.bpm.engine.impl.spin
Class SpinSerializationType
java.lang.Object
org.camunda.bpm.engine.impl.spin.SpinSerializationType
- All Implemented Interfaces:
- VariableType
public class SpinSerializationType
- extends Object
- implements VariableType
|
Method Summary |
org.camunda.spin.spi.DataFormat<?> |
getDefaultDataFormat()
|
SerializedVariableValue |
getSerializedValue(ValueFields valueFields)
|
String |
getTypeName()
name of variable type (limited to 100 characters length) |
String |
getTypeNameForValue(ValueFields valueFields)
Returns the type name (i.e. |
Object |
getValue(ValueFields valueFields)
|
boolean |
isAbleToStore(Object value)
|
boolean |
isAbleToStoreSerializedValue(Object value,
Map<String,Object> configuration)
|
boolean |
isCachable()
|
protected boolean |
isValidNullInput(Object value,
Map<String,Object> configuration)
|
protected boolean |
isValidObjectSerializedInput(Object value,
Map<String,Object> configuration)
|
void |
setValue(Object value,
ValueFields valueFields)
|
protected void |
setValue(String serializedValue,
String dataFormatId,
String valueType,
ValueFields valueFields)
|
void |
setValueFromSerialized(Object serializedValue,
Map<String,Object> configuration,
ValueFields valueFields)
|
boolean |
storesCustomObjects()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
availableDataFormats
protected Map<String,org.camunda.spin.spi.DataFormat<?>> availableDataFormats
defaultDataFormat
protected org.camunda.spin.spi.DataFormat<?> defaultDataFormat
CONFIG_DATA_FORMAT
protected static final String CONFIG_DATA_FORMAT
- See Also:
- Constant Field Values
CONFIG_ROOT_TYPE
protected static final String CONFIG_ROOT_TYPE
- See Also:
- Constant Field Values
SpinSerializationType
public SpinSerializationType(org.camunda.spin.spi.DataFormat<?> defaultDataFormat)
getTypeName
public String getTypeName()
- Description copied from interface:
VariableType
- name of variable type (limited to 100 characters length)
- Specified by:
getTypeName in interface VariableType
isCachable
public boolean isCachable()
- Specified by:
isCachable in interface VariableType
isAbleToStore
public boolean isAbleToStore(Object value)
- Specified by:
isAbleToStore in interface VariableType
setValue
public void setValue(Object value,
ValueFields valueFields)
- Specified by:
setValue in interface VariableType
setValue
protected void setValue(String serializedValue,
String dataFormatId,
String valueType,
ValueFields valueFields)
getValue
public Object getValue(ValueFields valueFields)
- Specified by:
getValue in interface VariableType
getDefaultDataFormat
public org.camunda.spin.spi.DataFormat<?> getDefaultDataFormat()
getSerializedValue
public SerializedVariableValue getSerializedValue(ValueFields valueFields)
- Specified by:
getSerializedValue in interface VariableType
setValueFromSerialized
public void setValueFromSerialized(Object serializedValue,
Map<String,Object> configuration,
ValueFields valueFields)
- Specified by:
setValueFromSerialized in interface VariableType
isAbleToStoreSerializedValue
public boolean isAbleToStoreSerializedValue(Object value,
Map<String,Object> configuration)
- Specified by:
isAbleToStoreSerializedValue in interface VariableType
isValidObjectSerializedInput
protected boolean isValidObjectSerializedInput(Object value,
Map<String,Object> configuration)
isValidNullInput
protected boolean isValidNullInput(Object value,
Map<String,Object> configuration)
getTypeNameForValue
public String getTypeNameForValue(ValueFields valueFields)
- Description copied from interface:
VariableType
Returns the type name (i.e. the simple class name) of the stored value.
Note:For a serializable value only the type name "Serializable"
will currently be returned and not the simple class name of the passed value.
- Specified by:
getTypeNameForValue in interface VariableType
storesCustomObjects
public boolean storesCustomObjects()
- Specified by:
storesCustomObjects in interface VariableType
Copyright © 2014 camunda services GmbH. All Rights Reserved.