Package org.nuxeo.ecm.platform.mimetype
Class MimetypeEntryImpl
- java.lang.Object
-
- org.nuxeo.ecm.platform.mimetype.MimetypeEntryImpl
-
- All Implemented Interfaces:
Serializable
,MimetypeEntry
public class MimetypeEntryImpl extends Object implements MimetypeEntry
MimetypeEntry.A mimetype instance holds mimetype meta information.
- Author:
- Julien Anguenot
- See Also:
MimetypeEntry
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
binary
protected List<String>
extensions
protected String
iconPath
protected List<String>
mimetypes
protected String
normalized
protected boolean
oleSupported
protected boolean
onlineEditable
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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?
-
-
-
Field Detail
-
extensions
protected final List<String> extensions
-
binary
protected final boolean binary
-
onlineEditable
protected final boolean onlineEditable
-
oleSupported
protected final boolean oleSupported
-
normalized
protected final String normalized
-
-
Method Detail
-
getExtensions
public List<String> getExtensions()
Description copied from interface:MimetypeEntry
Returns the list of extensions for this mimetype.- Specified by:
getExtensions
in interfaceMimetypeEntry
- Returns:
- list of strings that contain different mimetypes
-
getIconPath
public String getIconPath()
Description copied from interface:MimetypeEntry
Returns the path of the icon for this mimetype.- Specified by:
getIconPath
in interfaceMimetypeEntry
- Returns:
- String
-
getMimetypes
public List<String> getMimetypes()
Description copied from interface:MimetypeEntry
Returns the mimetype's names.- Specified by:
getMimetypes
in interfaceMimetypeEntry
- Returns:
- list of strings containing the mimetype names
-
getMajor
public String getMajor()
Description copied from interface:MimetypeEntry
Returns the major part of the RFC-2046.- Specified by:
getMajor
in interfaceMimetypeEntry
- Returns:
- the major part of the RFC-2046 name of this mime type.
- See Also:
MimetypeEntry.getNormalized()
-
getMinor
public String getMinor()
Description copied from interface:MimetypeEntry
Returns the minor part of the RFC-2046.- Specified by:
getMinor
in interfaceMimetypeEntry
- Returns:
- string
- See Also:
MimetypeEntry.getNormalized()
-
getNormalized
public String getNormalized()
Description copied from interface:MimetypeEntry
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.
- Specified by:
getNormalized
in interfaceMimetypeEntry
- Returns:
- the main RFC-2046 name for this mime type
-
isBinary
public boolean isBinary()
Description copied from interface:MimetypeEntry
Is this a binary mimetype?Might be useful to know if we can read it as human.
- Specified by:
isBinary
in interfaceMimetypeEntry
- Returns:
- boolean
-
isOnlineEditable
public boolean isOnlineEditable()
Description copied from interface:MimetypeEntry
Is this mimetype supported by a LiveEdit plugin?Might be useful to know to display the Edit online link.
- Specified by:
isOnlineEditable
in interfaceMimetypeEntry
- Returns:
- boolean
-
isOleSupported
public boolean isOleSupported()
Description copied from interface:MimetypeEntry
Is this mimetype supported by a oleExtract plugin?If the property is true, processes the ole Extraction, otherwise skip.
- Specified by:
isOleSupported
in interfaceMimetypeEntry
- Returns:
- boolean
-
-