Class Topic
java.lang.Object
hudson.model.AbstractDescribableImpl<Topic>
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Topic
- All Implemented Interfaces:
Describable<Topic>
Represents a rule for triggering on a topic of a GerritProject.
- Author:
- rinrinne <rinrin.ne@gmail.com>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTopic()Default empty constructor.Topic(CompareType compareType, String pattern) Default DataBound constructor. -
Method Summary
Modifier and TypeMethodDescriptionThe CompareType used.The pattern to match on.booleanisInteresting(String topic) 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
-
Topic
public Topic()Default empty constructor. -
Topic
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:
topic- the topic in change.- Returns:
- true if the topic match.
-