Class GeneratedString

java.lang.Object
org.tentackle.maven.GeneratedString

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

    • 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 Details

    • 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