org.objectweb.carol.jndi.enc.java
Class CompNamingContext.ListOfNames

java.lang.Object
  extended by org.objectweb.carol.jndi.enc.java.CompNamingContext.ListOfNames
All Implemented Interfaces:
java.util.Enumeration, javax.naming.NamingEnumeration
Direct Known Subclasses:
CompNamingContext.ListOfBindings
Enclosing class:
CompNamingContext

protected class CompNamingContext.ListOfNames
extends java.lang.Object
implements javax.naming.NamingEnumeration

Implementation of the NamingEnumeration for list operations Each element is of type NameClassPair.


Method Summary
 void close()
          Closes this enumeration.
protected  java.util.Hashtable getBindings()
           
protected  java.util.Enumeration getNames()
           
 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

hasMore

public boolean hasMore()
                throws javax.naming.NamingException
Determines whether there are any more elements in the enumeration.

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.

next

public java.lang.Object next()
                      throws javax.naming.NamingException
Retrieves the next element in the enumeration.

Specified by:
next in interface javax.naming.NamingEnumeration
Returns:
The possibly null element in the enumeration. null is only valid for enumerations that can return null (e.g. Attribute.getAll() returns an enumeration of attribute values, and an attribute value can be null).
Throws:
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.

close

public void close()
Closes this enumeration.

Specified by:
close in interface javax.naming.NamingEnumeration

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.

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.

getBindings

protected java.util.Hashtable getBindings()
Returns:
the bindings.

getNames

protected java.util.Enumeration getNames()
Returns:
the names.