hudson.plugins.pmd
Class PmdResult

java.lang.Object
  extended by hudson.plugins.pmd.util.BuildResult
      extended by hudson.plugins.pmd.PmdResult
All Implemented Interfaces:
hudson.model.ModelObject, AnnotationProvider, java.io.Serializable
Direct Known Subclasses:
PmdMavenResult

public class PmdResult
extends BuildResult

Represents the results of the PMD 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.pmd.util.BuildResult
high, low, normal, XSTREAM
 
Constructor Summary
PmdResult(hudson.model.AbstractBuild<?,?> build, java.lang.String defaultEncoding, ParserResult result)
          Creates a new instance of PmdResult.
PmdResult(hudson.model.AbstractBuild<?,?> build, java.lang.String defaultEncoding, ParserResult result, PmdResult previous)
          Creates a new instance of PmdResult.
 
Method Summary
 java.lang.String getDetails()
          Returns the detail messages for the summary.jelly file.
 java.lang.String getDisplayName()
          
protected  java.lang.Class<? extends ResultAction<? extends BuildResult>> getResultActionType()
          Returns the actual type of the associated result action.
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.pmd.util.BuildResult
getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getApi, getContainer, getDataFile, getDays, getDefaultEncoding, getDelta, getDynamic, getErrors, getFixedWarnings, getHighScoreGap, getModules, getNewWarnings, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfFixedWarnings, getNumberOfModules, getNumberOfNewWarnings, getNumberOfWarnings, getOwner, getPreviousResult, getPriorities, getProject, getWarningsDelta, getZeroWarningsHighScore, getZeroWarningsSinceBuild, getZeroWarningsSinceDate, hasAnnotations, hasAnnotations, hasAnnotations, hasError, hasNoAnnotations, hasNoAnnotations, hasNoAnnotations, hasPreviousResult, 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

PmdResult

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

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

PmdResult

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

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

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 BuildResult
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()


getResultActionType

protected java.lang.Class<? extends ResultAction<? extends BuildResult>> getResultActionType()
Returns the actual type of the associated result action.

Specified by:
getResultActionType in class BuildResult
Returns:
the actual type of the associated result action


Copyright © 2009. All Rights Reserved.