public class BugDesignation extends java.lang.Object implements XMLWriteable, java.io.Serializable, java.lang.Comparable<BugDesignation>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UNCLASSIFIED
The default key for the user designation.
|
Constructor and Description |
---|
BugDesignation() |
BugDesignation(BugDesignation that) |
BugDesignation(java.lang.String designation,
long timestamp,
java.lang.String annotationText,
java.lang.String user) |
Modifier and Type | Method and Description |
---|---|
void |
cleanDirty() |
int |
compareTo(BugDesignation o) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAnnotationText() |
java.lang.String |
getDesignationKey()
return the user designation E.g., "MOSTLY_HARMLESS", "CRITICAL",
"NOT_A_BUG", etc.
|
java.lang.String |
getNonnullAnnotationText() |
long |
getTimestamp() |
java.lang.String |
getUser() |
boolean |
hasAnnotationText() |
boolean |
hasDesignationKey() |
int |
hashCode() |
boolean |
isDirty() |
void |
merge(BugDesignation other)
replace unset fields of this user designation with values set in the
other
|
void |
setAnnotationText(java.lang.String s) |
void |
setDesignationKey(java.lang.String designationKey)
set the user designation E.g., "MOSTLY_HARMLESS", "CRITICAL",
"NOT_A_BUG", etc.
|
void |
setDirty(boolean dirty) |
void |
setTimestamp(long ts) |
void |
setUser(java.lang.String u) |
java.lang.String |
toString() |
void |
writeXML(XMLOutput xmlOutput)
Write this object to given XMLOutput.
|
public static final java.lang.String UNCLASSIFIED
public BugDesignation()
public BugDesignation(java.lang.String designation, long timestamp, java.lang.String annotationText, java.lang.String user)
designation
- timestamp
- annotationText
- user
- public BugDesignation(BugDesignation that)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isDirty()
public void cleanDirty()
public void setDirty(boolean dirty)
@Nonnull public java.lang.String getDesignationKey()
I18N.getUserDesignation(String key)
public boolean hasDesignationKey()
public void setDesignationKey(java.lang.String designationKey)
I18N.getUserDesignationKeys()
@CheckForNull public java.lang.String getUser()
public void setUser(java.lang.String u)
public long getTimestamp()
public void setTimestamp(long ts)
@CheckForNull public java.lang.String getAnnotationText()
public boolean hasAnnotationText()
@Nonnull public java.lang.String getNonnullAnnotationText()
public void setAnnotationText(java.lang.String s)
public void writeXML(XMLOutput xmlOutput) throws java.io.IOException
XMLWriteable
writeXML
in interface XMLWriteable
xmlOutput
- the XMLOutput for the documentjava.io.IOException
public void merge(@CheckForNull BugDesignation other)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(BugDesignation o)
compareTo
in interface java.lang.Comparable<BugDesignation>
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.