The WPEnumerator class defines the following API methods to access enumerated object names:
boolean hasMoreNames()
String nextName()