| java.lang.Object org.apache.xerces.validators.schema.XUtil
XUtil | public class XUtil (Code) | | Some useful utility methods.
|
Constructor Summary | |
protected | XUtil() This class cannot be instantiated. |
Method Summary | |
public static void | copyInto(Node src, Node dest) Copies the source tree into the specified place in a destination
tree. | public static String | getChildText(Node node) Returns the concatenated child text of the specified node. | public static Element | getFirstChildElement(Node parent) Finds and returns the first child element node. | 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 | getLastChildElement(Node parent) Finds and returns the last child element node. | 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 | getNextSiblingElement(Node node) Finds and returns the next sibling element node. | 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. |
XUtil | protected XUtil()(Code) | | This class cannot be instantiated.
|
copyInto | public static void copyInto(Node src, Node dest) throws DOMException(Code) | | 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.
|
getChildText | public static String getChildText(Node node)(Code) | | Returns the concatenated child text of the specified node.
This method only looks at the immediate children of type
Node.TEXT_NODE or the children of any child
node that is of type Node.CDATA_SECTION_NODE
for the concatenation.
Parameters: node - The node to look at. |
getFirstChildElement | public static Element getFirstChildElement(Node parent)(Code) | | Finds and returns the first child element node.
|
getFirstChildElement | public static Element getFirstChildElement(Node parent, String elemName)(Code) | | Finds and returns the first child node with the given name.
|
getFirstChildElement | public static Element getFirstChildElement(Node parent, String elemNames)(Code) | | Finds and returns the first child node with the given name.
|
getFirstChildElement | public static Element getFirstChildElement(Node parent, String elemName, String attrName, String attrValue)(Code) | | Finds and returns the first child node with the given name and
attribute name, value pair.
|
getFirstChildElementNS | public static Element getFirstChildElementNS(Node parent, String uri, String localpart)(Code) | | Finds and returns the first child node with the given qualified name.
|
getFirstChildElementNS | public static Element getFirstChildElementNS(Node parent, String[][] elemNames)(Code) | | Finds and returns the first child node with the given qualified name.
|
getLastChildElement | public static Element getLastChildElement(Node parent)(Code) | | Finds and returns the last child element node.
|
getLastChildElement | public static Element getLastChildElement(Node parent, String elemName)(Code) | | Finds and returns the last child node with the given name.
|
getLastChildElement | public static Element getLastChildElement(Node parent, String elemNames)(Code) | | Finds and returns the last child node with the given name.
|
getLastChildElement | public static Element getLastChildElement(Node parent, String elemName, String attrName, String attrValue)(Code) | | Finds and returns the last child node with the given name and
attribute name, value pair.
|
getLastChildElementNS | public static Element getLastChildElementNS(Node parent, String uri, String localpart)(Code) | | Finds and returns the last child node with the given qualified name.
|
getLastChildElementNS | public static Element getLastChildElementNS(Node parent, String[][] elemNames)(Code) | | Finds and returns the last child node with the given qualified name.
|
getNextSiblingElement | public static Element getNextSiblingElement(Node node)(Code) | | Finds and returns the next sibling element node.
|
getNextSiblingElement | public static Element getNextSiblingElement(Node node, String elemName)(Code) | | Finds and returns the next sibling node with the given name.
|
getNextSiblingElement | public static Element getNextSiblingElement(Node node, String elemNames)(Code) | | Finds and returns the next sibling node with the given name.
|
getNextSiblingElement | public static Element getNextSiblingElement(Node node, String elemName, String attrName, String attrValue)(Code) | | 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 | public static Element getNextSiblingElementNS(Node node, String uri, String localpart)(Code) | | Finds and returns the next sibling node with the given qualified name.
|
getNextSiblingElementNS | public static Element getNextSiblingElementNS(Node node, String[][] elemNames)(Code) | | Finds and returns the next sibling node with the given qualified name.
|
|
|