|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--freemarker.testcase.models.SortedHash
Simple hash model that contains a sorted hash.
Constructor Summary | |
SortedHash()
Default constructor that creates a simple sorted map. |
Method Summary | |
TemplateModel |
get(java.lang.String key)
Gets a TemplateModel from the hash. |
java.lang.Object |
getAsObject()
Return the underlying object to the reflection mechanism in the freemarker.ext.beans package. |
boolean |
isEmpty()
Is the object empty? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SortedHash()
Method Detail |
public boolean isEmpty() throws TemplateModelException
isEmpty
in interface TemplateModel
true
if this object is empty, otherwise false
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.public java.lang.Object getAsObject() throws TemplateModelException
freemarker.ext.beans
package. Any variables, methods
or properties can be called directly via reflection.getAsObject
in interface TemplateObjectModel
TemplateModelException
- the object could not be returned
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |