|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--freemarker.testcase.models.BooleanHash2
Tests the impact that the isEmpty()
method has on template
hash models.
Constructor Summary | |
BooleanHash2()
Creates new BooleanHash2. |
Method Summary | |
TemplateModel |
get(java.lang.String key)
Gets a TemplateModel from the hash. |
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 BooleanHash2()
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
true
if this object is empty, otherwise false
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |