|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TemplateIteratorModel
Iterators that iterate over a TemplateListModel2 must implement
this interface. The interface is almost identical to the
java.util.Iterator interface, so that such iterators can be
transparently wrapped in a TemplateIteratorModel implementation.
TemplateListModel2,
TemplateWriteableIteratorModel| Method Summary | |
|---|---|
boolean |
hasNext()
Do we have another item in the list? |
TemplateModel |
next()
Retrieve the next item in the list. |
| Methods inherited from interface freemarker.template.TemplateModel |
|---|
isEmpty |
| Method Detail |
|---|
boolean hasNext()
throws TemplateModelException
true if there are more items to be iterated over,
otherwise false
TemplateModelException - there was a problem determining the
next item in the list
TemplateModel next()
throws TemplateModelException
TemplateModel
containing the underlying value.
TemplateModelException - the next item couldn't be retrieved,
or we're at the end of the list
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||