|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.oxm.mappings.FixedMimeTypePolicy
public class FixedMimeTypePolicy
The mime type will be obtained from the objects field/property that is mapped to the XML attribute with name "contentType" and namespace URI "http://www.w3.org/2005/05/xmlmime". If this is not set/present then the fixed value will be returned.
Constructor Summary | |
---|---|
FixedMimeTypePolicy()
|
|
FixedMimeTypePolicy(java.lang.String aMimeTypeParameter)
|
|
FixedMimeTypePolicy(java.lang.String aMimeTypeParameter,
DatabaseMapping mapping)
|
Method Summary | |
---|---|
java.lang.String |
getMimeType()
Return the default mime type for this policy. |
java.lang.String |
getMimeType(java.lang.Object anObject)
The mime type will be obtained from the objects field/property that is mapped to the XML attribute with name "contentType" and namespace URI "http://www.w3.org/2005/05/xmlmime". |
void |
setMimeType(java.lang.String aString)
Set the default mime type for this policy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FixedMimeTypePolicy()
public FixedMimeTypePolicy(java.lang.String aMimeTypeParameter)
public FixedMimeTypePolicy(java.lang.String aMimeTypeParameter, DatabaseMapping mapping)
Method Detail |
---|
public java.lang.String getMimeType(java.lang.Object anObject)
getMimeType
in interface MimeTypePolicy
anObject
- - fixed non-dynamic implementors will ignore this parameter
public java.lang.String getMimeType()
public void setMimeType(java.lang.String aString)
|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |