Class Hashtag
java.lang.Object
hudson.model.AbstractDescribableImpl<Hashtag>
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Hashtag
- All Implemented Interfaces:
Describable<Hashtag>
Represents a rule for triggering on a hashtag of a GerritProject.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe Descriptor for the hashtag. -
Constructor Summary
ConstructorsConstructorDescriptionHashtag()Default empty constructor.Hashtag(CompareType compareType, String pattern) Default DataBound constructor. -
Method Summary
Modifier and TypeMethodDescriptionThe CompareType used.The pattern to match on.booleanisInteresting(List<String> hashtags) Tells if the given topic are 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
-
Hashtag
public Hashtag()Default empty constructor. -
Hashtag
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 topic are matched by this rule.- Parameters:
hashtags- the hashtags in change.- Returns:
- true if the hashtags match.
-