freemarker.template
Interface TemplateSequenceModel
- All Superinterfaces:
- TemplateModel
- All Known Subinterfaces:
- TemplateListModel
- All Known Implementing Classes:
- NumericalRange, SimpleSequence, CollectionModel, ArrayModel, NodeListModel
- public interface TemplateSequenceModel
- extends TemplateModel
List values in a template data model whose elements are accessed by the index
operator should implement this interface,
which essentially has a single interface that returns the i-th element.
- Version:
- $Id: TemplateSequenceModel.java,v 1.3 2002/04/17 11:03:41 revusky Exp $
- Author:
- Attila Szegedi, szegedia at users dot sourceforge dot net
Method Summary |
TemplateModel |
get(int index)
Retrieves the i-th template model in this sequence. |
int |
size()
|
get
public TemplateModel get(int index)
throws TemplateModelException
- Retrieves the i-th template model in this sequence.
size
public int size()
throws TemplateModelException
- Returns:
- the number of items in the list.