hudson.plugins.analysis.collector
Class AnalysisResultAction

java.lang.Object
  extended by hudson.plugins.analysis.core.AbstractResultAction<AnalysisResult>
      extended by hudson.plugins.analysis.collector.AnalysisResultAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.HealthReportingAction, hudson.model.ModelObject, hudson.plugins.analysis.core.ResultAction<AnalysisResult>, hudson.plugins.analysis.util.ToolTipProvider, org.kohsuke.stapler.StaplerProxy

public class AnalysisResultAction
extends hudson.plugins.analysis.core.AbstractResultAction<AnalysisResult>

Controls the live cycle of the analysis results. This action persists the results of the static analysis tools of a build and displays the results on the build page. The actual visualization of the results is defined in the matching summary.jelly file.

Moreover, this class renders the warnings result trend.

Author:
Ulli Hafner

Constructor Summary
AnalysisResultAction(hudson.model.AbstractBuild<?,?> owner, hudson.plugins.analysis.core.HealthDescriptor healthDescriptor)
          Creates a new instance of WarningsResultAction.
AnalysisResultAction(hudson.model.AbstractBuild<?,?> owner, hudson.plugins.analysis.core.HealthDescriptor healthDescriptor, AnalysisResult result)
          Creates a new instance of WarningsResultAction.
 
Method Summary
protected  hudson.plugins.analysis.core.PluginDescriptor getDescriptor()
          
 java.lang.String getDisplayName()
          
 java.lang.String getMultipleItemsTooltip(int numberOfItems)
          
 AnalysisResultAction getPreviousResultAction()
          Gets the warnings result of the previous build.
 java.lang.String getSingleItemTooltip()
          
 
Methods inherited from class hudson.plugins.analysis.core.AbstractResultAction
addModule, createAggregatedResult, createResult, getBuild, getBuildHealth, getHealthDescriptor, getIconFileName, getOwner, getPreviousBuild, getResult, getTarget, getTooltip, getToolTipProvider, getUrlName, hasPreviousResultAction, setResult, updateBuildHealth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnalysisResultAction

public AnalysisResultAction(hudson.model.AbstractBuild<?,?> owner,
                            hudson.plugins.analysis.core.HealthDescriptor healthDescriptor,
                            AnalysisResult result)
Creates a new instance of WarningsResultAction.

Parameters:
owner - the associated build of this action
healthDescriptor - health descriptor to use
result - the result of this build

AnalysisResultAction

public AnalysisResultAction(hudson.model.AbstractBuild<?,?> owner,
                            hudson.plugins.analysis.core.HealthDescriptor healthDescriptor)
Creates a new instance of WarningsResultAction.

Parameters:
owner - the associated build of this action
healthDescriptor - health descriptor to use
Method Detail

getDisplayName

public java.lang.String getDisplayName()


getDescriptor

protected hudson.plugins.analysis.core.PluginDescriptor getDescriptor()

Specified by:
getDescriptor in class hudson.plugins.analysis.core.AbstractResultAction<AnalysisResult>

getPreviousResultAction

public AnalysisResultAction getPreviousResultAction()
Gets the warnings result of the previous build.

Returns:
the warnings result of the previous build.
Throws:
java.util.NoSuchElementException - if there is no previous build for this action

getMultipleItemsTooltip

public java.lang.String getMultipleItemsTooltip(int numberOfItems)

Specified by:
getMultipleItemsTooltip in class hudson.plugins.analysis.core.AbstractResultAction<AnalysisResult>

getSingleItemTooltip

public java.lang.String getSingleItemTooltip()

Specified by:
getSingleItemTooltip in class hudson.plugins.analysis.core.AbstractResultAction<AnalysisResult>


Copyright © 2010. All Rights Reserved.