|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - The WCM API typepublic interface DocumentIterator<T extends Document>
DocumentIterator iterates over Document
objects.
All objects returned by the next() method are of type
WCMApiObject.
Note. This iterator does NOT support the remove() operation.
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns true if the iteration has more elements. |
T |
next()
Returns the next element in the iteration. |
T |
nextDocument()
Deprecated. use next() instead. Since this class has been generified, the two
methods are identical. |
void |
remove()
This method is not implemented. |
| Method Detail |
|---|
boolean hasNext()
next() would return an element
rather than throwing an exception.)
hasNext in interface java.util.Iterator<T extends Document>T next()
Document.
The common practice is to cast the object returned by
next() to a Document.
The hasNext() method should be called first to ensure
there is a next element in the iteration, otherwise an exception
may be thrown.
next in interface java.util.Iterator<T extends Document>java.util.NoSuchElementException - if the iteration has no more elements.@Deprecated T nextDocument()
next() instead. Since this class has been generified, the two
methods are identical.
Document in the iteration.
The hasNext() method should be called first to ensure
there is a next element in the iteration, otherwise an exception
may be thrown.
Document in the iteration.
java.util.NoSuchElementException - if the iteration has no more elements.void remove()
UnsupportedOperationException being thrown.
remove in interface java.util.Iterator<T extends Document>java.lang.UnsupportedOperationException - each time the method is called
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||