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 java.lang.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 java.lang.String dbms
GeneratorTool
public GeneratorTool()
generate
public void generate(java.lang.String templateBaseName)
throws java.io.IOException,
freemarker.template.TemplateException
- Throws:
java.io.IOException
freemarker.template.TemplateException
initialize
public void initialize(GeneratorSettings settings)
throws java.io.IOException
- Throws:
java.io.IOException
getConfig
protected abstract java.lang.Object getConfig()
readConfig
protected abstract void readConfig(java.io.File file)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
getDestFile
protected java.lang.String getDestFile(java.lang.String templateBaseName)
runMain
public void runMain(java.lang.String[] args,
GeneratorSettings settings)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2008-2012. All Rights Reserved.