aicas logo Jamaica 3.4 release 8

com.sun.jndi.toolkit.dir
Class ContextEnumerator

java.lang.Object
  extended by com.sun.jndi.toolkit.dir.ContextEnumerator
All Implemented Interfaces:
Enumeration, NamingEnumeration
Direct Known Subclasses:
HierMemDirCtx.HierContextEnumerator

public class ContextEnumerator
extends Object
implements NamingEnumeration

A class for recursively enumerating the contents of a Context;


Constructor Summary
  ContextEnumerator(Context context)
           
  ContextEnumerator(Context context, int scope)
           
protected ContextEnumerator(Context context, int scope, String contextName, boolean returnSelf)
           
 
Method Summary
 void close()
           
protected  NamingEnumeration getImmediateChildren(Context ctx)
           
 boolean hasMore()
           
 boolean hasMoreElements()
          Tests whether there are elements remaining in the enumeration.
protected  ContextEnumerator newEnumerator(Context ctx, int scope, String contextName, boolean returnSelf)
           
 Object next()
           
 Object nextElement()
          Obtain the next element in the enumeration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextEnumerator

public ContextEnumerator(Context context)
                  throws NamingException
Throws:
NamingException

ContextEnumerator

public ContextEnumerator(Context context,
                         int scope)
                  throws NamingException
Throws:
NamingException

ContextEnumerator

protected ContextEnumerator(Context context,
                            int scope,
                            String contextName,
                            boolean returnSelf)
                     throws NamingException
Throws:
NamingException
Method Detail

getImmediateChildren

protected NamingEnumeration getImmediateChildren(Context ctx)
                                          throws NamingException
Throws:
NamingException

newEnumerator

protected ContextEnumerator newEnumerator(Context ctx,
                                          int scope,
                                          String contextName,
                                          boolean returnSelf)
                                   throws NamingException
Throws:
NamingException

hasMore

public boolean hasMore()
                throws NamingException
Specified by:
hasMore in interface NamingEnumeration
Throws:
NamingException

hasMoreElements

public boolean hasMoreElements()
Description copied from interface: Enumeration
Tests whether there are elements remaining in the enumeration.

Specified by:
hasMoreElements in interface Enumeration
Returns:
true if there is at least one more element in the enumeration, that is, if the next call to nextElement will not throw a NoSuchElementException.

nextElement

public Object nextElement()
Description copied from interface: Enumeration
Obtain the next element in the enumeration.

Specified by:
nextElement in interface Enumeration
Returns:
the next element in the enumeration

next

public Object next()
            throws NamingException
Specified by:
next in interface NamingEnumeration
Throws:
NamingException

close

public void close()
           throws NamingException
Specified by:
close in interface NamingEnumeration
Throws:
NamingException

aicas logo Jamaica 3.4 release 8

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2009 aicas GmbH. All Rights Reserved.