com.agimatec.commons.generator
Class GeneratorTool
java.lang.Object
com.agimatec.commons.generator.GeneratorTool
- Direct Known Subclasses:
- CatalogGeneratorTool, HistoryGeneratorTool, ScriptTransformatorTool
public abstract class GeneratorTool
- extends Object
Description: Abstract superclass for tools that invoke freemarker templates for
a catalogdescription
User: roman.stumm
Date: 05.06.2007
Time: 15:39:09
Copyright: Agimatec GmbH
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
settings
protected GeneratorSettings settings
templateEngine
protected FreemarkerFileGenerator templateEngine
dbms
protected String dbms
GeneratorTool
public GeneratorTool()
generate
public void generate(String templateBaseName)
throws IOException,
freemarker.template.TemplateException
- Throws:
IOException
freemarker.template.TemplateException
initialize
public void initialize(GeneratorSettings settings)
throws IOException
- Throws:
IOException
getConfig
protected abstract Object getConfig()
readConfig
protected abstract void readConfig(File file)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
getDestFile
protected String getDestFile(String templateBaseName)
runMain
public void runMain(String[] args,
GeneratorSettings settings)
throws Exception
- Throws:
Exception
Copyright © 2008-2012. All Rights Reserved.