Package org.gmetrics.report
Class AbstractReportWriter
java.lang.Object
org.gmetrics.report.AbstractReportWriter
- All Implemented Interfaces:
groovy.lang.GroovyObject,ReportWriter
- Direct Known Subclasses:
BasicHtmlReportWriter,SingleSeriesHtmlReportWriter,XmlReportWriter
public abstract class AbstractReportWriter
extends Object
implements ReportWriter, groovy.lang.GroovyObject
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringformatMetricResultValue(String metricName, Object value) protected Stringgroovy.lang.MetaClassgetProperty(String property) protected StringgetResourceBundleString(String resourceKey) protected StringgetResourceBundleString(String resourceKey, String defaultString) protected StringgetResourceBundleStringOrNull(String resourceKey) protected voidprotected voidinitializeFormatters(MetricSet metricSet) invokeMethod(String method, Object arguments) voidsetMetaClass(groovy.lang.MetaClass mc) voidsetOutputFile(String value) voidsetProperty(String property, Object value) voidsetWriteToStandardOut(Object value) protected abstract voidwriteReport(Writer writer, ResultsNode resultsNode, AnalysisContext analysisContext) voidwriteReport(ResultsNode resultsNode, AnalysisContext analysisContext)
-
Field Details
-
BASE_MESSAGES_BUNDLE
-
CUSTOM_MESSAGES_BUNDLE
-
GMETRICS_URL
-
LOG
-
customMessagesBundleName
-
resourceBundle
-
formatters
-
formatterFactory
-
initializeResourceBundle
-
getTimestamp
-
-
Constructor Details
-
AbstractReportWriter
public AbstractReportWriter()
-
-
Method Details
-
getResourceBundleString
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject
-
invokeMethod
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject
-
getProperty
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject
-
setProperty
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject
-
getOutputFile
-
setOutputFile
-
getWriteToStandardOut
-
setWriteToStandardOut
-
writeReport
protected abstract void writeReport(Writer writer, ResultsNode resultsNode, AnalysisContext analysisContext) -
writeReport
- Specified by:
writeReportin interfaceReportWriter
-
initializeDefaultResourceBundle
protected void initializeDefaultResourceBundle() -
getResourceBundleString
-
getResourceBundleStringOrNull
-
initializeFormatters
-
formatMetricResultValue
-
getFormattedTimestamp
-