Groovy Documentation

org.gmetrics.report
Class AbstractReportWriter

java.lang.Object
  org.gmetrics.report.AbstractReportWriter

class AbstractReportWriter

Abstract superclass for ReportWriter implementation classes.

Subclasses must implement the writeReport(Writer, ResultsNode, AnalysisContext) method and define a defaultOutputFile property.

Authors:
Chris Mair
Version:
\$Revision: 91 \$ - \$Date: 2010-03-05 20:21:49 -0500 (Fri, 05 Mar 2010) \$


Property Summary
protected static def BASE_MESSAGES_BUNDLE

protected static def CUSTOM_MESSAGES_BUNDLE

protected static def GMETRICS_URL

protected def LOG

protected static def VERSION_FILE

protected def customMessagesBundleName

protected def getTimestamp

protected def initializeResourceBundle

String outputFile

protected def resourceBundle

Object writeToStandardOut

 
Constructor Summary
AbstractReportWriter()

 
Method Summary
protected String getFormattedTimestamp()

protected String getGMetricsVersion()

protected String getResourceBundleString(String resourceKey, String defaultString = '?')

protected void initializeDefaultResourceBundle()

void writeReport(Writer writer, ResultsNode resultsNode, AnalysisContext analysisContext)

void writeReport(ResultsNode resultsNode, AnalysisContext analysisContext)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Property Detail

BASE_MESSAGES_BUNDLE

protected static final def BASE_MESSAGES_BUNDLE


CUSTOM_MESSAGES_BUNDLE

protected static final def CUSTOM_MESSAGES_BUNDLE


GMETRICS_URL

protected static final def GMETRICS_URL


LOG

protected final def LOG


VERSION_FILE

protected static final def VERSION_FILE


customMessagesBundleName

protected def customMessagesBundleName


getTimestamp

protected def getTimestamp


initializeResourceBundle

protected def initializeResourceBundle


outputFile

String outputFile


resourceBundle

protected def resourceBundle


writeToStandardOut

Object writeToStandardOut


 
Constructor Detail

AbstractReportWriter

AbstractReportWriter()


 
Method Detail

getFormattedTimestamp

protected String getFormattedTimestamp()


getGMetricsVersion

protected String getGMetricsVersion()


getResourceBundleString

protected String getResourceBundleString(String resourceKey, String defaultString = '?')


initializeDefaultResourceBundle

protected void initializeDefaultResourceBundle()


writeReport

public void writeReport(Writer writer, ResultsNode resultsNode, AnalysisContext analysisContext)


writeReport

void writeReport(ResultsNode resultsNode, AnalysisContext analysisContext)


 

Groovy Documentation