public abstract class DefaultSerializeDelegate extends java.lang.Object implements SerializeDelegate
Modifier and Type | Class and Description |
---|---|
static class |
DefaultSerializeDelegate.Boolean |
static class |
DefaultSerializeDelegate.Byte |
static class |
DefaultSerializeDelegate.Double |
static class |
DefaultSerializeDelegate.Float |
static class |
DefaultSerializeDelegate.Integer |
static class |
DefaultSerializeDelegate.Long |
static class |
DefaultSerializeDelegate.Number |
static class |
DefaultSerializeDelegate.Short |
Constructor and Description |
---|
DefaultSerializeDelegate() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(java.lang.Object o)
format the object.
|
abstract 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 abstract 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