Class BugProperty
java.lang.Object
edu.umd.cs.findbugs.BugProperty
- All Implemented Interfaces:
XMLWriteable, Serializable, Cloneable
Name/value metadata pair that may be attached to a BugInstance. These are
different from BugAnnotations because they are not meant to be shown directly
to the user.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringBoolean property defining whether or not the BugInstance is really a bug.private final Stringprivate BugPropertyprivate static final longstatic final StringInteger property defining the warning severity (1=least severe, 5=most severe).private String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectclone()getName()Get name of property.(package private) BugPropertygetNext()Get next property in list.getValue()Get value of property.booleanGet value of property as boolean.intGet value of property as an integer.(package private) voidsetNext(BugProperty next) Set next property in list.voidSet value of property.voidWrite this object to given XMLOutput.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
IS_BUG
Boolean property defining whether or not the BugInstance is really a bug.- See Also:
-
SEVERITY
Integer property defining the warning severity (1=least severe, 5=most severe).- See Also:
-
name
-
value
-
next
-
-
Constructor Details
-
BugProperty
-
-
Method Details
-
clone
-
getName
-
getValue
-
getValueAsBoolean
public boolean getValueAsBoolean()Get value of property as boolean.- Returns:
- value of property as a boolean
-
getValueAsInt
public int getValueAsInt()Get value of property as an integer.- Returns:
- value of property as integer
- Throws:
NumberFormatException- if the value cannot be parsed as an integer
-
setValue
-
setNext
-
getNext
-
writeXML
Description copied from interface:XMLWriteableWrite this object to given XMLOutput.- Specified by:
writeXMLin interfaceXMLWriteable- Parameters:
xmlOutput- the XMLOutput for the document- Throws:
IOException
-