Interface XmlMessageReporter<M>
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
XmlMessageReporterBase
public interface XmlMessageReporter<M> extends java.lang.AutoCloseableReports 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 anXmlPositionerto associate DOM nodes with anpositionfor better error messages.A base implementation is available in
XmlMessageReporterBase. Implementations should useOoxmlFacade.getPrinter()as a back-end to render the messages.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Mat(@Nullable org.w3c.dom.Node node)Returns the second stage, which typically allows reporting messages likereporter.at(node).error("an error");.voidclose()
-