Package org.symphonyoss.s2.canon.parser
Class GenerationContext
- java.lang.Object
-
- org.symphonyoss.s2.canon.parser.GenerationContext
-
public class GenerationContext extends Object
-
-
Constructor Summary
Constructors Constructor Description GenerationContext(File targetDir, File proformaDir, File copyDir)GenerationContext(String targetDirName, String proformaDirName, String copyDirName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTemplateDirectory(File dir)This is analogous to copying the templates into a working directory so later additions take precedence over earlier ones.voidaddTemplateDirectory(File dir, MultiDirTemplateLoader templateLoader)FilegetCopyDir()Map<String,Object>getDataModel()freemarker.template.ConfigurationgetFreemarkerConfig()Set<String>getLanguages()FilegetProformaDir()FilegetTargetDir()Set<String>getTemplatesFor(String templateOrProforma, String language, String type)Objectput(String key, Object value)
-
-
-
Constructor Detail
-
GenerationContext
public GenerationContext(String targetDirName, String proformaDirName, String copyDirName) throws GenerationException
- Throws:
GenerationException
-
GenerationContext
public GenerationContext(File targetDir, File proformaDir, File copyDir) throws GenerationException
- Throws:
GenerationException
-
-
Method Detail
-
addTemplateDirectory
public void addTemplateDirectory(File dir)
This is analogous to copying the templates into a working directory so later additions take precedence over earlier ones.- Parameters:
dir- A template directory.
-
addTemplateDirectory
public void addTemplateDirectory(File dir, MultiDirTemplateLoader templateLoader)
-
getFreemarkerConfig
public freemarker.template.Configuration getFreemarkerConfig()
-
getTemplatesFor
public Set<String> getTemplatesFor(String templateOrProforma, String language, String type)
-
getTargetDir
public File getTargetDir()
-
getProformaDir
public File getProformaDir()
-
getCopyDir
public File getCopyDir()
-
-