|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.visitor.CompositeVisitor
wt.graph.ObjectGraphCallback
public class ObjectGraphCallback
Performs common pre/post-processing activities on each visited node as a callback. This could also be a customization point where application callbacks (visitors) are added to help satisfy a particular consumer's specific requirements.
For instance, if an application had additional requirements to censor information in the object graph, based on say specific access control permissions, then the application could add their custom visitor to the object graph's set visitor. Then when the object graph was next traversed, not only would all of the previously added visitors be employed, but additionally the newly added application visitor as well.
| 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 wt.visitor.CompositeVisitor |
|---|
addVisitor, removeVisitor |
| 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 Visitorvisit in class CompositeVisitorfromNode - link - toNode - level - previouslyVisited -
WTException
public boolean visitLevel(Persistable fromNode,
Vector links,
Vector toNodes,
int level)
throws WTException
visitLevel in interface VisitorvisitLevel in class CompositeVisitorfromNode - links - toNodes - level -
WTException
public boolean visitLevel(Vector fromNodes,
Vector links,
Vector toNodes,
int level)
throws WTException
visitLevel in interface VisitorvisitLevel in class CompositeVisitorfromNodes - links - toNodes - level -
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||