Package org.openas2.lib.util
Class XMLUtil
- java.lang.Object
-
- org.openas2.lib.util.XMLUtil
-
public class XMLUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description XMLUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
convertMap(org.dom4j.Element parent, java.util.Map<java.lang.Object,java.lang.Object> values)
static java.lang.String[]
getChildNames(org.dom4j.Element parent)
static org.dom4j.Document
getDocument(java.io.InputStream in)
static org.dom4j.Document
getDocument(java.lang.String xml)
static java.util.Map<java.lang.String,java.lang.String>
mapAttributes(org.dom4j.Element element)
static java.util.Map<java.lang.String,java.lang.String>
mapAttributes(org.dom4j.Element element, java.lang.String[] ignore)
static java.util.Map<java.lang.String,java.lang.String>
mapChildValues(org.dom4j.Element parent)
static void
removeElements(org.dom4j.Element parent, java.lang.String name)
static org.dom4j.Element
requireChildElement(org.dom4j.Element parent, java.lang.String name)
static void
requireElement(org.dom4j.Element element, java.lang.String name)
-
-
-
Method Detail
-
getDocument
public static org.dom4j.Document getDocument(java.io.InputStream in) throws org.dom4j.DocumentException
- Throws:
org.dom4j.DocumentException
-
getDocument
public static org.dom4j.Document getDocument(java.lang.String xml) throws org.dom4j.DocumentException
- Throws:
org.dom4j.DocumentException
-
requireElement
public static void requireElement(org.dom4j.Element element, java.lang.String name) throws org.dom4j.DocumentException
- Throws:
org.dom4j.DocumentException
-
requireChildElement
public static org.dom4j.Element requireChildElement(org.dom4j.Element parent, java.lang.String name) throws org.dom4j.DocumentException
- Throws:
org.dom4j.DocumentException
-
getChildNames
public static java.lang.String[] getChildNames(org.dom4j.Element parent)
-
mapAttributes
public static java.util.Map<java.lang.String,java.lang.String> mapAttributes(org.dom4j.Element element)
-
mapAttributes
public static java.util.Map<java.lang.String,java.lang.String> mapAttributes(org.dom4j.Element element, java.lang.String[] ignore)
-
mapChildValues
public static java.util.Map<java.lang.String,java.lang.String> mapChildValues(org.dom4j.Element parent)
-
convertMap
public static void convertMap(org.dom4j.Element parent, java.util.Map<java.lang.Object,java.lang.Object> values)
-
removeElements
public static void removeElements(org.dom4j.Element parent, java.lang.String name)
-
-