org.apache.tiles.autotag.jsp
Class TagClassGenerator

Package class diagram package TagClassGenerator
java.lang.Object
  extended by org.apache.tiles.autotag.generate.AbstractTemplateClassGenerator
      extended by org.apache.tiles.autotag.jsp.TagClassGenerator
All Implemented Interfaces:
TemplateClassGenerator

public class TagClassGenerator
extends AbstractTemplateClassGenerator

Generates a tag class using a template class.

Version:
$Rev: 1349964 $ $Date: 2012-06-13 13:18:51 -0400 (Wed, 13 Jun 2012) $

Constructor Summary
TagClassGenerator(org.apache.velocity.app.VelocityEngine velocityEngine)
          Constructor.
 
Method Summary
protected  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  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  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 org.apache.tiles.autotag.generate.AbstractTemplateClassGenerator
generate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagClassGenerator

public TagClassGenerator(org.apache.velocity.app.VelocityEngine velocityEngine)
Constructor.

Parameters:
velocityEngine - The Velocity engine.
Method Detail

getDirectoryName

protected String getDirectoryName(File directory,
                                  String packageName,
                                  TemplateSuite suite,
                                  TemplateClass clazz,
                                  Map<String,String> parameters,
                                  String runtimeClass,
                                  String requestClass)
Description copied from class: AbstractTemplateClassGenerator
Calculates and returns the directory where the file will be written..

Specified by:
getDirectoryName in class AbstractTemplateClassGenerator
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: AbstractTemplateClassGenerator
Calculates and returns the filename of the generated file.

Specified by:
getFilename in class AbstractTemplateClassGenerator
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: AbstractTemplateClassGenerator
Calculates and returns the template path.

Specified by:
getTemplatePath in class AbstractTemplateClassGenerator
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.


Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.