public class NodeByPositionVisitor extends Object implements XMLNodeVisitor
Constructor and Description |
---|
NodeByPositionVisitor(Node rootNode) |
Modifier and Type | Method and Description |
---|---|
Element |
getContainingElement(int position) |
Node |
getContainingNode(int position) |
void |
reset() |
void |
visit(Attribute attr) |
void |
visit(Document doc) |
void |
visit(Element e) |
void |
visit(Text txt) |
public NodeByPositionVisitor(Node rootNode)
public Element getContainingElement(int position)
public Node getContainingNode(int position)
public void reset()
public void visit(Document doc)
visit
in interface XMLNodeVisitor
public void visit(Element e)
visit
in interface XMLNodeVisitor
public void visit(Text txt)
visit
in interface XMLNodeVisitor
public void visit(Attribute attr)
visit
in interface XMLNodeVisitor