amisample
Class ASMessage

java.lang.Object
  |
  +--amisample.ASMessage
All Implemented Interfaces:
Serializable

public class ASMessage
extends Object
implements Serializable

AMI message

Version:
1.0
Author:
Bertrand Florat
See Also:
Serialized Form

Field Summary
(package private)  boolean bRead
          True if the message has been read
(package private)  Date date
          Message date
(package private)  String sAlias
          Message sender/destination alias
(package private)  String sBody
          Message body
(package private)  String sList
          Message list
(package private)  String sTitle
          Message title
 
Constructor Summary
(package private) ASMessage(String sList, String sAlias, String sTitle, String sBody)
          Constructeur
 
Method Summary
 String getAlias()
          Returns the sAlias.
 String getBody()
          Returns the sBody.
 Date getDate()
          Returns the date
 String getList()
          Returns the sList.
 String getTitle()
          Returns the sTitle.
 boolean isRead()
          Returns the bRead.
 void markRead()
          Mark the message as read
 void setRead(boolean bRead)
          Sets the bRead.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

sTitle

String sTitle
Message title

sAlias

String sAlias
Message sender/destination alias

sBody

String sBody
Message body

sList

String sList
Message list

date

Date date
Message date

bRead

boolean bRead
True if the message has been read
Constructor Detail

ASMessage

ASMessage(String sList,
          String sAlias,
          String sTitle,
          String sBody)
Constructeur
Method Detail

isRead

public boolean isRead()
Returns the bRead.
Returns:
boolean

markRead

public void markRead()
Mark the message as read

getBody

public String getBody()
Returns the sBody.
Returns:
String

getAlias

public String getAlias()
Returns the sAlias.
Returns:
String

getTitle

public String getTitle()
Returns the sTitle.
Returns:
String

setRead

public void setRead(boolean bRead)
Sets the bRead.
Parameters:
bRead - The bRead to set

getList

public String getList()
Returns the sList.
Returns:
String

getDate

public Date getDate()
Returns the date
Returns:
String