public class VelocityPropertiesGenerator extends AbstractTemplateSuiteGenerator
Constructor and Description |
---|
VelocityPropertiesGenerator(org.apache.velocity.app.VelocityEngine velocityEngine)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getDirectoryName(String packageName,
TemplateSuite suite,
Map<String,String> parameters)
Calculates and returns the directory where the file will be written..
|
protected String |
getFilename(String packageName,
TemplateSuite suite,
Map<String,String> parameters)
Calculates and returns the filename of the generated file.
|
protected String |
getTemplatePath(String packageName,
TemplateSuite suite,
Map<String,String> parameters)
Calculates and returns the template path.
|
generate
public VelocityPropertiesGenerator(org.apache.velocity.app.VelocityEngine velocityEngine)
velocityEngine
- The Velocity engine.protected String getTemplatePath(String packageName, TemplateSuite suite, Map<String,String> parameters)
AbstractTemplateSuiteGenerator
getTemplatePath
in class AbstractTemplateSuiteGenerator
packageName
- The name of the package.suite
- The template suite.parameters
- The map of parameters.protected String getFilename(String packageName, TemplateSuite suite, Map<String,String> parameters)
AbstractTemplateSuiteGenerator
getFilename
in class AbstractTemplateSuiteGenerator
packageName
- The name of the package.suite
- The template suite.parameters
- The map of parameters.protected String getDirectoryName(String packageName, TemplateSuite suite, Map<String,String> parameters)
AbstractTemplateSuiteGenerator
getDirectoryName
in class AbstractTemplateSuiteGenerator
packageName
- The name of the package.suite
- The template suite.parameters
- The map of parameters.Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.