Class GeneratedString


  • public class GeneratedString
    extends java.lang.Object
    String to be generated by freemarker.
    • Constructor Summary

      Constructors 
      Constructor Description
      GeneratedString​(freemarker.template.Configuration cfg, java.util.Map model, java.lang.String templateName)
      Creates a string generator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String generate()
      Generates the string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeneratedString

        public GeneratedString​(freemarker.template.Configuration cfg,
                               java.util.Map model,
                               java.lang.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 java.lang.String generate()
                                  throws java.io.IOException,
                                         freemarker.template.TemplateException
        Generates the string.
        Returns:
        the generated string
        Throws:
        java.io.IOException - if writing to file failed
        freemarker.template.TemplateException - if some template error