WebObjects 5.4.2

com.webobjects.eoapplication
Interface EOController.Enumeration

All Superinterfaces:
Enumeration
Enclosing class:
EOController

public static interface EOController.Enumeration
extends Enumeration

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.

See Also:
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

nextController

EOController nextController()
Returns the next controller in the enumeration. Use this method instead of nextElement because it saves you a cast and because itsimplementation is more efficient.

Returns:
the next controller in the enumeration

Last updated June 2008

Copyright © 2000-2008 Apple Inc.