Package com.tsystems.sbs
Class RegexpPair
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<RegexpPair>
-
- com.tsystems.sbs.RegexpPair
-
- All Implemented Interfaces:
Describable<RegexpPair>
,Serializable
public class RegexpPair extends AbstractDescribableImpl<RegexpPair> implements Serializable
This class represents a Regexp/Replacement pair. It also compiles internally the regexp into a Pattern object to encourage that it is compiled only once to avoid performance issues.- Author:
- ccapdevi
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RegexpPair.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description RegexpPair(String regexp, String replacement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pattern
getCompiledRegexp()
String
getRegexp()
String
getReplacement()
protected Object
readResolve()
void
setRegexp(String regexp)
void
setReplacement(String replacement)
String
toString()
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Method Detail
-
getRegexp
public String getRegexp()
-
setRegexp
@DataBoundSetter public void setRegexp(String regexp)
-
getReplacement
public String getReplacement()
-
setReplacement
@DataBoundSetter public void setReplacement(String replacement)
-
getCompiledRegexp
public Pattern getCompiledRegexp()
-
readResolve
protected Object readResolve()
-
-