public class BugPattern extends java.lang.Object implements java.lang.Comparable<BugPattern>
BugInstance
Constructor and Description |
---|
BugPattern(java.lang.String type,
java.lang.String abbrev,
java.lang.String category,
boolean experimental,
java.lang.String shortDescription,
java.lang.String longDescription,
java.lang.String detailText,
java.lang.String bugsUrl,
int cweid)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
adjustPriority(int change) |
int |
compareTo(BugPattern other) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAbbrev()
Get the BugKind
|
BugCode |
getBugCode()
Get the BugCode
|
java.lang.String |
getCategory()
Get the BugCategory
|
java.lang.String |
getCategoryAbbrev() |
int |
getCWEid() |
java.lang.String |
getDetailHTML()
Get the detail text as a complete HTML document.
|
java.lang.String |
getDetailHTML(java.lang.String detailText) |
java.lang.String |
getDetailPlainText()
Get the Plain text describing the bug.
|
java.lang.String |
getDetailText()
Get the HTML detail text describing the bug.
|
java.lang.String |
getLongDescription()
Get the long description.
|
int |
getPriorityAdjustment() |
java.lang.String |
getShortDescription()
Get the short description.
|
java.lang.String |
getType()
Get the BugPattern
|
int |
hashCode() |
boolean |
isDeprecated() |
boolean |
isExperimental()
Is the bug pattern experimental?
|
java.lang.String |
toString() |
java.lang.String |
wrapInDescriptionLink(java.lang.String text) |
public BugPattern(java.lang.String type, java.lang.String abbrev, java.lang.String category, boolean experimental, java.lang.String shortDescription, java.lang.String longDescription, java.lang.String detailText, java.lang.String bugsUrl, int cweid)
type
- the type (species) of BugInstanceabbrev
- the abbreviation or "bug code"; see BugCode
category
- the categoryexperimental
- true if the bug pattern is experimentalshortDescription
- short one-line description of the bug specieslongDescription
- longer one-line description; may contain placeholders for use
by FindBugsMessageFormat
to format BugAnnotationsdetailText
- HTML text containing a full description of the bug speciesbugsUrl
- URL of web-page containing bug descriptions or null if there's no such page.public java.lang.String getType()
public java.lang.String getAbbrev()
@Nonnull public BugCode getBugCode()
public java.lang.String getCategory()
public int getPriorityAdjustment()
public void adjustPriority(int change)
public java.lang.String getCategoryAbbrev()
public boolean isExperimental()
public java.lang.String getShortDescription()
public java.lang.String getLongDescription()
public java.lang.String getDetailText()
public java.lang.String getDetailPlainText()
public java.lang.String getDetailHTML()
public java.lang.String getDetailHTML(java.lang.String detailText)
public java.lang.String wrapInDescriptionLink(java.lang.String text)
public int compareTo(BugPattern other)
compareTo
in interface java.lang.Comparable<BugPattern>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int getCWEid()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isDeprecated()
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.