|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.smardec.jndi.mirror.AbstractNamingEnumeration
AbstractNamingEnumeration
is basic implementation of NamingEnumeration
.
Field Summary | |
protected java.util.Enumeration |
originalEnumeration
Original Enumeration |
Constructor Summary | |
protected |
AbstractNamingEnumeration()
Creates AbstractNamingEnumeration object. |
Method Summary | |
void |
close()
Closes enumeration. |
boolean |
hasMore()
Determines whether there are any more elements in the enumeration. |
boolean |
hasMoreElements()
Tests if this enumeration contains more elements. |
abstract java.lang.Object |
next()
Retrieves the next element in the enumeration. |
java.lang.Object |
nextElement()
Returns the next element of this enumeration if this enumeration object has at least one more element to provide. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Enumeration originalEnumeration
Enumeration
Constructor Detail |
protected AbstractNamingEnumeration()
AbstractNamingEnumeration
object.
Method Detail |
public void close()
close
in interface javax.naming.NamingEnumeration
public boolean hasMore() throws javax.naming.NamingException
hasMore
in interface javax.naming.NamingEnumeration
true
If there is more in the enumeration; false
otherwise.
javax.naming.NamingException
- If a naming exception is encountered while attempting
to determine whether there is another element
in the enumeration. See NamingException
and its subclasses for the possible naming exceptions.public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
true
if and only if this enumeration object
contains at least one more element to provide;
false
otherwise.public abstract java.lang.Object next() throws javax.naming.NamingException
next
in interface javax.naming.NamingEnumeration
null
element in the enumeration.
null
is only valid for enumerations that can return
null
.
javax.naming.NamingException
- If a naming exception is encountered while attempting
to retrieve the next element. See NamingException
and its subclasses for the possible naming exceptions.
java.util.NoSuchElementException
- If attempting to get the next element when none is available.public java.lang.Object nextElement()
nextElement
in interface java.util.Enumeration
java.util.NoSuchElementException
- If no more elements exist.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |