com.atlassian.jira.appconsistency.integrity.check
Class AbstractAmendment

java.lang.Object
  extended by com.atlassian.jira.appconsistency.integrity.check.AbstractAmendment
All Implemented Interfaces:
Amendment
Direct Known Subclasses:
CheckAmendment, CreateEntityAmendment, DeleteEntityAmendment, DeleteTriggerAmendmentImpl

public abstract class AbstractAmendment
extends Object
implements Amendment


Field Summary
 
Fields inherited from interface com.atlassian.jira.appconsistency.integrity.amendment.Amendment
CORRECTION, ERROR, UNFIXABLE_ERROR
 
Constructor Summary
protected AbstractAmendment(int type, String bugId, String message)
           
 
Method Summary
 boolean equals(Object o)
           
 String getBugId()
           
 String getMessage()
           
protected  int getType()
           
 int hashCode()
           
 boolean isCorrection()
           
 boolean isError()
           
protected  boolean isValidType(int type)
           
 boolean isWarning()
           
protected  void setBugId(String bugId)
           
protected  void setMessage(String message)
           
protected  void setType(int type)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractAmendment

protected AbstractAmendment(int type,
                            String bugId,
                            String message)
Method Detail

isCorrection

public boolean isCorrection()
Specified by:
isCorrection in interface Amendment

isWarning

public boolean isWarning()
Specified by:
isWarning in interface Amendment

isError

public boolean isError()
Specified by:
isError in interface Amendment

getType

protected int getType()

setType

protected void setType(int type)

isValidType

protected boolean isValidType(int type)

getMessage

public String getMessage()
Specified by:
getMessage in interface Amendment

setMessage

protected void setMessage(String message)

getBugId

public String getBugId()
Specified by:
getBugId in interface Amendment

setBugId

protected void setBugId(String bugId)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2013 Atlassian. All Rights Reserved.