wt.visitor
Class PartConfigSpecNodeExpander

java.lang.Object
  extended bywt.visitor.PartConfigSpecNodeExpander
All Implemented Interfaces:
NodeExpander, Serializable

public class PartConfigSpecNodeExpander
extends Object
implements NodeExpander, Serializable

The ConfigSpecNodeExpander class uses the PartService and a WTPartConfigSpec to implement the expand operation. The node is assumed to be a Part and the "uses" link is navigated.

Supported API: false

Extendable: false

See Also:
WTPartConfigSpec, wt.part.PartService, Serialized Form

Field Summary
private  int cacheCount
           
private static String CLASSNAME
           
private static QueryResult emptyResult
           
private  Cache leafCache
           
private  int queryCount
           
private  ReferenceFactory referenceFactory
           
private static String RESOURCE
           
private  WTPartConfigSpec theWTPartConfigSpec
           
 
Constructor Summary
PartConfigSpecNodeExpander()
           
PartConfigSpecNodeExpander(WTPartConfigSpec a_partConfigSpec)
          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.
private  String getReferenceString(WTObject obj)
           
private  QueryResult getUsesWTParts(WTPart part)
           
 WTPartConfigSpec getWTPartConfigSpec()
          Gets the object for the association that plays role: theWTPartConfigSpec.
 void setWTPartConfigSpec(WTPartConfigSpec a_WTPartConfigSpec)
          Sets the object for the association that plays role: theWTPartConfigSpec.
 
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

theWTPartConfigSpec

private WTPartConfigSpec theWTPartConfigSpec

leafCache

private Cache leafCache

emptyResult

private static final QueryResult emptyResult

referenceFactory

private ReferenceFactory referenceFactory

queryCount

private int queryCount

cacheCount

private int cacheCount
Constructor Detail

PartConfigSpecNodeExpander

public PartConfigSpecNodeExpander(WTPartConfigSpec a_partConfigSpec)
                           throws WTPropertyVetoException
Constructs an instance.

Supported API: false

Parameters:
a_partConfigSpec -
Throws:
WTPropertyVetoException

PartConfigSpecNodeExpander

public PartConfigSpecNodeExpander()
Method Detail

getWTPartConfigSpec

public WTPartConfigSpec getWTPartConfigSpec()
Gets the object for the association that plays role: theWTPartConfigSpec.

Supported API: false

Returns:
WTPartConfigSpec

setWTPartConfigSpec

public void setWTPartConfigSpec(WTPartConfigSpec a_WTPartConfigSpec)
                         throws WTPropertyVetoException
Sets the object for the association that plays role: theWTPartConfigSpec.

Supported API: false

Parameters:
a_WTPartConfigSpec -
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: false

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

getUsesWTParts

private QueryResult getUsesWTParts(WTPart part)
                            throws WTException
Throws:
WTException

getReferenceString

private String getReferenceString(WTObject obj)
                           throws WTException
Throws:
WTException