Package wt.visitor
Class CompositeVisitor
java.lang.Object
wt.visitor.CompositeVisitor
- All Implemented Interfaces:
Visitor
- Direct Known Subclasses:
ObjectGraphCallback
This class provides a mechanism for supporting more than one Visitor
object that can be visited during a single traversal. This class contains
a Vector of Visitor objects that can be added to or removed from. It
implements the visit methods by calling the corresponding visit methods
in each of the contained Visitor objects and returning the logical OR
of their return values.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddVisitor(Visitor a_visitor) Adds a Visitor instance to the contained list of Visitors.voidremoveVisitor(Visitor a_visitor) Removes the Visitor instance from the contained list of Visitors.
-
Method Details
-
addVisitor
Adds a Visitor instance to the contained list of Visitors.
Supported API: true- Parameters:
a_visitor-
-
removeVisitor
Removes the Visitor instance from the contained list of Visitors.
Supported API: true- Parameters:
a_visitor-
-