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 booleantoLowerCaseChange the case of the value to lower case if set to true.private booleantoUpperCaseChange the case of the value to upper case if set to true.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()booleanisToLowerCase()booleanisToUpperCase()voidsetFailIfNoMatch(boolean failIfNoMatch)voidsetName(java.lang.String name)voidsetRegex(java.lang.String regex)voidsetReplacement(java.lang.String replacement)voidsetToLowerCase(boolean toLowerCase)voidsetToUpperCase(boolean toUpperCase)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.
-
toUpperCase
@Parameter(defaultValue="false") private boolean toUpperCase
Change the case of the value to upper case if set to true.
-
toLowerCase
@Parameter(defaultValue="false") private boolean toLowerCase
Change the case of the value to lower case if set to true.
-
-
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)
-
isToUpperCase
public boolean isToUpperCase()
-
setToUpperCase
public void setToUpperCase(boolean toUpperCase)
-
isToLowerCase
public boolean isToLowerCase()
-
setToLowerCase
public void setToLowerCase(boolean toLowerCase)
-
validate
public void validate()
-
-