All LDAP Classes
Internal LDAP Classes

com.novell.ldap.client
Class EnumeratedIterator

java.lang.Object
  extended by com.novell.ldap.client.EnumeratedIterator
All Implemented Interfaces:
java.util.Enumeration

public class EnumeratedIterator
extends java.lang.Object
implements java.util.Enumeration

wrappers a class of type Iterator and makes it act as an Enumerator. This is used when the API requires enumerations be used but we may be using JDK1.2 collections, which return iterators instead of enumerators. Used by LDAPSchema and LDAPSchemaElement

See Also:
LDAPSchema.getAttributeSchemas(), LDAPSchemaElement.getQualifierNames()

Field Summary
private  java.util.Iterator i
           
 
Constructor Summary
EnumeratedIterator(java.util.Iterator iterator)
           
 
Method Summary
 boolean hasMoreElements()
          Enumeration method that maps to Iterator.hasNext()
 java.lang.Object nextElement()
          Enumeration method that maps to Iterator.next()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

i

private java.util.Iterator i
Constructor Detail

EnumeratedIterator

public EnumeratedIterator(java.util.Iterator iterator)
Method Detail

hasMoreElements

public final boolean hasMoreElements()
Enumeration method that maps to Iterator.hasNext()

Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public final java.lang.Object nextElement()
Enumeration method that maps to Iterator.next()

Specified by:
nextElement in interface java.util.Enumeration

All LDAP Classes
Internal LDAP Classes

Copyright ? 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000