|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.turbine.services.template.mapper.BaseMapper
public abstract class BaseMapper
A base class for the various mappers which contains common code.
Field Summary | |
---|---|
protected java.lang.String |
defaultProperty
The name of the default property to pull from the Template Engine Service if the default is requested |
protected char |
separator
The separator used to concatenate the result parts for this mapper. |
Constructor Summary | |
---|---|
BaseMapper()
Default C'tor. |
Method Summary | |
---|---|
abstract java.lang.String |
doMapping(java.lang.String template)
The actual mapping implementation class. |
int |
getCacheSize()
Get the CacheSize value. |
java.lang.String |
getDefaultName(java.lang.String template)
Returns the default name for the passed Template. |
java.lang.String |
getDefaultProperty()
Get the DefaultProperty value. |
java.lang.String |
getMappedName(java.lang.String template)
Return the first match name for the given template name. |
char |
getSeparator()
Get the Separator value. |
void |
init()
Initializes the Mapper. |
boolean |
isUseCache()
Get the UseCache value. |
void |
setCacheSize(int cacheSize)
Set the CacheSize value. |
void |
setDefaultProperty(java.lang.String defaultProperty)
Set the DefaultProperty value. |
void |
setSeparator(char separator)
Set the Separator value. |
void |
setUseCache(boolean useCache)
Set the UseCache value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String defaultProperty
protected char separator
Constructor Detail |
---|
public BaseMapper()
Method Detail |
---|
public int getCacheSize()
public void setCacheSize(int cacheSize)
cacheSize
- The new CacheSize value.public boolean isUseCache()
public void setUseCache(boolean useCache)
newUseCache
- The new UseCache value.public java.lang.String getDefaultProperty()
public void setDefaultProperty(java.lang.String defaultProperty)
defaultProperty
- The new DefaultProperty value.public char getSeparator()
public void setSeparator(char separator)
separator
- The new Separator value.public void init()
public java.lang.String getDefaultName(java.lang.String template)
template
- The template name.
public java.lang.String getMappedName(java.lang.String template)
template
- The template name.
public abstract java.lang.String doMapping(java.lang.String template)
template
- The template name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |