Package eu.europa.esig.dss.diagnostic
Class DiagnosticDataFacade
java.lang.Object
eu.europa.esig.dss.jaxb.common.AbstractJaxbFacade<XmlDiagnosticData>
eu.europa.esig.dss.diagnostic.DiagnosticDataFacade
This class is used to marshall/unmarshal DiagnosticData report
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateSVG(XmlDiagnosticData diagnosticDataJaxb) Generates a SVG representation of the diagnostic datavoidgenerateSVG(XmlDiagnosticData diagnosticDataJaxb, Result result) Generates a SVG representation of the diagnostic datagenerateSVG(String marshalledDiagnosticData) Generates a SVG representation of the diagnostic datavoidgenerateSVG(String marshalledDiagnosticData, Result result) Generates a SVG representation of the diagnostic dataprotected 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 DiagnosticDataFacadeCreates a new instance ofDiagnosticDataFacadeprotected jakarta.xml.bind.JAXBElement<XmlDiagnosticData> wrap(XmlDiagnosticData diagnosticDataJaxb) 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
-
DiagnosticDataFacade
protected DiagnosticDataFacade()Default constructor
-
-
Method Details
-
newFacade
Creates a new instance ofDiagnosticDataFacade- Returns:
DiagnosticDataFacade
-
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<XmlDiagnosticData>- 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<XmlDiagnosticData>- 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 jakarta.xml.bind.JAXBElement<XmlDiagnosticData> wrap(XmlDiagnosticData diagnosticDataJaxb) Description copied from class:AbstractJaxbFacadeThis method wraps/envelops the JAXB object with a "root" element- Specified by:
wrapin classAbstractJaxbFacade<XmlDiagnosticData>- Parameters:
diagnosticDataJaxb- the JAXB object to be enveloped to marshall- Returns:
- the enveloped JAXB object, ready to be marshalled
-
generateSVG
public String generateSVG(XmlDiagnosticData diagnosticDataJaxb) throws IOException, TransformerException, jakarta.xml.bind.JAXBException Generates a SVG representation of the diagnostic data- Parameters:
diagnosticDataJaxb-XmlDiagnosticData- Returns:
String- Throws:
IOException- if an IOException occursTransformerException- if an TransformerException occursjakarta.xml.bind.JAXBException- if an JAXBException occurs
-
generateSVG
public void generateSVG(XmlDiagnosticData diagnosticDataJaxb, Result result) throws IOException, TransformerException, jakarta.xml.bind.JAXBException Generates a SVG representation of the diagnostic data- Parameters:
diagnosticDataJaxb-XmlDiagnosticDataresult-Resultthe result's output- Throws:
IOException- if an IOException occursTransformerException- if an TransformerException occursjakarta.xml.bind.JAXBException- if an JAXBException occurs
-
generateSVG
Generates a SVG representation of the diagnostic data- Parameters:
marshalledDiagnosticData-Stringmarshalled diagnostic data- Returns:
String- Throws:
IOException- if IOException occursTransformerException- if TransformerException occurs
-
generateSVG
public void generateSVG(String marshalledDiagnosticData, Result result) throws IOException, TransformerException Generates a SVG representation of the diagnostic data- Parameters:
marshalledDiagnosticData-Stringmarshalled diagnostic dataresult-Resultto write the SVG into- Throws:
IOException- if an IOException occursTransformerException- if an TransformerException occurs
-