|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--freemarker.ext.jdom.NodeListIterator
Iterator model for NodeListModel
. This implements a thread-safe
iterator over JDOM lists.
Method Summary | |
boolean |
hasNext()
Returns true if nodes can be returned by a call to next() . |
boolean |
isEmpty()
Is the object empty? |
TemplateModel |
next()
Returns the next node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public boolean hasNext()
next()
.hasNext
in interface TemplateIteratorModel
freemarker.template.TemplateIteratorModel
true
if there are more items to be iterated over,
otherwise false
TemplateModelException
- there was a problem determining the
next item in the listpublic TemplateModel next()
next
in interface TemplateIteratorModel
freemarker.template.TemplateIteratorModel
TemplateModelException
- the next item couldn't be retrieved,
or we're at the end of the listpublic boolean isEmpty() throws TemplateModelException
isEmpty
in interface TemplateModel
true
if this object is empty, otherwise false
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |