public static interface DomWalker.Visitor
DomWalker.ContentVisitor walks it. Visitor
instances are called for each Node in the DOM in the order
they are registered with the DomVisitor.ContentVisitor| Modifier and Type | Interface and Description |
|---|---|
static class |
DomWalker.Visitor.VisitStatus
Returned by the
visit(Gadget, Node) method, signaling:
BYPASS = Visitor doesn't care about the node. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
revisit(Gadget gadget,
List<Node> nodes)
Revisit a node in the DOM that was marked by the
visit(Gadget, Node) as reserved during DOM traversal. |
DomWalker.Visitor.VisitStatus |
visit(Gadget gadget,
Node node)
Visit a particular Node in the DOM.
|
DomWalker.Visitor.VisitStatus visit(Gadget gadget, Node node) throws RewritingException
gadget - Context for the request.node - Node being visited.VisitStatusRewritingExceptionboolean revisit(Gadget gadget, List<Node> nodes) throws RewritingException
visit(Gadget, Node) as reserved during DOM traversal.gadget - Context for the request.nodes - Nodes being revisited, previously marked as reserved.RewritingExceptionCopyright © 2007-2012. All Rights Reserved.