interface XMimeContentType in module com::sun::star::datatransfer::

(Global Index)

Syntax

interface XMimeContentType : com::sun::star::uno::XInterface ;

Description

An implementation of this interface represents a MIME content-type that is conform to Rfc2045 and Rfc2046 . Instances that implement this interface could be created using the interface XMimeContentTypeFactory .

Method Summary

getMediaType To get the media type of the MIME content-type.

getMediaSubtype To get the media subtype of the MIME content-type.

getFullMediaType To get the full media/submedia type of the MIME content-type.

getParameters To get a list of parameters that the MIME content-type contains.

hasParameter To query if a specific parameter is supported.

getParameterValue To get the value of a specified parameter.

Method Details



getMediaType

Syntax

string getMediaType ();

Description

To get the media type of the MIME content-type.

Returns

The media type of the MIME content-type.

getMediaSubtype

Syntax

string getMediaSubtype ();

Description

To get the media subtype of the MIME content-type.

Returns

The media subtype of the MIME content-type.

getFullMediaType

Syntax

string getFullMediaType ();

Description

To get the full media/submedia type of the MIME content-type.

Returns

The full media/submedia type of the MIME content-type.

getParameters

Syntax

sequence< string > getParameters ();

Description

To get a list of parameters that the MIME content-type contains.

Returns

A list of the names of all parameters of the MIME content-type.

hasParameter

Syntax

boolean hasParameter (
string aName );

Description

To query if a specific parameter is supported.

Parameter aName

The name of the parameter to query for.

Returns

A value of true if the MIME content-type has the specified parameter.

A value of false if the MIME content-type has not the specified parameter.


getParameterValue

Syntax

string getParameterValue (
string aName )
raises ( com::sun::star::container::NoSuchElementException );

Description

To get the value of a specified parameter.

Parameter aName

The name of the parameter for which the value is requested.

Returns

The value of the specified parameter.

Throws

com::sun::star::container::NoSuchElementException if the specified parameter doesn't exist.
Top of Page