Class NumericTemplateModel
java.lang.Object
ch.tocco.nice2.templating.api.freemarker.templatemodel.NullableTemplateModel
ch.tocco.nice2.templating.impl.freemarker.templatemodel.NumericTemplateModel
- All Implemented Interfaces:
freemarker.template.TemplateHashModel
,freemarker.template.TemplateModel
,freemarker.template.TemplateNumberModel
public class NumericTemplateModel
extends NullableTemplateModel
implements freemarker.template.TemplateNumberModel
-
Field Summary
Fields inherited from class ch.tocco.nice2.templating.api.freemarker.templatemodel.NullableTemplateModel
nullValue, value, wrapper
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
ConstructorDescriptionNumericTemplateModel
(Number value, Number nullValue, freemarker.ext.beans.BeansWrapper wrapper) -
Method Summary
Methods inherited from class ch.tocco.nice2.templating.api.freemarker.templatemodel.NullableTemplateModel
get, getValueOrFallback, isEmpty
-
Constructor Details
-
NumericTemplateModel
-
-
Method Details
-
getAsNumber
- Specified by:
getAsNumber
in interfacefreemarker.template.TemplateNumberModel
- Throws:
freemarker.template.TemplateModelException
-