org.jogre.common.comm
Class CommChatTable

java.lang.Object
  extended byorg.jogre.common.comm.CommBaseMessage
      extended byorg.jogre.common.comm.CommGameMessage
          extended byorg.jogre.common.comm.CommTableMessage
              extended byorg.jogre.common.comm.CommChatTable
All Implemented Interfaces:
ITransmittable

public class CommChatTable
extends CommTableMessage

Chat communications object for chat at a table.

Version:
Alpha 0.2.1
Author:
Bob Marks

Field Summary
protected  String chat
          Chat String.
 
Fields inherited from class org.jogre.common.comm.CommTableMessage
NO_TABLE, omitSender, tableNum, XML_ATT_TABLE_NUM
 
Fields inherited from class org.jogre.common.comm.CommGameMessage
gameID, LAYER, usernameTo, XML_ATT_GAME_ID
 
Fields inherited from class org.jogre.common.comm.CommBaseMessage
layer, status, username, XML_ATT_LAYER
 
Constructor Summary
CommChatTable(String chat)
          Constructor which takes a message.
CommChatTable(XMLElement message)
          Constructor which creates a CommChatRoom object from the flatten () method of another CommChatRoom object.
 
Method Summary
 XMLElement flatten()
          Transmittable String representation of this object.
 String getChat()
          Return the text of the message.
 
Methods inherited from class org.jogre.common.comm.CommTableMessage
flatten, getTableNum, isOmittingSender, setTableNum
 
Methods inherited from class org.jogre.common.comm.CommGameMessage
getGameID, getUsernameTo, isUsernameToSet, setGameID
 
Methods inherited from class org.jogre.common.comm.CommBaseMessage
getStatus, getUsername, setUsername
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

chat

protected String chat
Chat String.

Constructor Detail

CommChatTable

public CommChatTable(String chat)
Constructor which takes a message.

Parameters:
chat -

CommChatTable

public CommChatTable(XMLElement message)
              throws TransmissionException
Constructor which creates a CommChatRoom object from the flatten () method of another CommChatRoom object.

Parameters:
message -
Throws:
TransmissionException
Method Detail

getChat

public String getChat()
Return the text of the message.

Returns:
Chat message from user.

flatten

public XMLElement flatten()
Transmittable String representation of this object.

Returns:
XML version of the state of an object which can be constructed again.
See Also:
ITransmittable.flatten()