public class ProjectFilterSettings
extends java.lang.Object
implements java.lang.Cloneable
BugInstance
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_PRIORITY
Default warning threshold priority.
|
static java.lang.String |
EXPERIMENTAL_PRIORITY
Text string for experimental priority.
|
static java.lang.String |
HIGH_PRIORITY
Text string for high priority.
|
static java.lang.String |
LOW_PRIORITY
Text string for low priority.
|
static java.lang.String |
MEDIUM_PRIORITY
Text string for medium priority.
|
Modifier and Type | Method and Description |
---|---|
void |
addCategory(java.lang.String category)
Add a bug category to the set of categories to be displayed.
|
void |
clearAllCategories()
Clear all bug categories from the hidden list.
|
java.lang.Object |
clone() |
boolean |
containsCategory(java.lang.String category)
Returns false if the given category is hidden in the project filter
settings.
|
static ProjectFilterSettings |
createDefault()
Factory method to create a default ProjectFilterSettings object.
|
boolean |
displayFalseWarnings()
Get whether or not false warnings should be displayed.
|
boolean |
displayWarning(BugInstance bugInstance)
Return whether or not a warning should be displayed, according to the
project filter settings.
|
boolean |
equals(java.lang.Object obj) |
static ProjectFilterSettings |
fromEncodedString(java.lang.String s)
Create ProjectFilterSettings from an encoded string.
|
java.util.Set<java.lang.String> |
getActiveCategorySet()
Return set of active (enabled) bug categories.
|
static java.lang.String |
getIntPriorityAsString(int prio)
Convert an integer warning priority threshold value to a String.
|
java.lang.String |
getMinPriority()
Get the minimum warning priority threshold.
|
int |
getMinPriorityAsInt()
Return the minimum warning priority threshold as an integer.
|
int |
getMinRank() |
int |
hashCode() |
static void |
hiddenFromEncodedString(ProjectFilterSettings result,
java.lang.String s)
set the hidden bug categories on the specifed ProjectFilterSettings from
an encoded string
|
java.lang.String |
hiddenToEncodedString()
Create a string containing the encoded form of the hidden bug categories
|
void |
removeCategory(java.lang.String category)
Remove a bug category from the set of categories to be displayed.
|
void |
setDisplayFalseWarnings(boolean displayFalseWarnings)
Set whether or not false warnings should be displayed.
|
void |
setMinPriority(java.lang.String minPriority)
Set minimum warning priority threshold.
|
void |
setMinRank(int minRank) |
java.lang.String |
toEncodedString()
Create a string containing the encoded form of the ProjectFilterSettings.
|
java.lang.String |
toString() |
public static final java.lang.String HIGH_PRIORITY
public static final java.lang.String MEDIUM_PRIORITY
public static final java.lang.String LOW_PRIORITY
public static final java.lang.String EXPERIMENTAL_PRIORITY
public static final java.lang.String DEFAULT_PRIORITY
public void setMinRank(int minRank)
public int getMinRank()
public static ProjectFilterSettings createDefault()
public static ProjectFilterSettings fromEncodedString(java.lang.String s)
s
- the encoded stringpublic static void hiddenFromEncodedString(ProjectFilterSettings result, java.lang.String s)
result
- the ProjectFilterSettings from which to remove bug categoriess
- the encoded stringhiddenFromEncodedString(ProjectFilterSettings,
String)
public boolean displayWarning(BugInstance bugInstance)
bugInstance
- the warningpublic void setMinPriority(java.lang.String minPriority)
minPriority
- the priority threshold: one of "High", "Medium", or "Low"public java.lang.String getMinPriority()
public int getMinPriorityAsInt()
public void addCategory(java.lang.String category)
category
- the bug category: e.g., "CORRECTNESS"public void removeCategory(java.lang.String category)
category
- the bug category: e.g., "CORRECTNESS"public void clearAllCategories()
public boolean containsCategory(java.lang.String category)
category
- the categorypublic java.util.Set<java.lang.String> getActiveCategorySet()
public void setDisplayFalseWarnings(boolean displayFalseWarnings)
displayFalseWarnings
- true if false warnings should be displayed, false if notpublic boolean displayFalseWarnings()
public java.lang.String hiddenToEncodedString()
public java.lang.String toEncodedString()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static java.lang.String getIntPriorityAsString(int prio)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.