|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This iterates through the nodes that match a <wr:forEach tag. It will handle the tag's begin, step, and end attributes.
| Method Summary | |
void |
close()
We are done with this iterator. |
int |
getCount()
Return the count the iteration is on. |
int |
getIndex()
Return the index the iteration is on. |
DataSourceNode |
getNode(int index)
Returns the requested node from the set of nodes presently on. |
ForEachTag |
getTag()
Return the forEach tag in use for this iterator. |
boolean |
hasNext()
Returns true if the iteration has more nodes. |
boolean |
isFirst()
Return true if on the first node returned. |
boolean |
isLast()
Return true if on the last node returned. |
java.lang.Object |
next()
Returns the next node in the iteration. |
void |
remove()
This will throw an UnsupportedOperationException. |
| Method Detail |
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iterator
public DataSourceNode getNode(int index)
throws java.util.NoSuchElementException
index - The offset from the base node on. A value of 0 is identical to the value returned by next.java.util.NoSuchElementException - thrown if past the end of the list.
public void remove()
throws java.lang.UnsupportedOperationException
remove in interface java.util.Iterator
public ForEachTag getTag()
throws DataSourceException
DataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.
public int getIndex()
throws DataSourceException
DataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.
public int getCount()
throws DataSourceException
DataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.
public boolean isFirst()
throws DataSourceException
DataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.
public boolean isLast()
throws DataSourceException
DataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.
public void close()
throws DataSourceException
DataSourceException - Could not retrieve the data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||