Class Branch
java.lang.Object
hudson.model.AbstractDescribableImpl<Branch>
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch
- All Implemented Interfaces:
Describable<Branch>
Represents a rule for triggering on a branch of a GerritProject.
- Author:
- Robert Sandell <robert.sandell@sonyericsson.com>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe Descriptor for the Branch. -
Constructor Summary
ConstructorsConstructorDescriptionBranch()Default empty constructor.Branch(CompareType compareType, String pattern) Default DataBound constructor. -
Method Summary
Modifier and TypeMethodDescriptionThe CompareType used.The pattern to match on.booleanisInteresting(String branch) Tells if the given branch is matched by this rule.voidsetCompareType(CompareType compareType) The CompareType used.voidsetPattern(String pattern) The pattern to match on.Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
Branch
public Branch()Default empty constructor. -
Branch
Default DataBound constructor.- Parameters:
compareType- the CompareType to use when comparing with the pattern.pattern- the pattern to match on.
-
-
Method Details
-
getCompareType
The CompareType used.- Returns:
- the CompareType
-
setCompareType
The CompareType used.- Parameters:
compareType- the compareType.
-
getPattern
The pattern to match on.- Returns:
- the pattern
-
setPattern
The pattern to match on.- Parameters:
pattern- the pattern.
-
isInteresting
Tells if the given branch is matched by this rule.- Parameters:
branch- the branch- Returns:
- true if the branch matches.
-