com.jcoverage.coverage.reporting.html
Class MultiViewStaticHtmlFormat

java.lang.Object
  extended bycom.jcoverage.coverage.reporting.html.MultiViewStaticHtmlFormat
All Implemented Interfaces:
Format

public class MultiViewStaticHtmlFormat
extends java.lang.Object
implements Format

This class provides the generation of coverage reports in static html. Multiple views are defined by this class, and used to generate each page. Each view corresponds to a different line ordering, so that lines can be generated in alphabetical order, or by ascending or descending coverage.


Field Summary
static View[] ALL_VIEWS
           
static View ALPHABETICAL_VIEW
           
static View COVERAGE_ASCENDING_VIEW
           
static View COVERAGE_DESCENDING_VIEW
           
(package private) static org.apache.log4j.Logger logger
           
 
Constructor Summary
MultiViewStaticHtmlFormat()
           
 
Method Summary
 void formatPage(FormattingContext ctx, Page page)
          Implementation proxy.
 void formatPage(ViewFormattingContext ctx, Page page)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static org.apache.log4j.Logger logger

ALPHABETICAL_VIEW

public static final View ALPHABETICAL_VIEW

COVERAGE_ASCENDING_VIEW

public static final View COVERAGE_ASCENDING_VIEW

COVERAGE_DESCENDING_VIEW

public static final View COVERAGE_DESCENDING_VIEW

ALL_VIEWS

public static final View[] ALL_VIEWS
Constructor Detail

MultiViewStaticHtmlFormat

public MultiViewStaticHtmlFormat()
Method Detail

formatPage

public void formatPage(ViewFormattingContext ctx,
                       Page page)
                throws ReportingException
Specified by:
formatPage in interface Format
Throws:
ReportingException

formatPage

public void formatPage(FormattingContext ctx,
                       Page page)
                throws ReportingException
Implementation proxy. This implementation delegates to another formatPage implementation depending on the page.

Specified by:
formatPage in interface Format
Throws:
ReportingException - if the page is not recognized.