|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--freemarker.testcase.models.IndexedModel1
A trivial implementation of the TemplateIndexedModel
interface.
Method Summary | |
TemplateModel |
getAtIndex(long index)
Get the value corresponding to the given index. |
static IndexedModel1 |
getInstance()
Get the singleton instance of this class. |
boolean |
isEmpty()
Is the object empty? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static IndexedModel1 getInstance()
public boolean isEmpty() throws TemplateModelException
isEmpty
in interface TemplateModel
true
if this object is empty, otherwise false
public TemplateModel getAtIndex(long index) throws TemplateModelException
java.util.Vector
.getAtIndex
in interface TemplateIndexedModel
index
- the index of the underlying value we're interested inTemplateModel
representing the value for the given indexTemplateModelException
- the value could not be determined, possibly
due to an index out-of-bounds, or an otherwise undefined value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |