public interface SerializeDelegate
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.
|
java.lang.String format(java.lang.Object o)
o
- the objectjava.lang.Object parse(java.lang.String typeId, java.lang.String s) throws java.text.ParseException
typeId
- the type IDs
- the string, e.g. "royalBlue"java.text.ParseException
java.lang.String typeId(java.lang.Class clas)
clas
- the class