| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static DOMException | |
| public static LSException | |
| public static String | |
| public static Attr | |
| public static Attr | |
| public static Attr[] | |
| public static String | |
| public static String | |
| public static String | getChildText(Node
The node to look at. node)Returns the concatenated child text of the specified node. |
| public static Document | |
| public static Element | |
| public static Element | getFirstChildElement(Node parent, String elemName)
Finds and returns the first child node with the given name. |
| public static Element | getFirstChildElement(Node parent, String[] elemNames)
Finds and returns the first child node with the given name. |
| public static Element | getFirstChildElement(Node parent, String elemName, String attrName, String attrValue)
Finds and returns the first child node with the given name and attribute name, value pair. |
| public static Element | getFirstChildElementNS(Node parent, String uri, String localpart)
Finds and returns the first child node with the given qualified name. |
| public static Element | getFirstChildElementNS(Node parent, String[][] elemNames)
Finds and returns the first child node with the given qualified name. |
| public static Element | |
| public static Element | getFirstVisibleChildElement(Node parent, Map<Node, String> hiddenNodes)
Finds and returns the first visible child element node. |
| public static Element | |
| public static Element | getLastChildElement(Node parent, String elemName)
Finds and returns the last child node with the given name. |
| public static Element | getLastChildElement(Node parent, String[] elemNames)
Finds and returns the last child node with the given name. |
| public static Element | getLastChildElement(Node parent, String elemName, String attrName, String attrValue)
Finds and returns the last child node with the given name and attribute name, value pair. |
| public static Element | getLastChildElementNS(Node parent, String uri, String localpart)
Finds and returns the last child node with the given qualified name. |
| public static Element | getLastChildElementNS(Node parent, String[][] elemNames)
Finds and returns the last child node with the given qualified name. |
| public static Element | |
| public static Element | getLastVisibleChildElement(Node parent, Map<Node, String> hiddenNodes)
Finds and returns the last visible child element node. |
| public static String | getLocalName(Node node)
returns local name of this element if not null, otherwise returns the name of the node |
| public static String | |
| public static String | |
| public static Element | |
| public static Element | getNextSiblingElement(Node node, String elemName)
Finds and returns the next sibling node with the given name. |
| public static Element | getNextSiblingElement(Node node, String[] elemNames)
Finds and returns the next sibling node with the given name. |
| public static Element | getNextSiblingElement(Node node, String elemName, String attrName, String attrValue)
Finds and returns the next sibling node with the given name and attribute name, value pair. |
| public static Element | getNextSiblingElementNS(Node node, String uri, String localpart)
Finds and returns the next sibling node with the given qualified name. |
| public static Element | getNextSiblingElementNS(Node node, String[][] elemNames)
Finds and returns the next sibling node with the given qualified name. |
| public static Element | |
| public static Element | |
| public static Element | |
| public static String | |
| public static Element | |
| public static String | |
| public static String | |
| public static boolean | |
| public static boolean | |
| public static void | |
| public static void | |
| public static void | |
| public static void |
| DOMUtil | back to summary |
|---|---|
| protected DOMUtil() This class cannot be instantiated. | |
| copyInto | back to summary |
|---|---|
| public static void copyInto(Node src, Node dest) throws DOMException Copies the source tree into the specified place in a destination tree. The source node and its children are appended as children of the destination node. Note This is an iterative implementation. | |
| createDOMException | back to summary |
|---|---|
| public static DOMException createDOMException(short code, Throwable cause) Creates a DOMException. On J2SE 1.4 and above the cause for the exception will be set. | |
| createLSException | back to summary |
|---|---|
| public static LSException createLSException(short code, Throwable cause) Creates an LSException. On J2SE 1.4 and above the cause for the exception will be set. | |
| getAnnotation | back to summary |
|---|---|
| public static String getAnnotation(Node node) | |
| getAttr | back to summary |
|---|---|
| public static Attr getAttr(Element elem, String name) | |
| getAttrNS | back to summary |
|---|---|
| public static Attr getAttrNS(Element elem, String nsUri, String localName) | |
| getAttrs | back to summary |
|---|---|
| public static Attr[] getAttrs(Element elem) | |
| getAttrValue | back to summary |
|---|---|
| public static String getAttrValue(Element elem, String name) | |
| getAttrValueNS | back to summary |
|---|---|
| public static String getAttrValueNS(Element elem, String nsUri, String localName) | |
| getChildText | back to summary |
|---|---|
| public static String getChildText(Node node) Returns the concatenated child text of the specified node.
This method only looks at the immediate children of type
| |
| getDocument | back to summary |
|---|---|
| public static Document getDocument(Node node) | |
| getFirstChildElement | back to summary |
|---|---|
| public static Element getFirstChildElement(Node parent) Finds and returns the first child element node. | |
| getFirstChildElement | back to summary |
|---|---|
| public static Element getFirstChildElement(Node parent, String elemName) Finds and returns the first child node with the given name. | |
| getFirstChildElement | back to summary |
|---|---|
| public static Element getFirstChildElement(Node parent, String[] elemNames) Finds and returns the first child node with the given name. | |
| getFirstChildElement | back to summary |
|---|---|
| public static Element getFirstChildElement(Node parent, String elemName, String attrName, String attrValue) Finds and returns the first child node with the given name and attribute name, value pair. | |
| getFirstChildElementNS | back to summary |
|---|---|
| public static Element getFirstChildElementNS(Node parent, String uri, String localpart) Finds and returns the first child node with the given qualified name. | |
| getFirstChildElementNS | back to summary |
|---|---|
| public static Element getFirstChildElementNS(Node parent, String[][] elemNames) Finds and returns the first child node with the given qualified name. | |
| getFirstVisibleChildElement | back to summary |
|---|---|
| public static Element getFirstVisibleChildElement(Node parent) Finds and returns the first visible child element node. | |
| getFirstVisibleChildElement | back to summary |
|---|---|
| public static Element getFirstVisibleChildElement(Node parent, Map<Node, String> hiddenNodes) Finds and returns the first visible child element node. | |
| getLastChildElement | back to summary |
|---|---|
| public static Element getLastChildElement(Node parent) Finds and returns the last child element node. Overload previous method for non-Xerces node impl. | |
| getLastChildElement | back to summary |
|---|---|
| public static Element getLastChildElement(Node parent, String elemName) Finds and returns the last child node with the given name. | |
| getLastChildElement | back to summary |
|---|---|
| public static Element getLastChildElement(Node parent, String[] elemNames) Finds and returns the last child node with the given name. | |
| getLastChildElement | back to summary |
|---|---|
| public static Element getLastChildElement(Node parent, String elemName, String attrName, String attrValue) Finds and returns the last child node with the given name and attribute name, value pair. | |
| getLastChildElementNS | back to summary |
|---|---|
| public static Element getLastChildElementNS(Node parent, String uri, String localpart) Finds and returns the last child node with the given qualified name. | |
| getLastChildElementNS | back to summary |
|---|---|
| public static Element getLastChildElementNS(Node parent, String[][] elemNames) Finds and returns the last child node with the given qualified name. | |
| getLastVisibleChildElement | back to summary |
|---|---|
| public static Element getLastVisibleChildElement(Node parent) Finds and returns the last visible child element node. | |
| getLastVisibleChildElement | back to summary |
|---|---|
| public static Element getLastVisibleChildElement(Node parent, Map<Node, String> hiddenNodes) Finds and returns the last visible child element node. Overload previous method for non-Xerces node impl | |
| getLocalName | back to summary |
|---|---|
| public static String getLocalName(Node node) returns local name of this element if not null, otherwise returns the name of the node | |
| getName | back to summary |
|---|---|
| public static String getName(Node node) | |
| getNamespaceURI | back to summary |
|---|---|
| public static String getNamespaceURI(Node node) | |
| getNextSiblingElement | back to summary |
|---|---|
| public static Element getNextSiblingElement(Node node) Finds and returns the next sibling element node. | |
| getNextSiblingElement | back to summary |
|---|---|
| public static Element getNextSiblingElement(Node node, String elemName) Finds and returns the next sibling node with the given name. | |
| getNextSiblingElement | back to summary |
|---|---|
| public static Element getNextSiblingElement(Node node, String[] elemNames) Finds and returns the next sibling node with the given name. | |
| getNextSiblingElement | back to summary |
|---|---|
| public static Element getNextSiblingElement(Node node, String elemName, String attrName, String attrValue) Finds and returns the next sibling node with the given name and attribute name, value pair. Since only elements have attributes, the node returned will be of type Node.ELEMENT_NODE. | |
| getNextSiblingElementNS | back to summary |
|---|---|
| public static Element getNextSiblingElementNS(Node node, String uri, String localpart) Finds and returns the next sibling node with the given qualified name. | |
| getNextSiblingElementNS | back to summary |
|---|---|
| public static Element getNextSiblingElementNS(Node node, String[][] elemNames) Finds and returns the next sibling node with the given qualified name. | |
| getNextVisibleSiblingElement | back to summary |
|---|---|
| public static Element getNextVisibleSiblingElement(Node node) | |
| getNextVisibleSiblingElement | back to summary |
|---|---|
| public static Element getNextVisibleSiblingElement(Node node, Map<Node, String> hiddenNodes) | |
| getParent | back to summary |
|---|---|
| public static Element getParent(Element elem) | |
| getPrefix | back to summary |
|---|---|
| public static String getPrefix(Node node) | |
| getRoot | back to summary |
|---|---|
| public static Element getRoot(Document doc) | |
| getSyntheticAnnotation | back to summary |
|---|---|
| public static String getSyntheticAnnotation(Node node) | |
| getValue | back to summary |
|---|---|
| public static String getValue(Attr attribute) | |
| isHidden | back to summary |
|---|---|
| public static boolean isHidden(Node node) | |
| isHidden | back to summary |
|---|---|
| public static boolean isHidden(Node node, Map<Node, String> hiddenNodes) | |
| setHidden | back to summary |
|---|---|
| public static void setHidden(Node node) | |
| setHidden | back to summary |
|---|---|
| public static void setHidden(Node node, Map<Node, String> hiddenNodes) | |
| setVisible | back to summary |
|---|---|
| public static void setVisible(Node node) | |
| setVisible | back to summary |
|---|---|
| public static void setVisible(Node node, Map<Node, String> hiddenNodes) | |