public class XMLCodec extends Object
Modifier and Type | Class and Description |
---|---|
static class |
XMLCodec.DefaultXMLToObjectConverter |
static interface |
XMLCodec.XMLDecodable
Classes that implement this interface provide their own method to decode themselves from XML.
|
static interface |
XMLCodec.XMLEncodable
Classes that implement this interface provide their own method to encode themselves to XML.
|
static interface |
XMLCodec.XMLToObjectConverter
Classes that implement this interface can be used to convert XML to an object.
|
Modifier and Type | Field and Description |
---|---|
static String |
metainfoNamespace
Namespace for all administrative elements and attributes.
|
static String |
metainfoPrefix |
Constructor and Description |
---|
XMLCodec() |
Modifier and Type | Method and Description |
---|---|
static void |
convertEntryToXML(Object o,
Class type,
Element target,
String name) |
static void |
convertObjectToXML(Object o,
Element target) |
static Object |
convertXMLToEntry(Element xmlsource,
String name,
Class fieldtype) |
static Object |
convertXMLToObject(Element source,
Class cls) |
public static final String metainfoNamespace
public static final String metainfoPrefix
public static void convertEntryToXML(Object o, Class type, Element target, String name) throws IllegalAccessException
IllegalAccessException
public static void convertObjectToXML(Object o, Element target) throws IllegalAccessException
IllegalAccessException
public static Object convertXMLToEntry(Element xmlsource, String name, Class fieldtype) throws IllegalAccessException, InstantiationException, AgentCodecProtocolErrorException
public static Object convertXMLToObject(Element source, Class cls) throws InstantiationException, IllegalAccessException, AgentCodecProtocolErrorException
Copyright © 2013. All Rights Reserved.