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 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


Field Summary
protected  java.lang.String dbms
           
protected  GeneratorSettings settings
           
protected  FreemarkerFileGenerator templateEngine
           
 
Constructor Summary
GeneratorTool()
           
 
Method Summary
 void generate(java.lang.String templateBaseName)
           
protected abstract  java.lang.Object getConfig()
           
protected  java.lang.String getDestFile(java.lang.String templateBaseName)
           
 void initialize(GeneratorSettings settings)
           
protected abstract  void readConfig(java.io.File file)
           
 void runMain(java.lang.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 java.lang.String dbms
Constructor Detail

GeneratorTool

public GeneratorTool()
Method Detail

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.