Class DetailedReportFacade
java.lang.Object
eu.europa.esig.dss.jaxb.AbstractJaxbFacade<XmlDetailedReport>
eu.europa.esig.dss.detailedreport.DetailedReportFacade
public class DetailedReportFacade extends AbstractJaxbFacade<XmlDetailedReport>
Contains methods for DetailedReport generation
-
Constructor Summary
Constructors Constructor Description DetailedReportFacade() -
Method Summary
Modifier and Type Method Description StringgenerateHtmlBootstrap3Report(XmlDetailedReport detailedReport)Generates a Bootstrap 3 Detailed reportvoidgenerateHtmlBootstrap3Report(XmlDetailedReport detailedReport, Result result)Generates a Bootstrap 3 Detailed report and writes toresultStringgenerateHtmlBootstrap3Report(String marshalledDetailedReport)Generates a Bootstrap 3 Detailed report from a stringvoidgenerateHtmlBootstrap3Report(String marshalledDetailedReport, Result result)Generates a Bootstrap 3 Detailed report from a string and writes toresultStringgenerateHtmlReport(XmlDetailedReport detailedReport)Generates a Bootstrap 4 Detailed reportvoidgenerateHtmlReport(XmlDetailedReport detailedReport, Result result)Generates a Bootstrap 4 Detailed report and writes toresultStringgenerateHtmlReport(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 JAXBContextgetJAXBContext()This method returns the instance ofJAXBContextwhich can handle the JAXB Objectprotected SchemagetSchema()This method returns an instance ofSchemawith the loaded XML Schema(s).static DetailedReportFacadenewFacade()Creates a newDetailedReportFacadeprotected JAXBElement<XmlDetailedReport>wrap(XmlDetailedReport detailedReport)This method wraps/envelops the JAXB object with a "root" elementMethods inherited from class eu.europa.esig.dss.jaxb.AbstractJaxbFacade
getMarshaller, getUnmarshaller, marshall, marshall, marshall, marshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall
-
Constructor Details
-
DetailedReportFacade
public DetailedReportFacade()
-
-
Method Details
-
newFacade
Creates a newDetailedReportFacade- Returns:
DetailedReportFacade
-
getJAXBContext
Description 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:
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, JAXBExceptionGenerates a Bootstrap 4 Detailed report- Parameters:
detailedReport-XmlDetailedReportJAXB report- Returns:
StringBootstrap 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, JAXBExceptionGenerates 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 occursJAXBException- if an JAXBException occurs
-
generateHtmlReport
public String generateHtmlReport(String marshalledDetailedReport) throws IOException, TransformerExceptionGenerates 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, TransformerExceptionGenerates 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
-
generateHtmlBootstrap3Report
public String generateHtmlBootstrap3Report(XmlDetailedReport detailedReport) throws IOException, TransformerException, JAXBExceptionGenerates a Bootstrap 3 Detailed report- Parameters:
detailedReport-XmlDetailedReportJAXB report- Returns:
StringBootstrap 4 HTML report- Throws:
IOException- if an IOException occursTransformerException- if an TransformerException occursJAXBException- if an JAXBException occurs
-
generateHtmlBootstrap3Report
public void generateHtmlBootstrap3Report(XmlDetailedReport detailedReport, Result result) throws IOException, TransformerException, JAXBExceptionGenerates a Bootstrap 3 Detailed report and writes toresult- Parameters:
detailedReport-XmlDetailedReportJAXB reportresult-Resultto embed the report to- Throws:
IOException- if an IOException occursTransformerException- if an TransformerException occursJAXBException- if an JAXBException occurs
-
generateHtmlBootstrap3Report
public String generateHtmlBootstrap3Report(String marshalledDetailedReport) throws IOException, TransformerExceptionGenerates a Bootstrap 3 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
-
generateHtmlBootstrap3Report
public void generateHtmlBootstrap3Report(String marshalledDetailedReport, Result result) throws IOException, TransformerExceptionGenerates a Bootstrap 3 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, JAXBExceptionGenerates a PDF Detailed report- Parameters:
detailedReport-XmlDetailedReportJAXB reportresult-Resultto 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, TransformerExceptionGenerates 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
-