EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.oxm.mappings
Interface MimeTypePolicy

All Known Implementing Classes:
AttributeMimeTypePolicy, FixedMimeTypePolicy

public interface MimeTypePolicy

Purpose:

A MimeTypePolicy is used in conjunction with an XMLBinaryData/CollectionMapping in order to allow customisation of the mime type for a specific property at runtime rather than at design time. By default, a FixedMimeTypePolicy is used.

See Also:
XMLBinaryDataMapping, XMLBinaryCollectionMapping, FixedMimeTypePolicy

Method Summary
 java.lang.String getMimeType(java.lang.Object anObject)
          return a MIME type string
 

Method Detail

getMimeType

java.lang.String getMimeType(java.lang.Object anObject)
return a MIME type string

Parameters:
anObject - - fixed non-dynamic implementors will ignore this parameter
Returns:
String

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference