|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.kernel.util.DataContextIterator
This class is useful for iterating through all data contexts that are installed at the root level of the Expresso Runtime hierarchy. Use it like a normal iterator except that it is explictly constructed.
Example Usage:
for (DataContextIterator it = new DataContextIterator();
it.hasNext();) {
DataContext oneContext = (DataContext)it.next();
System.out.println("Context Name: " + oneContext.getMetaData().getName());
}
| Constructor Summary | |
DataContextIterator()
Default constructor. |
|
DataContextIterator(RootContainerInterface iteratingRuntime)
Constructor that uses the RootContainerInterface given to it. |
|
DataContextIterator(String runtimeName)
Constructor that finds a runtime by name. |
|
| Method Summary | |
boolean |
hasNext()
Checks if another object exists. |
Object |
next()
Retrieve the Next Data Context in the sequence. |
DataContext |
nextContext()
Retrieve the Next Data Context in the sequence. |
void |
remove()
Not implemented. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataContextIterator()
IllegalArgumentException - if the iterator is unable to find the
runtime.public DataContextIterator(String runtimeName)
runtimeName - The name of the runtime the user wants to iterate
IllegalArgumentException - if the iterator is unable to find the
runtime.public DataContextIterator(RootContainerInterface iteratingRuntime)
iteratingRuntime - the RootContainerInterface to iterate.| Method Detail |
public boolean hasNext()
hasNext in interface IteratorIterator.hasNext()public Object next()
next in interface IteratorArrayIndexOutOfBoundsException - if we iterate past the end.public DataContext nextContext()
ArrayIndexOutOfBoundsException - if we iterate past the end.public void remove()
remove in interface Iterator
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||