Class AttachmentMarshallerAdapter
java.lang.Object
org.eclipse.persistence.jaxb.attachment.AttachmentMarshallerAdapter
- All Implemented Interfaces:
XMLAttachmentMarshaller
INTERNAL:
Purpose:Provide an implementation of the TopLink OX XMLAttachmentMarshaller interface that wraps an implementation of the JAXB AttachmentMarshaller interface.
Responsibilities:
- Implement the XMLAttachmentMarshaller interface
- Adapt events from the TopLink OX Attachment API to the JAXB 2.0 Attachment API
This class allows TopLink OXM to do attachment marshalling callback events to a JAXB 2.0 Listener without adding a dependancy on JAXB 2.0 into core TopLink. The Adapter class wraps a javax.xml.bin.attachment.AttachmentMarshaller and passes on the events as they're raised
- See Also:
-
AttachmentMarshaller
XMLAttachmentMarshaller
- Author:
- mmacivor
-
Constructor Summary
ConstructorDescriptionAttachmentMarshallerAdapter
(jakarta.xml.bind.attachment.AttachmentMarshaller a) -
Method Summary
Modifier and TypeMethodDescriptionaddMtomAttachment
(byte[] data, int offset, int length, String mimeType, String elementName, String namespace) addMtomAttachment
(jakarta.activation.DataHandler data, String elementName, String namespaceURI) addSwaRefAttachment
(byte[] data, int offset, int length) addSwaRefAttachment
(jakarta.activation.DataHandler data) jakarta.xml.bind.attachment.AttachmentMarshaller
boolean
-
Constructor Details
-
AttachmentMarshallerAdapter
public AttachmentMarshallerAdapter(jakarta.xml.bind.attachment.AttachmentMarshaller a)
-
-
Method Details
-
isXOPPackage
public boolean isXOPPackage()- Specified by:
isXOPPackage
in interfaceXMLAttachmentMarshaller
-
addMtomAttachment
public String addMtomAttachment(jakarta.activation.DataHandler data, String elementName, String namespaceURI) - Specified by:
addMtomAttachment
in interfaceXMLAttachmentMarshaller
-
addMtomAttachment
public String addMtomAttachment(byte[] data, int offset, int length, String mimeType, String elementName, String namespace) - Specified by:
addMtomAttachment
in interfaceXMLAttachmentMarshaller
-
addSwaRefAttachment
- Specified by:
addSwaRefAttachment
in interfaceXMLAttachmentMarshaller
-
addSwaRefAttachment
- Specified by:
addSwaRefAttachment
in interfaceXMLAttachmentMarshaller
-
getAttachmentMarshaller
public jakarta.xml.bind.attachment.AttachmentMarshaller getAttachmentMarshaller()
-