com.agimatec.commons.generator
Class GeneratorSettings

java.lang.Object
  extended by com.agimatec.commons.generator.GeneratorSettings
Direct Known Subclasses:
CatalogGeneratorSettings, ScriptTransformatorSettings

public abstract class GeneratorSettings
extends Object

Description: abstract superclass for a settings class of tools that invoke freemarker templates for a catalog description.
User: roman.stumm
Date: 05.06.2007
Time: 15:34:51
Copyright: Agimatec GmbH


Field Summary
protected  CatalogDescription catalog
           
protected  String configFile
           
protected  String dbms
           
protected  String destDir
           
protected  boolean noOutputFile
           
protected  String templateDir
           
protected  List<String> templates
           
 
Constructor Summary
GeneratorSettings()
           
 
Method Summary
protected  void checkValid()
           
protected abstract  String defaultConfigFileName()
           
 CatalogDescription getCatalog()
           
 String getConfigFile()
           
 String getDbms()
           
 String getDestDir()
           
 Map<String,String> getProperties()
           
 String getTemplateDir()
           
 List<String> getTemplates()
           
 boolean isNoOutputFile()
           
protected  void loadCatalog(String catalogFile)
           
 boolean parseArgs(String[] args)
           
protected  void printUsage()
           
 void setCatalog(CatalogDescription catalog)
           
 void setConfigFile(String configFile)
           
 void setDbms(String dbms)
           
 void setDestDir(String destDir)
           
 void setTemplateDir(String templateDir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configFile

protected String configFile

templateDir

protected String templateDir

destDir

protected String destDir

dbms

protected String dbms

templates

protected List<String> templates

catalog

protected CatalogDescription catalog

noOutputFile

protected boolean noOutputFile
Constructor Detail

GeneratorSettings

public GeneratorSettings()
Method Detail

defaultConfigFileName

protected abstract String defaultConfigFileName()

parseArgs

public boolean parseArgs(String[] args)
                  throws IOException,
                         ClassNotFoundException
Throws:
IOException
ClassNotFoundException

getProperties

public Map<String,String> getProperties()

isNoOutputFile

public boolean isNoOutputFile()

checkValid

protected void checkValid()

loadCatalog

protected void loadCatalog(String catalogFile)
                    throws IOException,
                           ClassNotFoundException
Throws:
IOException
ClassNotFoundException

printUsage

protected void printUsage()

getConfigFile

public String getConfigFile()

getTemplateDir

public String getTemplateDir()

getDestDir

public String getDestDir()

getDbms

public String getDbms()

getTemplates

public List<String> getTemplates()

getCatalog

public CatalogDescription getCatalog()

setConfigFile

public void setConfigFile(String configFile)

setTemplateDir

public void setTemplateDir(String templateDir)

setDestDir

public void setDestDir(String destDir)

setDbms

public void setDbms(String dbms)

setCatalog

public void setCatalog(CatalogDescription catalog)


Copyright © 2008-2012. All Rights Reserved.