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 Modifier and Type Field Description protected static ObjectBASE_MESSAGES_BUNDLEprotected static ObjectCUSTOM_MESSAGES_BUNDLEprotected ObjectcustomMessagesBundleNameprotected ObjectformatterFactoryprotected Map<Metric,Formatter>formattersprotected ObjectgetTimestampprotected static ObjectGMETRICS_URLprotected ObjectinitializeResourceBundleprotected ObjectLOGprotected ObjectresourceBundle
-
Constructor Summary
Constructors Constructor Description AbstractReportWriter()
-
Method Summary
-
-
-
Field Detail
-
BASE_MESSAGES_BUNDLE
protected static final Object BASE_MESSAGES_BUNDLE
-
CUSTOM_MESSAGES_BUNDLE
protected static final Object CUSTOM_MESSAGES_BUNDLE
-
GMETRICS_URL
protected static final Object GMETRICS_URL
-
LOG
protected final Object LOG
-
customMessagesBundleName
protected Object customMessagesBundleName
-
resourceBundle
protected Object resourceBundle
-
formatterFactory
protected Object formatterFactory
-
initializeResourceBundle
protected Object initializeResourceBundle
-
getTimestamp
protected Object getTimestamp
-
-
Method Detail
-
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
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject
-
getProperty
public Object getProperty(String property)
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject
-
getOutputFile
public String getOutputFile()
-
setOutputFile
public void setOutputFile(String value)
-
getWriteToStandardOut
public Object getWriteToStandardOut()
-
setWriteToStandardOut
public void setWriteToStandardOut(Object value)
-
writeReport
protected abstract void writeReport(Writer writer, ResultsNode resultsNode, AnalysisContext analysisContext)
-
writeReport
public void writeReport(ResultsNode resultsNode, AnalysisContext analysisContext)
- Specified by:
writeReportin interfaceReportWriter
-
initializeDefaultResourceBundle
protected void initializeDefaultResourceBundle()
-
getResourceBundleString
protected String getResourceBundleString(String resourceKey, String defaultString)
-
initializeFormatters
protected void initializeFormatters(MetricSet metricSet)
-
getFormattedTimestamp
protected String getFormattedTimestamp()
-
-