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
public class SerializableType extends ByteArrayType
-
-
Field Summary
Fields Modifier and Type Field Description protected booleantrackDeserializedObjectsstatic StringTYPE_NAME
-
Constructor Summary
Constructors Constructor Description SerializableType()SerializableType(boolean trackDeserializedObjects)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectInputStreamcreateObjectInputStream(InputStream is)protected ObjectOutputStreamcreateObjectOutputStream(OutputStream os)Objectdeserialize(byte[] bytes, ValueFields valueFields)StringgetTypeName()name of variable type (limited to 100 characters length)ObjectgetValue(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 Detail
-
TYPE_NAME
public static final String TYPE_NAME
- See Also:
- Constant Field Values
-
trackDeserializedObjects
protected boolean trackDeserializedObjects
-
-
Method Detail
-
getTypeName
public String getTypeName()
Description copied from interface:VariableTypename of variable type (limited to 100 characters length)- Specified by:
getTypeNamein interfaceVariableType- Overrides:
getTypeNamein classByteArrayType
-
getValue
public Object getValue(ValueFields valueFields)
- Specified by:
getValuein interfaceVariableType- Overrides:
getValuein classByteArrayType- Returns:
- the value of a variable based on the specified
ValueFields.
-
setValue
public void setValue(Object value, ValueFields valueFields)
Description copied from interface:VariableTypeStores the specified value in the suppliedValueFields.- Specified by:
setValuein interfaceVariableType- Overrides:
setValuein classByteArrayType
-
serialize
public byte[] serialize(Object value, ValueFields valueFields)
-
deserialize
public Object deserialize(byte[] bytes, ValueFields valueFields)
-
isAbleToStore
public boolean isAbleToStore(Object value)
- Specified by:
isAbleToStorein interfaceVariableType- Overrides:
isAbleToStorein classByteArrayType- Returns:
- whether this variable type can store the specified value.
-
createObjectInputStream
protected ObjectInputStream createObjectInputStream(InputStream is) throws IOException
- Throws:
IOException
-
createObjectOutputStream
protected ObjectOutputStream createObjectOutputStream(OutputStream os) throws IOException
- Throws:
IOException
-
-