|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.turbine.services.template.mapper.BaseMapper
public abstract class BaseMapper
A base class for the various mappers which contains common code.
| Field Summary | |
|---|---|
protected 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 String |
doMapping(String template)
The actual mapping implementation class. |
int |
getCacheSize()
Get the CacheSize value. |
String |
getDefaultName(String template)
Returns the default name for the passed Template. |
String |
getDefaultProperty()
Get the DefaultProperty value. |
String |
getMappedName(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(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 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 String getDefaultProperty()
public void setDefaultProperty(String defaultProperty)
defaultProperty - The new DefaultProperty value.public char getSeparator()
public void setSeparator(char separator)
separator - The new Separator value.public void init()
public String getDefaultName(String template)
template - The template name.
public String getMappedName(String template)
template - The template name.
public abstract String doMapping(String template)
template - The template name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||