org.cert.cc.jira.atc.config
Class IssueTypeConfiguration

java.lang.Object
  extended by org.cert.cc.jira.atc.config.IssueTypeConfiguration
All Implemented Interfaces:
Comparable<IssueTypeConfiguration>

public final class IssueTypeConfiguration
extends Object
implements Comparable<IssueTypeConfiguration>

IssueTypeConfiguration is a configuration for creating new issues based on an existing JIRA Issue's IssueType.

© 2010 Carnegie Mellon University

Author:
Steve Scholnick

Constructor Summary
IssueTypeConfiguration()
          Constructor
 
Method Summary
 void addIssue(IssueConfiguration config)
          Adds a new IssueConfiguration
 int compareTo(IssueTypeConfiguration other)
          
 boolean equals(Object o)
          
 Set<IssueConfiguration> getIssueConfigurations()
          Returns all of the IssueConfigurations
 String getName()
           
 Set<Trigger> getTriggers()
           
 int hashCode()
          
 boolean isCatchAll()
          Returns if this is a catch all
 boolean matches(IssueType issueType, Trigger trigger)
          Returns if this IssueTypeConfiguration is used for the specified issueType and trigger.
 void setName(String name)
           
 void setTrigger(String trigger)
          Sets all of the triggers
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IssueTypeConfiguration

public IssueTypeConfiguration()
Constructor

Method Detail

matches

public boolean matches(IssueType issueType,
                       Trigger trigger)
Returns if this IssueTypeConfiguration is used for the specified issueType and trigger. A catch-all (name equal to *) will match any name, but not any Trigger.

Parameters:
issueType - IssueType to be matched
trigger - Trigger to be checked
Returns:
If a match occurred?

compareTo

public int compareTo(IssueTypeConfiguration other)

Specified by:
compareTo in interface Comparable<IssueTypeConfiguration>

isCatchAll

public boolean isCatchAll()
Returns if this is a catch all


getIssueConfigurations

public Set<IssueConfiguration> getIssueConfigurations()
Returns all of the IssueConfigurations


addIssue

public void addIssue(IssueConfiguration config)
Adds a new IssueConfiguration


equals

public boolean equals(Object o)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

getName

public String getName()
Returns:
the name

setName

public void setName(String name)
Parameters:
name - the name to set

setTrigger

public void setTrigger(String trigger)
Sets all of the triggers


getTriggers

public Set<Trigger> getTriggers()
Returns:
the trigger

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2012 Carnegie Mellon University