public class BugCategory extends java.lang.Object implements java.lang.Comparable<BugCategory>
Constructor and Description |
---|
BugCategory(java.lang.String category)
Constructor.
|
BugCategory(java.lang.String category,
java.lang.String shortDescription)
Constructor.
|
BugCategory(java.lang.String category,
java.lang.String shortDescription,
java.lang.String abbrev,
java.lang.String detailText)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BugCategory other) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAbbrev()
Get the abbreviation (usually a single capital letter).
|
java.lang.String |
getCategory()
Get the category.
|
java.lang.String |
getDetailText()
Get the detail text describing the category.
|
java.lang.String |
getShortDescription()
Get the short description (usually a word or three)
|
int |
hashCode() |
boolean |
isHidden() |
void |
setAbbrev(java.lang.String abbrev)
Set the abbreviation (typically a single capital letter)
|
void |
setDetailText(java.lang.String detailText)
Set the detail text describing the category.
|
void |
setHidden(boolean hidden) |
void |
setShortDescription(java.lang.String shortDescription)
Set the short description of the category
|
java.lang.String |
toString()
suitable for debugging.
|
public BugCategory(java.lang.String category, java.lang.String shortDescription, java.lang.String abbrev, java.lang.String detailText)
category
- the categoryshortDescription
- short (a word or three) description of the bug speciesabbrev
- the abbreviation (typically a single capital letter)detailText
- full description of the bug category (no HTML markup, may be
null)public BugCategory(java.lang.String category, java.lang.String shortDescription)
category
- the categoryshortDescription
- short (a word or three) description of the bug speciespublic BugCategory(java.lang.String category)
category
- the categorypublic java.lang.String getCategory()
public java.lang.String getShortDescription()
public java.lang.String getAbbrev()
public java.lang.String getDetailText()
public void setShortDescription(java.lang.String shortDescription)
public void setAbbrev(java.lang.String abbrev)
public void setDetailText(java.lang.String detailText)
public int compareTo(BugCategory other)
compareTo
in interface java.lang.Comparable<BugCategory>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isHidden()
public void setHidden(boolean hidden)
hidden
- The hidden to set.FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.