wt.visitor
Class BasicExpander

java.lang.Object
  extended bywt.visitor.BasicExpander
All Implemented Interfaces:
Enumeration, Expander

public class BasicExpander
extends Object
implements Expander


Field Summary
private  Enumeration enumLinks
           
private  Enumeration enumNodes
           
private  Link link
           
private  Vector links
           
private  Persistable node
           
private  Vector nodes
           
private  ConfigSpec spec
           
 
Constructor Summary
BasicExpander()
           
BasicExpander(ConfigSpec spec)
           
 
Method Summary
 void expand(Persistable obj, String role, Class linkClass)
           
 void expand(Persistable obj, String role, Class linkClass, Vector refs)
           
 void expand(Persistable obj, String role, Object roleObject)
          Expands the object given the role and role object.
 Link getLink()
          Returns the Link for the current element in the enumeration.
 Persistable getNode()
          Returns the Node for the current element in the enumeration.
 boolean hasMoreElements()
          Tests if this enumeration contains more elements.
 Object nextElement()
          Returns the next element of this enumeration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enumNodes

private Enumeration enumNodes

enumLinks

private Enumeration enumLinks

nodes

private Vector nodes

links

private Vector links

link

private Link link

node

private Persistable node

spec

private ConfigSpec spec
Constructor Detail

BasicExpander

public BasicExpander()

BasicExpander

public BasicExpander(ConfigSpec spec)
Method Detail

expand

public void expand(Persistable obj,
                   String role,
                   Object roleObject)
            throws WTException
Expands the object given the role and role object. This Enumeration is reset.

Supported API: false

Specified by:
expand in interface Expander
Parameters:
obj -
role -
roleObject -
Throws:
WTException

getLink

public Link getLink()
Returns the Link for the current element in the enumeration.

Supported API: false

Specified by:
getLink in interface Expander
Returns:
Link

getNode

public Persistable getNode()
Returns the Node for the current element in the enumeration.

Supported API: false

Specified by:
getNode in interface Expander
Returns:
Persistable

hasMoreElements

public boolean hasMoreElements()
Tests if this enumeration contains more elements.

This is only modeled here becuase code-generation does not handle methods from non-Windchill interfaces.

Supported API: false

Specified by:
hasMoreElements in interface Expander
Returns:
boolean

nextElement

public Object nextElement()
Returns the next element of this enumeration.

This is only modeled here becuase code-generation does not handle methods from non-Windchill interfaces.

Supported API: false

Specified by:
nextElement in interface Expander
Returns:
Object

expand

public void expand(Persistable obj,
                   String role,
                   Class linkClass)
            throws WTException
Throws:
WTException

expand

public void expand(Persistable obj,
                   String role,
                   Class linkClass,
                   Vector refs)
            throws WTException
Throws:
WTException