Jacson

de.spieleck.app.jacson.report
Class XMLReport

java.lang.Object
  extended byde.spieleck.app.jacson.report.PrintingReport
      extended byde.spieleck.app.jacson.report.XMLReport
All Implemented Interfaces:
ConfigVerify.Acceptor, JacsonPrintReport, JacsonReport, JacsonStately

public class XMLReport
extends PrintingReport

Light Report, that renders the output in a (nearly) correct XML.
More experimental. For a truely conformant XML use the XSLTReport without specifying a transformer (i.e. identity transformatiom). This handles encoding correctly.

Author:
fsn

Field Summary
 
Fields inherited from class de.spieleck.app.jacson.report.PrintingReport
begins, FILENAME_NODE, pw
 
Constructor Summary
XMLReport()
           
 
Method Summary
 void begin(java.lang.String id)
          Begin a subsection within report
 void end()
          Close a subsection within a report
 void finish(boolean close)
          Finish and optionally close the underlying resources
 void init(ConfigNode config)
          Initialize the report.
 void report(java.lang.String localName, java.lang.String value)
          Report a single name value pair within a report
 
Methods inherited from class de.spieleck.app.jacson.report.PrintingReport
accept, finish, getPrintWriter, getRegState, registerState, setOutputStream, setPrintWriter, useFilename, useFilename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLReport

public XMLReport()
Method Detail

init

public void init(ConfigNode config)
          throws JacsonConfigException
Description copied from interface: JacsonReport
Initialize the report. The passed ConfigNode can be used to obtain configuration information of the report from the global config xml.

Specified by:
init in interface JacsonReport
Overrides:
init in class PrintingReport
Throws:
JacsonConfigException

begin

public void begin(java.lang.String id)
Description copied from interface: JacsonReport
Begin a subsection within report

Specified by:
begin in interface JacsonReport
Overrides:
begin in class PrintingReport

report

public void report(java.lang.String localName,
                   java.lang.String value)
Description copied from interface: JacsonReport
Report a single name value pair within a report

Specified by:
report in interface JacsonReport
Overrides:
report in class PrintingReport

end

public void end()
Description copied from interface: JacsonReport
Close a subsection within a report

Specified by:
end in interface JacsonReport
Overrides:
end in class PrintingReport

finish

public void finish(boolean close)
Description copied from interface: JacsonReport
Finish and optionally close the underlying resources

Specified by:
finish in interface JacsonReport
Overrides:
finish in class PrintingReport

Spieleck

Copyleft 2002 spieleck.de.