hudson.plugins.cppncss
Class AbstractProjectReport<T extends hudson.model.AbstractProject<?,?>>

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.Actionable
          extended by hudson.plugins.helpers.AbstractProjectAction<T>
              extended by hudson.plugins.cppncss.AbstractProjectReport<T>
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject, hudson.model.ProminentProjectAction, hudson.search.SearchableModelObject, hudson.search.SearchItem
Direct Known Subclasses:
CppNCSSProjectIndividualReport

public abstract class AbstractProjectReport<T extends hudson.model.AbstractProject<?,?>>
extends AbstractProjectAction<T>
implements hudson.model.ProminentProjectAction

TODO javadoc.

Since:
09-Jan-2008 21:22:45
Author:
Stephen Connolly

Constructor Summary
AbstractProjectReport(T project, java.lang.Integer functionCcnViolationThreshold, java.lang.Integer functionNcssViolationThreshold)
           
 
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.
protected abstract  java.lang.Class<? extends AbstractBuildReport> getBuildActionClass()
           
 java.lang.String getDisplayName()
          
 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()
          Returns the latest results.
 java.lang.String getSearchUrl()
          
 StatisticsTotalResult getTotals()
          Returns the latest totals.
 java.lang.String getUrlName()
          
 boolean isGraphActive()
          Returns true if there is a graph to plot.
 
Methods inherited from class hudson.plugins.helpers.AbstractProjectAction
getFunctionCcnViolationThreshold, getFunctionNcssViolationThreshold, getProject, isFloatingBoxActive
 
Methods inherited from class hudson.model.Actionable
addAction, getAction, getAction, getActions, getActions, getDynamic
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractProjectReport

public AbstractProjectReport(T project,
                             java.lang.Integer functionCcnViolationThreshold,
                             java.lang.Integer functionNcssViolationThreshold)
Method Detail

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 AbstractProjectAction<T extends hudson.model.AbstractProject<?,?>>
Returns:
Value for property 'graphName'.

getUrlName

public java.lang.String getUrlName()

Specified by:
getUrlName in interface hudson.model.Action

getSearchUrl

public java.lang.String getSearchUrl()

Specified by:
getSearchUrl in interface hudson.search.SearchItem

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 AbstractProjectAction<T extends hudson.model.AbstractProject<?,?>>
Returns:
Value for property 'graphAvailable'.

getResults

public StatisticsResult getResults()
Returns the latest results.

Returns:
Value for property 'graphAvailable'.

getTotals

public StatisticsTotalResult getTotals()
Returns the latest totals.

Returns:
Value for property 'graphAvailable'.

getBuildActionClass

protected abstract java.lang.Class<? extends AbstractBuildReport> getBuildActionClass()

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.