hudson.plugins.findbugs
Class FindBugsMavenResult

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

public class FindBugsMavenResult
extends FindBugsResult

Represents the aggregated results of the PMD analysis in m2 jobs.

Author:
Ulli Hafner
See Also:
Serialized Form

Field Summary
 
Fields inherited from class hudson.plugins.findbugs.util.BuildResult
high, low, normal, XSTREAM
 
Constructor Summary
FindBugsMavenResult(hudson.model.AbstractBuild<?,?> build, java.lang.String defaultEncoding, ParserResult result)
          Creates a new instance of FindBugsMavenResult.
FindBugsMavenResult(hudson.model.AbstractBuild<?,?> build, java.lang.String defaultEncoding, ParserResult result, FindBugsResult previous)
          Creates a new instance of FindBugsMavenResult.
 
Method Summary
 JavaProject getPreviousResult()
          Returns the results of the previous build.
 boolean hasPreviousResult()
          Returns whether a previous build result exists.
 
Methods inherited from class hudson.plugins.findbugs.FindBugsResult
getDetails, getDisplayName, getSerializationFileName, getSummary
 
Methods inherited from class hudson.plugins.findbugs.util.BuildResult
getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getContainer, getDataFile, getDays, getDefaultEncoding, getDelta, getDynamic, getErrors, getFixedWarnings, getHighScoreGap, getModules, getNewWarnings, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfFixedWarnings, getNumberOfModules, getNumberOfNewWarnings, getOwner, getPriorities, getProject, getZeroWarningsHighScore, getZeroWarningsSinceBuild, getZeroWarningsSinceDate, hasAnnotations, hasAnnotations, hasAnnotations, hasError, hasNoAnnotations, hasNoAnnotations, hasNoAnnotations, isCurrent, isNewZeroWarningsHighScore, readResolve, setHighWarnings, setLowWarnings, setNormalWarnings, setWarnings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindBugsMavenResult

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

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

FindBugsMavenResult

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

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
previous - the result of the previous build
Method Detail

getPreviousResult

public JavaProject getPreviousResult()
Returns the results of the previous build.

Overrides:
getPreviousResult in class FindBugsResult
Returns:
the result of the previous build, or null if no such build exists

hasPreviousResult

public boolean hasPreviousResult()
Returns whether a previous build result exists.

Overrides:
hasPreviousResult in class FindBugsResult
Returns:
true if a previous build result exists.


Copyright © 2009. All Rights Reserved.