public class WarningPropertySet<T extends WarningProperty>
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
WarningPropertySet()
Constructor Creates empty object.
|
Modifier and Type | Method and Description |
---|---|
WarningPropertySet<T> |
addProperty(T prop)
Add a warning property to the set.
|
boolean |
checkProperty(T 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(T prop)
Return whether or not the set contains the given WarningProperty.
|
void |
decorateBugInstance(BugInstance bugInstance)
Decorate given BugInstance with properties.
|
java.lang.Object |
getProperty(T 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<T> |
removeProperty(T prop)
Remove a warning property from the set.
|
void |
setProperty(T prop,
java.lang.Boolean value)
Add a warning property and its attribute value.
|
WarningPropertySet<T> |
setProperty(T prop,
java.lang.String value)
Add a warning property and its attribute value.
|
java.lang.String |
toString() |
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public WarningPropertySet<T> addProperty(T prop)
prop
- the WarningPropertypublic WarningPropertySet<T> removeProperty(T prop)
prop
- the WarningPropertypublic WarningPropertySet<T> setProperty(T prop, java.lang.String value)
prop
- the WarningPropertyvalue
- the attribute valuepublic void setProperty(T prop, java.lang.Boolean value)
prop
- the WarningPropertyvalue
- the attribute value@CheckReturnValue public boolean containsProperty(T prop)
prop
- the WarningPropertypublic boolean checkProperty(T prop, java.lang.Object value)
prop
- the WarningPropertyvalue
- the attribute valuepublic java.lang.Object getProperty(T prop)
prop
- the WarningPropertypublic int computePriority(int basePriority)
basePriority
- the base prioritypublic boolean isFalsePositive(int priority)
priority
- the prioritypublic void decorateBugInstance(BugInstance bugInstance)
bugInstance
- the BugInstanceFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.