Class DetailedReportFacade
java.lang.Object
eu.europa.esig.dss.jaxb.common.AbstractJaxbFacade<XmlDetailedReport>
eu.europa.esig.dss.detailedreport.DetailedReportFacade
Contains methods for DetailedReport generation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateHtmlReport(XmlDetailedReport detailedReport) Generates a Bootstrap 4 Detailed reportvoidgenerateHtmlReport(XmlDetailedReport detailedReport, Result result) Generates a Bootstrap 4 Detailed report and writes toresultgenerateHtmlReport(String marshalledDetailedReport) Generates a Bootstrap 4 Detailed report from a stringvoidgenerateHtmlReport(String marshalledDetailedReport, Result result) Generates a Bootstrap 4 Detailed report from a string and writes toresultvoidgeneratePdfReport(XmlDetailedReport detailedReport, Result result) Generates a PDF Detailed reportvoidgeneratePdfReport(String marshalledDetailedReport, Result result) Generates a PDF Detailed reportprotected jakarta.xml.bind.JAXBContextThis method returns the instance ofJAXBContextwhich can handle the JAXB Objectprotected SchemaThis method returns an instance ofSchemawith the loaded XML Schema(s).static DetailedReportFacadeCreates a newDetailedReportFacadeprotected jakarta.xml.bind.JAXBElement<XmlDetailedReport> wrap(XmlDetailedReport detailedReport) This method wraps/envelops the JAXB object with a "root" elementMethods inherited from class eu.europa.esig.dss.jaxb.common.AbstractJaxbFacade
getMarshaller, getUnmarshaller, marshall, marshall, marshall, marshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall
-
Constructor Details
-
DetailedReportFacade
protected DetailedReportFacade()Default constructor
-
-
Method Details
-
newFacade
Creates a newDetailedReportFacade- Returns:
DetailedReportFacade
-
getJAXBContext
protected jakarta.xml.bind.JAXBContext getJAXBContext() throws jakarta.xml.bind.JAXBExceptionDescription copied from class:AbstractJaxbFacadeThis method returns the instance ofJAXBContextwhich can handle the JAXB Object- Specified by:
getJAXBContextin classAbstractJaxbFacade<XmlDetailedReport>- Returns:
- an instance of
JAXBContext - Throws:
jakarta.xml.bind.JAXBException- if an error occurred in the initialization process
-
getSchema
Description copied from class:AbstractJaxbFacadeThis method returns an instance ofSchemawith the loaded XML Schema(s). The XSD(s) allows to validate the JAXB Object.- Specified by:
getSchemain classAbstractJaxbFacade<XmlDetailedReport>- Returns:
- an instance of
Schema - Throws:
IOException- if an I/O error occurred in the initialization processSAXException- if a SAX error occurred in the initialization process
-
wrap
Description copied from class:AbstractJaxbFacadeThis method wraps/envelops the JAXB object with a "root" element- Specified by:
wrapin classAbstractJaxbFacade<XmlDetailedReport>- Parameters:
detailedReport- the JAXB object to be enveloped to marshall- Returns:
- the enveloped JAXB object, ready to be marshalled
-
generateHtmlReport
public String generateHtmlReport(XmlDetailedReport detailedReport) throws IOException, TransformerException, jakarta.xml.bind.JAXBException Generates a Bootstrap 4 Detailed report- Parameters:
detailedReport-XmlDetailedReportJAXB report- Returns:
StringBootstrap 4 HTML report- Throws:
IOException- if an IOException occursTransformerException- if an TransformerException occursjakarta.xml.bind.JAXBException- if an JAXBException occurs
-
generateHtmlReport
public void generateHtmlReport(XmlDetailedReport detailedReport, Result result) throws IOException, TransformerException, jakarta.xml.bind.JAXBException Generates a Bootstrap 4 Detailed report and writes toresult- Parameters:
detailedReport-XmlDetailedReportJAXB reportresult-Resultto embed the report to- Throws:
IOException- if an IOException occursTransformerException- if an TransformerException occursjakarta.xml.bind.JAXBException- if an JAXBException occurs
-
generateHtmlReport
public String generateHtmlReport(String marshalledDetailedReport) throws IOException, TransformerException Generates a Bootstrap 4 Detailed report from a string- Parameters:
marshalledDetailedReport-Stringthe marshalled detailed report- Returns:
StringBootstrap 4 HTML report- Throws:
IOException- if an IOException occursTransformerException- if an TransformerException occurs
-
generateHtmlReport
public void generateHtmlReport(String marshalledDetailedReport, Result result) throws IOException, TransformerException Generates a Bootstrap 4 Detailed report from a string and writes toresult- Parameters:
marshalledDetailedReport-Stringthe marshalled detailed reportresult-Resultto embed the report to- Throws:
IOException- if an IOException occursTransformerException- if an TransformerException occurs
-
generatePdfReport
public void generatePdfReport(XmlDetailedReport detailedReport, Result result) throws IOException, TransformerException, jakarta.xml.bind.JAXBException Generates a PDF Detailed report- Parameters:
detailedReport-XmlDetailedReportJAXB reportresult-Resultto embed the report to- Throws:
IOException- if an IOException occursTransformerException- if a Transformer Exception occursjakarta.xml.bind.JAXBException- if a JAXB Exception occurs
-
generatePdfReport
public void generatePdfReport(String marshalledDetailedReport, Result result) throws IOException, TransformerException Generates a PDF Detailed report- Parameters:
marshalledDetailedReport-Stringthe marshalled detailed reportresult-Resultto embed the report to- Throws:
IOException- if an IOException occursTransformerException- if a Transformer Exception occurs
-