Methods Summary |
---|
public java.lang.String | execute()
// Make source transformations
for (int i = 0; i < sources.size(); i++) {
Object source = sources.get(i);
iterators.add(getIterator(source));
}
return SUCCESS;
|
public boolean | hasNext()
if (iterators.size() > 0) {
return (((Iterator) iterators.get(0)).hasNext());
} else {
return false;
}
|
public java.lang.Object | next()
try {
return ((Iterator) iterators.get(0)).next();
} finally {
if (iterators.size() > 0) {
if (!((Iterator) iterators.get(0)).hasNext()) {
iterators.remove(0);
}
}
}
|
public void | remove()
throw new UnsupportedOperationException();
|
public void | setSource(java.lang.Object anIterator)
// Public --------------------------------------------------------
sources.add(anIterator);
|