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

NamingContextBindingsEnumeration

public class NamingContextBindingsEnumeration 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 NamingContextBindingsEnumeration(Vector entries)

        enumeration = entries.elements();
    
public NamingContextBindingsEnumeration(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 Binding(entry.name, entry.value.getClass().getName(), 
                           entry.value, true);