org.gmetrics.report
Class BasicHtmlReportWriter

java.lang.Object
  extended by org.gmetrics.report.AbstractReportWriter
      extended by org.gmetrics.report.BasicHtmlReportWriter
All Implemented Interfaces:
groovy.lang.GroovyObject, ReportWriter

public class BasicHtmlReportWriter
extends AbstractReportWriter
implements groovy.lang.GroovyObject

ReportWriter that generates a basic HTML report. The HTML includes a table containing a row for each package, class and method, and the metric values for each Metric within the passed-in MetricSet.

Version:
$Revision: 101 $ - $Date: 2010-03-10 19:17:23 -0500 (Wed, 10 Mar 2010) $
Author:
Chris Mair

Field Summary
static java.lang.Object DEFAULT_OUTPUT_FILE
           
 
Fields inherited from class org.gmetrics.report.AbstractReportWriter
BASE_MESSAGES_BUNDLE, CUSTOM_MESSAGES_BUNDLE, customMessagesBundleName, getTimestamp, GMETRICS_URL, initializeResourceBundle, LOG, resourceBundle, VERSION_FILE
 
Constructor Summary
BasicHtmlReportWriter()
           
 
Method Summary
static java.lang.Object getDefaultOutputFile()
           
protected  java.lang.String getDescriptionForMetricName(java.lang.String metricName)
           
 groovy.lang.MetaClass getMetaClass()
           
 java.lang.Object getProperty(java.lang.String name)
           
 java.lang.String getTitle()
           
 java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)
           
static void setDefaultOutputFile(java.lang.Object value)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 void setTitle(java.lang.String value)
           
 void writeReport(java.io.Writer writer, ResultsNode resultsNode, AnalysisContext analysisContext)
           
 
Methods inherited from class org.gmetrics.report.AbstractReportWriter
getFormattedTimestamp, getGMetricsVersion, getOutputFile, getResourceBundleString, getWriteToStandardOut, initializeDefaultResourceBundle, setOutputFile, setWriteToStandardOut, writeReport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_OUTPUT_FILE

public static final java.lang.Object DEFAULT_OUTPUT_FILE
Constructor Detail

BasicHtmlReportWriter

public BasicHtmlReportWriter()
Method Detail

getDefaultOutputFile

public static java.lang.Object getDefaultOutputFile()

setDefaultOutputFile

public static void setDefaultOutputFile(java.lang.Object value)

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String value)

writeReport

public void writeReport(java.io.Writer writer,
                        ResultsNode resultsNode,
                        AnalysisContext analysisContext)
Specified by:
writeReport in class AbstractReportWriter

getDescriptionForMetricName

protected java.lang.String getDescriptionForMetricName(java.lang.String metricName)

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject
Overrides:
getMetaClass in class AbstractReportWriter

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject
Overrides:
setMetaClass in class AbstractReportWriter

invokeMethod

public java.lang.Object invokeMethod(java.lang.String name,
                                     java.lang.Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class AbstractReportWriter

getProperty

public java.lang.Object getProperty(java.lang.String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class AbstractReportWriter

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject
Overrides:
setProperty in class AbstractReportWriter


Copyright © 2010. All Rights Reserved.