Package edu.umd.cs.findbugs
Class BugCategory
java.lang.Object
edu.umd.cs.findbugs.BugCategory
- All Implemented Interfaces:
Comparable<BugCategory>
A BugCategory object collects all of the metadata for a category of bugs.
BugCategories derive from the BugCategory elements in messages*.xml files.
-
Constructor Summary
ConstructorsConstructorDescriptionBugCategory
(String category) Constructor.BugCategory
(String category, String shortDescription) Constructor.BugCategory
(String category, String shortDescription, String abbrev, String detailText) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(BugCategory other) boolean
Get the abbreviation (usually a single capital letter).Get the category.Get the detail text describing the category.Get the short description (usually a word or three)int
hashCode()
boolean
isHidden()
void
Set the abbreviation (typically a single capital letter)void
setDetailText
(String detailText) Set the detail text describing the category.void
setHidden
(boolean hidden) void
setShortDescription
(String shortDescription) Set the short description of the categorytoString()
suitable for debugging.
-
Constructor Details
-
BugCategory
Constructor.- Parameters:
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)
-
BugCategory
Constructor.- Parameters:
category
- the categoryshortDescription
- short (a word or three) description of the bug species
-
BugCategory
Constructor.- Parameters:
category
- the category
-
-
Method Details
-
getCategory
Get the category. -
getShortDescription
Get the short description (usually a word or three) -
getAbbrev
Get the abbreviation (usually a single capital letter). May be null, but shouldn't be if the XML is correct. -
getDetailText
Get the detail text describing the category. note: no HTML markup allowed, may be null -
setShortDescription
Set the short description of the category -
setAbbrev
Set the abbreviation (typically a single capital letter) -
setDetailText
Set the detail text describing the category. note: no HTML markup allowed, may be null -
compareTo
- Specified by:
compareTo
in interfaceComparable<BugCategory>
-
hashCode
public int hashCode() -
equals
-
toString
suitable for debugging. will be ugly if detailText has multiple lines -
isHidden
public boolean isHidden()- Returns:
- Returns the hidden.
-
setHidden
public void setHidden(boolean hidden) - Parameters:
hidden
- The hidden to set.
-