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
  • Constructor Details

    • NumericTemplateModel

      public NumericTemplateModel(Number value, Number nullValue, freemarker.ext.beans.BeansWrapper wrapper)
  • Method Details

    • getAsNumber

      public Number getAsNumber() throws freemarker.template.TemplateModelException
      Specified by:
      getAsNumber in interface freemarker.template.TemplateNumberModel
      Throws:
      freemarker.template.TemplateModelException