org.netbeans.modules.xml.xdm.visitor
Class PathFromRootVisitor
java.lang.Object
org.netbeans.modules.xml.xdm.visitor.DefaultVisitor
org.netbeans.modules.xml.xdm.visitor.ChildVisitor
org.netbeans.modules.xml.xdm.visitor.PathFromRootVisitor
- All Implemented Interfaces:
- XMLNodeVisitor
public class PathFromRootVisitor
- extends ChildVisitor
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathFromRootVisitor
public PathFromRootVisitor()
findPath
public List<Node> findPath(Document root,
Node target)
findPathToRootElement
public List<Node> findPathToRootElement(Element root,
Node target)
findPath
public List<Node> findPath(Document root,
Node target)
visitNode
protected void visitNode(Node n)
- Overrides:
visitNode in class ChildVisitor