Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.mimetype.interfaces
Interface MimetypeEntry

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
MimetypeEntryImpl

public interface MimetypeEntry
extends java.io.Serializable

MimetypeEntry entry.

Holds meta information about a mimetype.

Author:
Julien Anguenot, Laurent Godard

Method Summary
 java.util.List<java.lang.String> getExtensions()
          Returns the list of extensions for this mimetype.
 java.lang.String getIconPath()
          Returns the path of the icon for this mimetype.
 java.lang.String getMajor()
          Returns the major part of the RFC-2046.
 java.util.List<java.lang.String> getMimetypes()
          Returns the mimetype's names.
 java.lang.String getMinor()
          Returns the minor part of the RFC-2046.
 java.lang.String getNormalized()
          Returns the main RFC-2046 name for this mime type.
 boolean isBinary()
          Is this a binary mimetype?
 boolean isOleSupported()
          Is this mimetype supported by a oleExtract plugin?
 boolean isOnlineEditable()
          Is this mimetype supported by a LiveEdit plugin?
 

Method Detail

getMimetypes

java.util.List<java.lang.String> getMimetypes()
Returns the mimetype's names.

Returns:
list of strings containing the mimetype names

getNormalized

java.lang.String getNormalized()
Returns the main RFC-2046 name for this mime type.

If this mime type has several names ('text/restructured', 'text-x-rst'), then this method will always return the first form.

Returns:
the main RFC-2046 name for this mime type

getMajor

java.lang.String getMajor()
Returns the major part of the RFC-2046.

Returns:
the major part of the RFC-2046 name of this mime type.
See Also:
getNormalized()

getMinor

java.lang.String getMinor()
Returns the minor part of the RFC-2046.

Returns:
string
See Also:
getNormalized()

getIconPath

java.lang.String getIconPath()
Returns the path of the icon for this mimetype.

Returns:
String

getExtensions

java.util.List<java.lang.String> getExtensions()
Returns the list of extensions for this mimetype.

Returns:
list of strings that contain different mimetypes

isBinary

boolean isBinary()
Is this a binary mimetype?

Might be useful to know if we can read it as human.

Returns:
boolean

isOnlineEditable

boolean isOnlineEditable()
Is this mimetype supported by a LiveEdit plugin?

Might be useful to know to display the Edit online link.

Returns:
boolean

isOleSupported

boolean isOleSupported()
Is this mimetype supported by a oleExtract plugin?

If the property is true, processes the ole Extraction, otherwise skip.

Returns:
boolean

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.