|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SK.gnome.dwarf.utils.XMLUtils
A utility class for manipulating with DOM trees.
Method Summary | |
static org.w3c.dom.Element |
getChild(org.w3c.dom.Element element,
java.lang.String name)
Returns a directly nested element of the given element. |
static org.w3c.dom.Element |
getChildNS(org.w3c.dom.Element element,
java.lang.String name,
java.lang.String uri)
Returns a directly nested element of the given element within the given namespace. |
static java.util.Iterator |
getChildren(org.w3c.dom.Element element)
Returns all directly nested child elements of the given element. |
static java.util.Iterator |
getChildren(org.w3c.dom.Element element,
java.lang.String name)
Returns directly nested child elements of the given element with the given name. |
static java.util.List |
getChildrenList(org.w3c.dom.Element element)
Returns all directly nested child elements of the given element. |
static java.util.List |
getChildrenList(org.w3c.dom.Element element,
java.lang.String name)
Returns directly nested child elements of the given element with the given name. |
static java.lang.String |
getChildTextTrim(org.w3c.dom.Element element,
java.lang.String name)
Returns the text value of a directly nested element of the given element. |
static java.lang.String |
getTextTrim(org.w3c.dom.Element element)
Returns the text value of the given element. |
static void |
removeChildren(org.w3c.dom.Element element)
Removes all child elements from the given element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String getTextTrim(org.w3c.dom.Element element)
element
- the element
public static java.lang.String getChildTextTrim(org.w3c.dom.Element element, java.lang.String name)
element
- the elementname
- the nested element name
public static org.w3c.dom.Element getChild(org.w3c.dom.Element element, java.lang.String name)
The element is searched within the namespace of the element argument.
element
- the elementname
- the nested element name
public static org.w3c.dom.Element getChildNS(org.w3c.dom.Element element, java.lang.String name, java.lang.String uri)
element
- the elementname
- the nested element nameuri
- the namespace URI
public static java.util.List getChildrenList(org.w3c.dom.Element element)
element
- the element
public static java.util.List getChildrenList(org.w3c.dom.Element element, java.lang.String name)
element
- the elementname
- the nested element name
public static java.util.Iterator getChildren(org.w3c.dom.Element element)
element
- the element
public static java.util.Iterator getChildren(org.w3c.dom.Element element, java.lang.String name)
element
- the elementname
- the nested element name
public static void removeChildren(org.w3c.dom.Element element)
element
- the element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |