Package org.apache.naming
Class NamingContextEnumeration
- java.lang.Object
-
- org.apache.naming.NamingContextEnumeration
-
- All Implemented Interfaces:
java.util.Enumeration<javax.naming.NameClassPair>
,javax.naming.NamingEnumeration<javax.naming.NameClassPair>
public class NamingContextEnumeration extends java.lang.Object implements javax.naming.NamingEnumeration<javax.naming.NameClassPair>
Naming enumeration implementation.- Author:
- Remy Maucherat
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Iterator<NamingEntry>
iterator
Underlying enumeration.
-
Constructor Summary
Constructors Constructor Description NamingContextEnumeration(java.util.Iterator<NamingEntry> entries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes this enumeration.boolean
hasMore()
Determines whether there are any more elements in the enumeration.boolean
hasMoreElements()
javax.naming.NameClassPair
next()
Retrieves the next element in the enumeration.javax.naming.NameClassPair
nextElement()
-
-
-
Field Detail
-
iterator
protected final java.util.Iterator<NamingEntry> iterator
Underlying enumeration.
-
-
Constructor Detail
-
NamingContextEnumeration
public NamingContextEnumeration(java.util.Iterator<NamingEntry> entries)
-
-
Method Detail
-
next
public javax.naming.NameClassPair next() throws javax.naming.NamingException
Retrieves the next element in the enumeration.- Specified by:
next
in interfacejavax.naming.NamingEnumeration<javax.naming.NameClassPair>
- Throws:
javax.naming.NamingException
-
hasMore
public boolean hasMore() throws javax.naming.NamingException
Determines whether there are any more elements in the enumeration.- Specified by:
hasMore
in interfacejavax.naming.NamingEnumeration<javax.naming.NameClassPair>
- Throws:
javax.naming.NamingException
-
close
public void close() throws javax.naming.NamingException
Closes this enumeration.- Specified by:
close
in interfacejavax.naming.NamingEnumeration<javax.naming.NameClassPair>
- Throws:
javax.naming.NamingException
-
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interfacejava.util.Enumeration<javax.naming.NameClassPair>
-
nextElement
public javax.naming.NameClassPair nextElement()
- Specified by:
nextElement
in interfacejava.util.Enumeration<javax.naming.NameClassPair>
-
-