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 |
| Constructor and Description |
|---|
SerializerHandler() |
SerializerHandler(int flags) |
SerializerHandler(int flags,
String datetimeFormat) |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(Element element)
Deserializes an incoming xml element to an java object.
|
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 SerializerHandler()
public SerializerHandler(int flags)
public SerializerHandler(int flags,
String datetimeFormat)
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 © 2025. All rights reserved.