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 String
generateHtmlBootstrap3Report(XmlDetailedReport detailedReport)
Generates a Bootstrap 3 Detailed reportvoid
generateHtmlBootstrap3Report(XmlDetailedReport detailedReport, Result result)
Generates a Bootstrap 3 Detailed report and writes toresult
String
generateHtmlBootstrap3Report(String marshalledDetailedReport)
Generates a Bootstrap 3 Detailed report from a stringvoid
generateHtmlBootstrap3Report(String marshalledDetailedReport, Result result)
Generates a Bootstrap 3 Detailed report from a string and writes toresult
String
generateHtmlReport(XmlDetailedReport detailedReport)
Generates a Bootstrap 4 Detailed reportvoid
generateHtmlReport(XmlDetailedReport detailedReport, Result result)
Generates a Bootstrap 4 Detailed report and writes toresult
String
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
getJAXBContext()
This method returns the instance ofJAXBContext
which can handle the JAXB Objectprotected Schema
getSchema()
This method returns an instance ofSchema
with the loaded XML Schema(s).static DetailedReportFacade
newFacade()
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.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: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, JAXBExceptionGenerates 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, JAXBExceptionGenerates 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, TransformerExceptionGenerates 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, TransformerExceptionGenerates 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
-
generateHtmlBootstrap3Report
public String generateHtmlBootstrap3Report(XmlDetailedReport detailedReport) throws IOException, TransformerException, JAXBExceptionGenerates a Bootstrap 3 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
-
generateHtmlBootstrap3Report
public void generateHtmlBootstrap3Report(XmlDetailedReport detailedReport, Result result) throws IOException, TransformerException, JAXBExceptionGenerates a Bootstrap 3 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
-
generateHtmlBootstrap3Report
public String generateHtmlBootstrap3Report(String marshalledDetailedReport) throws IOException, TransformerExceptionGenerates a Bootstrap 3 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
-
generateHtmlBootstrap3Report
public void generateHtmlBootstrap3Report(String marshalledDetailedReport, Result result) throws IOException, TransformerExceptionGenerates a Bootstrap 3 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, JAXBExceptionGenerates 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, TransformerExceptionGenerates 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
-