xacute.util
Class DOMUtil

java.lang.Object
  |
  +--xacute.util.DOMUtil

public class DOMUtil
extends java.lang.Object


Field Summary
static int AFTER
           
static int BEFORE
           
static int SAME
           
 
Constructor Summary
DOMUtil()
           
 
Method Summary
static boolean canCompareNodes(org.w3c.dom.Node n1, org.w3c.dom.Node n2)
           
static org.w3c.dom.Node cloneNode(org.w3c.dom.Node n)
           
static int compareNodes(org.w3c.dom.Node n1, org.w3c.dom.Node n2)
           
static org.w3c.dom.NodeList getAncestors(org.w3c.dom.Node n)
           
static org.w3c.dom.NodeList getAncestorsOrSelf(org.w3c.dom.Node n)
           
static org.w3c.dom.NodeList getAttributes(org.w3c.dom.Node n)
           
static org.w3c.dom.NodeList getChildNodes(org.w3c.dom.Node n)
           
static org.w3c.dom.NodeList getDescendants(org.w3c.dom.Node n)
           
static org.w3c.dom.NodeList getDescendantsOrSelf(org.w3c.dom.Node n)
           
static org.w3c.dom.Node getDocumentRoot(org.w3c.dom.Node n)
           
static org.w3c.dom.NodeList getElementsByID(org.w3c.dom.Node n, java.lang.String[] ids, Hint[] hints)
           
static org.w3c.dom.NodeList getFollowing(org.w3c.dom.Node n)
           
static org.w3c.dom.NodeList getFollowingSiblings(org.w3c.dom.Node n)
           
static java.lang.String getNodeName(org.w3c.dom.Node n)
           
static java.lang.String getNodeValue(org.w3c.dom.Node n)
           
static org.w3c.dom.NodeList getParent(org.w3c.dom.Node n)
           
static org.w3c.dom.NodeList getPreceding(org.w3c.dom.Node n)
           
static org.w3c.dom.NodeList getPrecedingSiblings(org.w3c.dom.Node n)
           
static org.w3c.dom.NodeList getSelf(org.w3c.dom.Node n)
           
static boolean isAttributeNode(org.w3c.dom.Node n)
           
static boolean isCommentNode(org.w3c.dom.Node n)
           
static boolean isElementNode(org.w3c.dom.Node n)
           
static boolean isPINode(org.w3c.dom.Node n)
           
static boolean isRootNode(org.w3c.dom.Node n)
           
static boolean isTextNode(org.w3c.dom.Node n)
           
static org.w3c.dom.NodeList reverse(org.w3c.dom.NodeList nl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AFTER

public static final int AFTER

BEFORE

public static final int BEFORE

SAME

public static final int SAME
Constructor Detail

DOMUtil

public DOMUtil()
Method Detail

reverse

public static org.w3c.dom.NodeList reverse(org.w3c.dom.NodeList nl)

getSelf

public static org.w3c.dom.NodeList getSelf(org.w3c.dom.Node n)

getAttributes

public static org.w3c.dom.NodeList getAttributes(org.w3c.dom.Node n)

getChildNodes

public static org.w3c.dom.NodeList getChildNodes(org.w3c.dom.Node n)

getAncestors

public static org.w3c.dom.NodeList getAncestors(org.w3c.dom.Node n)

getAncestorsOrSelf

public static org.w3c.dom.NodeList getAncestorsOrSelf(org.w3c.dom.Node n)

getDescendants

public static org.w3c.dom.NodeList getDescendants(org.w3c.dom.Node n)

getDescendantsOrSelf

public static org.w3c.dom.NodeList getDescendantsOrSelf(org.w3c.dom.Node n)

getPrecedingSiblings

public static org.w3c.dom.NodeList getPrecedingSiblings(org.w3c.dom.Node n)

getFollowingSiblings

public static org.w3c.dom.NodeList getFollowingSiblings(org.w3c.dom.Node n)

getFollowing

public static org.w3c.dom.NodeList getFollowing(org.w3c.dom.Node n)

getParent

public static org.w3c.dom.NodeList getParent(org.w3c.dom.Node n)

getPreceding

public static org.w3c.dom.NodeList getPreceding(org.w3c.dom.Node n)

getNodeName

public static java.lang.String getNodeName(org.w3c.dom.Node n)

getNodeValue

public static java.lang.String getNodeValue(org.w3c.dom.Node n)

cloneNode

public static org.w3c.dom.Node cloneNode(org.w3c.dom.Node n)

isElementNode

public static boolean isElementNode(org.w3c.dom.Node n)

isAttributeNode

public static boolean isAttributeNode(org.w3c.dom.Node n)

isTextNode

public static boolean isTextNode(org.w3c.dom.Node n)

isPINode

public static boolean isPINode(org.w3c.dom.Node n)

isCommentNode

public static boolean isCommentNode(org.w3c.dom.Node n)

isRootNode

public static boolean isRootNode(org.w3c.dom.Node n)

canCompareNodes

public static boolean canCompareNodes(org.w3c.dom.Node n1,
                                      org.w3c.dom.Node n2)

compareNodes

public static int compareNodes(org.w3c.dom.Node n1,
                               org.w3c.dom.Node n2)

getDocumentRoot

public static org.w3c.dom.Node getDocumentRoot(org.w3c.dom.Node n)

getElementsByID

public static org.w3c.dom.NodeList getElementsByID(org.w3c.dom.Node n,
                                                   java.lang.String[] ids,
                                                   Hint[] hints)