|
||||||||||
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<O>
O
- the type of the writer instance.
public abstract class AbstractOutputReportGenerator<O>
Abstract implementation that helps to traverse the information.
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 | |
---|---|
protected |
AbstractOutputReportGenerator(JavadocRenderer renderer) Default constructor. |
Method Summary | |
---|---|
protected abstract String |
getCodeTitle(String headLine, ExceptionCodeReportItem item) Returns the title to be set for the report item. |
protected abstract String |
getCurrentSelection(ExceptionCodeReportItem item) Returns the selection criteria for creating subsections in the report. |
protected abstract List<ExceptionCodeReportItem> |
getItems(StoredExceptionCodesReport report) Returns the list of exception code items sorted as defined by the report. |
protected abstract boolean |
hasSectionChanged(String currentSection, ExceptionCodeReportItem item) Determines if the section has changed for the new item. |
protected void |
write(O output, ProjectConfiguration<O> config, StoredExceptionCodesReport report) Writes the content of the report data to the stream. |
protected void |
writeFooter(O output, ProjectConfiguration<O> config) Writes the footer to the document. |
protected void |
writeHeader(O output, ProjectConfiguration<O> config) Writes visible the document header. |
protected abstract void |
writeInfoFooter(O output, ProjectConfiguration<O> config) Writes the footer for the report element set to the document. |
protected abstract void |
writeInfoHeader(O output, ProjectConfiguration<O> config, String headLine, ExceptionCodeReportItem item) Writes the header for the report. |
protected void |
writeInfoSubHeader(O output, ProjectConfiguration<O> config, String subHeader) Writes the sub header information. |
protected abstract void |
writeReportElementInfo(O output, ProjectConfiguration<O> config, ExceptionCodeReportItem item) Writes the given report element information. |
protected abstract void |
writeTableHeader(O output, ProjectConfiguration<O> config) Writes the table header for the report elements set. |
Methods inherited from class de.smartics.exceptions.report.generator.AbstractReportGenerator |
---|
getEncoding, getOutput, setEncoding, setOutput, writeContent, writeReport |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractOutputReportGenerator(JavadocRenderer renderer)
renderer
- the renderer used to map Javadoc comments to the report's output format.
Method Detail |
---|
protected void write(O output, ProjectConfiguration<O> config, StoredExceptionCodesReport report) throws Exception
output
- the writer to write to.
config
- the project configuration to control the output.
report
- the report information to write.
Exception
- on any problem encountered.
protected abstract List<ExceptionCodeReportItem> getItems(StoredExceptionCodesReport report)
report
- the report to access further information.
protected abstract String getCurrentSelection(ExceptionCodeReportItem item)
item
- the item to determine the criteria.
protected abstract boolean hasSectionChanged(String currentSection, ExceptionCodeReportItem item)
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 abstract String getCodeTitle(String headLine, ExceptionCodeReportItem item)
headLine
- a proposed headline by the caller. May be overridden.
item
- the item to construct a headline for.
protected void writeHeader(O output, ProjectConfiguration<O> config) throws Exception
The default implementation is a no-op.
output
- the writer to write to.
config
- the project configuration to control the output.
Exception
- on any problem encountered.
protected abstract void writeInfoHeader(O output, ProjectConfiguration<O> config, String headLine, ExceptionCodeReportItem item) throws Exception
One of clazz
or header
may be null
. If both are not null
the implementation decides how to print.
output
- the writer to write to.
config
- the project configuration to control the output.
headLine
- an head line text to print.
item
- the information of the class whose elements are about to print.
Exception
- on any problem encountered.
protected void writeInfoSubHeader(O output, ProjectConfiguration<O> config, String subHeader) throws Exception
The default implementation is a no-op.
output
- the writer to write to.
config
- the project configuration to control the output.
subHeader
- the sub header information to write.
Exception
- on any problem encountered.
protected abstract void writeTableHeader(O output, ProjectConfiguration<O> config) throws Exception
output
- the writer to write to.
config
- the project configuration to control the output.
Exception
- on any problem encountered.
protected abstract void writeReportElementInfo(O output, ProjectConfiguration<O> config, ExceptionCodeReportItem item) throws Exception
output
- 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.
protected abstract void writeInfoFooter(O output, ProjectConfiguration<O> config) throws Exception
output
- the writer to write to.
config
- the project configuration to control the output.
Exception
- on any problem encountered.
protected void writeFooter(O output, ProjectConfiguration<O> config) throws Exception
The default implementation is a no-op.
output
- the writer to write to.
config
- the project configuration to control the output.
Exception
- on any problem encountered.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |