| |
|
| java.lang.Object org.ow2.easybeans.naming.context.BindingsImpl
BindingsImpl | public class BindingsImpl implements NamingEnumeration<Binding>(Code) | | Implementation of the NamingEnumeration for Context.listBindings operations.
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 Binding | next() It returns a Binding instead of a NameClassPair * Retrieves the next
element in the enumeration.
The possibly null element in the enumeration. | public Binding | nextElement() Returns the next element of this enumeration if this enumeration object
has at least one more element to provide. |
BindingsImpl | public BindingsImpl(Hashtable bindings)(Code) | | Constructor.
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 Binding next() throws NamingException(Code) | | It returns a Binding instead of a NameClassPair * 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 Binding 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. |
|
|
|