|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Expander interface is used for selecting an implementation of the expand operation. In the Windchill architecture, there are several expand implementations. Each expand() method can also take different arguments. An implementation of the Expander interface essentially allows one of these methods to be plugged-in to the overall navigation.
The objects returned via the expand() method are depenedent on the implmentation.
Therefore, the expand() method does not return a result set directly.
Instead, the Expander interface extends the Enumeration interface to
support walking through the result set. The methods getLink() and getNode()
are provided to return link and node objects for the current element
in the enumeration. The Enumeration is implicitly reset when the expand()
operation is executed.
Supported API: true
Extendable: true
Method Summary | |
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. |
Method Detail |
public void expand(Persistable obj, String role, Object roleObject) throws WTException
obj
- role
- roleObject
-
WTException
public Link getLink()
public Persistable getNode()
public boolean hasMoreElements()
This is only modeled here becuase code-generation does not handle
methods from non-Windchill interfaces.
Supported API: true
hasMoreElements
in interface Enumeration
public Object nextElement()
This is only modeled here becuase code-generation does not handle
methods from non-Windchill interfaces.
Supported API: true
nextElement
in interface Enumeration
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |