EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.oxm.attachment
Interface XMLAttachmentMarshaller

All Known Implementing Classes:
AttachmentMarshallerAdapter

public interface XMLAttachmentMarshaller

Purpose: Provides an interface through which EclipseLink can allow a user to do special handling for Binary Data. This is used for fields mapped using an XMLBinaryDataMapping to retrieve an id to be marshaled in place of the binary object. This id will be passed into an XMLAttachmentUnmarshaller when the document is unmarshalled to retrieve the original data. If isXOPPackage returns false, then no other methods on this interface will be called, and it will be assumed that all binary mapped fields should be inlined as base64.

See Also:
XMLBinaryDataMapping, XMLAttachmentUnmarshaller

Method Summary
 java.lang.String addMtomAttachment(byte[] data, int start, 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 namespace)
           
 java.lang.String addSwaRefAttachment(byte[] data, int start, int length)
           
 java.lang.String addSwaRefAttachment(javax.activation.DataHandler data)
           
 boolean isXOPPackage()
           
 

Method Detail

addMtomAttachment

java.lang.String addMtomAttachment(javax.activation.DataHandler data,
                                   java.lang.String elementName,
                                   java.lang.String namespace)

addSwaRefAttachment

java.lang.String addSwaRefAttachment(javax.activation.DataHandler data)

addMtomAttachment

java.lang.String addMtomAttachment(byte[] data,
                                   int start,
                                   int length,
                                   java.lang.String mimeType,
                                   java.lang.String elementName,
                                   java.lang.String namespace)

addSwaRefAttachment

java.lang.String addSwaRefAttachment(byte[] data,
                                     int start,
                                     int length)

isXOPPackage

boolean isXOPPackage()

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference