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 boolean
failIfNoMatch
Whether to fail if no match is found.private java.lang.String
name
The property to set.private java.lang.String
regex
The regex to replace.private java.lang.String
replacement
The replacement.private boolean
toLowerCase
Change the case of the value to lower case if set to true.private boolean
toUpperCase
Change the case of the value to upper case if set to true.private java.lang.String
value
The pre-transformation value.
-
Constructor Summary
Constructors Constructor Description RegexPropertySetting()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
java.lang.String
getRegex()
java.lang.String
getReplacement()
java.lang.String
getValue()
boolean
isFailIfNoMatch()
boolean
isToLowerCase()
boolean
isToUpperCase()
void
setFailIfNoMatch(boolean failIfNoMatch)
void
setName(java.lang.String name)
void
setRegex(java.lang.String regex)
void
setReplacement(java.lang.String replacement)
void
setToLowerCase(boolean toLowerCase)
void
setToUpperCase(boolean toUpperCase)
void
setValue(java.lang.String value)
void
validate()
-
-
-
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()
-
-