hudson.plugins.findbugs
Class FindBugsResult

java.lang.Object
  extended by hudson.plugins.findbugs.FindBugsResult
All Implemented Interfaces:
hudson.model.ModelObject, java.io.Serializable

public class FindBugsResult
extends java.lang.Object
implements hudson.model.ModelObject, java.io.Serializable

Represents the results of the FindBugs analysis. One instance of this class is persisted for each build via an XML file.

Author:
Ulli Hafner
See Also:
Serialized Form

Constructor Summary
FindBugsResult(hudson.model.Build<?,?> build, JavaProject project)
          Creates a new instance of FindBugsResult.
 
Method Summary
 int getDelta()
          Returns the delta.
 java.lang.String getDisplayName()
          
 FindBugsDetail getDynamic(java.lang.String packageName, org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Returns the dynamic result of the FindBugs analysis (detail page for a package).
 int getNumberOfWarnings()
          Returns the numberOfWarnings.
 hudson.model.Build<?,?> getOwner()
          Returns the owner.
 int getPreviousNumberOfWarnings(java.lang.String packageName)
          Returns the number of warnings of the specified package in the previous build.
 JavaProject getProject()
          Returns the associated project of this result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindBugsResult

public FindBugsResult(hudson.model.Build<?,?> build,
                      JavaProject project)
Creates a new instance of FindBugsResult.

Parameters:
build - the current build as owner of this action
project - the parsed FindBugs result
Method Detail

getDisplayName

public java.lang.String getDisplayName()

Specified by:
getDisplayName in interface hudson.model.ModelObject

getOwner

public hudson.model.Build<?,?> getOwner()
Returns the owner.

Returns:
the owner

getNumberOfWarnings

public int getNumberOfWarnings()
Returns the numberOfWarnings.

Returns:
the numberOfWarnings

getDelta

public int getDelta()
Returns the delta.

Returns:
the delta

getProject

public JavaProject getProject()
Returns the associated project of this result.

Returns:
the associated project of this result.

getDynamic

public FindBugsDetail getDynamic(java.lang.String packageName,
                                 org.kohsuke.stapler.StaplerRequest request,
                                 org.kohsuke.stapler.StaplerResponse response)
Returns the dynamic result of the FindBugs analysis (detail page for a package).

Parameters:
packageName - the packe name to get the result for
request - Stapler request
response - Stapler response
Returns:
the dynamic result of the FindBugs analysis (detail page for a package).

getPreviousNumberOfWarnings

public int getPreviousNumberOfWarnings(java.lang.String packageName)
Returns the number of warnings of the specified package in the previous build.

Parameters:
packageName - the package to return the warnings for
Returns:
number of warnings of the specified package.


Copyright © 2007. All Rights Reserved.