Class VelocityPropertiesGenerator
java.lang.Object
org.apache.tiles.autotag.generate.AbstractTemplateSuiteGenerator
org.apache.tiles.autotag.velocity.VelocityPropertiesGenerator
- All Implemented Interfaces:
- TemplateSuiteGenerator
Generates a Velocity properties containing the list of generated user directives for future use.
- Version:
- $Rev: 1045345 $ $Date: 2010-12-13 14:58:23 -0500 (Mon, 13 Dec 2010) $
- 
Constructor SummaryConstructorsConstructorDescriptionVelocityPropertiesGenerator(org.apache.velocity.app.VelocityEngine velocityEngine) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringgetDirectoryName(File directory, String packageName, TemplateSuite suite, Map<String, String> parameters) Calculates and returns the directory where the file will be written..protected StringgetFilename(File directory, String packageName, TemplateSuite suite, Map<String, String> parameters) Calculates and returns the filename of the generated file.protected StringgetTemplatePath(File directory, String packageName, TemplateSuite suite, Map<String, String> parameters) Calculates and returns the template path.Methods inherited from class org.apache.tiles.autotag.generate.AbstractTemplateSuiteGeneratorgenerate
- 
Constructor Details- 
VelocityPropertiesGeneratorpublic VelocityPropertiesGenerator(org.apache.velocity.app.VelocityEngine velocityEngine) Constructor.- Parameters:
- velocityEngine- The Velocity engine.
 
 
- 
- 
Method Details- 
getTemplatePathprotected String getTemplatePath(File directory, String packageName, TemplateSuite suite, Map<String, String> parameters) Description copied from class:AbstractTemplateSuiteGeneratorCalculates and returns the template path.- Specified by:
- getTemplatePathin class- AbstractTemplateSuiteGenerator
- Parameters:
- directory- The directory where the file will be written.
- packageName- The name of the package.
- suite- The template suite.
- parameters- The map of parameters.
- Returns:
- The template path.
 
- 
getFilenameprotected String getFilename(File directory, String packageName, TemplateSuite suite, Map<String, String> parameters) Description copied from class:AbstractTemplateSuiteGeneratorCalculates and returns the filename of the generated file.- Specified by:
- getFilenamein class- AbstractTemplateSuiteGenerator
- Parameters:
- directory- The directory where the file will be written.
- packageName- The name of the package.
- suite- The template suite.
- parameters- The map of parameters.
- Returns:
- The template path.
 
- 
getDirectoryNameprotected String getDirectoryName(File directory, String packageName, TemplateSuite suite, Map<String, String> parameters) Description copied from class:AbstractTemplateSuiteGeneratorCalculates and returns the directory where the file will be written..- Specified by:
- getDirectoryNamein class- AbstractTemplateSuiteGenerator
- Parameters:
- directory- The directory where the file will be written.
- packageName- The name of the package.
- suite- The template suite.
- parameters- The map of parameters.
- Returns:
- The template path.
 
 
-