Class StringTemplateModel

java.lang.Object
ch.tocco.nice2.templating.api.freemarker.templatemodel.NullableTemplateModel
ch.tocco.nice2.templating.api.freemarker.templatemodel.StringTemplateModel
All Implemented Interfaces:
freemarker.template.TemplateHashModel, freemarker.template.TemplateModel, freemarker.template.TemplateScalarModel

public class StringTemplateModel extends NullableTemplateModel implements freemarker.template.TemplateScalarModel
  • Constructor Details

    • StringTemplateModel

      public StringTemplateModel(String value, String nullValue, freemarker.ext.beans.BeansWrapper wrapper)
  • Method Details

    • getAsString

      public String getAsString()
      Specified by:
      getAsString in interface freemarker.template.TemplateScalarModel
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object