public abstract class BaseMapper extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
BaseMapper()
Default C'tor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected String defaultProperty
protected char separator
public BaseMapper()
public int getCacheSize()
public void setCacheSize(int cacheSize)
cacheSize
- The new CacheSize value.public boolean isUseCache()
public void setUseCache(boolean useCache)
useCache
- 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.Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.