Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress Servlet Development Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

6.2 Using rwsf::Enumeration

A rwsf::Enumeration object provides a simple, safe interface to a collection of objects. HydraExpress returns an instance of rwsf::Enumeration to represent a list of items. For simplicity, an enumeration provides only two functions: the hasMoreElements() function which returns true if the enumeration contains another element; and the nextElement() function which returns the next object in the enumeration. An enumeration is designed for code such as the loop below:

The nextElement() function throws rwsf::OutOfBoundsError if the enumeration has no more elements.



Previous fileTop of DocumentContentsIndex pageNext file

©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.