freemarker.template

Interface TemplateModelIterator

Known Implementing Classes:
EnumerationModel, IteratorModel

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.10 2003/01/12 23:40:21 revusky Exp $
Author:
Attila Szegedi, szegedia at users dot sourceforge dot net

Method Summary

boolean
hasNext()
TemplateModel
next()
Returns the next model.

Method Details

hasNext

public boolean hasNext()
            throws TemplateModelException
Returns:
whether there are any more items to iterate over.

next

public 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).