com.web_visage.ichat.messages
Class IChatMeMessage

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

public class IChatMeMessage
extends IChatMessage

iChat me 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
IChatMeMessage(int aMsgNumber, IChatSender aSender, java.lang.String aLine, java.lang.String aText, java.lang.String aRecepient)
          Constructor.
 
Method Summary
 void acceptVisitor(IChatMessageVisitor aVisitor)
          Accepts the IChatMessageVisitorimplementations.
 java.lang.String getLine()
          Returns the line name.
 java.lang.String getRecepient()
          Returns the receiver.
 java.lang.String getText()
          Returns "me" message text.
static IChatMeMessage newInstance(int aMsgNumber, IChatSender aSender, IChatParameterAccessor aParameters)
          Returns new message instance by the given raw parameters array.
 IChatMeMessage updateText(java.lang.String text)
          Creates new message with updated text.
 
Methods inherited from class com.web_visage.ichat.IChatMessage
equals, getCmd, getMsgNumber, getParameter, getParameters, getSender, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IChatMeMessage

public IChatMeMessage(int aMsgNumber,
                      IChatSender aSender,
                      java.lang.String aLine,
                      java.lang.String aText,
                      java.lang.String aRecepient)
Constructor.

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

getLine

public java.lang.String getLine()
Returns the line name.

Returns:

getText

public java.lang.String getText()
Returns "me" message text.

Returns:

updateText

public IChatMeMessage updateText(java.lang.String text)
Creates new message with updated text.

Parameters:
text -
Returns:

getRecepient

public java.lang.String getRecepient()
Returns the receiver.

Returns:

newInstance

public static IChatMeMessage newInstance(int aMsgNumber,
                                         IChatSender aSender,
                                         IChatParameterAccessor aParameters)
Returns new message instance by the 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)