|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ContentComponentIterator, as the name suggests, iterates over
ContentComponent objects in a ContentComponentContainer.
A ContentComponentIterator is only valid for objects that can
contain ContentComponents - Content, Site and
SiteArea.
All objects returned by the next() method are of type
ContentComponent.
Note: This class does NOT support the remove() operation.
| Field Summary | |
static java.lang.String |
COPYRIGHT
Copyright statement |
| Method Summary | |
int |
getCount()
Returns the number of elements in this Iterator. |
boolean |
hasNext()
Returns true if the iteration has more elements. |
java.lang.Object |
next()
Returns the next element in the interation. |
void |
remove()
This method is not implemented. |
| Field Detail |
public static final java.lang.String COPYRIGHT
| Method Detail |
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
ContentComponent.
The common practice is to cast the object returned by
next() to a ContentComponent.
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.Iteratorjava.util.NoSuchElementException - if the iteration has no more elements.public void remove()
UnsupportedOperationException being thrown.
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationException - each time the method is calledpublic int getCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||