EnumerationModel
, IteratorModel
public interface TemplateModelIterator
TemplateCollectionModel.iterator()
. Note that it's not a TemplateModel
.Modifier and Type | Method | Description |
---|---|---|
boolean |
hasNext() |
|
TemplateModel |
next() |
Returns the next model.
|
TemplateModel next() throws TemplateModelException
TemplateModelException
- if the next model can not be retrieved
(i.e. because the iterator is exhausted).boolean hasNext() throws TemplateModelException
TemplateModelException