public abstract class AbstractReportWriter extends Object implements ReportWriter, groovy.lang.GroovyObject
Modifier and Type | Field and Description |
---|---|
protected static Object |
BASE_MESSAGES_BUNDLE |
protected static Object |
CUSTOM_MESSAGES_BUNDLE |
protected Object |
customMessagesBundleName |
protected Object |
formatterFactory |
protected Map<Metric,Formatter> |
formatters |
protected Object |
getTimestamp |
protected static Object |
GMETRICS_URL |
protected Object |
initializeResourceBundle |
protected Object |
LOG |
protected Object |
resourceBundle |
Constructor and Description |
---|
AbstractReportWriter() |
protected static Object BASE_MESSAGES_BUNDLE
protected static Object CUSTOM_MESSAGES_BUNDLE
protected static Object GMETRICS_URL
protected Object LOG
protected Object customMessagesBundleName
protected Object resourceBundle
protected Object formatterFactory
protected Object initializeResourceBundle
protected Object getTimestamp
public groovy.lang.MetaClass getMetaClass()
getMetaClass
in interface groovy.lang.GroovyObject
public void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass
in interface groovy.lang.GroovyObject
public Object invokeMethod(String method, Object arguments)
invokeMethod
in interface groovy.lang.GroovyObject
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
public void setProperty(String property, Object value)
setProperty
in interface groovy.lang.GroovyObject
public String getOutputFile()
public void setOutputFile(String value)
public Object getWriteToStandardOut()
public void setWriteToStandardOut(Object value)
protected abstract void writeReport(Writer writer, ResultsNode resultsNode, AnalysisContext analysisContext)
public void writeReport(ResultsNode resultsNode, AnalysisContext analysisContext)
writeReport
in interface ReportWriter
protected void initializeDefaultResourceBundle()
protected String getResourceBundleString(String resourceKey, String defaultString)
protected void initializeFormatters(MetricSet metricSet)
protected String getFormattedTimestamp()
Copyright © 2015. All rights reserved.