|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.ext.beans2.BeanWrapper<T> freemarker.ext.beans2.IteratorWrapper<T> freemarker.ext.beans2.ListIteratorWrapper<T>
public class ListIteratorWrapper<T extends java.util.ListIterator>
Wraps a ListIterator object as an Iterator model. Also provides support for any additional methods provided by the list iterator.
Field Summary |
---|
Fields inherited from class freemarker.ext.beans2.BeanWrapper |
---|
emptyParams, object |
Constructor Summary | |
---|---|
ListIteratorWrapper()
Default constructor where an object is not provided initially. |
|
ListIteratorWrapper(T iterator)
Constructor that takes a ListIterator object to be wrapped. |
Method Summary | |
---|---|
void |
set(TemplateModel model)
Inserts the specified element into the list. |
Methods inherited from class freemarker.ext.beans2.IteratorWrapper |
---|
hasNext, isEmpty, next |
Methods inherited from class freemarker.ext.beans2.BeanWrapper |
---|
clone, get, getAsObject, getAsString, put, setObject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface freemarker.template.TemplateIteratorModel |
---|
hasNext, next |
Methods inherited from interface freemarker.template.TemplateModel |
---|
isEmpty |
Constructor Detail |
---|
public ListIteratorWrapper()
public ListIteratorWrapper(T iterator)
iterator
- the list iterator object to be wrappedMethod Detail |
---|
public void set(TemplateModel model) throws TemplateModelException
set
in interface TemplateWriteableIteratorModel
model
- the model to insert into the list
TemplateModelException
- the model could not be assigned
to the list
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |