public class StringSerializeDelegate extends java.lang.Object implements SerializeDelegate
Constructor and Description |
---|
StringSerializeDelegate() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(java.lang.Object o)
format the object.
|
java.lang.Object |
parse(java.lang.String typeId,
java.lang.String s)
parse the object from the string
|
java.lang.String |
typeId(java.lang.Class clas)
identifier for the delegate, that is used to qualify the name of the thing formatted.
|
public java.lang.String format(java.lang.Object o)
SerializeDelegate
format
in interface SerializeDelegate
o
- the objectpublic java.lang.Object parse(java.lang.String typeId, java.lang.String s)
SerializeDelegate
parse
in interface SerializeDelegate
typeId
- the type IDs
- the string, e.g. "royalBlue"public java.lang.String typeId(java.lang.Class clas)
SerializeDelegate
typeId
in interface SerializeDelegate
clas
- the class