EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.oxm.attachment
Interface XMLAttachmentUnmarshaller

All Known Implementing Classes:
AttachmentUnmarshallerAdapter

public interface XMLAttachmentUnmarshaller

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 the binary data during an unmarshal based on a swaRef or MTOM id. If isXOPPackage returns false, then no other methods on this interface will be called, and it will be assumed that all binary mapped fields have been inlined as base64.

See Also:
XMLBinaryDataMapping, XMLAttachmentMarshaller

Method Summary
 byte[] getAttachmentAsByteArray(java.lang.String id)
           
 javax.activation.DataHandler getAttachmentAsDataHandler(java.lang.String id)
           
 boolean isXOPPackage()
           
 

Method Detail

getAttachmentAsDataHandler

javax.activation.DataHandler getAttachmentAsDataHandler(java.lang.String id)

getAttachmentAsByteArray

byte[] getAttachmentAsByteArray(java.lang.String id)

isXOPPackage

boolean isXOPPackage()

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference