org.objectweb.carol.jndi.spi
Class AbsContext.WrappedEnumeration

java.lang.Object
  extended byorg.objectweb.carol.jndi.spi.AbsContext.WrappedEnumeration
All Implemented Interfaces:
java.util.Enumeration, javax.naming.NamingEnumeration
Enclosing class:
AbsContext

protected class AbsContext.WrappedEnumeration
extends java.lang.Object
implements javax.naming.NamingEnumeration

This class is used to return a naming enumeration by decoding encoded names


Method Summary
 void close()
          Closes this enumeration.
 boolean hasMore()
          Determines whether there are any more elements in the enumeration.
 boolean hasMoreElements()
          Tests if this enumeration contains more elements.
 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
 

Method Detail

hasMoreElements

public boolean hasMoreElements()
Tests if this enumeration contains more elements.

Specified by:
hasMoreElements in interface java.util.Enumeration
Returns:
true if and only if this enumeration object contains at least one more element to provide; false otherwise.

hasMore

public boolean hasMore()
                throws javax.naming.NamingException
Determines whether there are any more elements in the enumeration. This method allows naming exceptions encountered while determining whether there are more elements to be caught and handled by the application.

Specified by:
hasMore in interface javax.naming.NamingEnumeration
Returns:
true if there is more in the enumeration ; false otherwise.
Throws:
javax.naming.NamingException - If a naming exception is encountered while attempting to determine whether there is another element in the enumeration.

nextElement

public java.lang.Object nextElement()
Returns the next element of this enumeration if this enumeration object has at least one more element to provide.

Specified by:
nextElement in interface java.util.Enumeration
Returns:
the next element of this enumeration.

next

public java.lang.Object next()
Retrieves the next element in the enumeration.

Specified by:
next in interface javax.naming.NamingEnumeration
Returns:
the next element in the enumeration.
See Also:
Enumeration.nextElement()

close

public void close()
           throws javax.naming.NamingException
Closes this enumeration.

Specified by:
close in interface javax.naming.NamingEnumeration
Throws:
javax.naming.NamingException - If a naming exception is encountered while closing the enumeration.