FileDocCategorySizeDatePackage
NamingContextEnumeration.javaAPI DocGlassfish v2 API3753Fri May 04 22:33:00 BST 2007org.apache.naming

NamingContextEnumeration

public class NamingContextEnumeration extends Object implements NamingEnumeration
Naming enumeration implementation.
author
Remy Maucherat
version
$Revision: 1.3 $ $Date: 2007/05/05 05:32:59 $

Fields Summary
protected Enumeration
enumeration
Underlying enumeration.
Constructors Summary
public NamingContextEnumeration(Vector entries)

        enumeration = entries.elements();
    
public NamingContextEnumeration(Enumeration enumeration)

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

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

        return enumeration.hasMoreElements();
    
public booleanhasMoreElements()

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

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

        NamingEntry entry = (NamingEntry) enumeration.nextElement();
        return new NameClassPair(entry.name, entry.value.getClass().getName());