net.sourceforge.groboutils.codecoverage.v2.report
Class XmlReportGenerator

java.lang.Object
  extended bynet.sourceforge.groboutils.codecoverage.v2.report.XmlReportGenerator
All Implemented Interfaces:
IReportGenerator, IXmlReportConst

public class XmlReportGenerator
extends java.lang.Object
implements IReportGenerator, IXmlReportConst

Creates an XML formatted report, suitable for framing.

Re-written to use DOM for XML creation; see bug 847334.

Since:
December 18, 2002
Version:
$Date: 2004/04/15 05:48:26 $
Author:
Matt Albrecht groboclown@users.sourceforge.net
See Also:
IAnalysisMetaData

Field Summary
 
Fields inherited from interface net.sourceforge.groboutils.codecoverage.v2.report.IXmlReportConst
A_CLASSNAME, A_CLASSSIGNATURE, A_COVERED, A_COVERED_DISP, A_INDEX, A_MEASURE, A_METHODSIGNATURE, A_METHODSIGNATURE_REAL, A_NAME, A_PACKAGE, A_PERCENTCOVERED, A_PERCENTCOVERED_DISP, A_SOURCEFILE, A_SOURCELINE, A_TEXT, A_TOTAL, A_TOTAL_DISP, A_UNIT, A_WEIGHT, A_WEIGHTEDPERCENT, A_WEIGHTEDPERCENT_DISP, T_CLASSCOVERAGE, T_COVER, T_COVERAGEREPORT, T_MARK, T_METHODCOVERAGE, T_PACKAGE
 
Constructor Summary
XmlReportGenerator()
           
 
Method Summary
 org.w3c.dom.Element createReport(IAnalysisModule module, AnalysisModuleData data)
          Sends the generated report to out using the given module and data set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlReportGenerator

public XmlReportGenerator()
Method Detail

createReport

public org.w3c.dom.Element createReport(IAnalysisModule module,
                                        AnalysisModuleData data)
                                 throws java.io.IOException
Sends the generated report to out using the given module and data set.

Specified by:
createReport in interface IReportGenerator
Parameters:
module - the measure which is being reported.
data - the set of data to report.
Returns:
the root element generated.
Throws:
java.io.IOException - thrown if writing to out causes an IOException.


Copyright © 2001-2003 by The GroboUtils Project