hudson.plugins.findbugs.parser.maven
Class BugInstance

java.lang.Object
  extended by hudson.plugins.findbugs.parser.maven.BugInstance

public class BugInstance
extends java.lang.Object

Java Bean class for a warning of the maven FindBugs format.

Author:
Ulli Hafner

Constructor Summary
BugInstance()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 java.lang.String getCategory()
          Returns the category of the warning.
 int getEnd()
          Returns the last line of the warning range.
 int getLineNumber()
          Gets the line number of the warning.
 java.lang.String getLineNumberExpression()
          Returns the line number expression.
 java.lang.String getMessage()
          Returns the message of the warning.
 java.lang.String getPriority()
          Gets the priority of the warning.
 int getStart()
          Returns the first line of the warning range.
 java.lang.String getType()
          Returns the type of the warning.
 int hashCode()
          
 void setCategory(java.lang.String category)
          Sets the category of the warning to the specified value.
 void setLineNumberExpression(java.lang.String lineNumberString)
          Sets the line number to the specified value.
 void setMessage(java.lang.String message)
          Sets the message of the warning to the specified value.
 void setPriority(java.lang.String priority)
          Sets the priority of the warning to the specified value.
 void setType(java.lang.String type)
          Sets the type of the warning to the specified value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BugInstance

public BugInstance()
Method Detail

getType

public java.lang.String getType()
Returns the type of the warning.

Returns:
the type of the warning

setType

public void setType(java.lang.String type)
Sets the type of the warning to the specified value.

Parameters:
type - the value to set

getCategory

public java.lang.String getCategory()
Returns the category of the warning.

Returns:
the category of the warning

setCategory

public void setCategory(java.lang.String category)
Sets the category of the warning to the specified value.

Parameters:
category - the value to set

getPriority

public java.lang.String getPriority()
Gets the priority of the warning.

Returns:
the priority of the warning

setPriority

public void setPriority(java.lang.String priority)
Sets the priority of the warning to the specified value.

Parameters:
priority - the value to set

getMessage

public java.lang.String getMessage()
Returns the message of the warning.

Returns:
the message of the warning

setMessage

public void setMessage(java.lang.String message)
Sets the message of the warning to the specified value.

Parameters:
message - the value to set

getLineNumber

public int getLineNumber()
Gets the line number of the warning.

Returns:
the line number of the warning

setLineNumberExpression

public void setLineNumberExpression(java.lang.String lineNumberString)
Sets the line number to the specified value.

Parameters:
lineNumberString - the string value of the line number

getLineNumberExpression

public java.lang.String getLineNumberExpression()
Returns the line number expression. Currently supported expressions are single integers (line numbers) or integer ranges (line number ranges, the first value is used as link).

Returns:
the line number expression.

getStart

public int getStart()
Returns the first line of the warning range.

Returns:
the first line of the warning range

getEnd

public int getEnd()
Returns the last line of the warning range.

Returns:
the last line of the warning range

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object


Copyright © 2008. All Rights Reserved.