public class MimeType extends Object implements Comparable<org.pentaho.platform.api.mimetype.IMimeType>, org.pentaho.platform.api.mimetype.IMimeType
Constructor and Description |
---|
MimeType() |
MimeType(String name,
List<String> extensions) |
MimeType(String name,
String extensions)
Convenience method to allow comma delimited list of extensions
|
Modifier and Type | Method and 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() |
public String getName()
getName
in interface org.pentaho.platform.api.mimetype.IMimeType
public void setName(String name)
setName
in interface org.pentaho.platform.api.mimetype.IMimeType
public List<String> getExtensions()
getExtensions
in interface org.pentaho.platform.api.mimetype.IMimeType
public boolean isHidden()
isHidden
in interface org.pentaho.platform.api.mimetype.IMimeType
public void setHidden(boolean hidden)
setHidden
in interface org.pentaho.platform.api.mimetype.IMimeType
public boolean isLocale()
isLocale
in interface org.pentaho.platform.api.mimetype.IMimeType
public void setLocale(boolean locale)
setLocale
in interface org.pentaho.platform.api.mimetype.IMimeType
public boolean isVersionEnabled()
isVersionEnabled
in interface org.pentaho.platform.api.mimetype.IMimeType
public void setVersionEnabled(boolean versionEnabled)
setVersionEnabled
in interface org.pentaho.platform.api.mimetype.IMimeType
public boolean isVersionCommentEnabled()
isVersionCommentEnabled
in interface org.pentaho.platform.api.mimetype.IMimeType
public void setVersionCommentEnabled(boolean versionCommentEnabled)
setVersionCommentEnabled
in interface org.pentaho.platform.api.mimetype.IMimeType
public org.pentaho.platform.api.repository2.unified.Converter getConverter()
getConverter
in interface org.pentaho.platform.api.mimetype.IMimeType
public void setConverter(org.pentaho.platform.api.repository2.unified.Converter converter)
setConverter
in interface org.pentaho.platform.api.mimetype.IMimeType
public void setExtensions(List<String> extensions)
setExtensions
in interface org.pentaho.platform.api.mimetype.IMimeType
public String toString()
public int compareTo(org.pentaho.platform.api.mimetype.IMimeType o)
compareTo
in interface Comparable<org.pentaho.platform.api.mimetype.IMimeType>
Copyright © 2019 Hitachi Vantara. All rights reserved.