|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--freemarker.testcase.models.TransformHashWrapper
Part of the TestTransform testcase suite.
Constructor Summary | |
TransformHashWrapper()
Creates new TransformHashWrapper |
Method Summary | |
TemplateModel |
get(java.lang.String key)
Gets a TemplateModel from the hash. |
java.lang.String |
getAsString()
Returns the scalar's value as a String . |
boolean |
isEmpty()
Is the model empty? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TransformHashWrapper()
Method Detail |
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 boolean isEmpty() throws TemplateModelException
isEmpty
in interface TemplateModel
false
to indicate the model is not emptypublic java.lang.String getAsString() throws TemplateModelException
String
.getAsString
in interface TemplateScalarModel
String
value of this scalar.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |