Class RegexPropertySetting
java.lang.Object
org.codehaus.mojo.buildhelper.RegexPropertySetting
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanWhether to fail if no match is found.private StringThe property to set.private StringThe regex to replace.private StringThe replacement.private booleanChange the case of the value to lower case if set to true.private booleanChange the case of the value to upper case if set to true.private StringThe pre-transformation value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()getRegex()getValue()booleanbooleanbooleanvoidsetFailIfNoMatch(boolean failIfNoMatch) voidvoidvoidsetReplacement(String replacement) voidsetToLowerCase(boolean toLowerCase) voidsetToUpperCase(boolean toUpperCase) voidvoidvalidate()
-
Field Details
-
name
The property to set. -
value
The pre-transformation value. -
regex
The regex to replace. -
replacement
The replacement. -
failIfNoMatch
@Parameter(defaultValue="true") private boolean failIfNoMatchWhether to fail if no match is found. -
toUpperCase
@Parameter(defaultValue="false") private boolean toUpperCaseChange the case of the value to upper case if set to true. -
toLowerCase
@Parameter(defaultValue="false") private boolean toLowerCaseChange the case of the value to lower case if set to true.
-
-
Constructor Details
-
RegexPropertySetting
public RegexPropertySetting()
-
-
Method Details
-
getName
-
setName
-
getValue
-
setValue
-
getRegex
-
setRegex
-
getReplacement
-
setReplacement
-
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()
-