|
||||||||||
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>
O
- the type of expected output instance.
public abstract class AbstractReportGenerator<O>
Base implementation of all report generators.
Field Summary | |
---|---|
protected String |
encoding The encoding of the writer. |
protected O |
output The output element to pass to each method. |
protected JavadocRenderer |
renderer The renderer used to map Javadoc comments to the report's output format. |
Fields inherited from interface de.smartics.exceptions.report.generator.ReportGenerator |
---|
DEFAULT_ENCODING |
Constructor Summary | |
---|---|
protected |
AbstractReportGenerator(JavadocRenderer renderer) Default constructor. |
Method Summary | |
---|---|
String |
getEncoding() Returns the encoding of the writer. |
O |
getOutput() Returns the output element to pass to each method. |
void |
setEncoding(String encoding) Sets the encoding of the writer. |
void |
setOutput(O output) Sets the output element to pass to each method. |
protected abstract void |
writeContent(O output, ProjectConfiguration<O> config, StoredExceptionCodesReport report) Writes the content of the XML document. |
void |
writeReport(ProjectConfiguration<O> config, StoredExceptionCodesReport report) Writes the report with the given information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected O output
protected String encoding
protected final JavadocRenderer renderer
Constructor Detail |
---|
protected AbstractReportGenerator(JavadocRenderer renderer)
renderer
- the renderer used to map Javadoc comments to the report's output format.
Method Detail |
---|
public O getOutput()
getOutput
in interface
ReportGenerator<O>
public void setOutput(O output)
setOutput
in interface
ReportGenerator<O>
output
- the output element to pass to each method.
public String getEncoding()
getEncoding
in interface
ReportGenerator<O>
public void setEncoding(String encoding)
setEncoding
in interface
ReportGenerator<O>
encoding
- the encoding of the writer.
public void writeReport(ProjectConfiguration<O> config, StoredExceptionCodesReport report) throws ReportException
writeReport
in interface
ReportGenerator<O>
config
- the project configuration to control the report generation.
report
- the information to write.
ReportException
- on any problem generating the report.
protected abstract void writeContent(O output, ProjectConfiguration<O> config, StoredExceptionCodesReport report) throws Exception
output
- the writer to use.
config
- the project configuration to control the output.
report
- the information to write.
Exception
- on any problem encountered.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |