org.ofbiz.entity.serialize
Class XmlSerializer
java.lang.Object
org.ofbiz.entity.serialize.XmlSerializer
public class XmlSerializer
- extends java.lang.Object
Title: XmlSerializer
Description: Simple XML serialization/deserialization routines with embedded type information
Field Summary |
static java.lang.String |
module
|
Method Summary |
static java.lang.Object |
deserialize(java.lang.String content,
GenericDelegator delegator)
|
static java.lang.Object |
deserializeCustom(org.w3c.dom.Element element)
|
static java.lang.Object |
deserializeSingle(org.w3c.dom.Element element,
GenericDelegator delegator)
|
static org.w3c.dom.Element |
makeElement(java.lang.String elementName,
java.lang.Object value,
org.w3c.dom.Document document)
|
static java.lang.String |
serialize(java.lang.Object object)
|
static org.w3c.dom.Element |
serializeCustom(java.lang.Object object,
org.w3c.dom.Document document)
|
static org.w3c.dom.Element |
serializeSingle(java.lang.Object object,
org.w3c.dom.Document document)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
module
public static final java.lang.String module
XmlSerializer
public XmlSerializer()
serialize
public static java.lang.String serialize(java.lang.Object object)
throws SerializeException,
java.io.FileNotFoundException,
java.io.IOException
- Throws:
SerializeException
java.io.FileNotFoundException
java.io.IOException
deserialize
public static java.lang.Object deserialize(java.lang.String content,
GenericDelegator delegator)
throws SerializeException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException,
java.io.IOException
- Throws:
SerializeException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
serializeSingle
public static org.w3c.dom.Element serializeSingle(java.lang.Object object,
org.w3c.dom.Document document)
throws SerializeException
- Throws:
SerializeException
serializeCustom
public static org.w3c.dom.Element serializeCustom(java.lang.Object object,
org.w3c.dom.Document document)
throws SerializeException
- Throws:
SerializeException
makeElement
public static org.w3c.dom.Element makeElement(java.lang.String elementName,
java.lang.Object value,
org.w3c.dom.Document document)
deserializeSingle
public static java.lang.Object deserializeSingle(org.w3c.dom.Element element,
GenericDelegator delegator)
throws SerializeException
- Throws:
SerializeException
deserializeCustom
public static java.lang.Object deserializeCustom(org.w3c.dom.Element element)
throws SerializeException
- Throws:
SerializeException