Class XmlReportWriter
java.lang.Object
org.jboss.logging.processor.apt.report.ReportWriter
org.jboss.logging.processor.apt.report.XmlReportWriter
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Field Summary
FieldsFields inherited from class ReportWriter
DEFAULT_ID, messageIdFormat, messageInterface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()(package private) ReportTypeThe report type for this writer.voidwriteDetail(MessageMethod messageMethod) Writes a detail line for the report.voidWrites the footer for the report.voidwriteHeader(String title) Writes the header for the report.Methods inherited from class ReportWriter
getLogLevel, getUrl, of
-
Field Details
-
NAMESPACE
- See Also:
-
xmlWriter
-
-
Constructor Details
-
XmlReportWriter
XmlReportWriter(MessageInterface messageInterface, BufferedWriter writer) throws XMLStreamException - Throws:
XMLStreamException
-
-
Method Details
-
writeHeader
Description copied from class:ReportWriterWrites the header for the report.- Specified by:
writeHeaderin classReportWriter- Parameters:
title- the title of the header- Throws:
IOException- if an I/O error occurs
-
writeDetail
Description copied from class:ReportWriterWrites a detail line for the report.- Specified by:
writeDetailin classReportWriter- Parameters:
messageMethod- the method to write the details for- Throws:
IOException- if an I/O error occurs
-
close
- Throws:
IOException
-
getReportType
ReportType getReportType()Description copied from class:ReportWriterThe report type for this writer.- Specified by:
getReportTypein classReportWriter- Returns:
- the report type
-