public class SerializerHandler extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TYPE_ARRAY |
static String |
TYPE_BASE64 |
static String |
TYPE_BOOLEAN |
static String |
TYPE_DATETIME |
static String |
TYPE_DOUBLE |
static String |
TYPE_INT |
static String |
TYPE_INT2 |
static String |
TYPE_LONG |
static String |
TYPE_NULL |
static String |
TYPE_STRING |
static String |
TYPE_STRUCT |
Modifier and Type | Method and Description |
---|---|
Object |
deserialize(Element element)
Deserializes an incoming xml element to an java object.
|
static SerializerHandler |
getDefault()
Return the instance of the SerializerHandler.
|
static void |
initialize(int flags)
Initialize the serialization handler.
|
XmlElement |
serialize(Object object)
Serialize an object to its representation as an xml element.
|
public static final String TYPE_STRING
public static final String TYPE_BOOLEAN
public static final String TYPE_INT
public static final String TYPE_INT2
public static final String TYPE_LONG
public static final String TYPE_DOUBLE
public static final String TYPE_DATETIME
public static final String TYPE_STRUCT
public static final String TYPE_ARRAY
public static final String TYPE_BASE64
public static final String TYPE_NULL
public static void initialize(int flags)
flags
- The flags that has been set in the XMLRPCClient.XMLRPCClient
public static SerializerHandler getDefault()
public Object deserialize(Element element) throws XMLRPCException
element
- An type element from within a value tag.XMLRPCException
- Will be thrown whenever an error occurs.public XmlElement serialize(Object object) throws XMLRPCException
object
- The object that should be serialized.XMLRPCException
- Will be thrown, if an error occurs (e.g. the object
cannot be serialized to an xml element.Copyright © 2019. All rights reserved.