Class BaseTemplateDirectiveModel

    • Constructor Detail

      • BaseTemplateDirectiveModel

        public BaseTemplateDirectiveModel()
    • Method Detail

      • processTemplateToString

        public static String processTemplateToString​(String templateName,
                                                     Map<String,​Object> map,
                                                     freemarker.core.Environment env)
      • getRequiredSimpleScalarParameter

        protected String getRequiredSimpleScalarParameter​(Map<?,​?> params,
                                                          String name)
                                                   throws freemarker.template.TemplateModelException
        Get the parameter, or throw an exception.
        Throws:
        freemarker.template.TemplateModelException
      • getOptionalSimpleScalarParameter

        protected String getOptionalSimpleScalarParameter​(Map<?,​?> params,
                                                          String name)
                                                   throws freemarker.template.TemplateModelException
        Get the parameter, or "null" if the parameter is not provided.
        Throws:
        freemarker.template.TemplateModelException
      • getOptionalHashModelParameter

        protected Map<String,​Object> getOptionalHashModelParameter​(Map<?,​?> params,
                                                                         String name)
                                                                  throws freemarker.template.TemplateModelException
        Throws:
        freemarker.template.TemplateModelException