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 String
formatMetricResultValue
(String metricName, Object value) protected String
groovy.lang.MetaClass
getProperty
(String property) protected String
getResourceBundleString
(String resourceKey) protected String
getResourceBundleString
(String resourceKey, String defaultString) protected String
getResourceBundleStringOrNull
(String resourceKey) protected void
protected void
initializeFormatters
(MetricSet metricSet) invokeMethod
(String method, Object arguments) void
setMetaClass
(groovy.lang.MetaClass mc) void
setOutputFile
(String value) void
setProperty
(String property, Object value) void
setWriteToStandardOut
(Object value) protected abstract void
writeReport
(Writer writer, ResultsNode resultsNode, AnalysisContext analysisContext) void
writeReport
(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:
getMetaClass
in interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
-
invokeMethod
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
-
getProperty
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
-
setProperty
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
-
getOutputFile
-
setOutputFile
-
getWriteToStandardOut
-
setWriteToStandardOut
-
writeReport
protected abstract void writeReport(Writer writer, ResultsNode resultsNode, AnalysisContext analysisContext) -
writeReport
- Specified by:
writeReport
in interfaceReportWriter
-
initializeDefaultResourceBundle
protected void initializeDefaultResourceBundle() -
getResourceBundleString
-
getResourceBundleStringOrNull
-
initializeFormatters
-
formatMetricResultValue
-
getFormattedTimestamp
-