|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.misc.SchemaIterator
This class is constructed and used to iterate over top level schemas. It can be used instead of iterating over the previous SchemaList table. This iterator currently only iterates over top level Schemas, not schemas nested within other schemas.
Example Usage:
for (SchemaIterator it = new SchemaIterator("default","default");
it.hasNext();) {
Schema oneSchema = (Schema)it.next();
System.out.println("Schema Description: " + oneSchema.getDefaultDescription());
}
DataContextIterator| Constructor Summary | |
SchemaIterator()
Default constructor that creates a schema for default data context, default runtime. |
|
SchemaIterator(DataContext iteratingContext)
Constructor that iterates over all schemas inside a context. |
|
SchemaIterator(String runtime,
String contextName)
Constructor that specifies the Expresso Runtime as well as the data context name to iterate. |
|
| Method Summary | |
boolean |
hasNext()
Checks if another object exists. |
Object |
next()
Retrieve the Next Schema in the sequence. |
Schema |
nextContext()
Retrieve the Next Schema 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 SchemaIterator()
IllegalStateException - if no runtime exists or if there is no
default data context in the system. or if the component named 'default'
is not a DataContext.
public SchemaIterator(String runtime,
String contextName)
runtime - the name of the runtime ('default' for typical usage)contextName - the name of the data context to iterate ('default' for example)public SchemaIterator(DataContext iteratingContext)
iteratingContext - the DataContext instance 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 Schema 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 | ||||||||||