Interface MimeTypePolicy
-
- All Superinterfaces:
org.eclipse.persistence.internal.oxm.mappings.MimeTypePolicy
- All Known Implementing Classes:
FixedMimeTypePolicy
public interface MimeTypePolicy extends org.eclipse.persistence.internal.oxm.mappings.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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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- Specified by:
getMimeType
in interfaceorg.eclipse.persistence.internal.oxm.mappings.MimeTypePolicy
- Parameters:
anObject
- - fixed non-dynamic implementors will ignore this parameter- Returns:
- String
-
-