Jwma

dtw.webmail.model
Interface JwmaMessagePart

All Known Implementing Classes:
JwmaMessagePartImpl

public interface JwmaMessagePart

An interface defining the contract for interaction with the JwmaMessagePart model.

The JwmaMessagePart allows a view programmer to obtain information about a part of a multipart message.

Version:
0.9.7 07/02/2003
Author:
Dieter Wimberger

Method Summary
 java.lang.String getContentType()
          Returns a String representing the content type of this message part.
 java.lang.String getDescription()
          Returns a String representing the description of this message part.
 java.lang.String getName()
          Returns a String representing the name of this message part.
 int getPartNumber()
          Returns an int representing the number of this message part.
 int getSize()
          Returns an int representing the size of this message part in bytes.
 boolean isMimeType(java.lang.String type)
          Tests if this JwmaMessagePart is of the given type.
 

Method Detail

getPartNumber

public int getPartNumber()
Returns an int representing the number of this message part.

This number is the unique identifier for a part of a message.

Returns:
the number of this message part.

getContentType

public java.lang.String getContentType()
Returns a String representing the content type of this message part.

Returns:
the content type of this message part as String.

isMimeType

public boolean isMimeType(java.lang.String type)
Tests if this JwmaMessagePart is of the given type.

Parameters:
type - the Mime type as String.

getDescription

public java.lang.String getDescription()
Returns a String representing the description of this message part.

Returns:
description of this message part as String.

getName

public java.lang.String getName()
Returns a String representing the name of this message part.

Returns:
name of this message part as String.

getSize

public int getSize()
Returns an int representing the size of this message part in bytes.

Returns:
the size of this message part in bytes.

Jwma

Copyright © 2000-2003 jwma team (All Rights Reserved.)