|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfreemarker.testcase.models.IndexedModel1
public class 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 TemplateModeltrue if this object is empty, otherwise false
TemplateModelException
public TemplateModel getAtIndex(long index)
throws TemplateModelException
java.util.Vector.
getAtIndex in interface TemplateIndexedModelindex - the index of the underlying value we're interested in
TemplateModel representing the value for the given index
TemplateModelException - 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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||