public class HtmlDomTreeWalker extends Object implements Serializable
| Constructor and Description |
|---|
HtmlDomTreeWalker(DomNode root,
int whatToShow,
org.w3c.dom.traversal.NodeFilter filter,
boolean expandEntityReferences)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
DomNode |
firstChild() |
DomNode |
getCurrentNode() |
boolean |
getExpandEntityReferences() |
org.w3c.dom.traversal.NodeFilter |
getFilter() |
static int |
getFlagForNode(Node node)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
DomNode |
getRoot() |
int |
getWhatToShow() |
DomNode |
lastChild() |
DomNode |
nextNode() |
DomNode |
nextSibling() |
DomNode |
parentNode() |
DomNode |
previousNode() |
DomNode |
previousSibling() |
void |
setCurrentNode(Node currentNode) |
public HtmlDomTreeWalker(DomNode root, int whatToShow, org.w3c.dom.traversal.NodeFilter filter, boolean expandEntityReferences) throws DOMException
root - The root node of the TreeWalker. Must not be
null.whatToShow - Flag specifying which types of nodes appear in the
logical view of the TreeWalker. See NodeFilter for the
set of possible Show_ values.filter - The NodeFilter to be used with this TreeWalker,
or null to indicate no filter.expandEntityReferences - If false, the contents of
EntityReference nodes are not present in the logical view.DOMException - on attempt to create a TreeWalker with a root that
is null.public DomNode getRoot()
TreeWalker.getRoot()public int getWhatToShow()
TreeWalker.getWhatToShow()public org.w3c.dom.traversal.NodeFilter getFilter()
TreeWalker.getFilter()public boolean getExpandEntityReferences()
TreeWalker.getExpandEntityReferences()public DomNode getCurrentNode()
TreeWalker.getCurrentNode()public void setCurrentNode(Node currentNode) throws DOMException
currentNode - the current nodeDOMException - if the current node provides is nullTreeWalker.setCurrentNode(Node)public DomNode nextNode()
TreeWalker.nextNode()public static int getFlagForNode(Node node)
Node, return the appropriate constant for whatToShow.node - the nodepublic DomNode nextSibling()
TreeWalker.nextSibling()public DomNode parentNode()
TreeWalker.parentNode()public DomNode previousSibling()
TreeWalker.previousSibling()public DomNode lastChild()
TreeWalker.lastChild()public DomNode previousNode()
TreeWalker.previousNode()public DomNode firstChild()
TreeWalker.firstChild()Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.