Class GeneratedString


  • public class GeneratedString
    extends Object
    String to be generated by freemarker.
    • Constructor Detail

      • GeneratedString

        public GeneratedString​(freemarker.template.Configuration cfg,
                               Map model,
                               String templateName)
        Creates a string generator.
        Parameters:
        cfg - the freemarker configuration
        model - the freemarker model
        templateName - the name of the freemarker template
    • Method Detail

      • generate

        public String generate()
                        throws IOException,
                               freemarker.template.TemplateException
        Generates the string.
        Returns:
        the generated string
        Throws:
        IOException - if writing to file failed
        freemarker.template.TemplateException - if some template error