Package freemarker.template
Interface TemplateNumberModel
-
- All Superinterfaces:
TemplateModel
- All Known Implementing Classes:
SimpleNumber
public interface TemplateNumberModel extends TemplateModel
Numeric values in a template data model must implement this interface.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface freemarker.template.TemplateModel
TemplateModel.InvalidExpressionModel, TemplateModel.JavaNull
-
-
Field Summary
-
Fields inherited from interface freemarker.template.TemplateModel
INVALID_EXPRESSION, JAVA_NULL, NOTHING
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NumbergetAsNumber()Returns the numeric value.
-
-
-
Method Detail
-
getAsNumber
Number getAsNumber() throws TemplateModelException
Returns the numeric value. The return value must not be null.- Returns:
- the
Numberinstance associated with this number model. - Throws:
TemplateModelException
-
-