Package wt.visitor

Class CompositeVisitor

java.lang.Object
wt.visitor.CompositeVisitor
All Implemented Interfaces:
Visitor
Direct Known Subclasses:
ObjectGraphCallback

public class CompositeVisitor extends Object implements Visitor
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
  • Method Details

    • addVisitor

      public void addVisitor(Visitor a_visitor)
      Adds a Visitor instance to the contained list of Visitors.

      Supported API: true
      Parameters:
      a_visitor -
    • removeVisitor

      public void removeVisitor(Visitor a_visitor)
      Removes the Visitor instance from the contained list of Visitors.

      Supported API: true
      Parameters:
      a_visitor -