freemarker.template
Interface TemplateModelIterator
- All Known Implementing Classes:
- SimpleIterator, IteratorModel, EnumerationModel
- public interface TemplateModelIterator
This interface is used to iterate over a set of template models, and is usually
returned from an instance of TemplateCollectionModel
.
- Version:
- $Id: TemplateModelIterator.java,v 1.2 2002/03/26 19:57:13 revusky Exp $
- Author:
- Attila Szegedi, szegedia at users dot sourceforge dot net
next
public TemplateModel next()
throws TemplateModelException
- Returns the next model, or null if there are no more models.
hasNext
public boolean hasNext()
throws TemplateModelException
- Returns:
- whether there are any more items to iterate over.