|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfreemarker.doc.ContentList
public final class ContentList
Implements a list of table-of-contents entries.
| Constructor Summary | |
|---|---|
ContentList()
Creates a new ContentList |
|
| Method Summary | |
|---|---|
void |
add(ContentEntry entry)
Adds a new entry to the list. |
TemplateModel |
getAtIndex(long index)
Retrieves the specified item from the list. |
boolean |
isEmpty()
Is the list empty? |
void |
releaseIterator(TemplateIteratorModel iterator)
Release an iterator for this content list. |
TemplateIteratorModel |
templateIterator()
Retrieves an iterator to iterate over this content list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentList()
| Method Detail |
|---|
public TemplateIteratorModel templateIterator()
throws TemplateModelException
templateIterator in interface TemplateListModel2TemplateModelException - the next item in the list can't be
retrieved, or no next item exists.public void releaseIterator(TemplateIteratorModel iterator)
releaseIterator in interface TemplateListModel2iterator - the iterator to be released
public TemplateModel getAtIndex(long index)
throws TemplateModelException
getAtIndex in interface TemplateIndexedModelindex - the index of the item to be retrieved
TemplateModelException - the specified index is out of bounds
public boolean isEmpty()
throws TemplateModelException
isEmpty in interface TemplateModeltrue if this object is empty, otherwise
false
TemplateModelExceptionpublic void add(ContentEntry entry)
entry - the ContentEntry to be added
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||