Groovy Documentation

org.gmetrics.report
[Groovy] Class AbstractReportWriter

java.lang.Object
  org.gmetrics.report.AbstractReportWriter
All Implemented Interfaces:
ReportWriter

abstract 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


Field Summary
protected static def BASE_MESSAGES_BUNDLE

protected static def CUSTOM_MESSAGES_BUNDLE

protected static def GMETRICS_URL

protected def LOG

protected def customMessagesBundleName

protected def formatterFactory

protected Map formatters

protected def getTimestamp

protected def initializeResourceBundle

protected def resourceBundle

 
Property Summary
String outputFile

Object writeToStandardOut

 
Method Summary
protected String formatMetricResultValue(String metricName, Object value)

protected String getFormattedTimestamp()

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

protected String getResourceBundleStringOrNull(String resourceKey)

protected void initializeDefaultResourceBundle()

protected void initializeFormatters(MetricSet metricSet)

protected 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
 

Field 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

@SuppressWarnings(['LoggerWithWrongModifiers', 'FieldName'])
protected final def LOG


customMessagesBundleName

protected def customMessagesBundleName


formatterFactory

protected def formatterFactory


formatters

protected Map formatters


getTimestamp

protected def getTimestamp


initializeResourceBundle

protected def initializeResourceBundle


resourceBundle

protected def resourceBundle


 
Property Detail

outputFile

String outputFile


writeToStandardOut

Object writeToStandardOut


 
Method Detail

formatMetricResultValue

protected String formatMetricResultValue(String metricName, Object value)


getFormattedTimestamp

protected String getFormattedTimestamp()


getResourceBundleString

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


getResourceBundleStringOrNull

@SuppressWarnings('ReturnNullFromCatchBlock')
protected String getResourceBundleStringOrNull(String resourceKey)


initializeDefaultResourceBundle

protected void initializeDefaultResourceBundle()


initializeFormatters

protected void initializeFormatters(MetricSet metricSet)


writeReport

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


writeReport

void writeReport(ResultsNode resultsNode, AnalysisContext analysisContext)


 

Groovy Documentation