|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface defining the contract for interaction with the JwmaMessage model.
The JwmaMessage allows a view programmer to obtain information about a message to display it for reading or composing.
Method Summary | |
java.lang.String |
getBCCTo()
Returns a String representing the blind carbon copy receivers(s) of the message. |
java.lang.String |
getBody()
Returns a String representing the body of the message. |
java.lang.String |
getCCTo()
Returns a String representing the carbon copy receivers(s) of the message. |
java.util.Date |
getDate()
Convenience method that returns a Date representing the received or sent date of the message. |
java.lang.String |
getFrom()
Returns a String representing the sender(s) of the message. |
java.lang.String |
getFullHeader()
Returns the full message header as String. |
int |
getMessageNumber()
Returns an int representing the number of this message. |
JwmaMessagePart[] |
getMessageParts()
Returns an array of JwmaMessagePart objects. |
java.util.Date |
getReceivedDate()
Returns a Date representing the date when the message was received. |
java.lang.String |
getReplyTo()
Returns a String representing the Reply-To address(es) of the message. |
java.util.Date |
getSentDate()
Returns a Date representing the date when the message was sent. |
java.lang.String |
getSubject()
Returns a String representing the subject of the message. |
java.lang.String |
getTo()
Returns a String representing the receivers(s) of the message. |
boolean |
isMultipart()
Tests if the message is multipart. |
boolean |
isReceived()
Tests if the message was received. |
boolean |
isSent()
Tests if the message was sent. |
boolean |
isSinglepart()
Tests if the message is singlepart. |
Method Detail |
public java.lang.String getFullHeader()
public int getMessageNumber()
This number is the unique identifier for a message within a folder, or -1 in case of a message created for being composed.
public boolean isReceived()
public boolean isSent()
Note that this method will always return the opposite of isReceived() (i.e. represents !getReceived()).
public java.lang.String getFrom()
public java.lang.String getReplyTo()
public java.lang.String getTo()
public java.lang.String getCCTo()
public java.lang.String getBCCTo()
public java.util.Date getDate()
public java.util.Date getReceivedDate()
public java.util.Date getSentDate()
public java.lang.String getSubject()
public java.lang.String getBody()
Note that the body will be the (plain text) content of a singlepart message. The method will return an empty String for a multipart message.
A view programmer should base display decisions on the isSinglepart() (or isMultipart() method.
isSinglepart()
,
isMultipart()
public JwmaMessagePart[] getMessageParts()
If this message does not contain any parts, then this method returns an empty array. Otherwise it contains one JwmaMessagePart object for each part of this message representing information about the part.
A view programmer should base display decisions on the isSinglepart() (or isMultipart() method.
JwmaMessagePart
,
isSinglepart()
,
isMultipart()
public boolean isSinglepart()
A singlepart message does not have any attachments.
public boolean isMultipart()
A multipart message has attachments or is composed out of different parts. Note that this method will always return the opposite of isSinglepart() (i.e. represents !isSinglepart()).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |