public class Branch extends AbstractDescribableImpl<Branch>
Modifier and Type | Class and Description |
---|---|
static class |
Branch.DescriptorImpl
The Descriptor for the Branch.
|
Constructor and Description |
---|
Branch()
Default empty constructor.
|
Branch(CompareType compareType,
String pattern)
Default DataBound constructor.
|
Modifier and Type | Method and Description |
---|---|
CompareType |
getCompareType()
The CompareType used.
|
String |
getPattern()
The pattern to match on.
|
boolean |
isInteresting(String branch)
Tells if the given branch is matched by this rule.
|
void |
setCompareType(CompareType compareType)
The CompareType used.
|
void |
setPattern(String pattern)
The pattern to match on.
|
getDescriptor
public Branch()
@DataBoundConstructor public Branch(CompareType compareType, String pattern)
compareType
- the CompareType to use when comparing with the pattern.pattern
- the pattern to match on.public CompareType getCompareType()
public void setCompareType(CompareType compareType)
compareType
- the compareType.public String getPattern()
public void setPattern(String pattern)
pattern
- the pattern.public boolean isInteresting(String branch)
branch
- the branchCopyright © 2016–2019. All rights reserved.