public class SerializableType extends ByteArrayType
| Constructor and Description |
|---|
SerializableType() |
| Modifier and Type | Method and Description |
|---|---|
protected ObjectInputStream |
createObjectInputStream(InputStream is) |
protected ObjectOutputStream |
createObjectOutputStream(OutputStream os) |
Object |
deserialize(byte[] bytes,
ValueFields valueFields) |
String |
getTypeName()
name of variable type (limited to 100 characters length)
|
Object |
getValue(ValueFields valueFields) |
boolean |
isAbleToStore(Object value) |
byte[] |
serialize(Object value,
ValueFields valueFields) |
void |
setValue(Object value,
ValueFields valueFields)
Stores the specified value in the supplied
ValueFields. |
isCachablepublic static final String TYPE_NAME
public String getTypeName()
VariableTypegetTypeName in interface VariableTypegetTypeName in class ByteArrayTypepublic Object getValue(ValueFields valueFields)
getValue in interface VariableTypegetValue in class ByteArrayTypeValueFields.public void setValue(Object value, ValueFields valueFields)
VariableTypeValueFields.setValue in interface VariableTypesetValue in class ByteArrayTypepublic byte[] serialize(Object value, ValueFields valueFields)
public Object deserialize(byte[] bytes, ValueFields valueFields)
public boolean isAbleToStore(Object value)
isAbleToStore in interface VariableTypeisAbleToStore in class ByteArrayTypeprotected ObjectInputStream createObjectInputStream(InputStream is) throws IOException
IOExceptionprotected ObjectOutputStream createObjectOutputStream(OutputStream os) throws IOException
IOExceptionCopyright © 2016 Alfresco. All rights reserved.