|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.platform.mimetype.MimetypeEntryImpl
public class MimetypeEntryImpl
MimetypeEntry.
A mimetype instance holds mimetype meta information.
MimetypeEntry
,
Serialized FormConstructor Summary | |
---|---|
MimetypeEntryImpl(java.lang.String normalized,
java.util.List<java.lang.String> mimetypes,
java.util.List<java.lang.String> extensions,
java.lang.String iconPath,
boolean binary,
boolean onlineEditable,
boolean oleSupported)
|
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? |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MimetypeEntryImpl(java.lang.String normalized, java.util.List<java.lang.String> mimetypes, java.util.List<java.lang.String> extensions, java.lang.String iconPath, boolean binary, boolean onlineEditable, boolean oleSupported)
Method Detail |
---|
public java.util.List<java.lang.String> getExtensions()
MimetypeEntry
getExtensions
in interface MimetypeEntry
public java.lang.String getIconPath()
MimetypeEntry
getIconPath
in interface MimetypeEntry
public java.util.List<java.lang.String> getMimetypes()
MimetypeEntry
getMimetypes
in interface MimetypeEntry
public java.lang.String getMajor()
MimetypeEntry
getMajor
in interface MimetypeEntry
MimetypeEntry.getNormalized()
public java.lang.String getMinor()
MimetypeEntry
getMinor
in interface MimetypeEntry
MimetypeEntry.getNormalized()
public java.lang.String getNormalized()
MimetypeEntry
If this mime type has several names ('text/restructured', 'text-x-rst'), then this method will always return the first form.
getNormalized
in interface MimetypeEntry
public boolean isBinary()
MimetypeEntry
Might be useful to know if we can read it as human.
isBinary
in interface MimetypeEntry
public boolean isOnlineEditable()
MimetypeEntry
Might be useful to know to display the Edit online link.
isOnlineEditable
in interface MimetypeEntry
public boolean isOleSupported()
MimetypeEntry
If the property is true, processes the ole Extraction, otherwise skip.
isOleSupported
in interface MimetypeEntry
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |