Class AbstractGenerator


  • public class AbstractGenerator
    extends java.lang.Object
    Base class for generators.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      freemarker.template.Configuration createFreemarkerConfiguration()
      Creates the freemarker configuration.
      java.io.File getTemplateDirectory()
      Gets the freemarker template directory.
      void setTemplateDirectory​(java.io.File templateDirectory)
      Sets the freemarker template directory.
      • Methods inherited from class java.lang.Object

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

      • AbstractGenerator

        public AbstractGenerator()
    • Method Detail

      • getTemplateDirectory

        public java.io.File getTemplateDirectory()
        Gets the freemarker template directory.
        Returns:
        the template directory
      • setTemplateDirectory

        public void setTemplateDirectory​(java.io.File templateDirectory)
        Sets the freemarker template directory.
        Parameters:
        templateDirectory - the template directory
      • createFreemarkerConfiguration

        public freemarker.template.Configuration createFreemarkerConfiguration()
                                                                        throws java.io.IOException
        Creates the freemarker configuration.
        Returns:
        the config
        Throws:
        java.io.IOException - if there's some trouble with the template directory