Class BooleanTemplateModel
java.lang.Object
ch.tocco.nice2.templating.api.freemarker.templatemodel.NullableTemplateModel
ch.tocco.nice2.templating.impl.freemarker.templatemodel.BooleanTemplateModel
- All Implemented Interfaces:
freemarker.template.TemplateBooleanModel
,freemarker.template.TemplateHashModel
,freemarker.template.TemplateModel
public class BooleanTemplateModel
extends NullableTemplateModel
implements freemarker.template.TemplateBooleanModel
-
Field Summary
Fields inherited from class ch.tocco.nice2.templating.api.freemarker.templatemodel.NullableTemplateModel
nullValue, value, wrapper
Fields inherited from interface freemarker.template.TemplateBooleanModel
FALSE, TRUE
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
ConstructorDescriptionBooleanTemplateModel
(Boolean value, Boolean nullValue, freemarker.ext.beans.BeansWrapper wrapper) -
Method Summary
Methods inherited from class ch.tocco.nice2.templating.api.freemarker.templatemodel.NullableTemplateModel
get, getValueOrFallback
-
Constructor Details
-
BooleanTemplateModel
-
-
Method Details
-
getAsBoolean
public boolean getAsBoolean() throws freemarker.template.TemplateModelException- Specified by:
getAsBoolean
in interfacefreemarker.template.TemplateBooleanModel
- Throws:
freemarker.template.TemplateModelException
-
isEmpty
public boolean isEmpty() throws freemarker.template.TemplateModelException- Specified by:
isEmpty
in interfacefreemarker.template.TemplateHashModel
- Overrides:
isEmpty
in classNullableTemplateModel
- Throws:
freemarker.template.TemplateModelException
-