hudson.plugins.pmd
Class PmdResultAction

java.lang.Object
  extended by hudson.plugins.pmd.util.AbstractResultAction<PmdResult>
      extended by hudson.plugins.pmd.PmdResultAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.HealthReportingAction, hudson.model.ModelObject, ResultAction<PmdResult>, ToolTipProvider, org.kohsuke.stapler.StaplerProxy
Direct Known Subclasses:
MavenPmdResultAction

public class PmdResultAction
extends AbstractResultAction<PmdResult>

Controls the live cycle of the PMD results. This action persists the results of the PMD analysis 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 PMD result trend.

Author:
Ulli Hafner

Constructor Summary
PmdResultAction(hudson.model.AbstractBuild<?,?> owner, HealthReportBuilder healthReportBuilder)
          Creates a new instance of PmdResultAction.
PmdResultAction(hudson.model.AbstractBuild<?,?> owner, HealthReportBuilder healthReportBuilder, PmdResult result)
          Creates a new instance of PmdResultAction.
 
Method Summary
protected  PluginDescriptor getDescriptor()
          Returns the descriptor of the associated plug-in.
 java.lang.String getDisplayName()
          
 java.lang.String getMultipleItemsTooltip(int numberOfItems)
          Returns the tooltip for several items.
 PmdResultAction getPreviousResultAction()
          Gets the PMD result of the previous build.
 java.lang.String getSingleItemTooltip()
          Returns the tooltip for exactly one item.
 
Methods inherited from class hudson.plugins.pmd.util.AbstractResultAction
addModule, buildDataSet, createAggregatedResult, createResult, doGraph, doGraphMap, getBuildHealth, getHealthReportBuilder, getIconFileName, getOwner, getPreviousBuild, getResult, getTarget, getUrlName, hasPreviousResultAction, setResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PmdResultAction

public PmdResultAction(hudson.model.AbstractBuild<?,?> owner,
                       HealthReportBuilder healthReportBuilder,
                       PmdResult result)
Creates a new instance of PmdResultAction.

Parameters:
owner - the associated build of this action
healthReportBuilder - health builder to use
result - the result in this build

PmdResultAction

public PmdResultAction(hudson.model.AbstractBuild<?,?> owner,
                       HealthReportBuilder healthReportBuilder)
Creates a new instance of PmdResultAction.

Parameters:
owner - the associated build of this action
healthReportBuilder - health builder to use
Method Detail

getDisplayName

public java.lang.String getDisplayName()


getDescriptor

protected PluginDescriptor getDescriptor()
Returns the descriptor of the associated plug-in.

Specified by:
getDescriptor in class AbstractResultAction<PmdResult>
Returns:
the descriptor of the associated plug-in

getPreviousResultAction

public PmdResultAction getPreviousResultAction()
Gets the PMD result of the previous build.

Returns:
the PMD 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)
Returns the tooltip for several items.

Parameters:
numberOfItems - the number of items to display the tooltip for
Returns:
the tooltip for several items

getSingleItemTooltip

public java.lang.String getSingleItemTooltip()
Returns the tooltip for exactly one item.

Returns:
the tooltip for exactly one item


Copyright © 2008. All Rights Reserved.