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
-
Method Summary
Modifier and TypeMethodDescriptiongenerateHtmlReport
(XmlDetailedReport detailedReport) Generates a Bootstrap 4 Detailed reportvoid
generateHtmlReport
(XmlDetailedReport detailedReport, Result result) Generates a Bootstrap 4 Detailed report and writes toresult
generateHtmlReport
(String marshalledDetailedReport) Generates a Bootstrap 4 Detailed report from a stringvoid
generateHtmlReport
(String marshalledDetailedReport, Result result) Generates a Bootstrap 4 Detailed report from a string and writes toresult
void
generatePdfReport
(XmlDetailedReport detailedReport, Result result) Generates a PDF Detailed reportvoid
generatePdfReport
(String marshalledDetailedReport, Result result) Generates a PDF Detailed reportprotected JAXBContext
This method returns the instance ofJAXBContext
which can handle the JAXB Objectprotected Schema
This method returns an instance ofSchema
with the loaded XML Schema(s).static DetailedReportFacade
Creates a newDetailedReportFacade
protected 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
Description copied from class:AbstractJaxbFacade
This method returns the instance ofJAXBContext
which can handle the JAXB Object- Specified by:
getJAXBContext
in classAbstractJaxbFacade<XmlDetailedReport>
- Returns:
- an instance of
JAXBContext
- Throws:
JAXBException
- if an error occurred in the initialization process
-
getSchema
Description copied from class:AbstractJaxbFacade
This method returns an instance ofSchema
with the loaded XML Schema(s). The XSD(s) allows to validate the JAXB Object.- Specified by:
getSchema
in 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:AbstractJaxbFacade
This method wraps/envelops the JAXB object with a "root" element- Specified by:
wrap
in 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, JAXBException Generates a Bootstrap 4 Detailed report- Parameters:
detailedReport
-XmlDetailedReport
JAXB report- Returns:
String
Bootstrap 4 HTML report- Throws:
IOException
- if an IOException occursTransformerException
- if an TransformerException occursJAXBException
- if an JAXBException occurs
-
generateHtmlReport
public void generateHtmlReport(XmlDetailedReport detailedReport, Result result) throws IOException, TransformerException, JAXBException Generates a Bootstrap 4 Detailed report and writes toresult
- Parameters:
detailedReport
-XmlDetailedReport
JAXB reportresult
-Result
to embed the report to- Throws:
IOException
- if an IOException occursTransformerException
- if an TransformerException occursJAXBException
- if an JAXBException occurs
-
generateHtmlReport
public String generateHtmlReport(String marshalledDetailedReport) throws IOException, TransformerException Generates a Bootstrap 4 Detailed report from a string- Parameters:
marshalledDetailedReport
-String
the marshalled detailed report- Returns:
String
Bootstrap 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
-String
the marshalled detailed reportresult
-Result
to 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, JAXBException Generates a PDF Detailed report- Parameters:
detailedReport
-XmlDetailedReport
JAXB reportresult
-Result
to embed the report to- Throws:
IOException
- if an IOException occursTransformerException
- if a Transformer Exception occursJAXBException
- if a JAXB Exception occurs
-
generatePdfReport
public void generatePdfReport(String marshalledDetailedReport, Result result) throws IOException, TransformerException Generates a PDF Detailed report- Parameters:
marshalledDetailedReport
-String
the marshalled detailed reportresult
-Result
to embed the report to- Throws:
IOException
- if an IOException occursTransformerException
- if a Transformer Exception occurs
-