hudson.plugins.emma
Class CoverageReport

java.lang.Object
  extended by hudson.plugins.emma.CoverageObject<SELF>
      extended by hudson.plugins.emma.AbstractReport<PARENT,SELF>
          extended by hudson.plugins.emma.AggregatedReport<CoverageReport,CoverageReport,PackageReport>
              extended by hudson.plugins.emma.CoverageReport
All Implemented Interfaces:
hudson.model.ModelObject

public final class CoverageReport
extends AggregatedReport<CoverageReport,CoverageReport,PackageReport>

Root object of the coverage report.

Author:
Kohsuke Kawaguchi

Constructor Summary
CoverageReport(EmmaBuildAction action, File xmlReport)
           
CoverageReport(EmmaBuildAction action, InputStream... xmlReports)
           
 
Method Summary
 hudson.model.AbstractBuild<?,?> getBuild()
          Gets the build object that owns the whole coverage report tree.
 CoverageReport getPreviousResult()
          Gets the corresponding coverage report object in the previous run that has the record.
 
Methods inherited from class hudson.plugins.emma.AggregatedReport
add, getChildren, getDynamic, hasChildren, hasChildrenClassCoverage, hasChildrenConditionCoverage, hasChildrenLineCoverage, setFailed, setParent
 
Methods inherited from class hudson.plugins.emma.AbstractReport
addCoverage, getDisplayName, getName, getParent, setName
 
Methods inherited from class hudson.plugins.emma.CoverageObject
doGraph, getApi, getBlockCoverage, getClassCoverage, getConditionCoverage, getLineCoverage, getMethodCoverage, hasClassCoverage, hasConditionCoverage, hasLineCoverage, isFailed, printFourCoverageColumns, printRatioCell, printRatioTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoverageReport

public CoverageReport(EmmaBuildAction action,
                      InputStream... xmlReports)
               throws IOException
Throws:
IOException

CoverageReport

public CoverageReport(EmmaBuildAction action,
                      File xmlReport)
               throws IOException
Throws:
IOException
Method Detail

getPreviousResult

public CoverageReport getPreviousResult()
Description copied from class: CoverageObject
Gets the corresponding coverage report object in the previous run that has the record.

Overrides:
getPreviousResult in class AbstractReport<CoverageReport,CoverageReport>
Returns:
null if no earlier record was found.

getBuild

public hudson.model.AbstractBuild<?,?> getBuild()
Description copied from class: CoverageObject
Gets the build object that owns the whole coverage report tree.

Overrides:
getBuild in class AbstractReport<CoverageReport,CoverageReport>


Copyright © 2004-2012 Hudson. All Rights Reserved.