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