Package org.honton.chas.maven.readfiles
Class RegexReplacementRule
- java.lang.Object
-
- org.honton.chas.maven.readfiles.RegexReplacementRule
-
public final class RegexReplacementRule extends Object
Instances of this class shall represent a regular expression based replacement rule.
-
-
Constructor Summary
Constructors Constructor Description RegexReplacementRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetPattern(String pattern)Sets the regular expression pattern used by this instance.voidsetReplacement(String replacement)Sets the value to use for all regular expression matches.
-
-
-
Method Detail
-
setReplacement
public void setReplacement(String replacement)
Sets the value to use for all regular expression matches.- Parameters:
replacement- ifnullno "replace all" logic is to be performed
-
setPattern
public void setPattern(String pattern)
Sets the regular expression pattern used by this instance.- Parameters:
pattern- the regular expression which this instance will use- Throws:
NullPointerException- if the specified pattern parameter isnullIllegalArgumentException- if the specified pattern parameter is invalid
-
-