Class BooleanModel

java.lang.Object
freemarker.ext.beans.BeanModel
freemarker.ext.beans.BooleanModel
All Implemented Interfaces:
WrapperTemplateModel, AdapterTemplateModel, TemplateBooleanModel, TemplateHashModel, TemplateHashModelEx, TemplateModel, TemplateModelWithAPISupport

public class BooleanModel extends BeanModel implements TemplateBooleanModel

A class that will wrap instances of Boolean into a TemplateBooleanModel.

  • Constructor Details

  • Method Details

    • getAsBoolean

      public boolean getAsBoolean()
      Specified by:
      getAsBoolean in interface TemplateBooleanModel
      Returns:
      whether to interpret this object as true or false in a boolean context