|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
TemplateListModel2 interface
instead.
@Deprecated public interface TemplateListModel
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. As of 1.5.3, there is also a get(int) method that allows the
list to be accessed in a random-access fashion.
The detail messages of any TemplateModelExceptions
thrown will be included as HTML comments in the output.
TemplateListModel2,
TemplateIndexedModel| Method Summary | |
|---|---|
TemplateModel |
get(int index)
Deprecated. Retrieves the specified item from the list. |
boolean |
hasNext()
Deprecated. Is there a next item in the list? |
boolean |
isRewound()
Deprecated. Is the cursor at the beginning of the list? |
TemplateModel |
next()
Deprecated. Retrieves the next item in the list. |
void |
rewind()
Deprecated. Resets the cursor to the beginning of the list. |
| Methods inherited from interface freemarker.template.TemplateModel |
|---|
isEmpty |
| Method Detail |
|---|
void rewind()
throws TemplateModelException
TemplateModelException
boolean isRewound()
throws TemplateModelException
true if the cursor is at the beginning of the list,
otherwise false.
TemplateModelException
boolean hasNext()
throws TemplateModelException
true if there is a next element, otherwise
false.
TemplateModelException
TemplateModel next()
throws TemplateModelException
TemplateModelException - the next item in the list can't be
retrieved, or no next item exists.
TemplateModel get(int index)
throws TemplateModelException
index - the index of the item to be retrieved.
TemplateModelException - the specified item in the list can't be
retrieved, or the index is out of bounds.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||