com.web_visage.ichat.messages
Class IChatRenameMessage

java.lang.Object
  extended by com.web_visage.ichat.IChatMessage
      extended by com.web_visage.ichat.messages.IChatRenameMessage
All Implemented Interfaces:
ByteRepresentable, IChatMessageConstants

public class IChatRenameMessage
extends IChatMessage

iChat rename message.

Author:
K.Baturytski

Field Summary
 
Fields inherited from interface com.web_visage.ichat.IChatMessageConstants
BEGIN_END_MARKER, COMMON_LINE, ICHAT_TAG, PRIVATE_TAG, SEPARATOR, WILDCARD
 
Constructor Summary
IChatRenameMessage(int aMsgNumber, IChatSender aSender, java.lang.String aNewNickname)
          Constructor.
 
Method Summary
 void acceptVisitor(IChatMessageVisitor aVisitor)
          Accepts the IChatMessageVisitorimplementations.
 java.lang.String getNickName()
          Returns the nickname.
static IChatRenameMessage newInstance(int aMsgNumber, IChatSender aSender, IChatParameterAccessor aParameters)
          Creates new message instance by a given raw parameters array.
 
Methods inherited from class com.web_visage.ichat.IChatMessage
asByteArray, equals, getCmd, getMsgNumber, getParameter, getParameters, getSender, getSize, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IChatRenameMessage

public IChatRenameMessage(int aMsgNumber,
                          IChatSender aSender,
                          java.lang.String aNewNickname)
Constructor.

Parameters:
aMsgNumber -
aCommand -
aSender -
aParameters -
Method Detail

getNickName

public java.lang.String getNickName()
Returns the nickname.

Returns:

newInstance

public static IChatRenameMessage newInstance(int aMsgNumber,
                                             IChatSender aSender,
                                             IChatParameterAccessor aParameters)
Creates new message instance by a given raw parameters array.

Parameters:
aMsgNumber -
aSender -
aParameters -
Returns:

acceptVisitor

public void acceptVisitor(IChatMessageVisitor aVisitor)
Description copied from class: IChatMessage
Accepts the IChatMessageVisitorimplementations.

Specified by:
acceptVisitor in class IChatMessage
See Also:
IChatMessage.acceptVisitor(com.web_visage.ichat.IChatMessageVisitor)