Package org.apache.naming
Class NamingContextEnumeration
- java.lang.Object
-
- org.apache.naming.NamingContextEnumeration
-
- All Implemented Interfaces:
Enumeration<NameClassPair>,NamingEnumeration<NameClassPair>
public class NamingContextEnumeration extends Object implements NamingEnumeration<NameClassPair>
Naming enumeration implementation.- Author:
- Remy Maucherat
-
-
Field Summary
Fields Modifier and Type Field Description protected Iterator<NamingEntry>iteratorUnderlying enumeration.
-
Constructor Summary
Constructors Constructor Description NamingContextEnumeration(Iterator<NamingEntry> entries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes this enumeration.booleanhasMore()Determines whether there are any more elements in the enumeration.booleanhasMoreElements()NameClassPairnext()Retrieves the next element in the enumeration.NameClassPairnextElement()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Enumeration
asIterator
-
-
-
-
Field Detail
-
iterator
protected final Iterator<NamingEntry> iterator
Underlying enumeration.
-
-
Constructor Detail
-
NamingContextEnumeration
public NamingContextEnumeration(Iterator<NamingEntry> entries)
-
-
Method Detail
-
next
public NameClassPair next() throws NamingException
Retrieves the next element in the enumeration.- Specified by:
nextin interfaceNamingEnumeration<NameClassPair>- Throws:
NamingException
-
hasMore
public boolean hasMore() throws NamingExceptionDetermines whether there are any more elements in the enumeration.- Specified by:
hasMorein interfaceNamingEnumeration<NameClassPair>- Throws:
NamingException
-
close
public void close() throws NamingExceptionCloses this enumeration.- Specified by:
closein interfaceNamingEnumeration<NameClassPair>- Throws:
NamingException
-
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElementsin interfaceEnumeration<NameClassPair>
-
nextElement
public NameClassPair nextElement()
- Specified by:
nextElementin interfaceEnumeration<NameClassPair>
-
-