|
WebObjects 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
EOController.Enumeration
is an interface that defines an enumeration
that iterates over a set of EOController objects. It adds one method to the
java.util.Enumeration
interface: nextController
,
which simply returns the next controller in the enumeration's set.
The nextController
method saves you from having to cast
the returned object to an EOController.
Use the EOController
method controllerEnumeration
to get an EOController.Enumeration
.
You can create three types of enumerations:
EOController.SubcontrollersEnumeration
: Includes all the subcontrollers
of a controller -- the controller's subcontrollers, their subcontrollers, and so on
down the controller hierarchy -- not including the controller itself.
SupercontrollersEnumeration
: Includes all the supercontrollers of a
controller -- the controller's supercontroller, its supercontroller, and so on
up the controller hierarchy -- not including the controller itself.
ControllerAndSubcontrollersEnumeration
: Includes a controller
and all its subcontrollers.
You can further restrict the controllers included in an enumeration by
specifying an interface the controllers must implement in order to be
included. For more information, see the method description for
controllerEnumeration
in the EOController
class.
EOController.controllerEnumeration(int, Class)
Method Summary | |
EOController |
nextController()
Returns the next controller in the enumeration. |
Methods inherited from interface java.util.Enumeration |
hasMoreElements, nextElement |
Method Detail |
public EOController nextController()
nextElement
because it saves you a cast
and because itsimplementation is more efficient.
|
Last updated Fri Feb 21 13:15:00 PST 2003. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |