|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.naming.context.BindingsImpl
public class BindingsImpl
Implementation of the NamingEnumeration for Context.listBindings operations.
Field Summary | |
---|---|
private java.util.Hashtable |
bindings
List of bindings. |
private java.util.Enumeration |
names
list of names. |
Constructor Summary | |
---|---|
BindingsImpl(java.util.Hashtable bindings)
Constructor. |
Method Summary | |
---|---|
void |
close()
Closes this enumeration. |
boolean |
hasMore()
Determines whether there are any more elements in the enumeration. |
boolean |
hasMoreElements()
Tests if this enumeration contains more elements. |
javax.naming.Binding |
next()
It returns a Binding instead of a NameClassPair * Retrieves the next element in the enumeration. |
javax.naming.Binding |
nextElement()
Returns the next element of this enumeration if this enumeration object has at least one more element to provide. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Enumeration names
private java.util.Hashtable bindings
Constructor Detail |
---|
public BindingsImpl(java.util.Hashtable bindings)
bindings
- list of bindingsMethod Detail |
---|
public javax.naming.Binding next() throws javax.naming.NamingException
next
in interface javax.naming.NamingEnumeration<javax.naming.Binding>
javax.naming.NamingException
- If a naming exception is encountered while
attempting to retrieve the next element. See NamingException and
its subclasses for the possible naming exceptions.public javax.naming.Binding nextElement()
nextElement
in interface java.util.Enumeration<javax.naming.Binding>
public boolean hasMore() throws javax.naming.NamingException
hasMore
in interface javax.naming.NamingEnumeration<javax.naming.Binding>
javax.naming.NamingException
- If a naming exception is encountered while
attempting to determine whether there is another element in the
enumeration.public void close()
close
in interface javax.naming.NamingEnumeration<javax.naming.Binding>
public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration<javax.naming.Binding>
true
if and only if this enumeration object
contains at least one more element to provide; false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |