com.web_visage.ichat.messages
Class IChatCreateLineMessage

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

public class IChatCreateLineMessage
extends IChatMessage

IChat "create line" 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
IChatCreateLineMessage(int aMsgNumber, IChatSender aSender, java.lang.String aLine, java.lang.String aPassword)
          Constructor.
 
Method Summary
 void acceptVisitor(IChatMessageVisitor aVisitor)
          Accepts the IChatMessageVisitorimplementations.
 java.lang.String getLine()
          Returns the line name.
 java.lang.String getPassword()
          Returns the password.
static IChatCreateLineMessage newInstance(int aMsgNumber, IChatSender aSender, IChatParameterAccessor aParameters)
          Returns new message instance by 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

IChatCreateLineMessage

public IChatCreateLineMessage(int aMsgNumber,
                              IChatSender aSender,
                              java.lang.String aLine,
                              java.lang.String aPassword)
Constructor.

Parameters:
aMsgNumber -
aSender -
aLine -
aPassword -
Method Detail

getLine

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

Returns:

getPassword

public final java.lang.String getPassword()
Returns the password.

Returns:

newInstance

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