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 . |
isCachable
public static final String TYPE_NAME
public String getTypeName()
VariableType
getTypeName
in interface VariableType
getTypeName
in class ByteArrayType
public Object getValue(ValueFields valueFields)
getValue
in interface VariableType
getValue
in class ByteArrayType
ValueFields
.public void setValue(Object value, ValueFields valueFields)
VariableType
ValueFields
.setValue
in interface VariableType
setValue
in class ByteArrayType
public byte[] serialize(Object value, ValueFields valueFields)
public Object deserialize(byte[] bytes, ValueFields valueFields)
public boolean isAbleToStore(Object value)
isAbleToStore
in interface VariableType
isAbleToStore
in class ByteArrayType
protected ObjectInputStream createObjectInputStream(InputStream is) throws IOException
IOException
protected ObjectOutputStream createObjectOutputStream(OutputStream os) throws IOException
IOException
Copyright © 2016 Alfresco. All rights reserved.