|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xerces.validators.schema.XUtil
Some useful utility methods.
Constructor Summary | |
---|---|
protected |
XUtil()
This class cannot be instantiated. |
Method Summary | |
---|---|
static void |
copyInto(Node src,
Node dest)
Copies the source tree into the specified place in a destination tree. |
static java.lang.String |
getChildText(Node node)
Returns the concatenated child text of the specified node. |
static Element |
getFirstChildElement(Node parent)
Finds and returns the first child element node. |
static Element |
getFirstChildElement(Node parent,
java.lang.String elemName)
Finds and returns the first child node with the given name. |
static Element |
getFirstChildElement(Node parent,
java.lang.String[] elemNames)
Finds and returns the first child node with the given name. |
static Element |
getFirstChildElement(Node parent,
java.lang.String elemName,
java.lang.String attrName,
java.lang.String attrValue)
Finds and returns the first child node with the given name and attribute name, value pair. |
static Element |
getFirstChildElementNS(Node parent,
java.lang.String[][] elemNames)
Finds and returns the first child node with the given qualified name. |
static Element |
getFirstChildElementNS(Node parent,
java.lang.String uri,
java.lang.String localpart)
Finds and returns the first child node with the given qualified name. |
static Element |
getLastChildElement(Node parent)
Finds and returns the last child element node. |
static Element |
getLastChildElement(Node parent,
java.lang.String elemName)
Finds and returns the last child node with the given name. |
static Element |
getLastChildElement(Node parent,
java.lang.String[] elemNames)
Finds and returns the last child node with the given name. |
static Element |
getLastChildElement(Node parent,
java.lang.String elemName,
java.lang.String attrName,
java.lang.String attrValue)
Finds and returns the last child node with the given name and attribute name, value pair. |
static Element |
getLastChildElementNS(Node parent,
java.lang.String[][] elemNames)
Finds and returns the last child node with the given qualified name. |
static Element |
getLastChildElementNS(Node parent,
java.lang.String uri,
java.lang.String localpart)
Finds and returns the last child node with the given qualified name. |
static Element |
getNextSiblingElement(Node node)
Finds and returns the next sibling element node. |
static Element |
getNextSiblingElement(Node node,
java.lang.String elemName)
Finds and returns the next sibling node with the given name. |
static Element |
getNextSiblingElement(Node node,
java.lang.String[] elemNames)
Finds and returns the next sibling node with the given name. |
static Element |
getNextSiblingElement(Node node,
java.lang.String elemName,
java.lang.String attrName,
java.lang.String attrValue)
Finds and returns the next sibling node with the given name and attribute name, value pair. |
static Element |
getNextSiblingElementNS(Node node,
java.lang.String[][] elemNames)
Finds and returns the next sibling node with the given qualified name. |
static Element |
getNextSiblingElementNS(Node node,
java.lang.String uri,
java.lang.String localpart)
Finds and returns the next sibling node with the given qualified name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected XUtil()
Method Detail |
public static void copyInto(Node src, Node dest) throws DOMException
Note: This is an iterative implementation.
public static Element getFirstChildElement(Node parent)
public static Element getLastChildElement(Node parent)
public static Element getNextSiblingElement(Node node)
public static Element getFirstChildElement(Node parent, java.lang.String elemName)
public static Element getLastChildElement(Node parent, java.lang.String elemName)
public static Element getNextSiblingElement(Node node, java.lang.String elemName)
public static Element getFirstChildElementNS(Node parent, java.lang.String uri, java.lang.String localpart)
public static Element getLastChildElementNS(Node parent, java.lang.String uri, java.lang.String localpart)
public static Element getNextSiblingElementNS(Node node, java.lang.String uri, java.lang.String localpart)
public static Element getFirstChildElement(Node parent, java.lang.String[] elemNames)
public static Element getLastChildElement(Node parent, java.lang.String[] elemNames)
public static Element getNextSiblingElement(Node node, java.lang.String[] elemNames)
public static Element getFirstChildElementNS(Node parent, java.lang.String[][] elemNames)
public static Element getLastChildElementNS(Node parent, java.lang.String[][] elemNames)
public static Element getNextSiblingElementNS(Node node, java.lang.String[][] elemNames)
public static Element getFirstChildElement(Node parent, java.lang.String elemName, java.lang.String attrName, java.lang.String attrValue)
public static Element getLastChildElement(Node parent, java.lang.String elemName, java.lang.String attrName, java.lang.String attrValue)
public static Element getNextSiblingElement(Node node, java.lang.String elemName, java.lang.String attrName, java.lang.String attrValue)
public static java.lang.String getChildText(Node node)
Node.TEXT_NODE
or the children of any child
node that is of type Node.CDATA_SECTION_NODE
for the concatenation.node
- The node to look at.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |