| |
|
| java.lang.Object org.ow2.easybeans.naming.context.NamingEnumerationImpl
NamingEnumerationImpl | public class NamingEnumerationImpl implements NamingEnumeration<NameClassPair>(Code) | | Implementation of the NamingEnumeration for list operations Each element is
of type NameClassPair.
author: Florent Benoit |
Method Summary | |
public void | close() Closes this enumeration. | public boolean | hasMore() Determines whether there are any more elements in the enumeration. | public boolean | hasMoreElements() Tests if this enumeration contains more elements. | public NameClassPair | next() Retrieves the next element in the enumeration.
The possibly null element in the enumeration. | public NameClassPair | nextElement() Returns the next element of this enumeration if this enumeration object
has at least one more element to provide. |
NamingEnumerationImpl | NamingEnumerationImpl(Hashtable bindings)(Code) | | Constructor. Called by list()
Parameters: bindings - list of bindings |
close | public void close()(Code) | | Closes this enumeration.
|
hasMore | public boolean hasMore() throws NamingException(Code) | | Determines whether there are any more elements in the enumeration.
true if there is more in the enumeration ; false otherwise. throws: NamingException - If a naming exception is encountered whileattempting to determine whether there is another element in theenumeration. |
hasMoreElements | public boolean hasMoreElements()(Code) | | Tests if this enumeration contains more elements.
true if and only if this enumeration objectcontains at least one more element to provide; false otherwise. |
next | public NameClassPair next() throws NamingException(Code) | | Retrieves the next element in the enumeration.
The possibly null element in the enumeration. null is only validfor enumerations that can return null (e.g. Attribute.getAll()returns an enumeration of attribute values, and an attributevalue can be null). throws: NamingException - If a naming exception is encountered whileattempting to retrieve the next element. See NamingException andits subclasses for the possible naming exceptions. |
nextElement | public NameClassPair nextElement()(Code) | | Returns the next element of this enumeration if this enumeration object
has at least one more element to provide.
the next element of this enumeration. |
|
|
|