hudson.plugins.cppncss
Class AbstractBuildReport<T extends hudson.model.AbstractBuild<?,?>>

java.lang.Object
  extended by hudson.plugins.helpers.AbstractBuildAction<T>
      extended by hudson.plugins.cppncss.AbstractBuildReport<T>
All Implemented Interfaces:
hudson.model.Action, hudson.model.HealthReportingAction, hudson.model.ModelObject, java.io.Serializable
Direct Known Subclasses:
CppNCSSBuildIndividualReport

public abstract class AbstractBuildReport<T extends hudson.model.AbstractBuild<?,?>>
extends AbstractBuildAction<T>
implements hudson.model.HealthReportingAction

TODO javadoc.

Since:
09-Jan-2008 21:19:37
Author:
Stephen Connolly
See Also:
Serialized Form

Constructor Summary
AbstractBuildReport(StatisticsResult results, java.lang.Integer functionCcnViolationThreshold, java.lang.Integer functionNcssViolationThreshold)
          Constructs a new AbstractBuildReport.
 
Method Summary
 void doGraph(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Generates the graph that shows the coverage trend up to this report.
 java.lang.String getDisplayName()
          
 java.lang.Integer getFunctionCcnViolationThreshold()
           
 java.lang.Integer getFunctionNcssViolationThreshold()
           
 int getGraphHeight()
          Getter for property 'graphHeight'.
 java.lang.String getGraphName()
          Getter for property 'graphName'.
 int getGraphWidth()
          Getter for property 'graphWidth'.
 java.lang.String getIconFileName()
          
 StatisticsResult getResults()
           
 java.lang.String getSummary()
          The summary of this build report for display on the build index page.
 StatisticsTotalResult getTotals()
           
 java.lang.String getUrlName()
          
 boolean isGraphActive()
          Returns true if there is a graph to plot.
 
Methods inherited from class hudson.plugins.helpers.AbstractBuildAction
getBuild, isFloatingBoxActive, setBuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.model.HealthReportingAction
getBuildHealth
 

Constructor Detail

AbstractBuildReport

public AbstractBuildReport(StatisticsResult results,
                           java.lang.Integer functionCcnViolationThreshold,
                           java.lang.Integer functionNcssViolationThreshold)
Constructs a new AbstractBuildReport.

Method Detail

getResults

public StatisticsResult getResults()

getTotals

public StatisticsTotalResult getTotals()

getFunctionCcnViolationThreshold

public java.lang.Integer getFunctionCcnViolationThreshold()

getFunctionNcssViolationThreshold

public java.lang.Integer getFunctionNcssViolationThreshold()

getSummary

public java.lang.String getSummary()
The summary of this build report for display on the build index page.

Overrides:
getSummary in class AbstractBuildAction<T extends hudson.model.AbstractBuild<?,?>>
Returns:

getIconFileName

public java.lang.String getIconFileName()

Specified by:
getIconFileName in interface hudson.model.Action

getDisplayName

public java.lang.String getDisplayName()

Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getGraphName

public java.lang.String getGraphName()
Getter for property 'graphName'.

Overrides:
getGraphName in class AbstractBuildAction<T extends hudson.model.AbstractBuild<?,?>>
Returns:
Value for property 'graphName'.

getUrlName

public java.lang.String getUrlName()

Specified by:
getUrlName in interface hudson.model.Action

doGraph

public void doGraph(org.kohsuke.stapler.StaplerRequest req,
                    org.kohsuke.stapler.StaplerResponse rsp)
             throws java.io.IOException
Generates the graph that shows the coverage trend up to this report.

Throws:
java.io.IOException

isGraphActive

public boolean isGraphActive()
Returns true if there is a graph to plot.

Overrides:
isGraphActive in class AbstractBuildAction<T extends hudson.model.AbstractBuild<?,?>>
Returns:
Value for property 'graphAvailable'.

getGraphWidth

public int getGraphWidth()
Getter for property 'graphWidth'.

Returns:
Value for property 'graphWidth'.

getGraphHeight

public int getGraphHeight()
Getter for property 'graphHeight'.

Returns:
Value for property 'graphHeight'.


Copyright © 2009. All Rights Reserved.