Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

All Superinterfaces:
Serializable
All Known Implementing Classes:
MimetypeEntryImpl

public interface MimetypeEntry
extends Serializable

MimetypeEntry entry.

Holds meta information about a mimetype.

Author:
Julien Anguenot, Laurent Godard

Method Summary
 List<String> getExtensions()
          Returns the list of extensions for this mimetype.
 String getIconPath()
          Returns the path of the icon for this mimetype.
 String getMajor()
          Returns the major part of the RFC-2046.
 List<String> getMimetypes()
          Returns the mimetype's names.
 String getMinor()
          Returns the minor part of the RFC-2046.
 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

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

Returns:
list of strings containing the mimetype names

getNormalized

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

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

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

Returns:
string
See Also:
getNormalized()

getIconPath

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

Returns:
String

getExtensions

List<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 ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.