|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.exceptions.report.generator.AbstractReportGenerator<O> de.smartics.exceptions.report.generator.AbstractOutputReportGenerator<XMLStreamWriter> de.smartics.exceptions.report.generator.AbstractXmlReportGenerator de.smartics.exceptions.report.generator.AbstractHtmlReportGenerator de.smartics.exceptions.report.generator.HtmlReportGenerator
public class HtmlReportGenerator
Simple generator that generates a HTML file for exception codes.
Field Summary |
---|
Fields inherited from class de.smartics.exceptions.report.generator.AbstractReportGenerator |
---|
encoding, output, renderer |
Fields inherited from interface de.smartics.exceptions.report.generator.ReportGenerator |
---|
DEFAULT_ENCODING |
Constructor Summary | |
---|---|
HtmlReportGenerator() Default constructor. |
Method Summary | |
---|---|
protected String |
getCodeTitle(String headLine, ExceptionCodeReportItem item) Returns the title to be set for the report item. |
protected String |
getCurrentSelection(ExceptionCodeReportItem item) Returns the selection criteria for creating subsections in the report. |
protected List<ExceptionCodeReportItem> |
getItems(StoredExceptionCodesReport report) Returns the list of exception code items sorted as defined by the report. |
protected boolean |
hasSectionChanged(String currentSection, ExceptionCodeReportItem item) Determines if the section has changed for the new item. |
void |
writeReport(ProjectConfiguration<XMLStreamWriter> config, StoredExceptionCodesReport report) Writes the report with the given information. |
protected void |
writeReportElementInfo(XMLStreamWriter xmlWriter, ProjectConfiguration<XMLStreamWriter> config, ExceptionCodeReportItem item) Writes the given report element information. |
protected void |
writeTableHeader(XMLStreamWriter xmlWriter, ProjectConfiguration<XMLStreamWriter> config) Writes the table header for the report elements set. |
Methods inherited from class de.smartics.exceptions.report.generator.AbstractHtmlReportGenerator |
---|
writeContent, writeInfoFooter, writeInfoHeader |
Methods inherited from class de.smartics.exceptions.report.generator.AbstractXmlReportGenerator |
---|
createOutput |
Methods inherited from class de.smartics.exceptions.report.generator.AbstractOutputReportGenerator |
---|
write, writeFooter, writeHeader, writeInfoSubHeader |
Methods inherited from class de.smartics.exceptions.report.generator.AbstractReportGenerator |
---|
getEncoding, getOutput, setEncoding, setOutput |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlReportGenerator()
AbstractHtmlReportGenerator#AbstractHtmlReportGenerator()
Method Detail |
---|
protected void writeTableHeader(XMLStreamWriter xmlWriter, ProjectConfiguration<XMLStreamWriter> config) throws XMLStreamException
writeTableHeader
in class
AbstractOutputReportGenerator<XMLStreamWriter>
xmlWriter
- the writer to write to.
config
- the project configuration to control the output.
XMLStreamException
protected void writeReportElementInfo(XMLStreamWriter xmlWriter, ProjectConfiguration<XMLStreamWriter> config, ExceptionCodeReportItem item) throws Exception
writeReportElementInfo
in class
AbstractOutputReportGenerator<XMLStreamWriter>
xmlWriter
- the writer to write to.
config
- the project configuration to control the output.
item
- the report element information to write.
Exception
- on any problem encountered.
public void writeReport(ProjectConfiguration<XMLStreamWriter> config, StoredExceptionCodesReport report) throws ReportException
AbstractXmlReportGenerator
writeReport
in interface
ReportGenerator<XMLStreamWriter>
writeReport
in class
AbstractXmlReportGenerator
config
- the project configuration to control the report generation.
report
- the information to write.
ReportException
- on any problem generating the report.
protected List<ExceptionCodeReportItem> getItems(StoredExceptionCodesReport report)
AbstractOutputReportGenerator
getItems
in class
AbstractOutputReportGenerator<XMLStreamWriter>
report
- the report to access further information.
protected boolean hasSectionChanged(String currentSection, ExceptionCodeReportItem item)
AbstractOutputReportGenerator
hasSectionChanged
in class
AbstractOutputReportGenerator<XMLStreamWriter>
currentSection
- the identifier of the current section.
item
- the next item to be rendered.
false
is returned. If it is part of a new section,
true
is returned.
protected String getCurrentSelection(ExceptionCodeReportItem item)
AbstractOutputReportGenerator
getCurrentSelection
in class
AbstractOutputReportGenerator<XMLStreamWriter>
item
- the item to determine the criteria.
protected String getCodeTitle(String headLine, ExceptionCodeReportItem item)
AbstractOutputReportGenerator
getCodeTitle
in class
AbstractOutputReportGenerator<XMLStreamWriter>
headLine
- a proposed headline by the caller. May be overridden.
item
- the item to construct a headline for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |