Class XmlReportGenerator
- java.lang.Object
-
- com.itextpdf.signatures.validation.report.xml.XmlReportGenerator
-
public class XmlReportGenerator extends java.lang.Object
This class will convert aPadesValidationReport
to its xml representation.
-
-
Constructor Summary
Constructors Constructor Description XmlReportGenerator(XmlReportOptions options)
Instantiate a new instance of XmlReportGenerator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static void
addSignatureReport(org.w3c.dom.Document doc, org.w3c.dom.Element root, SignatureValidationReport signatureValidation)
void
generate(PadesValidationReport report, java.io.Writer writer)
Generate xlm representation of aPadesValidationReport
.
-
-
-
Field Detail
-
DOC_NS
public static final java.lang.String DOC_NS
- See Also:
- Constant Field Values
-
DS_NS
public static final java.lang.String DS_NS
- See Also:
- Constant Field Values
-
XSI_NS
public static final java.lang.String XSI_NS
- See Also:
- Constant Field Values
-
XS_NS
public static final java.lang.String XS_NS
- See Also:
- Constant Field Values
-
options
private final XmlReportOptions options
-
-
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 aPadesValidationReport
.- Parameters:
report
- the report to transformwriter
- the writer instance to write the resulting xml to- Throws:
javax.xml.transform.TransformerException
- if an unrecoverable error occurs during the course of the transformationjavax.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)
-
-