com.web_visage.ichat.messages
Class IChatCreateMessage

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

public class IChatCreateMessage
extends IChatMessage

iChat create 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
IChatCreateMessage(int aMsgNumber, IChatSender aSender, java.lang.String aLineId, java.lang.String aReceiver)
          Constructor.
 
Method Summary
 void acceptVisitor(IChatMessageVisitor aVisitor)
          Accepts the IChatMessageVisitorimplementations.
 java.lang.String getLineId()
          Returns the line id.
 java.lang.String getReceiver()
          Returns the receiver.
static IChatCreateMessage newInstance(int aMsgNumber, IChatSender aSender, IChatParameterAccessor aParameters)
          Creates new instance by a given raw parameters array.
 
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

IChatCreateMessage

public IChatCreateMessage(int aMsgNumber,
                          IChatSender aSender,
                          java.lang.String aLineId,
                          java.lang.String aReceiver)
Constructor.

Parameters:
aMsgNumber -
aSender -
aLineId -
aReceiver -
Method Detail

getLineId

public java.lang.String getLineId()
Returns the line id.

Returns:

getReceiver

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

Returns:

newInstance

public static IChatCreateMessage newInstance(int aMsgNumber,
                                             IChatSender aSender,
                                             IChatParameterAccessor aParameters)
Creates new 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)