| java.lang.Object org.apache.turbine.services.template.mapper.BaseMapper org.apache.turbine.services.template.mapper.BaseTemplateMapper
All known Subclasses: org.apache.turbine.services.template.mapper.DirectTemplateMapper, org.apache.turbine.services.template.mapper.ScreenTemplateMapper, org.apache.turbine.services.template.mapper.LayoutTemplateMapper, org.apache.turbine.services.template.mapper.ScreenDefaultTemplateMapper,
BaseTemplateMapper | abstract public class BaseTemplateMapper extends BaseMapper (Code) | | This is a mapper like the BaseMapper but it returns its
results with the extension of the template names passed or (if no
extension is passed), the default extension.
author: Henning P. Schmiedehausen version: $Id: BaseTemplateMapper.java 534527 2007-05-02 16:10:59Z tv $ |
Method Summary | |
public String | getDefaultName(String template) Returns the default name for the passed Template.
If the template has no extension, the default extension
is added.
If the template is empty, the default template is
returned.
Parameters: template - The template name. | public String | getPrefix() Get the Prefix value. | public void | setPrefix(String prefix) Set the Prefix value. |
prefix | protected String prefix(Code) | | A prefix which is used to separate the various template types (screen, layouts, navigation)
|
BaseTemplateMapper | public BaseTemplateMapper()(Code) | | Default C'tor. If you use this C'tor, you must use
the bean setter to set the various properties needed for
this mapper before first usage.
|
getDefaultName | public String getDefaultName(String template)(Code) | | Returns the default name for the passed Template.
If the template has no extension, the default extension
is added.
If the template is empty, the default template is
returned.
Parameters: template - The template name. the mapped default name for the template. |
getPrefix | public String getPrefix()(Code) | | Get the Prefix value.
the Prefix value. |
setPrefix | public void setPrefix(String prefix)(Code) | | Set the Prefix value.
Parameters: prefix - The new Prefix value. |
|
|