org.gmetrics.report
Class XmlReportWriter

java.lang.Object
  extended by org.gmetrics.report.AbstractReportWriter
      extended by org.gmetrics.report.XmlReportWriter
All Implemented Interfaces:
groovy.lang.GroovyObject, ReportWriter

public class XmlReportWriter
extends AbstractReportWriter
implements groovy.lang.GroovyObject

ReportWriter that generates an XML report. The XML includes and the metric descriptions for each Metric within the passed-in MetricSet.

Version:
$Revision: 101 $ - $Date: 2010-03-10 19:17:23 -0500 (Wed, 10 Mar 2010) $
Author:
Chris Mair

Field Summary
static java.lang.Object DEFAULT_OUTPUT_FILE
           
 
Fields inherited from class org.gmetrics.report.AbstractReportWriter
BASE_MESSAGES_BUNDLE, CUSTOM_MESSAGES_BUNDLE, customMessagesBundleName, getTimestamp, GMETRICS_URL, initializeResourceBundle, LOG, resourceBundle, VERSION_FILE
 
Constructor Summary
XmlReportWriter()
           
 
Method Summary
static java.lang.Object getDefaultOutputFile()
           
protected  java.lang.String getDescriptionForMetric(Metric metric)
           
 groovy.lang.MetaClass getMetaClass()
           
 java.lang.Object getProperty(java.lang.String name)
           
 java.lang.String getTitle()
           
 java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)
           
static void setDefaultOutputFile(java.lang.Object value)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 void setTitle(java.lang.String value)
           
 void writeReport(java.io.Writer writer, ResultsNode resultsNode, AnalysisContext analysisContext)
           
 
Methods inherited from class org.gmetrics.report.AbstractReportWriter
getFormattedTimestamp, getGMetricsVersion, getOutputFile, getResourceBundleString, getWriteToStandardOut, initializeDefaultResourceBundle, setOutputFile, setWriteToStandardOut, writeReport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_OUTPUT_FILE

public static final java.lang.Object DEFAULT_OUTPUT_FILE
Constructor Detail

XmlReportWriter

public XmlReportWriter()
Method Detail

getDefaultOutputFile

public static java.lang.Object getDefaultOutputFile()

setDefaultOutputFile

public static void setDefaultOutputFile(java.lang.Object value)

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String value)

writeReport

public void writeReport(java.io.Writer writer,
                        ResultsNode resultsNode,
                        AnalysisContext analysisContext)
Specified by:
writeReport in class AbstractReportWriter

getDescriptionForMetric

protected java.lang.String getDescriptionForMetric(Metric metric)

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject
Overrides:
getMetaClass in class AbstractReportWriter

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject
Overrides:
setMetaClass in class AbstractReportWriter

invokeMethod

public java.lang.Object invokeMethod(java.lang.String name,
                                     java.lang.Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class AbstractReportWriter

getProperty

public java.lang.Object getProperty(java.lang.String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class AbstractReportWriter

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject
Overrides:
setProperty in class AbstractReportWriter


Copyright © 2010. All Rights Reserved.