fi.hut.tml.xsmiles.comm.implementation.general.messages
Class MessageBase

java.lang.Object
  extended byfi.hut.tml.xsmiles.comm.implementation.general.messages.MessageBase
All Implemented Interfaces:
Message
Direct Known Subclasses:
TextMessage

public abstract class MessageBase
extends java.lang.Object
implements Message

Author:
Sami Sundell xsmiles / fi.hut.tml.xsmiles.comm.session, 9.11.2004

Constructor Summary
MessageBase(java.lang.String _type)
           
 
Method Summary
abstract  java.lang.Object getContent()
           
abstract  java.lang.String getContentAsString()
           
 java.lang.String getNickname()
           
 java.lang.String getType()
           
abstract  void setContent(java.lang.Object content)
           
abstract  void setContentAsString(java.lang.String textual)
           
 void setNickname(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageBase

public MessageBase(java.lang.String _type)
Method Detail

getType

public java.lang.String getType()
Specified by:
getType in interface Message

getContent

public abstract java.lang.Object getContent()
Specified by:
getContent in interface Message

getContentAsString

public abstract java.lang.String getContentAsString()
Specified by:
getContentAsString in interface Message

setContent

public abstract void setContent(java.lang.Object content)
Specified by:
setContent in interface Message

setContentAsString

public abstract void setContentAsString(java.lang.String textual)
Specified by:
setContentAsString in interface Message

getNickname

public java.lang.String getNickname()
Specified by:
getNickname in interface Message

setNickname

public void setNickname(java.lang.String name)
Specified by:
setNickname in interface Message


X-Smiles 1.2