public class RegExpFileMapper extends AbstractFileMapper
| Modifier and Type | Field and Description |
|---|---|
static String |
ROLE_HINT
The regexp mappers role-hint: "regexp".
|
DEFAULT_ROLE_HINT, ROLE| Constructor and Description |
|---|
RegExpFileMapper() |
| Modifier and Type | Method and Description |
|---|---|
String |
getMappedFileName(String pName)
Checks the input and returns it without modifications.
|
String |
getPattern()
Returns the regular expression pattern.
|
boolean |
getReplaceAll()
Returns, whether to replace the first occurrency of the pattern
(default), or all.
|
String |
getReplacement()
Returns the replacement string.
|
void |
setPattern(String pPattern)
Sets the regular expression pattern.
|
void |
setReplaceAll(boolean pReplaceAll)
Sets, whether to replace the first occurrency of the pattern
(default), or all.
|
void |
setReplacement(String pReplacement)
Sets the replacement string.
|
public static final String ROLE_HINT
public void setPattern(String pPattern)
public String getPattern()
public void setReplacement(String pReplacement)
public String getReplacement()
public boolean getReplaceAll()
public void setReplaceAll(boolean pReplaceAll)
public String getMappedFileName(String pName)
AbstractFileMappergetMappedFileName in interface FileMappergetMappedFileName in class AbstractFileMapperpName - The source name.Copyright © 2001-2014 Codehaus. All Rights Reserved.