Package wt.vc.baseline
Class BaselineVisitor
java.lang.Object
wt.visitor.VisitorAdapter
wt.vc.baseline.BaselineVisitor
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionBaselineVisitor(Baseline a_baseline, StandardBaselineService a_baselineService) Constructs an instance using the specified Baseline. -
Method Summary
Modifier and TypeMethodDescriptionGets the object for the association that plays role: theBaseline.voidsetBaseline(Baseline a_Baseline) Sets the object for the association that plays role: theBaseline.booleanvisit(Persistable fromNode, Link link, Persistable toNode, int level, boolean previouslyVisited) Visits a node and adds it to a Baseline.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface wt.visitor.Visitor
visitLevel, visitLevel
-
Constructor Details
-
BaselineVisitor
public BaselineVisitor(Baseline a_baseline, StandardBaselineService a_baselineService) throws WTPropertyVetoException Constructs an instance using the specified Baseline.
Supported API: true- Parameters:
a_baseline-a_baselineService-- Throws:
WTPropertyVetoException
-
-
Method Details
-
getBaseline
Gets the object for the association that plays role: theBaseline.
Supported API: true- Returns:
- Baseline
-
setBaseline
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:
visitin interfaceVisitor- Overrides:
visitin classVisitorAdapter- Parameters:
fromNode-link-toNode-level-previouslyVisited-- Returns:
- boolean
- Throws:
WTException
-