freemarker.template
Interface TemplateListModel

All Superinterfaces:
TemplateModel, TemplateSequenceModel

Deprecated. This interface is deprecated because it has inherent design problems. Use TemplateSequenceModel or TemplateCollectionModel instead.

public interface TemplateListModel
extends TemplateSequenceModel

List values in a template data model must implement this interface, which is essentially the Iterator interface plus a rewind() method that allows the list to be read again.

The detail messages of any TemplateModelExceptions thrown will be included as HTML comments in the output.

Version:
$Id: TemplateListModel.java,v 1.9 2002/04/17 11:03:41 revusky Exp $

Method Summary
 boolean hasNext()
          Deprecated.  
 boolean isRewound()
          Deprecated.  
 TemplateModel next()
          Deprecated.  
 void rewind()
          Deprecated. Resets the cursor to the beginning of the list.
 
Methods inherited from interface freemarker.template.TemplateSequenceModel
get, size
 
Methods inherited from interface freemarker.template.TemplateModel
isEmpty
 

Method Detail

rewind

public void rewind()
            throws TemplateModelException
Deprecated. 
Resets the cursor to the beginning of the list.

isRewound

public boolean isRewound()
                  throws TemplateModelException
Deprecated. 
Returns:
true if the cursor is at the beginning of the list.

hasNext

public boolean hasNext()
                throws TemplateModelException
Deprecated. 
Returns:
true if there is a next element.

next

public TemplateModel next()
                   throws TemplateModelException
Deprecated. 
Returns:
the next element in the list.