wt.visitor
Class ConfigSpecNodeExpander

java.lang.Object
  extended bywt.visitor.ConfigSpecNodeExpander
All Implemented Interfaces:
NodeExpander
Direct Known Subclasses:
AnnotationConfigSpecNodeExpander, EPMDocConfigSpecNodeExpander, EPMDocReqNodeExpander, ProductInstanceConfigSpecNodeExpander, ReverseConfigSpecNodeExpander, ReverseOccurrencedConfigSpecNodeExpander

public class ConfigSpecNodeExpander
extends Object
implements NodeExpander

The ConfigSpecNodeExpander class uses the Struct Service and a ConfigSpec to implement the expand operation. The node is assumed to be an Iteration and the "uses" link is navigated.

Supported API: true

Extendable: true

See Also:
ConfigSpec, StructService

Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
private  ConfigSpec theConfigSpec
           
 
Constructor Summary
ConfigSpecNodeExpander()
           
ConfigSpecNodeExpander(ConfigSpec a_configSpec)
          Constructs an instance.
 
Method Summary
 void expandNode(Persistable parentNode, Vector links, Vector nodes)
          Expands the node returning all of the links and nodes associated with the parent node.
 ConfigSpec getConfigSpec()
          Gets the object for the association that plays role: theConfigSpec.
 void setConfigSpec(ConfigSpec a_ConfigSpec)
          Sets the object for the association that plays role: theConfigSpec.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

theConfigSpec

private ConfigSpec theConfigSpec
Constructor Detail

ConfigSpecNodeExpander

public ConfigSpecNodeExpander(ConfigSpec a_configSpec)
                       throws WTPropertyVetoException
Constructs an instance.

Supported API: true

Parameters:
a_configSpec -
Throws:
WTPropertyVetoException

ConfigSpecNodeExpander

public ConfigSpecNodeExpander()
Method Detail

getConfigSpec

public ConfigSpec getConfigSpec()
Gets the object for the association that plays role: theConfigSpec.

Supported API: true

Returns:
ConfigSpec

setConfigSpec

public void setConfigSpec(ConfigSpec a_ConfigSpec)
                   throws WTPropertyVetoException
Sets the object for the association that plays role: theConfigSpec.

Supported API: true

Parameters:
a_ConfigSpec -
Throws:
WTPropertyVetoException

expandNode

public void expandNode(Persistable parentNode,
                       Vector links,
                       Vector nodes)
                throws WTException
Expands the node returning all of the links and nodes associated with the parent node.

Supported API: true

Specified by:
expandNode in interface NodeExpander
Parameters:
parentNode -
links -
nodes -
Throws:
WTException