com.web_visage.ichat.messages
Class IChatRefreshMessage

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

public class IChatRefreshMessage
extends IChatMessage

iChat refresh 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
IChatRefreshMessage(int aMsgNumber, IChatSender aSender, java.lang.String aLineName, java.lang.String aLogin, java.lang.String aNickName, java.lang.String aGreetingMessage, java.lang.String aReceiver, EnumStatus aStatus, java.lang.String aVersion)
          Constructor.
 
Method Summary
 void acceptVisitor(IChatMessageVisitor aVisitor)
          Accepts the IChatMessageVisitorimplementations.
 java.lang.String getGreetingMessage()
          Returns the greeting message.
 java.lang.String getLine()
          Returns the line name.
 java.lang.String getLogin()
          Returns the login.
 java.lang.String getNickName()
          Returns the nickname.
 java.lang.String getReceiver()
          Returns the receiver.
 EnumStatus getStatus()
          Returns the status.
 java.lang.String getVersion()
          Returns the version.
static IChatRefreshMessage newInstance(int aMsgNumber, IChatSender aSender, IChatParameterAccessor aParameters)
          Creates new instance based on a row 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

IChatRefreshMessage

public IChatRefreshMessage(int aMsgNumber,
                           IChatSender aSender,
                           java.lang.String aLineName,
                           java.lang.String aLogin,
                           java.lang.String aNickName,
                           java.lang.String aGreetingMessage,
                           java.lang.String aReceiver,
                           EnumStatus aStatus,
                           java.lang.String aVersion)
Constructor.

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

getLine

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

Returns:

getLogin

public final java.lang.String getLogin()
Returns the login.

Returns:

getNickName

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

Returns:

getGreetingMessage

public final java.lang.String getGreetingMessage()
Returns the greeting message.

Returns:

getReceiver

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

Returns:

getVersion

public final java.lang.String getVersion()
Returns the version.

Returns:

getStatus

public final EnumStatus getStatus()
                           throws java.lang.NumberFormatException,
                                  EnumerationValueNotFoundException
Returns the status.

Returns:
Throws:
EnumerationValueNotFoundException
java.lang.NumberFormatException

newInstance

public static IChatRefreshMessage newInstance(int aMsgNumber,
                                              IChatSender aSender,
                                              IChatParameterAccessor aParameters)
                                       throws java.lang.NumberFormatException,
                                              EnumerationValueNotFoundException
Creates new instance based on a row parameters array.

Parameters:
aMsgNumber -
aSender -
aParameters -
Returns:
Throws:
java.lang.NumberFormatException
EnumerationValueNotFoundException

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)