com.jcoverage.coverage.reporting.collation
Class ReportSummaryPackageLine

java.lang.Object
  extended bycom.jcoverage.reporting.AbstractLine
      extended bycom.jcoverage.coverage.reporting.collation.ReportSummaryPackageLine
All Implemented Interfaces:
Closeable, Line

public class ReportSummaryPackageLine
extends AbstractLine
implements Line


Field Summary
static Column COLUMN_AVERAGE_COVERAGE
           
static Column COLUMN_AVERAGE_COVERAGE_PERCENT
           
static Column COLUMN_BRANCH_AVERAGE_COVERAGE
           
static Column COLUMN_BRANCH_AVERAGE_COVERAGE_PERCENT
           
static Column COLUMN_PACKAGE_NAME
           
static Column COLUMN_TOTAL_JAVAFILES
           
static Column COLUMN_TOTAL_LINES
           
(package private) static org.apache.log4j.Logger logger
           
 
Fields inherited from class com.jcoverage.reporting.AbstractLine
 
Constructor Summary
ReportSummaryPackageLine()
           
 
Method Summary
 double getAverageBranchCoverageRate()
           
 double getAverageLineCoverageRate()
           
 java.lang.Object getField(Column column)
          Get the field value for a given column.
 int getSourceLinesCount()
           
 Page instantiateDetailPage()
          Subclasses should override this method if the line has information in a detail page.
 
Methods inherited from class com.jcoverage.reporting.AbstractLine
assertValidColumnForCategory, close, getDetailPage, getOwner, isClosed, openDetailPage, setCategory, setField, setField, setField, setField, setOwner, setReport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jcoverage.reporting.Line
getDetailPage, getOwner, openDetailPage, setCategory, setField, setField, setField, setField, setOwner, setReport
 
Methods inherited from interface com.jcoverage.reporting.Closeable
close, isClosed
 

Field Detail

logger

static org.apache.log4j.Logger logger

COLUMN_PACKAGE_NAME

public static Column COLUMN_PACKAGE_NAME

COLUMN_TOTAL_LINES

public static Column COLUMN_TOTAL_LINES

COLUMN_AVERAGE_COVERAGE

public static Column COLUMN_AVERAGE_COVERAGE

COLUMN_AVERAGE_COVERAGE_PERCENT

public static Column COLUMN_AVERAGE_COVERAGE_PERCENT

COLUMN_BRANCH_AVERAGE_COVERAGE

public static Column COLUMN_BRANCH_AVERAGE_COVERAGE

COLUMN_BRANCH_AVERAGE_COVERAGE_PERCENT

public static Column COLUMN_BRANCH_AVERAGE_COVERAGE_PERCENT

COLUMN_TOTAL_JAVAFILES

public static Column COLUMN_TOTAL_JAVAFILES
Constructor Detail

ReportSummaryPackageLine

public ReportSummaryPackageLine()
Method Detail

instantiateDetailPage

public Page instantiateDetailPage()
Description copied from class: AbstractLine
Subclasses should override this method if the line has information in a detail page.

Overrides:
instantiateDetailPage in class AbstractLine

getField

public java.lang.Object getField(Column column)
Description copied from class: AbstractLine
Get the field value for a given column.

Specified by:
getField in interface Line
Overrides:
getField in class AbstractLine
Parameters:
column - the given column.
Returns:
null if no value has been set for the given column.

getSourceLinesCount

public int getSourceLinesCount()

getAverageLineCoverageRate

public double getAverageLineCoverageRate()

getAverageBranchCoverageRate

public double getAverageBranchCoverageRate()