ijgen.generator.engine.generators
Class MultipleDefinitionsTemplateGenerator
java.lang.Object
ijgen.generator.engine.TemplateGenerator
ijgen.generator.engine.generators.MultipleDefinitionsTemplateGenerator
- All Implemented Interfaces:
- java.io.Serializable
public class MultipleDefinitionsTemplateGenerator
- extends TemplateGenerator
- See Also:
- Serialized Form
Method Summary |
void |
doGenerate(java.util.Map<java.lang.String,java.io.File> templateFilesCache,
java.util.List<ClassDefinition> classDefnitions)
Implements the parent abstract method. |
protected java.lang.String |
getCustomLine()
Abstract method that forces successors of this class to specify
the custom line which indicates that the artifact is already
customized and should not be generated anymore. |
protected java.lang.String |
getFileFilter()
Abstract method that forces successors of this class to
specify extension of the template files that has to be processed. |
protected java.lang.String |
getGeneratedExtension()
Abstract method that forces successors of this class to specify
the file extension which will be received by the generated artifacts. |
Methods inherited from class ijgen.generator.engine.TemplateGenerator |
generate, getOutputPath, getTemplateFiles, getVelocityTemplate, prepareContext, readFirstFileLine, setClassDefinitions, setCustomLine, setFileFilter, setGeneratedExtension, setGlobalSettings, setOutputPath, setTemplatesCache, writeToFile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultipleDefinitionsTemplateGenerator
public MultipleDefinitionsTemplateGenerator()
doGenerate
public void doGenerate(java.util.Map<java.lang.String,java.io.File> templateFilesCache,
java.util.List<ClassDefinition> classDefnitions)
throws java.lang.Exception
- Implements the parent abstract method.
Goes through all the class definitions and for each class definition process all the templates
that are suitable for this type of generator.
- Specified by:
doGenerate
in class TemplateGenerator
- Parameters:
templateFilesCache
- cache with template names and path to themclassDefinitions
- classDefinitions used by generator
- Throws:
java.lang.Exception
getCustomLine
protected java.lang.String getCustomLine()
- Description copied from class:
TemplateGenerator
- Abstract method that forces successors of this class to specify
the custom line which indicates that the artifact is already
customized and should not be generated anymore.
- Specified by:
getCustomLine
in class TemplateGenerator
- Returns:
- customized line
getFileFilter
protected java.lang.String getFileFilter()
- Description copied from class:
TemplateGenerator
- Abstract method that forces successors of this class to
specify extension of the template files that has to be processed.
- Specified by:
getFileFilter
in class TemplateGenerator
- Returns:
- file extension
getGeneratedExtension
protected java.lang.String getGeneratedExtension()
- Description copied from class:
TemplateGenerator
- Abstract method that forces successors of this class to specify
the file extension which will be received by the generated artifacts.
- Specified by:
getGeneratedExtension
in class TemplateGenerator
- Returns:
- generated extension
Copyright © 2010 Detelin Zlatev. All Rights Reserved.