Package freemarker.template
Interface TemplateModelIterator
-
public interface TemplateModelIteratorThis interface is used to iterate over a set of template models, and is usually returned from an instance ofTemplateCollectionModel.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasNext()TemplateModelnext()Returns the next model.
-
-
-
Method Detail
-
next
TemplateModel next() throws TemplateModelException
Returns the next model.- Throws:
TemplateModelException- if the next model can not be retrieved (i.e. because the iterator is exhausted).
-
hasNext
boolean hasNext() throws TemplateModelException- Returns:
- whether there are any more items to iterate over.
- Throws:
TemplateModelException
-
-