Package org.apache.tiles.autotag.jsp
Class TagClassGenerator
java.lang.Object
org.apache.tiles.autotag.generate.AbstractTemplateClassGenerator
org.apache.tiles.autotag.jsp.TagClassGenerator
- All Implemented Interfaces:
TemplateClassGenerator
Generates a tag class using a template class.
-
Constructor Summary
ConstructorsConstructorDescriptionTagClassGenerator(org.apache.velocity.app.VelocityEngine velocityEngine) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetDirectoryName(File directory, String packageName, TemplateSuite suite, TemplateClass clazz, Map<String, String> parameters, String runtimeClass, String requestClass) Calculates and returns the directory where the file will be written..protected StringgetFilename(File directory, String packageName, TemplateSuite suite, TemplateClass clazz, Map<String, String> parameters, String runtimeClass, String requestClass) Calculates and returns the filename of the generated file.protected StringgetTemplatePath(File directory, String packageName, TemplateSuite suite, TemplateClass clazz, Map<String, String> parameters, String runtimeClass, String requestClass) Calculates and returns the template path.Methods inherited from class org.apache.tiles.autotag.generate.AbstractTemplateClassGenerator
generate
-
Constructor Details
-
TagClassGenerator
public TagClassGenerator(org.apache.velocity.app.VelocityEngine velocityEngine) Constructor.- Parameters:
velocityEngine- The Velocity engine.
-
-
Method Details
-
getDirectoryName
protected String getDirectoryName(File directory, String packageName, TemplateSuite suite, TemplateClass clazz, Map<String, String> parameters, String runtimeClass, String requestClass) Description copied from class:AbstractTemplateClassGeneratorCalculates and returns the directory where the file will be written..- Specified by:
getDirectoryNamein classAbstractTemplateClassGenerator- Parameters:
directory- The directory where the file will be written.packageName- The name of the package.suite- The template suite.clazz- The template class.parameters- The map of parameters.- Returns:
- The template path.
-
getFilename
protected String getFilename(File directory, String packageName, TemplateSuite suite, TemplateClass clazz, Map<String, String> parameters, String runtimeClass, String requestClass) Description copied from class:AbstractTemplateClassGeneratorCalculates and returns the filename of the generated file.- Specified by:
getFilenamein classAbstractTemplateClassGenerator- Parameters:
directory- The directory where the file will be written.packageName- The name of the package.suite- The template suite.clazz- The template class.parameters- The map of parameters.- Returns:
- The template path.
-
getTemplatePath
protected String getTemplatePath(File directory, String packageName, TemplateSuite suite, TemplateClass clazz, Map<String, String> parameters, String runtimeClass, String requestClass) Description copied from class:AbstractTemplateClassGeneratorCalculates and returns the template path.- Specified by:
getTemplatePathin classAbstractTemplateClassGenerator- Parameters:
directory- The directory where the file will be written.packageName- The name of the package.suite- The template suite.clazz- The template class.parameters- The map of parameters.- Returns:
- The template path.
-