ch.claudio.contactdb.data
Class Message

java.lang.Object
  extended by ch.claudio.contactdb.data.Message

public class Message
extends java.lang.Object

Holds a message sent from one person to others. Each message has a sender identity associated and the time it was sent. The time might be null, if it is unknown when the information was prodced. This might be used to store information someone gave out e.g. on her or his profile.

Version:
$Id: Message.java 32 2006-07-10 23:51:07Z $
Author:
Claudio Nieder

Constructor Summary
Message(FuzzyDate timeArg, java.lang.String messageArg, Identity senderArg)
           
 
Method Summary
 java.lang.String getComment()
           
 java.lang.String getMessage()
           
 byte[] getMessageDigest()
           
 Identity getSender()
           
 FuzzyDate getTime()
           
static void main(java.lang.String[] args)
          Print license.
 void setComment(java.lang.String commentArg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Message

public Message(FuzzyDate timeArg,
               java.lang.String messageArg,
               Identity senderArg)
Parameters:
timeArg - The time the information was sent. May be null
messageArg - The message itself.
senderArg - The identity of the sender.
Method Detail

getMessage

public java.lang.String getMessage()
Returns:
the message

getSender

public Identity getSender()
Returns:
the sender

getTime

public FuzzyDate getTime()
Returns:
the time

getMessageDigest

public byte[] getMessageDigest()
Returns:
the messageDigest

getComment

public java.lang.String getComment()
Returns:
the comment

setComment

public void setComment(java.lang.String commentArg)
Parameters:
commentArg - the comment to set

main

public static void main(java.lang.String[] args)
Print license.

Parameters:
args - ignored