|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.props.WarningPropertySet
public class WarningPropertySet
A Set of WarningProperty objects, each with an optional attribute Object. A WarningPropertySet is useful for collecting heuristics to use in the determination of whether or not a warning is a false positive, or what the warning's priority should be.
Constructor Summary | |
---|---|
WarningPropertySet()
Constructor Creates empty object. |
Method Summary | |
---|---|
WarningPropertySet |
addProperty(WarningProperty prop)
Add a warning property to the set. |
boolean |
checkProperty(WarningProperty prop,
java.lang.Object value)
Check whether or not the given WarningProperty has the given attribute value. |
java.lang.Object |
clone()
|
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. |
java.lang.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. |
void |
setProperty(WarningProperty prop,
java.lang.Boolean value)
Add a warning property and its attribute value. |
WarningPropertySet |
setProperty(WarningProperty prop,
java.lang.String value)
Add a warning property and its attribute value. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WarningPropertySet()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public WarningPropertySet addProperty(WarningProperty prop)
prop
- the WarningProperty
public WarningPropertySet setProperty(WarningProperty prop, java.lang.String value)
prop
- the WarningPropertyvalue
- the attribute value
public void setProperty(WarningProperty prop, java.lang.Boolean value)
prop
- the WarningPropertyvalue
- the attribute valuepublic boolean containsProperty(WarningProperty prop)
prop
- the WarningProperty
public boolean checkProperty(WarningProperty prop, java.lang.Object value)
prop
- the WarningPropertyvalue
- the attribute value
public java.lang.Object getProperty(WarningProperty prop)
prop
- the WarningProperty
public int computePriority(int basePriority)
basePriority
- the base priority
public boolean isFalsePositive(int priority)
priority
- the priority
public void decorateBugInstance(BugInstance bugInstance)
bugInstance
- the BugInstance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |