Package eu.europa.esig.xmlers
Class XMLEvidenceRecordFacade
java.lang.Object
eu.europa.esig.dss.jaxb.common.AbstractJaxbFacade<EvidenceRecordType>
eu.europa.esig.xmlers.XMLEvidenceRecordFacade
Performs marshalling/unmarshalling operation for a XML Evidence Records XML
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.xml.bind.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 XMLEvidenceRecordFacade
Creates a new facadeprotected jakarta.xml.bind.JAXBElement
<EvidenceRecordType> wrap
(EvidenceRecordType jaxbObject) 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
-
XMLEvidenceRecordFacade
protected XMLEvidenceRecordFacade()Default constructor
-
-
Method Details
-
newFacade
Creates a new facade- Returns:
XMLEvidenceRecordFacade
-
getJAXBContext
protected jakarta.xml.bind.JAXBContext getJAXBContext() throws jakarta.xml.bind.JAXBExceptionDescription copied from class:AbstractJaxbFacade
This method returns the instance ofJAXBContext
which can handle the JAXB Object- Specified by:
getJAXBContext
in classAbstractJaxbFacade<EvidenceRecordType>
- Returns:
- an instance of
JAXBContext
- Throws:
jakarta.xml.bind.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<EvidenceRecordType>
- Returns:
- an instance of
Schema
- Throws:
SAXException
- 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<EvidenceRecordType>
- Parameters:
jaxbObject
- the JAXB object to be enveloped to marshall- Returns:
- the enveloped JAXB object, ready to be marshalled
-