Class Hashtag
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<Hashtag>
-
- com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Hashtag
-
- All Implemented Interfaces:
Describable<Hashtag>
public class Hashtag extends AbstractDescribableImpl<Hashtag>
Represents a rule for triggering on a hashtag of a GerritProject.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Hashtag.DescriptorImpl
The Descriptor for the hashtag.
-
Constructor Summary
Constructors Constructor Description Hashtag()
Default empty constructor.Hashtag(CompareType compareType, String pattern)
Default DataBound constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompareType
getCompareType()
The CompareType used.String
getPattern()
The pattern to match on.boolean
isInteresting(List<String> hashtags)
Tells if the given topic are matched by this rule.void
setCompareType(CompareType compareType)
The CompareType used.void
setPattern(String pattern)
The pattern to match on.-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
Hashtag
public Hashtag()
Default empty constructor.
-
Hashtag
@DataBoundConstructor public Hashtag(CompareType compareType, String pattern)
Default DataBound constructor.- Parameters:
compareType
- the CompareType to use when comparing with the pattern.pattern
- the pattern to match on.
-
-
Method Detail
-
getCompareType
public CompareType getCompareType()
The CompareType used.- Returns:
- the CompareType
-
setCompareType
public void setCompareType(CompareType compareType)
The CompareType used.- Parameters:
compareType
- the compareType.
-
getPattern
public String getPattern()
The pattern to match on.- Returns:
- the pattern
-
setPattern
public void setPattern(String pattern)
The pattern to match on.- Parameters:
pattern
- the pattern.
-
-