public class ProjectFilterSettings extends Object implements Cloneable
BugInstance| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_PRIORITY
Default warning threshold priority.
|
static String |
EXPERIMENTAL_PRIORITY
Text string for experimental priority.
|
static String |
HIGH_PRIORITY
Text string for high priority.
|
static String |
LOW_PRIORITY
Text string for low priority.
|
static String |
MEDIUM_PRIORITY
Text string for medium priority.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCategory(String category)
Add a bug category to the set of categories to be displayed.
|
void |
clearAllCategories()
Clear all bug categories from the hidden list.
|
Object |
clone() |
boolean |
containsCategory(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(Object obj) |
static ProjectFilterSettings |
fromEncodedString(String s)
Create ProjectFilterSettings from an encoded string.
|
Set<String> |
getActiveCategorySet()
Return set of active (enabled) bug categories.
|
static String |
getIntPriorityAsString(int prio)
Convert an integer warning priority threshold value to a String.
|
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,
String s)
set the hidden bug categories on the specifed ProjectFilterSettings from
an encoded string
|
String |
hiddenToEncodedString()
Create a string containing the encoded form of the hidden bug categories
|
void |
removeCategory(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(String minPriority)
Set minimum warning priority threshold.
|
void |
setMinRank(int minRank) |
String |
toEncodedString()
Create a string containing the encoded form of the ProjectFilterSettings.
|
String |
toString() |
public static final String HIGH_PRIORITY
public static final String MEDIUM_PRIORITY
public static final String LOW_PRIORITY
public static final String EXPERIMENTAL_PRIORITY
public static final String DEFAULT_PRIORITY
public void setMinRank(int minRank)
public int getMinRank()
public static ProjectFilterSettings createDefault()
public static ProjectFilterSettings fromEncodedString(String s)
s - the encoded stringpublic static void hiddenFromEncodedString(ProjectFilterSettings result, 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(String minPriority)
minPriority - the priority threshold: one of "High", "Medium", or "Low"public String getMinPriority()
public int getMinPriorityAsInt()
public void addCategory(String category)
category - the bug category: e.g., "CORRECTNESS"public void removeCategory(String category)
category - the bug category: e.g., "CORRECTNESS"public void clearAllCategories()
public boolean containsCategory(String category)
category - the categorypublic Set<String> getActiveCategorySet()
public void setDisplayFalseWarnings(boolean displayFalseWarnings)
displayFalseWarnings - true if false warnings should be displayed, false if notpublic boolean displayFalseWarnings()
public String hiddenToEncodedString()
public String toEncodedString()
public static String getIntPriorityAsString(int prio)
Copyright © 2003–2015. All rights reserved.