org.gmetrics.report
Class AbstractReportWriter
java.lang.Object
org.gmetrics.report.AbstractReportWriter
- All Implemented Interfaces:
- groovy.lang.GroovyObject, ReportWriter
- Direct Known Subclasses:
- BasicHtmlReportWriter, XmlReportWriter
public abstract class AbstractReportWriter
- extends java.lang.Object
- implements groovy.lang.GroovyObject, ReportWriter
Abstract superclass for ReportWriter implementation classes.
Subclasses must implement the writeReport(Writer, ResultsNode, AnalysisContext) method
and define a defaultOutputFile property.
- Version:
- $Revision: 101 $ - $Date: 2010-03-10 19:17:23 -0500 (Wed, 10 Mar 2010) $
- Author:
- Chris Mair
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BASE_MESSAGES_BUNDLE
protected static final java.lang.Object BASE_MESSAGES_BUNDLE
CUSTOM_MESSAGES_BUNDLE
protected static final java.lang.Object CUSTOM_MESSAGES_BUNDLE
VERSION_FILE
protected static final java.lang.Object VERSION_FILE
GMETRICS_URL
protected static final java.lang.Object GMETRICS_URL
LOG
protected final java.lang.Object LOG
customMessagesBundleName
protected java.lang.Object customMessagesBundleName
resourceBundle
protected java.lang.Object resourceBundle
initializeResourceBundle
protected java.lang.Object initializeResourceBundle
getTimestamp
protected java.lang.Object getTimestamp
AbstractReportWriter
public AbstractReportWriter()
getOutputFile
public java.lang.String getOutputFile()
setOutputFile
public void setOutputFile(java.lang.String value)
getWriteToStandardOut
public java.lang.Object getWriteToStandardOut()
setWriteToStandardOut
public void setWriteToStandardOut(java.lang.Object value)
writeReport
public abstract void writeReport(java.io.Writer writer,
ResultsNode resultsNode,
AnalysisContext analysisContext)
writeReport
public void writeReport(ResultsNode resultsNode,
AnalysisContext analysisContext)
- Specified by:
writeReport in interface ReportWriter
initializeDefaultResourceBundle
protected void initializeDefaultResourceBundle()
getResourceBundleString
protected java.lang.String getResourceBundleString(java.lang.String resourceKey,
java.lang.String defaultString)
getFormattedTimestamp
protected java.lang.String getFormattedTimestamp()
getGMetricsVersion
protected java.lang.String getGMetricsVersion()
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass in interface groovy.lang.GroovyObject
setMetaClass
public void setMetaClass(groovy.lang.MetaClass metaClass)
- Specified by:
setMetaClass in interface groovy.lang.GroovyObject
invokeMethod
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.Object args)
- Specified by:
invokeMethod in interface groovy.lang.GroovyObject
getProperty
public java.lang.Object getProperty(java.lang.String name)
- Specified by:
getProperty in interface groovy.lang.GroovyObject
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
- Specified by:
setProperty in interface groovy.lang.GroovyObject
Copyright © 2010. All Rights Reserved.