Package freemarker.ext.beans
Class BooleanModel
java.lang.Object
freemarker.ext.beans.BeanModel
freemarker.ext.beans.BooleanModel
- All Implemented Interfaces:
WrapperTemplateModel
,AdapterTemplateModel
,TemplateBooleanModel
,TemplateHashModel
,TemplateHashModelEx
,TemplateModel
,TemplateModelWithAPISupport
A class that will wrap instances of Boolean
into a
TemplateBooleanModel
.
-
Field Summary
Fields inherited from interface freemarker.template.TemplateBooleanModel
FALSE, TRUE
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
-
Method Summary
Methods inherited from class freemarker.ext.beans.BeanModel
get, get, getAdaptedObject, getAPI, getBeforeMethodCall, getWrappedObject, hasPlainGetMethod, invokeGenericGet, isEmpty, keys, keySet, size, toString, unwrap, values, wrap
-
Constructor Details
-
BooleanModel
-
-
Method Details
-
getAsBoolean
public boolean getAsBoolean()- Specified by:
getAsBoolean
in interfaceTemplateBooleanModel
- Returns:
- whether to interpret this object as true or false in a boolean context
-