|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.template.FastIterator freemarker.ext.misc.ExtendedIterator
public class ExtendedIterator
Iterator for the ExtendedList
class. The most notable addition for
this iterator is that ability to determine whether we're at the end
of the list. This is done by implementing the
TemplateHashModel
interface as well as the
standard TemplateIteratorModel
interface.
Field Summary |
---|
Fields inherited from class freemarker.template.FastIterator |
---|
iterator |
Constructor Summary | |
---|---|
ExtendedIterator(java.util.List<? extends TemplateModel> list)
|
Method Summary | |
---|---|
TemplateModel |
get(java.lang.String key)
Gets a TemplateModel from the hash. |
Methods inherited from class freemarker.template.FastIterator |
---|
hasNext, isEmpty, next |
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 ExtendedIterator(java.util.List<? extends TemplateModel> list)
Method Detail |
---|
public TemplateModel get(java.lang.String key) throws TemplateModelException
TemplateModel
from the hash.
get
in interface TemplateHashModel
key
- the name by which the TemplateModel
is identified in the template.
TemplateModel
referred to by the key,
or null
if not found.
TemplateModelException
- there was a problem getting the value
for the given key
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |