
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __javax_activation_MimeType__
#define __javax_activation_MimeType__

#pragma interface

#include <java/lang/Object.h>
extern "Java"
{
  namespace javax
  {
    namespace activation
    {
        class MimeType;
        class MimeTypeParameterList;
    }
  }
}

class javax::activation::MimeType : public ::java::lang::Object
{

public:
  MimeType();
  MimeType(::java::lang::String *);
  MimeType(::java::lang::String *, ::java::lang::String *);
  virtual ::java::lang::String * getPrimaryType();
  virtual void setPrimaryType(::java::lang::String *);
  virtual ::java::lang::String * getSubType();
  virtual void setSubType(::java::lang::String *);
  virtual ::javax::activation::MimeTypeParameterList * getParameters();
  virtual ::java::lang::String * getParameter(::java::lang::String *);
  virtual void setParameter(::java::lang::String *, ::java::lang::String *);
  virtual void removeParameter(::java::lang::String *);
  virtual ::java::lang::String * toString();
  virtual ::java::lang::String * getBaseType();
  virtual jboolean match(::javax::activation::MimeType *);
  virtual jboolean match(::java::lang::String *);
  virtual void writeExternal(::java::io::ObjectOutput *);
  virtual void readExternal(::java::io::ObjectInput *);
private:
  void parse(::java::lang::String *);
public: // actually package-private
  static void checkValidity(::java::lang::String *, ::java::lang::String *);
  static jboolean isValidChar(jchar);
  static ::java::lang::String * TSPECIALS;
private:
  ::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) primaryType;
  ::java::lang::String * subType;
  ::javax::activation::MimeTypeParameterList * parameters;
public:
  static ::java::lang::Class class$;
};

#endif // __javax_activation_MimeType__
