public class BugDesignation extends Object implements XMLWriteable, Serializable, Comparable<BugDesignation>
| Modifier and Type | Field and Description |
|---|---|
static String |
UNCLASSIFIED
The default key for the user designation.
|
| Constructor and Description |
|---|
BugDesignation() |
BugDesignation(BugDesignation that) |
BugDesignation(String designation,
long timestamp,
String annotationText,
String user) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanDirty() |
int |
compareTo(BugDesignation o) |
boolean |
equals(Object o) |
String |
getAnnotationText() |
String |
getDesignationKey()
return the user designation E.g., "MOSTLY_HARMLESS", "CRITICAL",
"NOT_A_BUG", etc.
|
String |
getNonnullAnnotationText() |
long |
getTimestamp() |
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(String s) |
void |
setDesignationKey(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(String u) |
String |
toString() |
void |
writeXML(XMLOutput xmlOutput)
Write this object to given XMLOutput.
|
public static final String UNCLASSIFIED
public BugDesignation()
public BugDesignation(String designation, long timestamp, String annotationText, String user)
designation - timestamp - annotationText - user - public BugDesignation(BugDesignation that)
public boolean isDirty()
public void cleanDirty()
public void setDirty(boolean dirty)
@Nonnull public String getDesignationKey()
I18N.getUserDesignation(String key)public boolean hasDesignationKey()
public void setDesignationKey(String designationKey)
I18N.getUserDesignationKeys()@CheckForNull public String getUser()
public void setUser(String u)
public long getTimestamp()
public void setTimestamp(long ts)
@CheckForNull public String getAnnotationText()
public boolean hasAnnotationText()
public void setAnnotationText(String s)
public void writeXML(XMLOutput xmlOutput) throws IOException
XMLWriteablewriteXML in interface XMLWriteablexmlOutput - the XMLOutput for the documentIOExceptionpublic void merge(@CheckForNull BugDesignation other)
public int compareTo(BugDesignation o)
compareTo in interface Comparable<BugDesignation>Copyright © 2003–2015. All rights reserved.