ix.ichat
Class ChatMessage

java.lang.Object
  extended by ix.icore.AbstractAnnotatedObject
      extended by ix.ichat.ChatMessage
All Implemented Interfaces:
Annotated, Sendable, java.io.Serializable, java.lang.Cloneable

public class ChatMessage
extends AbstractAnnotatedObject
implements java.io.Serializable, java.lang.Cloneable, Sendable

An object to send when conducting chat dialogues.

See Also:
Serialized Form

Field Summary
protected  Name senderId
           
protected  java.lang.String text
           
 
Fields inherited from class ix.icore.AbstractAnnotatedObject
annotationListeners, annotations
 
Constructor Summary
ChatMessage()
           
ChatMessage(java.lang.String text, java.lang.String senderId)
           
 
Method Summary
 java.lang.Object clone()
           
 Name getSenderId()
           
 java.lang.String getText()
           
 void setSenderId(Name id)
           
 void setText(java.lang.String text)
           
 java.lang.String toString()
           
 
Methods inherited from class ix.icore.AbstractAnnotatedObject
addAnnotationListener, annMap, clearAnnotations, fireSetAnnotation, getAnnotation, getAnnotations, getComments, makeAnnMap, removeAnnotation, setAnnotation, setAnnotations, setComments, takeAnnotations
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

text

protected java.lang.String text

senderId

protected Name senderId
Constructor Detail

ChatMessage

public ChatMessage()

ChatMessage

public ChatMessage(java.lang.String text,
                   java.lang.String senderId)
Method Detail

getText

public java.lang.String getText()

setText

public void setText(java.lang.String text)

getSenderId

public Name getSenderId()
Specified by:
getSenderId in interface Sendable

setSenderId

public void setSenderId(Name id)
Specified by:
setSenderId in interface Sendable

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Specified by:
clone in interface Sendable
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object