|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.visitor.BasicWalker
This abstract class is an implementation which provides some basic functionality for sub-class use.
Descendant classes are responsible for maintaining a list of nodes that
have been visited. This is used to pass a flag to the Visitor's visit
operation. As a convenience, registerVisitedNode() and clearVisitedNodes()
methods are implemented in this base class.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private NodeExpander |
nodeExpander
|
private Hashtable |
nodes
|
private boolean |
recursionDetectionEnabled
The notion of recursion detection is established here. |
private static String |
RESOURCE
|
private Visitor |
visitor
|
Fields inherited from interface wt.visitor.Walker |
NODE_EXPANDER, VISITOR |
Constructor Summary | |
BasicWalker()
|
Method Summary | |
protected void |
clearVisitedNodes()
This method clears the internal registration of nodes that were visited. |
NodeExpander |
getNodeExpander()
Gets the object for the association that plays role: nodeExpander. |
Visitor |
getVisitor()
Gets the object for the association that plays role: visitor. |
boolean |
isRecursionDetectionEnabled()
|
private void |
nodeExpanderValidate(NodeExpander a_NodeExpander)
|
protected boolean |
registerVisitedNode(ObjectIdentifier a_object)
This method registers the node as visited. |
void |
setNodeExpander(NodeExpander a_NodeExpander)
Sets the object for the association that plays role: nodeExpander. |
void |
setRecursionDetectionEnabled(boolean enable)
|
void |
setVisitor(Visitor a_Visitor)
Sets the object for the association that plays role: visitor. |
private void |
visitorValidate(Visitor a_Visitor)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface wt.visitor.Walker |
traverse |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private Visitor visitor
private NodeExpander nodeExpander
private boolean recursionDetectionEnabled
private Hashtable nodes
Constructor Detail |
public BasicWalker()
Method Detail |
protected boolean registerVisitedNode(ObjectIdentifier a_object)
a_object
-
protected void clearVisitedNodes()
public Visitor getVisitor()
getVisitor
in interface Walker
public void setVisitor(Visitor a_Visitor) throws WTPropertyVetoException
setVisitor
in interface Walker
a_Visitor
-
WTPropertyVetoException
private void visitorValidate(Visitor a_Visitor) throws WTPropertyVetoException
a_Visitor
-
WTPropertyVetoException
public NodeExpander getNodeExpander()
getNodeExpander
in interface Walker
public void setNodeExpander(NodeExpander a_NodeExpander) throws WTPropertyVetoException
setNodeExpander
in interface Walker
a_NodeExpander
-
WTPropertyVetoException
private void nodeExpanderValidate(NodeExpander a_NodeExpander) throws WTPropertyVetoException
a_NodeExpander
-
WTPropertyVetoException
public boolean isRecursionDetectionEnabled()
public void setRecursionDetectionEnabled(boolean enable)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |