|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectNodeX
public final class NodeX
Node utilities.
Method Summary | |
---|---|
static void |
_testWalk(Node node)
Test code. |
static boolean |
areAncestorAndDescendant(Node a,
Node d)
Answers whether one node (a) is an ancestor of another (d); or equivalently whether d is a descendant of a. |
static ProcessingInstruction |
findChildProcessingInstruction(Node parent,
String target)
Returns the named processing instruction, if one exists as a child of the parent node. |
static int |
indexIn(Node parent,
Node child)
Returns the index of the specified child in the parent node. |
static void |
moveElementsNS(Node fromParent,
String namespaceURI,
String localName,
Node toParent)
Removes from 'fromParent' all child elements of the specified name, and appends them to 'toParent'. |
static Node |
nextNode(Node node)
Returns the next node, in document order. |
static Node |
nextNode(Node node,
boolean deeply)
Returns the next node, in document order. |
static boolean |
nullSame(Node n1,
Node n2)
Returns true iff the nodes are either the 'same nodes', or both null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ProcessingInstruction findChildProcessingInstruction(Node parent, String target)
parent
- to searchtarget
- name of processing instruction
public static boolean areAncestorAndDescendant(Node a, Node d)
public static int indexIn(Node parent, Node child)
public static void moveElementsNS(Node fromParent, String namespaceURI, String localName, Node toParent)
public static Node nextNode(Node node)
node
- reference node, which may be null
public static Node nextNode(Node node, boolean deeply)
node
- reference node, which may be nulldeeply
- if true, return the first child node (if any)
public static boolean nullSame(Node n1, Node n2)
public static void _testWalk(Node node)
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |