hudson.plugins.warnings
Class WarningsResult

java.lang.Object
  extended by hudson.plugins.warnings.util.BuildResult
      extended by hudson.plugins.warnings.util.AnnotationsBuildResult
          extended by hudson.plugins.warnings.WarningsResult
All Implemented Interfaces:
hudson.model.ModelObject, AnnotationProvider, java.io.Serializable

public class WarningsResult
extends AnnotationsBuildResult

Represents the results of the warning 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.warnings.util.BuildResult
XSTREAM
 
Constructor Summary
WarningsResult(hudson.model.AbstractBuild<?,?> build, ParserResult result)
          Creates a new instance of WarningsResult.
WarningsResult(hudson.model.AbstractBuild<?,?> build, ParserResult result, WarningsResult previous)
          Creates a new instance of WarningsResult.
 
Method Summary
 java.lang.String getDetails()
          Returns the detail messages for the summary.jelly file.
 java.lang.String getDisplayName()
          
 JavaProject getPreviousResult()
          Returns the results of the previous build.
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.
 boolean hasPreviousResult()
          Returns whether a previous build result exists.
 
Methods inherited from class hudson.plugins.warnings.util.AnnotationsBuildResult
getContainer, getDays, getDelta, getDynamic, getFixedWarnings, getHighScoreGap, getNewWarnings, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfFixedWarnings, getNumberOfNewWarnings, getPriorities, getProject, getZeroWarningsHighScore, getZeroWarningsSinceBuild, getZeroWarningsSinceDate, hasError, isNewZeroWarningsHighScore
 
Methods inherited from class hudson.plugins.warnings.util.BuildResult
getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getDataFile, getModules, getNumberOfAnnotations, getNumberOfModules, getOwner, hasAnnotations, hasAnnotations, hasAnnotations, hasNoAnnotations, hasNoAnnotations, hasNoAnnotations, isCurrent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WarningsResult

public WarningsResult(hudson.model.AbstractBuild<?,?> build,
                      ParserResult result)
Creates a new instance of WarningsResult.

Parameters:
build - the current build as owner of this action
result - the parsed result with all annotations

WarningsResult

public WarningsResult(hudson.model.AbstractBuild<?,?> build,
                      ParserResult result,
                      WarningsResult previous)
Creates a new instance of WarningsResult.

Parameters:
build - the current build as owner of this action
result - the parsed result with all annotations
previous - the result of the previous build
Method Detail

getSummary

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

Returns:
the summary message

getDetails

public java.lang.String getDetails()
Returns the detail messages for the summary.jelly file.

Specified by:
getDetails in class AnnotationsBuildResult
Returns:
the summary message

getSerializationFileName

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

Specified by:
getSerializationFileName in class BuildResult
Returns:
the name of the file to store the serialized annotations

getDisplayName

public java.lang.String getDisplayName()


getPreviousResult

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

Specified by:
getPreviousResult in class AnnotationsBuildResult
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.

Specified by:
hasPreviousResult in class AnnotationsBuildResult
Returns:
true if a previous build result exists.


Copyright © 2008. All Rights Reserved.