Class SerializableType
java.lang.Object
org.activiti.engine.impl.variable.ByteArrayType
org.activiti.engine.impl.variable.SerializableType
- All Implemented Interfaces:
VariableType
- Direct Known Subclasses:
LongJsonType,LongStringType
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectInputStreamprotected ObjectOutputStreamdeserialize(byte[] bytes, ValueFields valueFields) name of variable type (limited to 100 characters length)getValue(ValueFields valueFields) booleanisAbleToStore(Object value) byte[]serialize(Object value, ValueFields valueFields) voidsetValue(Object value, ValueFields valueFields) Stores the specified value in the suppliedValueFields.Methods inherited from class org.activiti.engine.impl.variable.ByteArrayType
isCachable
-
Field Details
-
TYPE_NAME
- See Also:
-
trackDeserializedObjects
protected boolean trackDeserializedObjects
-
-
Constructor Details
-
SerializableType
public SerializableType() -
SerializableType
public SerializableType(boolean trackDeserializedObjects)
-
-
Method Details
-
getTypeName
Description copied from interface:VariableTypename of variable type (limited to 100 characters length)- Specified by:
getTypeNamein interfaceVariableType- Overrides:
getTypeNamein classByteArrayType
-
getValue
- Specified by:
getValuein interfaceVariableType- Overrides:
getValuein classByteArrayType- Returns:
- the value of a variable based on the specified
ValueFields.
-
setValue
Description copied from interface:VariableTypeStores the specified value in the suppliedValueFields.- Specified by:
setValuein interfaceVariableType- Overrides:
setValuein classByteArrayType
-
serialize
-
deserialize
-
isAbleToStore
- Specified by:
isAbleToStorein interfaceVariableType- Overrides:
isAbleToStorein classByteArrayType- Returns:
- whether this variable type can store the specified value.
-
createObjectInputStream
- Throws:
IOException
-
createObjectOutputStream
- Throws:
IOException
-