Class BaselineVisitor

java.lang.Object
wt.visitor.VisitorAdapter
wt.vc.baseline.BaselineVisitor
All Implemented Interfaces:
Visitor

public class BaselineVisitor extends VisitorAdapter implements Visitor
This class implements the Visitor interface. This class contains a reference to a Baseline and the visit() method is implemented to add a Baselineable item to that Baseline.

This class also contains a reference to a StandardBaselineService. This is necessary becuase the visit() method must use a protected method on this service. Therefore, this class is only intended for use with the StandardBaselineService.

Supported API: true

Extendable: true

  • Constructor Details

  • Method Details

    • getBaseline

      public Baseline getBaseline()
      Gets the object for the association that plays role: theBaseline.

      Supported API: true
      Returns:
      Baseline
    • setBaseline

      public void setBaseline(Baseline a_Baseline) throws WTPropertyVetoException
      Sets the object for the association that plays role: theBaseline.

      Supported API: true
      Parameters:
      a_Baseline -
      Throws:
      WTPropertyVetoException
    • visit

      public boolean visit(Persistable fromNode, Link link, Persistable toNode, int level, boolean previouslyVisited) throws WTException
      Visits a node and adds it to a Baseline. If this node has been previously visited, then false is returned.

      Supported API: true
      Specified by:
      visit in interface Visitor
      Overrides:
      visit in class VisitorAdapter
      Parameters:
      fromNode -
      link -
      toNode -
      level -
      previouslyVisited -
      Returns:
      boolean
      Throws:
      WTException