com.agimatec.commons.generator
Class GeneratorTool

java.lang.Object
  extended by 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


Field Summary
protected  String dbms
           
protected  GeneratorSettings settings
           
protected  FreemarkerFileGenerator templateEngine
           
 
Constructor Summary
GeneratorTool()
           
 
Method Summary
 void generate(String templateBaseName)
           
protected abstract  Object getConfig()
           
protected  String getDestFile(String templateBaseName)
           
 void initialize(GeneratorSettings settings)
           
protected abstract  void readConfig(File file)
           
 void runMain(String[] args, GeneratorSettings settings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

settings

protected GeneratorSettings settings

templateEngine

protected FreemarkerFileGenerator templateEngine

dbms

protected String dbms
Constructor Detail

GeneratorTool

public GeneratorTool()
Method Detail

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.