base/common/src/main/com/thesett/common/jndi/SimpleContext.java
public NamingEnumeration listBindings(String name) throws NamingException
    {
        if ("".equals(name))
        {
            // listing this context
            return new FlatBindings(bindings.keys());
        }

        // Perhaps `name' names a context
        Object target = lookup(name);

        if (target instanceof Context)
        {
            return ((Context) target).listBindings("");
        }

        throw new NotContextException(name + " cannot be listed");
    }
public NamingEnumeration listBindings(String name) throws NamingException
    {
        if ("".equals(name))
        {
            // listing this context
            return new FlatBindings(bindings.keys());
        }

        // Perhaps `name' names a context
        Object target = lookup(name);

        if (target instanceof Context)
        {
            return ((Context) target).listBindings("");
        }

        throw new NotContextException(name + " cannot be listed");
    }
public NamingEnumeration listBindings ( String name ) throws NamingException { if ( "" . equals ( name ) ) { // listing this context return new FlatBindings ( bindings . keys ( ) ) ; } // Perhaps `name' names a context Object target = lookup ( name ) ; if ( target instanceof Context ) { return ( ( Context ) target ) . listBindings ( "" ) ; } throw new NotContextException ( name + " cannot be listed" ) ; }
Enumerates the names bound in the named context, along with the objects bound to them. The contents of any
subcontexts are not included.

<p/>If a binding is added to or removed from this context, its effect on an enumeration previously returned is
undefined.

@param  name The name of the context to list.

@return An enumeration of the bindings in this context. Each element of the enumeration is of type Binding.

@throws NamingException If the context is not known.
Enumerates the names bound in the named context along with the objects bound to them . The contents of any subcontexts are not included .