Inheritance diagram for tit.summary.io.SummaryDOMWriter:
Public Member Functions | |
SummaryDOMWriter (Document documentinit) throws IOException | |
void | writeSummary (Summary summary, Personality personality) throws WritingSummaryFailedException |
void | closeWriter () |
Private Attributes | |
Document | document |
Element | root |
tit.summary.io.SummaryDOMWriter.SummaryDOMWriter | ( | Document | documentinit | ) | throws IOException |
creates a new SummaryXMLWriter
documentinit | The document to which the summary is written (must be empty). |
IOException | Is thrown when writing fails. |
void tit.summary.io.SummaryDOMWriter.writeSummary | ( | Summary | summary, | |
Personality | personality | |||
) | throws WritingSummaryFailedException [virtual] |
Writes a summary.
summary | The summary to write. | |
personality | The personality belonging to summary . |
WritingSummaryFailedException | Is thrown when the writing of the summary fails. |
Implements tit.summary.io.SummaryWriter.
void tit.summary.io.SummaryDOMWriter.closeWriter | ( | ) | [virtual] |
Closes this writer. No further writes are allowed after this method is called.
Implements tit.summary.io.SummaryWriter.
Document tit.summary.io.SummaryDOMWriter.document [private] |
The DOM document we are producing
Element tit.summary.io.SummaryDOMWriter.root [private] |
The root of the document.