Interface XmlMessageReporter<M>
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
XmlMessageReporterBase
Reports errors in an XML document. This is meant as a helper
to carry around while validating an XML document. This interface
is the API provided to the validating code, what happens to the
messages is up to the implementation of the second stage (which is
meant to be some specific logger/ message reporter). Instances may wrap an
XmlPositioner to associate DOM nodes with an position
for better error messages.
A base implementation is available in XmlMessageReporterBase.
Implementations should use OoxmlFacade.getPrinter()
as a back-end to render the messages.
-
Method Summary
-
Method Details
-
at
Returns the second stage, which typically allows reporting messages likereporter.at(node).error("an error");. -
close
void close()- Specified by:
closein interfaceAutoCloseable
-