Enterprise Information Portal APIs

com.ibm.mm.sdk.common
Class DKMimeTypeDefICM

java.lang.Object
  |
  +--com.ibm.mm.sdk.common.DKMimeTypeDefICM
All Implemented Interfaces:
java.io.Serializable

public class DKMimeTypeDefICM
extends java.lang.Object
implements java.io.Serializable

Use this class to represent a MIME type object. This class provides methods to get and set the details of a MIME type.

See Also:
Serialized Form

Field Summary
static int NONE_ENABLED
           
static int STREAMING_ENABLED
           
static int TEXT_SEARCH_ENABLED
           
static int USER_DEFINED_START_ID
           
 
Constructor Summary
DKMimeTypeDefICM()
          Default constructor to construct a new MIME type object.
 
Method Summary
 java.lang.String getApplicationFlags()
          Gets Application Flags
 java.lang.String getApplicationName()
          Gets the name of the application that would handle resources which are of this MIME type.
 java.lang.String getDisplayName()
          Gets the MIME Type object display name
 int getId()
          Gets MIME Type ID assigned to this MIME type.
 java.lang.String getMimeType()
          Gets the MIME Type.
 int getMimeTypeFlag()
          Gets MIME type flag.
 java.lang.String getName()
          Gets MIME Type object name
 java.lang.String getSuffixes()
          Gets the MIME Type suffixes.
 void setApplicationFlags(java.lang.String applicationFlags)
          Sets application flags which is in up to application's interpretation.
 void setApplicationName(java.lang.String applicationName)
          Sets the name of the application that would handle the resource which are of this MIME type.
 void setDisplayName(java.lang.String displayName)
          Sets the display name to be assigned to the MIME Type.
 void setMimeType(java.lang.String mimeType)
          Sets the MIME type.
 void setMimeTypeFlag(int mimeTypeFlag)
          Sets MIME type flag.
 void setName(java.lang.String name)
          Sets the name to be assigned to the MIME type.
 void setSuffixes(java.lang.String suffixes)
          Sets the MIME Type suffixes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_DEFINED_START_ID

public static final int USER_DEFINED_START_ID

NONE_ENABLED

public static final int NONE_ENABLED

TEXT_SEARCH_ENABLED

public static final int TEXT_SEARCH_ENABLED

STREAMING_ENABLED

public static final int STREAMING_ENABLED
Constructor Detail

DKMimeTypeDefICM

public DKMimeTypeDefICM()
Default constructor to construct a new MIME type object.
Method Detail

getId

public int getId()
Gets MIME Type ID assigned to this MIME type.
Returns:
id of this MIME type object

setName

public void setName(java.lang.String name)
Sets the name to be assigned to the MIME type. The name can be up to 32 characters. Note: A display name can also be provided if an application would like to display a name different than this name.
Parameters:
name - new name to be set to this MIME type bject
See Also:
setDisplayName

getName

public java.lang.String getName()
Gets MIME Type object name
Returns:
name of this MIME type object

setDisplayName

public void setDisplayName(java.lang.String displayName)
Sets the display name to be assigned to the MIME Type. The display name can be up to 32 characters.
Parameters:
displayName - new display name to be set to this MIME type bject

getDisplayName

public java.lang.String getDisplayName()
Gets the MIME Type object display name
Returns:
name of this MIME type object

setMimeType

public void setMimeType(java.lang.String mimeType)
Sets the MIME type. The MIME type can be up to 254 characters.
Parameters:
mimeType - new MIME type to be set

getMimeType

public java.lang.String getMimeType()
Gets the MIME Type.
Returns:
MIME type

setSuffixes

public void setSuffixes(java.lang.String suffixes)
Sets the MIME Type suffixes. The suffixes can be up to 512 characters. A file name with any of these suffix would be interpreted to be of this MIME type.
Parameters:
suffixes - new suffixes to be set to this MIME type bject

getSuffixes

public java.lang.String getSuffixes()
Gets the MIME Type suffixes.
Returns:
suffixes of this MIME type object

setMimeTypeFlag

public void setMimeTypeFlag(int mimeTypeFlag)
Sets MIME type flag. Possible values for this are:
Parameters:
mimeTypeFlag - new MIME type flag to be set

getMimeTypeFlag

public int getMimeTypeFlag()
Gets MIME type flag. Possible values returned are:
Returns:
MIME type flag

setApplicationName

public void setApplicationName(java.lang.String applicationName)
Sets the name of the application that would handle the resource which are of this MIME type. The application name can be up to 512 characters.
Parameters:
applicationName - new application name to be set to this MIME type bject

getApplicationName

public java.lang.String getApplicationName()
Gets the name of the application that would handle resources which are of this MIME type.
Returns:
applicationName of this MIME type object

setApplicationFlags

public void setApplicationFlags(java.lang.String applicationFlags)
Sets application flags which is in up to application's interpretation. The application flag can be up to 512 characters.
Parameters:
applicationFlags - new application flags to be set to this MIME type bject

getApplicationFlags

public java.lang.String getApplicationFlags()
Gets Application Flags
Returns:
applicationFlags

EIP Java APIs

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.