org.cert.cc.jira.email.handler
Class CustomFieldDescription

java.lang.Object
  extended by org.cert.cc.jira.email.handler.CustomFieldDescription

public final class CustomFieldDescription
extends Object

CustomFieldDescription holds the information for populating a CustomField with either static data from the Application.properties or via regex extraction from a part of a incoming Message.

CustomFieldDescription is immutable.

© 2010 Carnegie Mellon University

Author:
Steve Scholnick

Constructor Summary
CustomFieldDescription(String name, String value, String input)
          Constructor
 
Method Summary
 String getInput()
           
 String getName()
           
 String getValue()
           
 boolean isBodyBased()
          Returns if the regex input data comes from the Message's body
 boolean isRegExBased()
          Returns if this description uses a regular expression
 boolean isSubjectBased()
          Returns if the regex input data comes from the Message's subject
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomFieldDescription

public CustomFieldDescription(String name,
                              String value,
                              String input)
Constructor

Parameters:
name - CustomField name
value - Static value or regex
input - If not null, the regex input data field
Method Detail

isRegExBased

public boolean isRegExBased()
Returns if this description uses a regular expression


isSubjectBased

public boolean isSubjectBased()
Returns if the regex input data comes from the Message's subject


isBodyBased

public boolean isBodyBased()
Returns if the regex input data comes from the Message's body


getName

public String getName()
Returns:
CustomField name

getValue

public String getValue()
Returns:
Static value or regex

getInput

public String getInput()
Returns:
Null or the regex input data field

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2012 Carnegie Mellon University