com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data
Class Topic

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<Topic>
      extended by com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Topic
All Implemented Interfaces:
hudson.model.Describable<Topic>

public class Topic
extends hudson.model.AbstractDescribableImpl<Topic>

Represents a rule for triggering on a topic of a GerritProject.

Author:
rinrinne <rinrin.ne@gmail.com>

Nested Class Summary
static class Topic.DescriptorImpl
          The Descriptor for the Topic.
 
Constructor Summary
Topic()
          Default empty constructor.
Topic(CompareType compareType, String pattern)
          Default DataBound constructor.
 
Method Summary
 CompareType getCompareType()
          The CompareType used.
 String getPattern()
          The pattern to match on.
 boolean isInteresting(String topic)
          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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Topic

public Topic()
Default empty constructor.


Topic

@DataBoundConstructor
public Topic(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.

isInteresting

public boolean isInteresting(String topic)
Tells if the given topic are matched by this rule.

Parameters:
topic - the topic in change.
Returns:
true if the topic match.


Copyright © 2004-2013. All Rights Reserved.