|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.visitor.VisitorAdapter
public class VisitorAdapter
This class provides a default "no-op" implementation of a Visitor. The intent for this class is to provide a convenience to programmers for implementing a Visitor. If only a single visit method needs to be implemented, a class should extend the VisitorAdapter and only override the single visit method.
Each of the visit methods in this class is implemented and simply returns true.
| Method Summary | |
|---|---|
boolean |
visit(Persistable fromNode,
Link link,
Persistable toNode,
int level,
boolean previouslyVisited)
Visit a node. |
boolean |
visitLevel(Persistable fromNode,
Vector links,
Vector toNodes,
int level)
Vist nodes at this level. |
boolean |
visitLevel(Vector fromNodes,
Vector links,
Vector toNodes,
int level)
Vist nodes at this level. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean visit(Persistable fromNode,
Link link,
Persistable toNode,
int level,
boolean previouslyVisited)
throws WTException
visit in interface VisitorfromNode - link - toNode - level - previouslyVisited -
WTException
public boolean visitLevel(Persistable fromNode,
Vector links,
Vector toNodes,
int level)
throws WTException
visitLevel in interface VisitorfromNode - links - toNodes - level -
WTException
public boolean visitLevel(Vector fromNodes,
Vector links,
Vector toNodes,
int level)
throws WTException
visitLevel in interface VisitorfromNodes - links - toNodes - level -
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||