com.sun.jndi.toolkit.dir
Class ContextEnumerator
java.lang.Object
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;
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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 GmbH, Karlsruhe - Germany www.aicas.com
Copyright 2001-2009 aicas GmbH. All Rights Reserved.