public class BugProperty extends java.lang.Object implements XMLWriteable, java.io.Serializable, java.lang.Cloneable
| Modifier and Type | Field and 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 and 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.Objectpublic 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
XMLWriteablewriteXML in interface XMLWriteablexmlOutput - the XMLOutput for the documentjava.io.IOExceptionFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.