| java.lang.Object biz.hammurapi.xml.dom.DOMUtils
DOMUtils | public class DOMUtils (Code) | | Utility class for querying DOM.
author: Pavel Vlasov |
Method Summary | |
public static Properties | dom2Properties(Element e, String prefix) | public static String | getElementText(Element e) | public static String | getNonBlankElementText(Element e) | public static Element | getSingleElement(Element e, String elementName) Ensures that thre is one and only one element and returns it. | public static String | getSingleElementText(Element e, String elementName) | public static String | getSingleNonBlankElementText(Element e, String elementName) | public static Document | parse(File file) | public static Document | parse(InputStream is) | public static Document | parse(Reader is) | public static void | readProperties(Element holder, Properties properties) | public static void | serialize(Object o, String root, Result result) | public static void | serialize(Object o, String root, File out) | public static void | serialize(Node node, File out) | public static void | serialize(Node node, OutputStream os) | public static void | style(Object o, String root, OutputStream os, InputStream style, Map parameters) | public static void | style(Object o, String root, File out, InputStream style, Map parameters) | public static void | style(Document doc, File out, InputStream style, Map parameters) | public static void | style(Document doc, OutputStream os, InputStream style, Map parameters) | public static void | toDom(Object o, Element holder) Serializes object to XML. | public static void | toDom(Object o, String name, Element parent) Serializes object to XML. | public static Document | toDom(Object o) | public static void | toDom(Object o, Element holder, CompositeDomSerializer domSerializer) Serializes object to XML. | public static void | toDom(Object o, String name, Element parent, CompositeDomSerializer domSerializer) Serializes object to XML. | public static Document | toDom(Object o, CompositeDomSerializer domSerializer) | public static String | toString(Node node) | public static String | toXmlString(Object o, String root) | public static String | toXmlString(Object o, String root, CompositeDomSerializer domSerializer) |
toDom | public static void toDom(Object o, Element holder)(Code) | | Serializes object to XML. Specially treats collections,
maps, arrays and DomSerializable objects.
Parameters: o - Parameters: holder - |
toDom | public static void toDom(Object o, String name, Element parent)(Code) | | Serializes object to XML. Specially treats collections,
maps, arrays and DomSerializable objects.
Parameters: o - Parameters: name - Element name Parameters: parent - parent element |
toDom | public static void toDom(Object o, Element holder, CompositeDomSerializer domSerializer)(Code) | | Serializes object to XML. Specially treats collections,
maps, arrays and DomSerializable objects.
Parameters: o - Parameters: holder - |
toDom | public static void toDom(Object o, String name, Element parent, CompositeDomSerializer domSerializer)(Code) | | Serializes object to XML. Specially treats collections,
maps, arrays and DomSerializable objects.
Parameters: o - Parameters: name - Element name Parameters: parent - parent element |
|
|