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

java.lang.Object
  extended by org.cert.cc.jira.atc.config.FieldConfiguration

public final class FieldConfiguration
extends Object

FieldConfiguration holds the configuration for single pattern matchable field.

© 2010 Carnegie Mellon University

Author:
Steve Scholnick

Field Summary
static String INHERIT
          inherit parent's attributes
 
Constructor Summary
FieldConfiguration()
           
 
Method Summary
 boolean containsSource()
          Returns if this field configuration contains a source value
 boolean equals(Object o)
          
 String getDestination()
           
 String getPattern()
           
 String getSource()
          Returns the source.
 String getTemplate()
           
 int hashCode()
          
 boolean isInherit()
          Returns if this configuration indicates a strict inheritance relationship only
 boolean isStandard()
           
 boolean isStaticTextOnly()
          Returns if this field configuration only contains static text
 void setDestination(String destination)
           
 void setPattern(String pattern)
           
 void setSource(String source)
           
 void setStandard(boolean standard)
           
 void setTemplate(String template)
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INHERIT

public static final String INHERIT
inherit parent's attributes

See Also:
Constant Field Values
Constructor Detail

FieldConfiguration

public FieldConfiguration()
Method Detail

isInherit

public boolean isInherit()
Returns if this configuration indicates a strict inheritance relationship only


isStaticTextOnly

public boolean isStaticTextOnly()
Returns if this field configuration only contains static text


equals

public boolean equals(Object o)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

getPattern

public String getPattern()
Returns:
the pattern

setPattern

public void setPattern(String pattern)
Parameters:
pattern - the pattern to set

getSource

public String getSource()
Returns the source. If the source is null, the destination is returned. This method should never return null and always return the correct field to be queried on the source issue.

Returns:
the source

containsSource

public boolean containsSource()
Returns if this field configuration contains a source value


setSource

public void setSource(String source)
Parameters:
source - the source to set

getTemplate

public String getTemplate()
Returns:
the template

setTemplate

public void setTemplate(String template)
Parameters:
template - the template to set

setDestination

public void setDestination(String destination)
Parameters:
destination - the destination to set

getDestination

public String getDestination()
Returns:
the destination

setStandard

public void setStandard(boolean standard)
Parameters:
standard - the standard to set

isStandard

public boolean isStandard()
Returns:
the standard

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2012 Carnegie Mellon University