|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface DomWalker.Visitor
Implemented by classes that do actual manipulation of the DOM
while DomWalker.ContentVisitor walks it. Visitor
instances are called for each Node in the DOM in the order
they are registered with the DomVisitor.ContentVisitor
| Nested Class Summary | |
|---|---|
static class |
DomWalker.Visitor.VisitStatus
Returned by the visit(Gadget, Node) method, signaling:
BYPASS = Visitor doesn't care about the node. |
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
DomWalker.Visitor.VisitStatus visit(Gadget gadget,
Node node)
throws RewritingException
gadget - Context for the request.node - Node being visited.
VisitStatus
RewritingException
boolean 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.
RewritingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||