Package eu.europa.esig.dss.simplereport
Class SimpleReportFacade
- java.lang.Object
-
- eu.europa.esig.dss.jaxb.parsers.AbstractJaxbFacade<XmlSimpleReport>
-
- eu.europa.esig.dss.simplereport.SimpleReportFacade
-
public class SimpleReportFacade extends AbstractJaxbFacade<XmlSimpleReport>
-
-
Constructor Summary
Constructors Constructor Description SimpleReportFacade()
-
Method Summary
Modifier and Type Method Description StringgenerateHtmlReport(XmlSimpleReport simpleReport)voidgenerateHtmlReport(XmlSimpleReport simpleReport, Result result)StringgenerateHtmlReport(String marshalledSimpleReport)voidgenerateHtmlReport(String marshalledSimpleReport, Result result)voidgeneratePdfReport(XmlSimpleReport simpleReport, Result result)voidgeneratePdfReport(String marshalledSimpleReport, Result result)protected 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 SimpleReportFacadenewFacade()protected JAXBElement<XmlSimpleReport>wrap(XmlSimpleReport simpleReport)This method wraps/envelops the JAXB object with a "root" element-
Methods inherited from class eu.europa.esig.dss.jaxb.parsers.AbstractJaxbFacade
getMarshaller, getUnmarshaller, marshall, marshall, marshall, marshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall
-
-
-
-
Method Detail
-
newFacade
public static SimpleReportFacade newFacade()
-
getJAXBContext
protected JAXBContext getJAXBContext() throws JAXBException
Description copied from class:AbstractJaxbFacadeThis method returns the instance ofJAXBContextwhich can handle the JAXB Object- Specified by:
getJAXBContextin classAbstractJaxbFacade<XmlSimpleReport>- Returns:
- an instance of
JAXBContext - Throws:
JAXBException- if an error occurred in the initialization process
-
getSchema
protected Schema getSchema() throws IOException, SAXException
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<XmlSimpleReport>- 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
protected JAXBElement<XmlSimpleReport> wrap(XmlSimpleReport simpleReport)
Description copied from class:AbstractJaxbFacadeThis method wraps/envelops the JAXB object with a "root" element- Specified by:
wrapin classAbstractJaxbFacade<XmlSimpleReport>- Parameters:
simpleReport- the JAXB object to be enveloped to marshall- Returns:
- the enveloped JAXB object, ready to be marshalled
-
generateHtmlReport
public String generateHtmlReport(XmlSimpleReport simpleReport) throws IOException, TransformerException, JAXBException
-
generateHtmlReport
public void generateHtmlReport(XmlSimpleReport simpleReport, Result result) throws IOException, TransformerException, JAXBException
-
generateHtmlReport
public String generateHtmlReport(String marshalledSimpleReport) throws IOException, TransformerException
- Throws:
IOExceptionTransformerException
-
generateHtmlReport
public void generateHtmlReport(String marshalledSimpleReport, Result result) throws IOException, TransformerException
- Throws:
IOExceptionTransformerException
-
generatePdfReport
public void generatePdfReport(XmlSimpleReport simpleReport, Result result) throws IOException, TransformerException, JAXBException
-
generatePdfReport
public void generatePdfReport(String marshalledSimpleReport, Result result) throws IOException, TransformerException
- Throws:
IOExceptionTransformerException
-
-