Package fmpp.models

Class TemplateModelUtils

java.lang.Object
fmpp.models.TemplateModelUtils
Direct Known Subclasses:
AddTransform, ClearTransform, RemoveTransform, SetTransform

public class TemplateModelUtils extends Object
Constains utility methods for transform and method variable implementation.
  • Constructor Details

    • TemplateModelUtils

      public TemplateModelUtils()
  • Method Details

    • strParam

      protected String strParam(Object m, String name) throws freemarker.template.TemplateModelException
      Throws:
      freemarker.template.TemplateModelException
    • intParam

      protected int intParam(Object m, String name) throws freemarker.template.TemplateModelException
      Throws:
      freemarker.template.TemplateModelException
    • boolParam

      protected boolean boolParam(Object m, String name) throws freemarker.template.TemplateModelException
      Throws:
      freemarker.template.TemplateModelException
    • dieWithMissingParam

      protected void dieWithMissingParam(String pname) throws freemarker.template.TemplateModelException
      Deprecated.
      Throws:
      freemarker.template.TemplateModelException
    • newMissingParamException

      protected freemarker.template.TemplateModelException newMissingParamException(String pname)
    • dieWithUnknownParam

      protected void dieWithUnknownParam(String pname) throws freemarker.template.TemplateModelException
      Deprecated.
      Throws:
      freemarker.template.TemplateModelException
    • newUnsupportedParamException

      protected freemarker.template.TemplateModelException newUnsupportedParamException(String pname)
    • dieWithParamsNotAllowed

      protected void dieWithParamsNotAllowed() throws freemarker.template.TemplateModelException
      Deprecated.
      Throws:
      freemarker.template.TemplateModelException
    • newNoParamsAllowedException

      protected freemarker.template.TemplateModelException newNoParamsAllowedException() throws freemarker.template.TemplateModelException
      Throws:
      freemarker.template.TemplateModelException