hudson.plugins.emma
Class AbstractReport<PARENT extends AggregatedReport<?,PARENT,?>,SELF extends CoverageObject<SELF>>

java.lang.Object
  extended by hudson.plugins.emma.CoverageObject<SELF>
      extended by hudson.plugins.emma.AbstractReport<PARENT,SELF>
All Implemented Interfaces:
hudson.model.ModelObject
Direct Known Subclasses:
AggregatedReport, MethodReport

public abstract class AbstractReport<PARENT extends AggregatedReport<?,PARENT,?>,SELF extends CoverageObject<SELF>>
extends CoverageObject<SELF>
implements hudson.model.ModelObject

Base class of the coverage report tree, which maintains the details of the coverage report.

Author:
Kohsuke Kawaguchi

Constructor Summary
AbstractReport()
           
 
Method Summary
 void addCoverage(CoverageElement cv)
           
 hudson.model.AbstractBuild<?,?> getBuild()
          Gets the build object that owns the whole coverage report tree.
 String getDisplayName()
           
 String getName()
           
 PARENT getParent()
          Gets the back pointer to the parent coverage object.
 SELF getPreviousResult()
          Gets the corresponding coverage report object in the previous run that has the record.
 void setName(String name)
           
protected  void setParent(PARENT p)
          Called at the last stage of the tree construction, to set the back pointer.
 
Methods inherited from class hudson.plugins.emma.CoverageObject
doGraph, getApi, getBlockCoverage, getClassCoverage, getConditionCoverage, getLineCoverage, getMethodCoverage, hasClassCoverage, hasConditionCoverage, hasLineCoverage, isFailed, printFourCoverageColumns, printRatioCell, printRatioTable, setFailed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractReport

public AbstractReport()
Method Detail

addCoverage

public void addCoverage(CoverageElement cv)
                 throws IOException
Throws:
IOException

getName

public String getName()

setName

public void setName(String name)

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.ModelObject

setParent

protected void setParent(PARENT p)
Called at the last stage of the tree construction, to set the back pointer.


getParent

public PARENT getParent()
Gets the back pointer to the parent coverage object.


getPreviousResult

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

Specified by:
getPreviousResult in class CoverageObject<SELF extends CoverageObject<SELF>>
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.

Specified by:
getBuild in class CoverageObject<SELF extends CoverageObject<SELF>>


Copyright © 2004-2012 Hudson. All Rights Reserved.