hudson.plugins.findbugs
Class FindBugsResult

java.lang.Object
  extended by hudson.plugins.analysis.core.BuildResult
      extended by hudson.plugins.findbugs.FindBugsResult
All Implemented Interfaces:
hudson.model.ModelObject, hudson.plugins.analysis.util.model.AnnotationProvider, java.io.Serializable
Direct Known Subclasses:
FindBugsMavenResult

public class FindBugsResult
extends hudson.plugins.analysis.core.BuildResult

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

Field Summary
 
Fields inherited from class hudson.plugins.analysis.core.BuildResult
high, low, normal
 
Constructor Summary
FindBugsResult(hudson.model.AbstractBuild<?,?> build, java.lang.String defaultEncoding, hudson.plugins.analysis.core.ParserResult result)
          Creates a new instance of FindBugsResult.
FindBugsResult(hudson.model.AbstractBuild<?,?> build, java.lang.String defaultEncoding, hudson.plugins.analysis.core.ParserResult result, hudson.plugins.analysis.core.BuildHistory history)
          Creates a new instance of FindBugsResult.
 
Method Summary
protected  void configure(com.thoughtworks.xstream.XStream xstream)
          
protected  java.lang.String createDeltaMessage()
          
 java.lang.String getDisplayName()
          
 int getNewThisWeek()
          Gets the number of new bugs new this week.
 int getNotInCloud()
          Gets the number of bugs which are not stored in the FindBugs Cloud.
 int getNumberOfComments()
          Gets the number of reviewer comments for all bugs.
protected  java.lang.Class<? extends hudson.plugins.analysis.core.ResultAction<? extends hudson.plugins.analysis.core.BuildResult>> getResultActionType()
          
protected  java.lang.String getSerializationFileName()
          Returns the name of the file to store the serialized annotations.
 java.lang.String getSummary()
          Returns a summary message for the summary.jelly file.
 
Methods inherited from class hudson.plugins.analysis.core.BuildResult
createHighScoreMessage, createListItem, createNoWarningsMessage, createSuccessfulHighScoreMessage, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getApi, getContainer, getDataFile, getDays, getDefaultEncoding, getDelta, getDetails, getDynamic, getErrors, getFixedWarnings, getHighDelta, getHighScoreGap, getLowDelta, getModules, getNewWarnings, getNormalDelta, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfFixedWarnings, getNumberOfModules, getNumberOfNewWarnings, getNumberOfWarnings, getOwner, getPreviousResult, getPriorities, getProject, getResultIcon, getSuccessfulHighScore, getSuccessfulHighScoreGap, getSuccessfulSinceBuild, getSuccessfulSinceDate, getWarningsDelta, getZeroWarningsHighScore, getZeroWarningsSinceBuild, getZeroWarningsSinceDate, hasAnnotations, hasAnnotations, hasAnnotations, hasError, hasNoAnnotations, hasNoAnnotations, hasNoAnnotations, hasPreviousResult, isCurrent, isNewSuccessfulHighScore, isNewZeroWarningsHighScore, isSuccessful, isSuccessfulTouched, readResolve, setHighWarnings, setLowWarnings, setNormalWarnings, setResult, setWarnings, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FindBugsResult

public FindBugsResult(hudson.model.AbstractBuild<?,?> build,
                      java.lang.String defaultEncoding,
                      hudson.plugins.analysis.core.ParserResult result)
Creates a new instance of FindBugsResult.

Parameters:
build - the current build as owner of this action
defaultEncoding - the default encoding to be used when reading and parsing files
result - the parsed result with all annotations

FindBugsResult

public FindBugsResult(hudson.model.AbstractBuild<?,?> build,
                      java.lang.String defaultEncoding,
                      hudson.plugins.analysis.core.ParserResult result,
                      hudson.plugins.analysis.core.BuildHistory history)
Creates a new instance of FindBugsResult.

Parameters:
build - the current build as owner of this action
defaultEncoding - the default encoding to be used when reading and parsing files
result - the parsed result with all annotations
history - the history of build results of the associated plug-in
Method Detail

getNumberOfComments

public int getNumberOfComments()
Gets the number of reviewer comments for all bugs.

Returns:
the number of comments

configure

protected void configure(com.thoughtworks.xstream.XStream xstream)

Overrides:
configure in class hudson.plugins.analysis.core.BuildResult

getSummary

public java.lang.String getSummary()
Returns a summary message for the summary.jelly file.

Returns:
the summary message

getNewThisWeek

public int getNewThisWeek()
Gets the number of new bugs new this week.

Returns:
the number of new bugs this week

getNotInCloud

public int getNotInCloud()
Gets the number of bugs which are not stored in the FindBugs Cloud.

Returns:
the number of bugs which are not stored in the FindBugs Cloud

createDeltaMessage

protected java.lang.String createDeltaMessage()

Overrides:
createDeltaMessage in class hudson.plugins.analysis.core.BuildResult

getSerializationFileName

protected java.lang.String getSerializationFileName()
Returns the name of the file to store the serialized annotations.

Specified by:
getSerializationFileName in class hudson.plugins.analysis.core.BuildResult
Returns:
the name of the file to store the serialized annotations

getDisplayName

public java.lang.String getDisplayName()


getResultActionType

protected java.lang.Class<? extends hudson.plugins.analysis.core.ResultAction<? extends hudson.plugins.analysis.core.BuildResult>> getResultActionType()

Specified by:
getResultActionType in class hudson.plugins.analysis.core.BuildResult


Copyright © 2010. All Rights Reserved.