|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfreemarker.ext.beans2.BeanWrapper<T>
freemarker.ext.beans2.CollectionWrapper<T>
freemarker.ext.beans2.ListWrapper<T>
public class ListWrapper<T extends java.util.List>
Field Summary |
---|
Fields inherited from class freemarker.ext.beans2.BeanWrapper |
---|
emptyParams, object |
Constructor Summary | |
---|---|
ListWrapper()
|
|
ListWrapper(T object)
|
Method Summary | |
---|---|
TemplateModel |
getAtIndex(long index)
Get the value corresponding to the given index. |
void |
putAtIndex(long index,
TemplateModel model)
Set the value corresponding to the given index. |
TemplateIteratorModel |
templateIterator()
Retrieves an iterator to iterate over this collection. |
Methods inherited from class freemarker.ext.beans2.CollectionWrapper |
---|
exec, releaseIterator |
Methods inherited from class freemarker.ext.beans2.BeanWrapper |
---|
clone, get, getAsObject, getAsString, isEmpty, put, setObject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListWrapper()
public ListWrapper(T object)
Method Detail |
---|
public TemplateIteratorModel templateIterator() throws TemplateModelException
templateIterator
in interface TemplateListModel2
templateIterator
in class CollectionWrapper<T extends java.util.List>
TemplateModelException
- the next item in the list can't be
retrieved, or no next item exists.public TemplateModel getAtIndex(long index) throws TemplateModelException
java.util.Vector
.
getAtIndex
in interface TemplateIndexedModel
index
- the index of the underlying value we're interested in
TemplateModel
representing the value for the given index
TemplateModelException
- the value could not be determined, possibly
due to an index out-of-bounds, or an otherwise undefined valuepublic void putAtIndex(long index, TemplateModel model) throws TemplateModelException
java.util.Vector
.
putAtIndex
in interface TemplateWriteableIndexedModel
index
- the index of the underlying value we're interested inmodel
- the model to be added to the list
TemplateModelException
- the value could not be determined, possibly
due to an index out-of-bounds, or an otherwise undefined value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |