Interface Expander
- All Superinterfaces:
Enumeration
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
Modifier and TypeMethodDescriptionvoidexpand(Persistable obj, String role, Object roleObject) Expands the object given the role and role object.getLink()Returns the Link for the current element in the enumeration.getNode()Returns the Node for the current element in the enumeration.booleanTests if this enumeration contains more elements.Returns the next element of this enumeration.Methods inherited from interface java.util.Enumeration
asIterator
-
Method Details
-
expand
Expands the object given the role and role object. This Enumeration is reset.
Supported API: true- Parameters:
obj-role-roleObject-- Throws:
WTException
-
getLink
Link getLink()Returns the Link for the current element in the enumeration.
Supported API: true- Returns:
- Link
-
getNode
Persistable getNode()Returns the Node for the current element in the enumeration.
Supported API: true- Returns:
- Persistable
-
hasMoreElements
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: true- Specified by:
hasMoreElementsin interfaceEnumeration- Returns:
- boolean
-
nextElement
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: true- Specified by:
nextElementin interfaceEnumeration- Returns:
- Object
-