XMLWriteable
, java.io.Serializable
, java.lang.Cloneable
public class BugProperty extends java.lang.Object implements XMLWriteable, java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
IS_BUG |
Boolean property defining whether or not the BugInstance is really a bug.
|
static java.lang.String |
SEVERITY |
Integer property defining the warning severity (1=least severe, 5=most
severe).
|
Modifier and Type | Method | Description |
---|---|---|
protected java.lang.Object |
clone() |
|
java.lang.String |
getName() |
Get name of property.
|
java.lang.String |
getValue() |
Get value of property.
|
boolean |
getValueAsBoolean() |
Get value of property as boolean.
|
int |
getValueAsInt() |
Get value of property as an integer.
|
void |
setValue(java.lang.String value) |
Set value of property.
|
void |
writeXML(XMLOutput xmlOutput) |
Write this object to given XMLOutput.
|
public static final java.lang.String IS_BUG
public static final java.lang.String SEVERITY
protected java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String getName()
public java.lang.String getValue()
public boolean getValueAsBoolean()
public int getValueAsInt()
java.lang.NumberFormatException
- if the value cannot be parsed as an integerpublic void setValue(java.lang.String value)
value
- public void writeXML(XMLOutput xmlOutput) throws java.io.IOException
XMLWriteable
writeXML
in interface XMLWriteable
xmlOutput
- the XMLOutput for the documentjava.io.IOException
SpotBugs is licensed under the LGPL.