|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.components.io.filemappers.AbstractFileMapper
org.codehaus.plexus.components.io.filemappers.RegExpFileMapper
public class RegExpFileMapper
Implementation of a file mapper, which uses regular expressions.
Field Summary | |
---|---|
static String |
ROLE_HINT
The regexp mappers role-hint: "regexp". |
Fields inherited from interface org.codehaus.plexus.components.io.filemappers.FileMapper |
---|
DEFAULT_ROLE_HINT, ROLE |
Constructor Summary | |
---|---|
RegExpFileMapper()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ROLE_HINT
Constructor Detail |
---|
public RegExpFileMapper()
Method Detail |
---|
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)
AbstractFileMapper
getMappedFileName
in interface FileMapper
getMappedFileName
in class AbstractFileMapper
pName
- The source name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |