Klasse BaseMapper
java.lang.Object
org.apache.turbine.services.template.mapper.BaseMapper
- Bekannte direkte Unterklassen:
BaseTemplateMapper
,ClassMapper
,DirectMapper
A base class for the various mappers which contains common
code.
- Version:
- $Id$
- Autor:
- Henning P. Schmiedehausen
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected String
The name of the default property to pull from the Template Engine Service if the default is requestedprotected char
The separator used to concatenate the result parts for this mapper. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract String
The actual mapping implementation class.int
Get the CacheSize value.getDefaultName
(String template) Returns the default name for the passed Template.Get the DefaultProperty value.getMappedName
(String template) Return the first match name for the given template name.char
Get the Separator value.void
init()
Initializes the Mapper.boolean
Get the UseCache value.void
setCacheSize
(int cacheSize) Set the CacheSize value.void
setDefaultProperty
(String defaultProperty) Set the DefaultProperty value.void
setSeparator
(char separator) Set the Separator value.void
setUseCache
(boolean useCache) Set the UseCache value.
-
Felddetails
-
defaultProperty
The name of the default property to pull from the Template Engine Service if the default is requested -
separator
The separator used to concatenate the result parts for this mapper.
-
-
Konstruktordetails
-
BaseMapper
public BaseMapper()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.
-
-
Methodendetails
-
getCacheSize
Get the CacheSize value.- Gibt zurück:
- the CacheSize value.
-
setCacheSize
Set the CacheSize value.- Parameter:
cacheSize
- The new CacheSize value.
-
isUseCache
Get the UseCache value.- Gibt zurück:
- the UseCache value.
-
setUseCache
Set the UseCache value.- Parameter:
useCache
- The new UseCache value.
-
getDefaultProperty
Get the DefaultProperty value.- Gibt zurück:
- the DefaultProperty value.
-
setDefaultProperty
Set the DefaultProperty value.- Parameter:
defaultProperty
- The new DefaultProperty value.
-
getSeparator
Get the Separator value.- Gibt zurück:
- the Separator value.
-
setSeparator
Set the Separator value.- Parameter:
separator
- The new Separator value.
-
init
Initializes the Mapper. Must be called before the mapper might be used. -
getDefaultName
Returns the default name for the passed Template. If the passed template has no extension, the default extension is assumed. If the template is empty, the default template is returned.- Parameter:
template
- The template name.- Gibt zurück:
- the mapped default name for the template.
-
getMappedName
Return the first match name for the given template name.- Parameter:
template
- The template name.- Gibt zurück:
- The first matching class or template name.
-
doMapping
The actual mapping implementation class. It is guaranteed that never an empty or null template name is passed to it. This might return null.- Parameter:
template
- The template name.- Gibt zurück:
- The mapped class or template name.
-