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

    • BooleanTemplateModel

      public BooleanTemplateModel(Boolean value, Boolean nullValue, freemarker.ext.beans.BeansWrapper wrapper)
  • Method Details

    • getAsBoolean

      public boolean getAsBoolean() throws freemarker.template.TemplateModelException
      Specified by:
      getAsBoolean in interface freemarker.template.TemplateBooleanModel
      Throws:
      freemarker.template.TemplateModelException
    • isEmpty

      public boolean isEmpty() throws freemarker.template.TemplateModelException
      Specified by:
      isEmpty in interface freemarker.template.TemplateHashModel
      Overrides:
      isEmpty in class NullableTemplateModel
      Throws:
      freemarker.template.TemplateModelException