org.eclipse.persistence.jaxb.attachment
Class AttachmentMarshallerAdapter
java.lang.Object
   org.eclipse.persistence.jaxb.attachment.AttachmentMarshallerAdapter
org.eclipse.persistence.jaxb.attachment.AttachmentMarshallerAdapter
- All Implemented Interfaces: 
- XMLAttachmentMarshaller
- public class AttachmentMarshallerAdapter 
- extends java.lang.Object- implements 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
- Since:
- Oracle TopLink 11.1.1.0.0
 
| Method Summary | 
|  java.lang.String | addMtomAttachment(byte[] data,
                  int offset,
                  int length,
                  java.lang.String mimeType,
                  java.lang.String elementName,
                  java.lang.String namespace)
 | 
|  java.lang.String | addMtomAttachment(javax.activation.DataHandler data,
                  java.lang.String elementName,
                  java.lang.String namespaceURI)
 | 
|  java.lang.String | addSwaRefAttachment(byte[] data,
                    int offset,
                    int length)
 | 
|  java.lang.String | addSwaRefAttachment(javax.activation.DataHandler data)
 | 
|  javax.xml.bind.attachment.AttachmentMarshaller | getAttachmentMarshaller()
 | 
|  boolean | isXOPPackage()
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
AttachmentMarshallerAdapter
public AttachmentMarshallerAdapter(javax.xml.bind.attachment.AttachmentMarshaller a)
isXOPPackage
public boolean isXOPPackage()
- 
- Specified by:
- isXOPPackagein interface- XMLAttachmentMarshaller
 
- 
 
addMtomAttachment
public java.lang.String addMtomAttachment(javax.activation.DataHandler data,
                                          java.lang.String elementName,
                                          java.lang.String namespaceURI)
- 
- Specified by:
- addMtomAttachmentin interface- XMLAttachmentMarshaller
 
- 
 
addMtomAttachment
public java.lang.String addMtomAttachment(byte[] data,
                                          int offset,
                                          int length,
                                          java.lang.String mimeType,
                                          java.lang.String elementName,
                                          java.lang.String namespace)
- 
- Specified by:
- addMtomAttachmentin interface- XMLAttachmentMarshaller
 
- 
 
addSwaRefAttachment
public java.lang.String addSwaRefAttachment(javax.activation.DataHandler data)
- 
- Specified by:
- addSwaRefAttachmentin interface- XMLAttachmentMarshaller
 
- 
 
addSwaRefAttachment
public java.lang.String addSwaRefAttachment(byte[] data,
                                            int offset,
                                            int length)
- 
- Specified by:
- addSwaRefAttachmentin interface- XMLAttachmentMarshaller
 
- 
 
getAttachmentMarshaller
public javax.xml.bind.attachment.AttachmentMarshaller getAttachmentMarshaller()
- 
 
-