net.sf.jmd.report.impl
Class XMLReporter

java.lang.Object
  extended by net.sf.jmd.report.impl.XMLReporter
All Implemented Interfaces:
IReporter
Direct Known Subclasses:
HTMLReporter

public class XMLReporter
extends java.lang.Object
implements IReporter

Author:
Jan Hinzmann

Constructor Summary
protected XMLReporter()
          this has to be instantiated through the ReporterFactory.
 
Method Summary
 java.lang.StringBuffer getReportAsXML(IReport report)
          Returns the XML representation of a report.
 void report(IReport report)
          Generates the XML representation of the given report and writes it to the file configured with "MoDi.XMLReportFile.Name".
 void setFilename(java.lang.String file)
          setting the filename will store the report at this location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLReporter

protected XMLReporter()
this has to be instantiated through the ReporterFactory.

Method Detail

setFilename

public void setFilename(java.lang.String file)
setting the filename will store the report at this location. if this is not set, the filelocation from the config will be used.

Parameters:
file -

report

public void report(IReport report)
Generates the XML representation of the given report and writes it to the file configured with "MoDi.XMLReportFile.Name".

Specified by:
report in interface IReporter
See Also:
de.dlr.sistec.modi.evaluation.IReporter#report()

getReportAsXML

public java.lang.StringBuffer getReportAsXML(IReport report)
Returns the XML representation of a report.

Parameters:
report - An IReport
Returns:
the XML representation of the given report.


Copyright © 2007-2010. All Rights Reserved.