Class XmlReportGenerator


  • public class XmlReportGenerator
    extends java.lang.Object
    This class will convert a PadesValidationReport to its xml representation.
    • Constructor Detail

      • XmlReportGenerator

        public XmlReportGenerator​(XmlReportOptions options)
        Instantiate a new instance of XmlReportGenerator.
        Parameters:
        options - the conversion options to use
    • Method Detail

      • generate

        public void generate​(PadesValidationReport report,
                             java.io.Writer writer)
                      throws javax.xml.transform.TransformerException,
                             javax.xml.parsers.ParserConfigurationException
        Generate xlm representation of a PadesValidationReport.
        Parameters:
        report - the report to transform
        writer - the writer instance to write the resulting xml to
        Throws:
        javax.xml.transform.TransformerException - if an unrecoverable error occurs during the course of the transformation
        javax.xml.parsers.ParserConfigurationException - if the DocumentBuilderFactory cannot support a configured feature
      • addSignatureReport

        private static void addSignatureReport​(org.w3c.dom.Document doc,
                                               org.w3c.dom.Element root,
                                               SignatureValidationReport signatureValidation)