edu.umd.cs.findbugs.props
public class WarningPropertySet extends Object implements Cloneable
Constructor Summary | |
---|---|
WarningPropertySet()
Constructor Creates empty object. |
Method Summary | |
---|---|
WarningPropertySet | addProperty(WarningProperty prop)
Add a warning property to the set. |
boolean | checkProperty(WarningProperty prop, Object value)
Check whether or not the given WarningProperty has the given attribute
value.
|
int | computePriority(int basePriority)
Use the PriorityAdjustments specified by the set's WarningProperty
elements to compute a warning priority from the given base priority.
|
boolean | containsProperty(WarningProperty prop)
Return whether or not the set contains the given WarningProperty.
|
void | decorateBugInstance(BugInstance bugInstance)
Decorate given BugInstance with properties.
|
Object | getProperty(WarningProperty prop)
Get the value of the attribute for the given WarningProperty. |
boolean | isFalsePositive(int priority)
Determine whether or not a warning with given priority is expected to be
a false positive.
|
WarningPropertySet | removeProperty(WarningProperty prop)
Remove a warning property from the set.
|
WarningPropertySet | setProperty(WarningProperty prop, String value)
Add a warning property and its attribute value.
|
void | setProperty(WarningProperty prop, Boolean value)
Add a warning property and its attribute value.
|
Parameters: prop the WarningProperty
Returns: this object
Parameters: prop the WarningProperty value the attribute value
Returns: true if the set contains the WarningProperty and has an attribute equal to the one given, false otherwise
Parameters: basePriority the base priority
Returns: the computed warning priority
Parameters: prop the WarningProperty
Returns: true if the set contains the WarningProperty, false if not
Parameters: bugInstance the BugInstance
Parameters: prop the WarningProperty
Returns: the WarningProperty's attribute value, or null if the set does not contain the WarningProperty
Parameters: priority the priority
Returns: true if the warning is expected to be a false positive, false if not
Parameters: prop the WarningProperty
Returns: this object
Parameters: prop the WarningProperty value the attribute value
Returns: this object
Parameters: prop the WarningProperty value the attribute value