|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfreemarker.ext.beans.ObjectModelBase
freemarker.ext.beans.ObjectModel
freemarker.ext.beans.CollectionModel
freemarker.ext.beans.ListModel
freemarker.ext.beans2 package
public final class ListModel
A special case of CollectionModel that implements
TemplateIndexedModel to allow gets using
numbered indexes.
| Field Summary |
|---|
| Fields inherited from class freemarker.ext.beans.ObjectModelBase |
|---|
object |
| Constructor Summary | |
|---|---|
ListModel(java.util.List list)
Deprecated. Creates a new model that wraps the specified collection object. |
|
| Method Summary | |
|---|---|
TemplateModel |
getAtIndex(long index)
Deprecated. Get the object at the specified index. |
static CollectionModel |
getInstance(java.util.List object)
Deprecated. Returns a model wrapping the specified list object. |
freemarker.ext.beans.ObjectModelBase.ModelType |
getType()
Deprecated. Returns the type of this object (which is TYPE_COLLECTION) |
| Methods inherited from class freemarker.ext.beans.CollectionModel |
|---|
get, getInstance, isEmpty, releaseIterator, templateIterator |
| Methods inherited from class freemarker.ext.beans.ObjectModel |
|---|
getInstance |
| Methods inherited from class freemarker.ext.beans.ObjectModelBase |
|---|
getAsObject, getAsString, getInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface freemarker.template.TemplateModel |
|---|
isEmpty |
| Constructor Detail |
|---|
public ListModel(java.util.List list)
list - the list object to wrap into a model.| Method Detail |
|---|
public static final CollectionModel getInstance(java.util.List object)
WeakReference objects. The caching can be turned
off by setting the expose.reflection.nocache system property to
true. In this case calling this method is equivalent to constructing a new model.
object - the list to wrap into a model.
public freemarker.ext.beans.ObjectModelBase.ModelType getType()
getType in class CollectionModel
public TemplateModel getAtIndex(long index)
throws TemplateModelException
getAtIndex in interface TemplateIndexedModelindex - the index of object within the list
TemplateModelException - there was a problem with the
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||