|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is responsible for controlling the overall traversal mechanism.
It includes a single traverse() method that provides multi-level navigation
of associations between Persistable objects. Depth-first traversal is
an example of an implementation. It uses a NodeExpander object to do
the actual expansion of nodes. It also is responsible for calling the
visit methods on the Visitor object as the structure is traversed.
If any visit method returns a boolean false value, then that node will
not be traversed any further.
Supported API: true
Extendable: true
Field Summary | |
static String |
NODE_EXPANDER
Label for the attribute. |
static String |
VISITOR
Label for the attribute. |
Method Summary | |
NodeExpander |
getNodeExpander()
Gets the object for the association that plays role: NODE_EXPANDER. |
Visitor |
getVisitor()
Gets the object for the association that plays role: VISITOR. |
void |
setNodeExpander(NodeExpander a_NodeExpander)
Sets the object for the association that plays role: NODE_EXPANDER. |
void |
setVisitor(Visitor a_Visitor)
Sets the object for the association that plays role: VISITOR. |
void |
traverse(Persistable root)
Traverses the root node. |
Field Detail |
public static final String VISITOR
public static final String NODE_EXPANDER
Method Detail |
public Visitor getVisitor()
public void setVisitor(Visitor a_Visitor) throws WTPropertyVetoException
a_Visitor
-
WTPropertyVetoException
public NodeExpander getNodeExpander()
public void setNodeExpander(NodeExpander a_NodeExpander) throws WTPropertyVetoException
a_NodeExpander
-
WTPropertyVetoException
public void traverse(Persistable root) throws WTException
root
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |