Package org.htmlunit.html
Class DomTreeWalker
- java.lang.Object
-
- org.htmlunit.html.DomTreeWalker
-
- All Implemented Interfaces:
org.w3c.dom.traversal.TreeWalker
@Deprecated public class DomTreeWalker extends java.lang.Object implements org.w3c.dom.traversal.TreeWalkerDeprecated.as of version 2.70.0; use org.htmlunit.platform.dom.traversal.DomTreeWalker insteadAn implementation ofTreeWalker.- See Also:
- DOM-Level-2-Traversal-Range
-
-
Constructor Summary
Constructors Constructor Description DomTreeWalker(DomNode root, int whatToShow, org.w3c.dom.traversal.NodeFilter filter, boolean expandEntityReferences)Deprecated.Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DomNodefirstChild()Deprecated.DomNodegetCurrentNode()Deprecated.booleangetExpandEntityReferences()Deprecated.org.w3c.dom.traversal.NodeFiltergetFilter()Deprecated.DomNodegetRoot()Deprecated.intgetWhatToShow()Deprecated.DomNodelastChild()Deprecated.DomNodenextNode()Deprecated.DomNodenextSibling()Deprecated.DomNodeparentNode()Deprecated.DomNodepreviousNode()Deprecated.DomNodepreviousSibling()Deprecated.voidsetCurrentNode(org.w3c.dom.Node currentNode)Deprecated.
-
-
-
Constructor Detail
-
DomTreeWalker
public DomTreeWalker(DomNode root, int whatToShow, org.w3c.dom.traversal.NodeFilter filter, boolean expandEntityReferences) throws org.w3c.dom.DOMException
Deprecated.Creates an instance.- Parameters:
root- The root node of the TreeWalker. Must not benull.whatToShow- Flag specifying which types of nodes appear in the logical view of the TreeWalker. SeeNodeFilterfor the set of possible Show_ values.filter- TheNodeFilterto be used with this TreeWalker, ornullto indicate no filter.expandEntityReferences- If false, the contents of EntityReference nodes are not present in the logical view.- Throws:
org.w3c.dom.DOMException- on attempt to create a TreeWalker with a root that isnull.
-
-
Method Detail
-
getRoot
public DomNode getRoot()
Deprecated.- Specified by:
getRootin interfaceorg.w3c.dom.traversal.TreeWalker
-
getWhatToShow
public int getWhatToShow()
Deprecated.- Specified by:
getWhatToShowin interfaceorg.w3c.dom.traversal.TreeWalker
-
getFilter
public org.w3c.dom.traversal.NodeFilter getFilter()
Deprecated.- Specified by:
getFilterin interfaceorg.w3c.dom.traversal.TreeWalker
-
getExpandEntityReferences
public boolean getExpandEntityReferences()
Deprecated.- Specified by:
getExpandEntityReferencesin interfaceorg.w3c.dom.traversal.TreeWalker
-
getCurrentNode
public DomNode getCurrentNode()
Deprecated.- Specified by:
getCurrentNodein interfaceorg.w3c.dom.traversal.TreeWalker
-
setCurrentNode
public void setCurrentNode(org.w3c.dom.Node currentNode) throws org.w3c.dom.DOMExceptionDeprecated.- Specified by:
setCurrentNodein interfaceorg.w3c.dom.traversal.TreeWalker- Throws:
org.w3c.dom.DOMException
-
nextNode
public DomNode nextNode()
Deprecated.- Specified by:
nextNodein interfaceorg.w3c.dom.traversal.TreeWalker
-
nextSibling
public DomNode nextSibling()
Deprecated.- Specified by:
nextSiblingin interfaceorg.w3c.dom.traversal.TreeWalker
-
parentNode
public DomNode parentNode()
Deprecated.- Specified by:
parentNodein interfaceorg.w3c.dom.traversal.TreeWalker
-
previousSibling
public DomNode previousSibling()
Deprecated.- Specified by:
previousSiblingin interfaceorg.w3c.dom.traversal.TreeWalker
-
lastChild
public DomNode lastChild()
Deprecated.- Specified by:
lastChildin interfaceorg.w3c.dom.traversal.TreeWalker
-
previousNode
public DomNode previousNode()
Deprecated.- Specified by:
previousNodein interfaceorg.w3c.dom.traversal.TreeWalker
-
firstChild
public DomNode firstChild()
Deprecated.- Specified by:
firstChildin interfaceorg.w3c.dom.traversal.TreeWalker
-
-