|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tiles.autotag.generate.AbstractTemplateClassGenerator
public abstract class AbstractTemplateClassGenerator
A base template class generator.
Constructor Summary | |
---|---|
AbstractTemplateClassGenerator(org.apache.velocity.app.VelocityEngine velocityEngine)
Constructor. |
Method Summary | |
---|---|
void |
generate(File directory,
String packageName,
TemplateSuite suite,
TemplateClass clazz,
Map<String,String> parameters,
String runtimeClass,
String requestClass)
Generates the code. |
protected abstract String |
getDirectoryName(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 abstract String |
getFilename(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 abstract String |
getTemplatePath(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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractTemplateClassGenerator(org.apache.velocity.app.VelocityEngine velocityEngine)
velocityEngine
- The Velocity engine.Method Detail |
---|
public void generate(File directory, String packageName, TemplateSuite suite, TemplateClass clazz, Map<String,String> parameters, String runtimeClass, String requestClass)
TemplateClassGenerator
generate
in interface TemplateClassGenerator
directory
- The base directory where the code will be put.packageName
- The package name.suite
- The template suite.clazz
- The template class.parameters
- Configuration parameters.runtimeClass
- The RequestBuilder implementation.protected abstract String getTemplatePath(File directory, String packageName, TemplateSuite suite, TemplateClass clazz, Map<String,String> parameters, String runtimeClass, String requestClass)
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.
protected abstract String getFilename(File directory, String packageName, TemplateSuite suite, TemplateClass clazz, Map<String,String> parameters, String runtimeClass, String requestClass)
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.
protected abstract String getDirectoryName(File directory, String packageName, TemplateSuite suite, TemplateClass clazz, Map<String,String> parameters, String runtimeClass, String requestClass)
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |