Package org.codehaus.mojo.buildhelper
Class RegexPropertySetting
- java.lang.Object
-
- org.codehaus.mojo.buildhelper.RegexPropertySetting
-
public class RegexPropertySetting extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private booleanfailIfNoMatchWhether to fail if no match is found.private java.lang.StringnameThe property to set.private java.lang.StringregexThe regex to replace.private java.lang.StringreplacementThe replacement.private java.lang.StringvalueThe pre-transformation value.
-
Constructor Summary
Constructors Constructor Description RegexPropertySetting()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()java.lang.StringgetRegex()java.lang.StringgetReplacement()java.lang.StringgetValue()booleanisFailIfNoMatch()voidsetFailIfNoMatch(boolean failIfNoMatch)voidsetName(java.lang.String name)voidsetRegex(java.lang.String regex)voidsetReplacement(java.lang.String replacement)voidsetValue(java.lang.String value)voidvalidate()
-
-
-
Field Detail
-
name
@Parameter(required=true) private java.lang.String name
The property to set.
-
value
@Parameter(required=true) private java.lang.String value
The pre-transformation value.
-
regex
@Parameter(required=true) private java.lang.String regex
The regex to replace.
-
replacement
@Parameter(defaultValue="") private java.lang.String replacement
The replacement.
-
failIfNoMatch
@Parameter(defaultValue="true") private boolean failIfNoMatch
Whether to fail if no match is found.
-
-
Method Detail
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getValue
public java.lang.String getValue()
-
setValue
public void setValue(java.lang.String value)
-
getRegex
public java.lang.String getRegex()
-
setRegex
public void setRegex(java.lang.String regex)
-
getReplacement
public java.lang.String getReplacement()
-
setReplacement
public void setReplacement(java.lang.String replacement)
-
isFailIfNoMatch
public boolean isFailIfNoMatch()
-
setFailIfNoMatch
public void setFailIfNoMatch(boolean failIfNoMatch)
-
validate
public void validate()
-
-