hudson.plugins.analysis.collector
Class AnalysisResult

java.lang.Object
  extended by hudson.plugins.analysis.core.BuildResult
      extended by hudson.plugins.analysis.collector.AnalysisResult
All Implemented Interfaces:
hudson.model.ModelObject, hudson.plugins.analysis.util.model.AnnotationProvider, Serializable

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

Stores the results of the analysis plug-ins. 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
AnalysisResult(hudson.model.AbstractBuild<?,?> build, String defaultEncoding, hudson.plugins.analysis.core.ParserResult result)
          Creates a new instance of AnalysisResult.
 
Method Summary
protected  String createDeltaMessage()
           
 String getDisplayName()
          
 String getHeader()
           
 int getNumberOfAnnotationsByOrigin(String origin)
          Returns the number of annotations from the specified origin.
protected  Class<? extends hudson.plugins.analysis.core.ResultAction<? extends hudson.plugins.analysis.core.BuildResult>> getResultActionType()
           
protected  String getSerializationFileName()
           
 String getSummary()
           
protected  Object readResolve()
           
 
Methods inherited from class hudson.plugins.analysis.core.BuildResult
canUseDeltaValues, configure, createDefaultDeltaMessage, createDefaultSummary, createHistory, createUrl, evaluateStatus, evaluateStatus, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getApi, getContainer, getDataFile, getDays, getDefaultEncoding, getDelta, getDetails, getDynamic, getErrors, getFixedWarnings, getHighDelta, getHighScoreGap, getHistory, getLowDelta, getModules, getNewWarnings, getNormalDelta, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfFixedWarnings, getNumberOfModules, getNumberOfNewWarnings, getNumberOfWarnings, getOwner, getPluginResult, getPreviousResult, getPriorities, getProject, getReason, getResultIcon, getSuccessfulHighScore, getSuccessfulHighScoreGap, getSuccessfulSinceBuild, getSuccessfulSinceDate, getThresholds, getWarningsDelta, getZeroWarningsHighScore, getZeroWarningsSinceBuild, getZeroWarningsSinceDate, hasAnnotations, hasAnnotations, hasAnnotations, hasError, hasNoAnnotations, hasNoAnnotations, hasNoAnnotations, hasPreviousResult, isCurrent, isNewSuccessfulHighScore, isNewZeroWarningsHighScore, isSuccessful, isSuccessfulTouched, serializeAnnotations, 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

AnalysisResult

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

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
Method Detail

getHeader

public String getHeader()
Overrides:
getHeader in class hudson.plugins.analysis.core.BuildResult

readResolve

protected Object readResolve()
Overrides:
readResolve in class hudson.plugins.analysis.core.BuildResult

getSummary

public String getSummary()
Specified by:
getSummary in class hudson.plugins.analysis.core.BuildResult

createDeltaMessage

protected String createDeltaMessage()
Overrides:
createDeltaMessage in class hudson.plugins.analysis.core.BuildResult

getSerializationFileName

protected String getSerializationFileName()
Specified by:
getSerializationFileName in class hudson.plugins.analysis.core.BuildResult

getDisplayName

public String getDisplayName()


getResultActionType

protected Class<? extends hudson.plugins.analysis.core.ResultAction<? extends hudson.plugins.analysis.core.BuildResult>> getResultActionType()
Specified by:
getResultActionType in class hudson.plugins.analysis.core.BuildResult

getNumberOfAnnotationsByOrigin

public int getNumberOfAnnotationsByOrigin(String origin)
Returns the number of annotations from the specified origin. If there are no annotations, then 0 is returned.

Parameters:
origin - the origin
Returns:
the number of annotations from the specified origin


Copyright © 2004-2012 Hudson. All Rights Reserved.