|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectijgen.generator.engine.Generator
public class Generator
Class responsible for batch execution of set of template generators.
Constructor Summary | |
---|---|
Generator(java.lang.String modelsDirectory)
Creates a generator for the templates contained in the directory that is specified as an argument. |
Method Summary | |
---|---|
void |
addTemplateGenerator(TemplateGenerator templateGenerator)
Adds a template generator instance that has to be processed. |
ModelDefinitionLoaderType |
getMode()
Gets the type of model definitions. |
protected java.lang.String |
getModelsDirectory()
Gets full path of the directory where class definitions stored. |
java.lang.String |
getTemplatesDirectory()
Gets the root directory where where the template files for all generators are stored. |
protected void |
loadTemplateFiles()
Loads all the template files recursively from the templatesDirectory folder |
void |
setMode(ModelDefinitionLoaderType mode)
Sets the type of model definitions. |
protected void |
setModelsDirectory(java.lang.String modelsDirectory)
Sets the directory where class definitions are stored. |
void |
setTemplatesDirectory(java.lang.String templatesDirectory)
Sets the root directory where all the template files are stored. |
void |
start()
Walks through all the defined generators in templateGenerators property and calls their implementations of generate method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Generator(java.lang.String modelsDirectory)
modelsDirectory
- templates directoryMethod Detail |
---|
public void addTemplateGenerator(TemplateGenerator templateGenerator)
templateGenerator
- template generator instance that has to be processedprotected java.lang.String getModelsDirectory()
protected void setModelsDirectory(java.lang.String modelsDirectory)
modelsDirectory
- class definitions directorypublic java.lang.String getTemplatesDirectory()
public void setTemplatesDirectory(java.lang.String templatesDirectory)
templatesDirectory
- templates directorypublic ModelDefinitionLoaderType getMode()
public void setMode(ModelDefinitionLoaderType mode)
mode
- typeprotected final void loadTemplateFiles()
public void start()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |