Class MimeType
- java.lang.Object
-
- org.pentaho.platform.core.mimetype.MimeType
-
- All Implemented Interfaces:
Comparable<org.pentaho.platform.api.mimetype.IMimeType>
,org.pentaho.platform.api.mimetype.IMimeType
public class MimeType extends Object implements Comparable<org.pentaho.platform.api.mimetype.IMimeType>, org.pentaho.platform.api.mimetype.IMimeType
Hold mime type name and extensions associated with it.- Author:
- tkafalas
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(org.pentaho.platform.api.mimetype.IMimeType o)
boolean
equals(Object obj)
org.pentaho.platform.api.repository2.unified.Converter
getConverter()
List<String>
getExtensions()
String
getName()
int
hashCode()
boolean
isHidden()
boolean
isLocale()
boolean
isVersionCommentEnabled()
boolean
isVersionEnabled()
void
setConverter(org.pentaho.platform.api.repository2.unified.Converter converter)
void
setExtensions(List<String> extensions)
void
setHidden(boolean hidden)
void
setLocale(boolean locale)
void
setName(String name)
void
setVersionCommentEnabled(boolean versionCommentEnabled)
void
setVersionEnabled(boolean versionEnabled)
String
toString()
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.pentaho.platform.api.mimetype.IMimeType
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceorg.pentaho.platform.api.mimetype.IMimeType
-
getExtensions
public List<String> getExtensions()
- Specified by:
getExtensions
in interfaceorg.pentaho.platform.api.mimetype.IMimeType
-
isHidden
public boolean isHidden()
- Specified by:
isHidden
in interfaceorg.pentaho.platform.api.mimetype.IMimeType
-
setHidden
public void setHidden(boolean hidden)
- Specified by:
setHidden
in interfaceorg.pentaho.platform.api.mimetype.IMimeType
-
isLocale
public boolean isLocale()
- Specified by:
isLocale
in interfaceorg.pentaho.platform.api.mimetype.IMimeType
-
setLocale
public void setLocale(boolean locale)
- Specified by:
setLocale
in interfaceorg.pentaho.platform.api.mimetype.IMimeType
-
isVersionEnabled
public boolean isVersionEnabled()
- Specified by:
isVersionEnabled
in interfaceorg.pentaho.platform.api.mimetype.IMimeType
-
setVersionEnabled
public void setVersionEnabled(boolean versionEnabled)
- Specified by:
setVersionEnabled
in interfaceorg.pentaho.platform.api.mimetype.IMimeType
-
isVersionCommentEnabled
public boolean isVersionCommentEnabled()
- Specified by:
isVersionCommentEnabled
in interfaceorg.pentaho.platform.api.mimetype.IMimeType
-
setVersionCommentEnabled
public void setVersionCommentEnabled(boolean versionCommentEnabled)
- Specified by:
setVersionCommentEnabled
in interfaceorg.pentaho.platform.api.mimetype.IMimeType
-
getConverter
public org.pentaho.platform.api.repository2.unified.Converter getConverter()
- Specified by:
getConverter
in interfaceorg.pentaho.platform.api.mimetype.IMimeType
-
setConverter
public void setConverter(org.pentaho.platform.api.repository2.unified.Converter converter)
- Specified by:
setConverter
in interfaceorg.pentaho.platform.api.mimetype.IMimeType
-
setExtensions
public void setExtensions(List<String> extensions)
- Specified by:
setExtensions
in interfaceorg.pentaho.platform.api.mimetype.IMimeType
-
toString
public String toString()
-
compareTo
public int compareTo(org.pentaho.platform.api.mimetype.IMimeType o)
- Specified by:
compareTo
in interfaceComparable<org.pentaho.platform.api.mimetype.IMimeType>
-
-