|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.osjava.sj.jndi.ContextBindings
public class ContextBindings
This class represents a NamingEnumeration of the bindings of a Context. Originally authored by Henri Yandell and modified to make more flexable with other Context implementations.
| Constructor Summary | |
|---|---|
ContextBindings(Map table)
Creates a ContextBindings object based upon an a Map of names and the objects the names are bound to. |
|
| Method Summary | |
|---|---|
void |
close()
Close the ContextBindings instance, rendering it inoperable. |
boolean |
hasMore()
Returns true if there are more elements available, otherwise
false. |
boolean |
hasMoreElements()
Returns true if there are more elements available, otherwise
false. |
Object |
next()
Returns a Binding created from the next available name. |
Object |
nextElement()
Returns a Binding created from the next available name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContextBindings(Map table)
table is modified after instantiation
of ContextBindings, behavior is undefined and should be considered invalid.
table - The table upon which the ContextBindings is based.| Method Detail |
|---|
public boolean hasMoreElements()
true if there are more elements available, otherwise
false.
hasMoreElements in interface Enumerationtrue if there are more elements available, otherwise
false
public boolean hasMore()
throws NamingException
true if there are more elements available, otherwise
false.
hasMore in interface NamingEnumerationtrue if there are more elements available, otherwise
false
NamingException - if a naming exception is encounteredpublic Object nextElement()
Binding created from the next available name.
nextElement in interface Enumeration
public Object next()
throws NamingException
Binding created from the next available name.
next in interface NamingEnumerationNamingException - if a naming exception occurspublic void close()
close in interface NamingEnumeration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||