Package org.codehaus.mojo.buildhelper
Class RegexPropertySetting
java.lang.Object
org.codehaus.mojo.buildhelper.RegexPropertySetting
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Whether to fail if no match is found.private String
The property to set.private String
The regex to replace.private String
The replacement.private boolean
Change the case of the value to lower case if set to true.private boolean
Change the case of the value to upper case if set to true.private String
The pre-transformation value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
getRegex()
getValue()
boolean
boolean
boolean
void
setFailIfNoMatch
(boolean failIfNoMatch) void
void
void
setReplacement
(String replacement) void
setToLowerCase
(boolean toLowerCase) void
setToUpperCase
(boolean toUpperCase) void
void
validate()
-
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()
-