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 java.lang.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 java.io.ObjectInputStreamcreateObjectInputStream(java.io.InputStream is)protected java.io.ObjectOutputStreamcreateObjectOutputStream(java.io.OutputStream os)java.lang.Objectdeserialize(byte[] bytes, ValueFields valueFields)java.lang.StringgetTypeName()name of variable type (limited to 100 characters length)java.lang.ObjectgetValue(ValueFields valueFields)booleanisAbleToStore(java.lang.Object value)byte[]serialize(java.lang.Object value, ValueFields valueFields)voidsetValue(java.lang.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 java.lang.String TYPE_NAME
- See Also:
- Constant Field Values
-
trackDeserializedObjects
protected boolean trackDeserializedObjects
-
-
Method Detail
-
getTypeName
public java.lang.String getTypeName()
Description copied from interface:VariableTypename of variable type (limited to 100 characters length)- Specified by:
getTypeNamein interfaceVariableType- Overrides:
getTypeNamein classByteArrayType
-
getValue
public java.lang.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(java.lang.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(java.lang.Object value, ValueFields valueFields)
-
deserialize
public java.lang.Object deserialize(byte[] bytes, ValueFields valueFields)
-
isAbleToStore
public boolean isAbleToStore(java.lang.Object value)
- Specified by:
isAbleToStorein interfaceVariableType- Overrides:
isAbleToStorein classByteArrayType- Returns:
- whether this variable type can store the specified value.
-
createObjectInputStream
protected java.io.ObjectInputStream createObjectInputStream(java.io.InputStream is) throws java.io.IOException- Throws:
java.io.IOException
-
createObjectOutputStream
protected java.io.ObjectOutputStream createObjectOutputStream(java.io.OutputStream os) throws java.io.IOException- Throws:
java.io.IOException
-
-