com.sapportals.wcm.service.objecttypehandler

Interface IMimeType


public interface IMimeType

This class reflects the "MimeType" element from the ObjectTypeHandler.dtd It holds the elements attribute and mode. If no mode is set in the OTH, the implementation must set its mode value to SOURCE_EXCLUSIVE .


Field Summary
static String BOTH
          a mimetype with this value as handling-attribute will match for both the IResource with this mimetype, and for a link that points to it.
static String SOURCE_EXCLUSIVE
          a mimetype with this value as handling-attribute will only match for the IResource with this mimetype, not for a link that points to it.
static String TARGET_EXCLUSIVE
          a mimetype with this value as handling-attribute will only match for the link that points to an IResource with this mimetype
 
Method Summary
 String getHandling()
          get the handling-attribute of the class.
 String getMimeType()
          get the mimetype-attribute of the class.
 void setMimeType(String type)
          sets the mimetype-attribute of the class.
 

Field Detail

TARGET_EXCLUSIVE

static final String TARGET_EXCLUSIVE
a mimetype with this value as handling-attribute will only match for the link that points to an IResource with this mimetype

See Also:
Constant Field Values

SOURCE_EXCLUSIVE

static final String SOURCE_EXCLUSIVE
a mimetype with this value as handling-attribute will only match for the IResource with this mimetype, not for a link that points to it. This is the default behavior.

See Also:
Constant Field Values

BOTH

static final String BOTH
a mimetype with this value as handling-attribute will match for both the IResource with this mimetype, and for a link that points to it.

See Also:
Constant Field Values
Method Detail

getHandling

String getHandling()
get the handling-attribute of the class.

Returns:
the handling-attribute. Must not be null

getMimeType

String getMimeType()
get the mimetype-attribute of the class.

Returns:
the mimetype-attribute. Must not be null

setMimeType

void setMimeType(String type)
sets the mimetype-attribute of the class.

Parameters:
type - the mimetype-attribute. Must not be null
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2012 SAP AG Complete Copyright Notice