freemarker.template
Class TemplateModelListSequence
java.lang.Object
freemarker.template.TemplateModelListSequence
- TemplateModel, TemplateSequenceModel
public class TemplateModelListSequence
extends java.lang.Object
Sequence that wraps a java.util.List
of already wrapped objects
directly, with minimal resource usage. Warning! It does not copy the original
list.
$Id: TemplateModelListSequence.java,v 1.2 2004/01/06 17:06:43 szegedia Exp $
TemplateModelListSequence
public TemplateModelListSequence(List list)
get
public TemplateModel get(int index)
Retrieves the i-th template model in this sequence.
- get in interface TemplateSequenceModel
- the item at the specified index, or
null
if
the index is out of bounds. Note that a null
value is
interpreted by FreeMarker as "variable does not exist", and accessing
a missing variables is usually considered as an error in the FreeMarker
Template Language, so the usage of a bad index will not remain hidden.
getWrappedObject
public Object getWrappedObject()