|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfreemarker.core.CollectionAndSequence
Add sequence capabilities to an existing collection, or vice versa. Used by ?keys and ?values built-ins.
Field Summary |
Fields inherited from interface freemarker.template.TemplateModel |
NOTHING |
Constructor Summary | |
CollectionAndSequence(TemplateCollectionModel collection)
|
|
CollectionAndSequence(TemplateSequenceModel sequence)
|
Method Summary | |
TemplateModel |
get(int i)
Retrieves the i-th template model in this sequence. |
TemplateModelIterator |
iterator()
Retrieves a template model iterator that is used to iterate over the elements in this collection. |
int |
size()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CollectionAndSequence(TemplateCollectionModel collection)
public CollectionAndSequence(TemplateSequenceModel sequence)
Method Detail |
public TemplateModelIterator iterator() throws TemplateModelException
TemplateCollectionModel
iterator
in interface TemplateCollectionModel
TemplateModelException
public TemplateModel get(int i) throws TemplateModelException
TemplateSequenceModel
get
in interface TemplateSequenceModel
TemplateModelException
public int size() throws TemplateModelException
size
in interface TemplateSequenceModel
TemplateModelException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |