Package wt.visitor

Defines the navigator/visitor design pattern for using a Walker (at one time it used a Navigator, instead of a Walker) and a NodeExpander, which together traverse a structure of objects, and a Visitor, which does something when we navigate to the object; this separates the algorithm for navigating from the algorithm for visiting, allowing more reuse; factories support selection of Walkers and Visitors.

See:
          Description

Interface Summary
Expander The Expander interface is used for selecting an implementation of the expand operation.
NodeExpander This interface defines how nodes will be expanded (i.e.
NodeExpandInfo This interface describes the applicable links and expand method for a given node during traversal.
Visitor This interface defines generic "callback" methods which are called by the Navigator as a structure is traversed.
Walker This interface is responsible for controlling the overall traversal mechanism.
 

Class Summary
BasicExpander  
BasicNodeExpander This class implements NodeExpander by using an Expander and NodeLinkInfo delegates.
BasicNodeExpandInfo This interface describes the applicable links and expand method for a given node during traversal.
BasicWalker This abstract class is an implementation which provides some basic functionality for sub-class use.
BFSNavigator Deprecated. Use wt.visitor.BFSWalker
BFSWalker This class extends BasicWalker to implement a breadth-first traversal of a structure.
CompositeVisitor This class provides a mechanism for supporting more than one Visitor object that can be visited during a single traversal.
ConfigSpecNodeExpander The ConfigSpecNodeExpander class uses the Struct Service and a ConfigSpec to implement the expand operation.
DFSNavigator Deprecated. Use wt.visitor.DFSWalker
DFSWalker This class extends BasicWalker to implement a depth-first traversal of a structure.
EPMDocConfigSpecNodeExpander The EPMDocConfigSpecNodeExpander class uses the EPMStruct Service and a ConfigSpec to implement the expand operation.
EPMDocReqNodeExpander The EPMDocReqNodeExpander class uses the EPMStruct Service and a ConfigSpec to implement the expand operation.
Navigator Deprecated. Use wt.visitor.Walker
NodeExpanderFactory

Supported API: true

Extendable: false
OccurrencedPartConfigSpecNodeExpander

Supported API: true

Extendable: false
PartConfigSpecNodeExpander The ConfigSpecNodeExpander class uses the PartService and a WTPartConfigSpec to implement the expand operation.
PathNode A PathNode represents a node in a path established by a Walker or a simalar graph generation mechanism.
ProductInstanceConfigSpecNodeExpander

Supported API: true

Extendable: false
ProductStructureNavigatorFactory This class provides static methods for creating product structure navigators.
ReverseConfigSpecNodeExpander The ConfigSpecNodeExpander class uses the Struct Service and a ConfigSpec to implement the expand operation.
ReverseOccurrencedConfigSpecNodeExpander This ConfigSpecNodeExpander class uses the Struct Service and a ConfigSpec to implement the expand operation.
RoleExpandInfo This class encapsulates the data necessary for navigating from a node to other nodes via association links.
TextOutputVisitor The TextOutputVisitor can be used as a base class for Visitor implementations that are primarily used to produce text output.
VisitorAdapter This class provides a default "no-op" implementation of a Visitor.
WalkerFactory

Supported API: true

Extendable: false
 

Package wt.visitor Description

Defines the navigator/visitor design pattern for using a Walker (at one time it used a Navigator, instead of a Walker) and a NodeExpander, which together traverse a structure of objects, and a Visitor, which does something when we navigate to the object; this separates the algorithm for navigating from the algorithm for visiting, allowing more reuse; factories support selection of Walkers and Visitors.