Class 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
    • Constructor Detail

      • MimeType

        public MimeType()
      • MimeType

        public MimeType​(String name,
                        String extensions)
        Convenience method to allow comma delimited list of extensions
        Parameters:
        name -
        extensions -
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface org.pentaho.platform.api.mimetype.IMimeType
      • setName

        public void setName​(String name)
        Specified by:
        setName in interface org.pentaho.platform.api.mimetype.IMimeType
      • getExtensions

        public List<String> getExtensions()
        Specified by:
        getExtensions in interface org.pentaho.platform.api.mimetype.IMimeType
      • isHidden

        public boolean isHidden()
        Specified by:
        isHidden in interface org.pentaho.platform.api.mimetype.IMimeType
      • setHidden

        public void setHidden​(boolean hidden)
        Specified by:
        setHidden in interface org.pentaho.platform.api.mimetype.IMimeType
      • isLocale

        public boolean isLocale()
        Specified by:
        isLocale in interface org.pentaho.platform.api.mimetype.IMimeType
      • setLocale

        public void setLocale​(boolean locale)
        Specified by:
        setLocale in interface org.pentaho.platform.api.mimetype.IMimeType
      • isVersionEnabled

        public boolean isVersionEnabled()
        Specified by:
        isVersionEnabled in interface org.pentaho.platform.api.mimetype.IMimeType
      • setVersionEnabled

        public void setVersionEnabled​(boolean versionEnabled)
        Specified by:
        setVersionEnabled in interface org.pentaho.platform.api.mimetype.IMimeType
      • isVersionCommentEnabled

        public boolean isVersionCommentEnabled()
        Specified by:
        isVersionCommentEnabled in interface org.pentaho.platform.api.mimetype.IMimeType
      • setVersionCommentEnabled

        public void setVersionCommentEnabled​(boolean versionCommentEnabled)
        Specified by:
        setVersionCommentEnabled in interface org.pentaho.platform.api.mimetype.IMimeType
      • getConverter

        public org.pentaho.platform.api.repository2.unified.Converter getConverter()
        Specified by:
        getConverter in interface org.pentaho.platform.api.mimetype.IMimeType
      • setConverter

        public void setConverter​(org.pentaho.platform.api.repository2.unified.Converter converter)
        Specified by:
        setConverter in interface org.pentaho.platform.api.mimetype.IMimeType
      • setExtensions

        public void setExtensions​(List<String> extensions)
        Specified by:
        setExtensions in interface org.pentaho.platform.api.mimetype.IMimeType
      • toString

        public String toString()
        Specified by:
        toString in interface org.pentaho.platform.api.mimetype.IMimeType
        Overrides:
        toString in class Object
      • compareTo

        public int compareTo​(org.pentaho.platform.api.mimetype.IMimeType o)
        Specified by:
        compareTo in interface Comparable<org.pentaho.platform.api.mimetype.IMimeType>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object