com.web_visage.ichat.messages
Class IChatAlertMessage

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

public class IChatAlertMessage
extends IChatMessage

IChat alert 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
IChatAlertMessage(int aMsgNumber, IChatSender aSender, java.lang.String anAlertText)
          Constructor.
 
Method Summary
 void acceptVisitor(IChatMessageVisitor aVisitor)
          Accepts the IChatMessageVisitorimplementations.
 java.lang.String getAlertMessage()
          Returns alert message.
static IChatAlertMessage newInstance(int aMsgNumber, IChatSender aSender, IChatParameterAccessor aParameters)
          Creates new message instance by given raw parameters array.
 IChatAlertMessage updateAlertMessage(java.lang.String alertText)
          Creates new message instance with updated alert text.
 
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

IChatAlertMessage

public IChatAlertMessage(int aMsgNumber,
                         IChatSender aSender,
                         java.lang.String anAlertText)
Constructor.

Parameters:
aMsgNumber -
aSender -
anAlertText -
Method Detail

getAlertMessage

public java.lang.String getAlertMessage()
Returns alert message.

Returns:

updateAlertMessage

public IChatAlertMessage updateAlertMessage(java.lang.String alertText)
Creates new message instance with updated alert text.

Parameters:
alertText -
Returns:

newInstance

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