|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.mflow.impl.MsgImpl
This class models a generic message. Msg contains a set of attributes and a "content".
| Constructor Summary | |
|---|---|
MsgImpl()
No-arg version of the constructor, makes a blank Msg |
|
MsgImpl(Msg m)
Copy constructor, fills a new Msg with the values of an existing Msg |
|
| Method Summary | |
|---|---|
void |
addContentHandler(ContentHandler ch)
Adds a new ContentHandler |
void |
addRecipient(ContactMethod cm)
Add this recipient ContactMethod to the existing ones. |
void |
addRecipients(ContactMethod[] cms)
Add these recipient ContactMethods to the existing ones. |
void |
addReplyTo(ContactMethod cm)
Add this ContactMethod to be replied to |
ContentHandler[] |
getContentHandlers()
Return the ContentHandlers for the content |
Contact[] |
getFrom()
Get the sender(s). |
java.util.Date |
getReceivedDate()
Get the Date this Msg was received. |
ContactMethod[] |
getRecipients()
Get all the recipient ContactMethods for the Msg. |
ContactMethod[] |
getReplyTo()
Get the ContactMethods to which replies should be directed. |
java.util.Date |
getSentDate()
Get the Date this Msg was sent. |
java.lang.String |
getSubject()
Get the subject of this Msg |
java.lang.String |
getText()
Convenience method to get the content of the Msg as a String |
boolean |
isNew()
Accessor for the "new" state |
boolean |
isUnread()
Accessor for the unread state |
Msg |
reply(boolean replyToAll)
Get a new Msg suitable for a reply to this message. |
void |
setContentHandler(ContentHandler ch)
Sets a new ContentHandler |
void |
setContentHandlers(ContentHandler[] chs)
Sets the content of the Msg |
void |
setFrom(Contact c)
Set the "from" Contact for this Msg. |
void |
setFrom(Contact[] cs)
Set the "from" Contact(s) for this Msg. |
void |
setNew(boolean isNew)
Mutator for the "new" state |
void |
setReceivedDate(java.util.Date d)
Set the received Date |
void |
setRecipient(ContactMethod cm)
Set the recipient ContactMethod. |
void |
setRecipients(ContactMethod[] cms)
Set these recipient ContactMethods. |
void |
setReplyTo(ContactMethod cm)
Set the address to which replies should be directed. |
void |
setReplyTo(ContactMethod[] cms)
Set the addresses to which replies should be directed. |
void |
setSentDate(java.util.Date d)
Set the sent Date |
void |
setSubject(java.lang.String s)
Set the subject |
void |
setText(java.lang.String body)
Convenience method to set the content of the Msg to a String |
void |
setUnread(boolean isUnread)
Mutator for the unread state |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MsgImpl()
public MsgImpl(Msg m)
m - the Msg to copy attributes from| Method Detail |
|---|
public void addRecipient(ContactMethod cm)
addRecipient in interface Msgcm - the recipientpublic void addRecipients(ContactMethod[] cms)
addRecipients in interface Msgcms - the recipientspublic void addReplyTo(ContactMethod cm)
addReplyTo in interface Msgcm - the reply ContactMethodpublic ContactMethod[] getRecipients()
getRecipients in interface Msgpublic ContentHandler[] getContentHandlers()
getContentHandlers in interface Msgpublic Contact[] getFrom()
getFrom in interface Msgpublic java.util.Date getReceivedDate()
getReceivedDate in interface Msgpublic ContactMethod[] getReplyTo()
getReplyTo in interface Msgpublic java.util.Date getSentDate()
getSentDate in interface Msgpublic java.lang.String getSubject()
getSubject in interface Msgpublic Msg reply(boolean replyToAll)
reply in interface MsgreplyToAll - whether to reply to all recipients of the original message, or just the reply-to ContactMethods
public void addContentHandler(ContentHandler ch)
addContentHandler in interface Msgch - the new ContentHandlerpublic void setContentHandler(ContentHandler ch)
setContentHandler in interface Msgch - the new ContentHandlerpublic void setContentHandlers(ContentHandler[] chs)
setContentHandlers in interface Msgchs - the new ContentHandlerspublic void setFrom(Contact c)
setFrom in interface Msgc - the Contact for the senderpublic void setFrom(Contact[] cs)
setFrom in interface Msgcs - the new sender Contact(s)public void setReceivedDate(java.util.Date d)
setReceivedDate in interface Msgd - the Date the Msg was receivedpublic void setRecipient(ContactMethod cm)
setRecipient in interface Msgcm - the recipientpublic void setRecipients(ContactMethod[] cms)
setRecipients in interface Msgcms - the recipientspublic void setReplyTo(ContactMethod cm)
setReplyTo in interface Msgcm - the reply ContactMethodpublic void setReplyTo(ContactMethod[] cms)
setReplyTo in interface Msgcms - the reply ContactMethodspublic void setSentDate(java.util.Date d)
setSentDate in interface Msgd - the Date the Msg was sentpublic void setSubject(java.lang.String s)
setSubject in interface Msgs - the subjectpublic java.lang.String getText()
getText in interface Msgpublic void setText(java.lang.String body)
setText in interface Msgbody - the text to set as the contentpublic void setUnread(boolean isUnread)
setUnread in interface MsgisUnread - whether the Msg has not been readpublic void setNew(boolean isNew)
setNew in interface MsgisNew - whether the Msg is "new"public boolean isUnread()
isUnread in interface Msgpublic boolean isNew()
isNew in interface Msg
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||