FileDocCategorySizeDatePackage
NamingContextEnumeration.javaAPI DocApache Tomcat 6.0.142469Fri Jul 20 04:20:30 BST 2007org.apache.naming

NamingContextEnumeration

public class NamingContextEnumeration extends Object implements NamingEnumeration
Naming enumeration implementation.
author
Remy Maucherat
version
$Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $

Fields Summary
protected Iterator
iterator
Underlying enumeration.
Constructors Summary
public NamingContextEnumeration(Iterator entries)

    	iterator = entries;
    
Methods Summary
public voidclose()
Closes this enumeration.

    
public booleanhasMore()
Determines whether there are any more elements in the enumeration.

        return iterator.hasNext();
    
public booleanhasMoreElements()

        return iterator.hasNext();
    
public java.lang.Objectnext()
Retrieves the next element in the enumeration.

        return nextElement();
    
public java.lang.ObjectnextElement()

        NamingEntry entry = (NamingEntry) iterator.next();
        return new NameClassPair(entry.name, entry.value.getClass().getName());