com.bankframe.localization
Class BankFrameMessage

java.lang.Object
  extended bycom.bankframe.localization.BankFrameMessage
All Implemented Interfaces:
java.io.Serializable

public class BankFrameMessage
extends java.lang.Object
implements java.io.Serializable

This class represents a localizable String.

Author:
ETU
See Also:
Serialized Form

Field Summary
static java.lang.String ARGUMENT_PREFIX
           
static java.lang.String ARGUMENTS_SIZE
           
static java.lang.String MESSAGE_KEY
           
static java.lang.String NULL_MESSAGE_FILE
           
static java.lang.String NULL_MESSAGE_KEY_ERROR
           
static java.lang.String UNDEFINED_MESSAGE_KEY
           
 
Constructor Summary
BankFrameMessage()
          Constructor.
BankFrameMessage(DataPacket bankframeMessageDataPacket)
          Constructor.
BankFrameMessage(java.lang.String messageKey)
          Constructor.
BankFrameMessage(java.lang.String messageKey, java.lang.String[] arguments)
          Constructor.
 
Method Summary
 void fromDataPacket(DataPacket data)
          This method initialises a BankFrameMessage from the information in the supplied DataPacket.
 java.lang.String[] getMessageArguments()
          This method returns the message arguments for this message.
 java.lang.String getMessageKey()
          This method returns the message key for this message.
 void setMessageArguments(java.lang.String[] arguments)
          This method sets the message arguments for this message.
 void setMessageKey(java.lang.String messageKey)
          This method sets the message key for this message.
 DataPacket toDataPacket(DataPacket data)
          This method converts a BankFrameMessage to a DataPacket.
 java.lang.String toString()
          This method converts the messsage to a String in the default locale.
 java.lang.String toString(java.util.Locale locale)
          This method converts the message to a localized String.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL_MESSAGE_FILE

public static final java.lang.String NULL_MESSAGE_FILE
See Also:
Constant Field Values

NULL_MESSAGE_KEY_ERROR

public static final java.lang.String NULL_MESSAGE_KEY_ERROR
See Also:
Constant Field Values

UNDEFINED_MESSAGE_KEY

public static final java.lang.String UNDEFINED_MESSAGE_KEY
See Also:
Constant Field Values

MESSAGE_KEY

public static final java.lang.String MESSAGE_KEY
See Also:
Constant Field Values

ARGUMENTS_SIZE

public static final java.lang.String ARGUMENTS_SIZE
See Also:
Constant Field Values

ARGUMENT_PREFIX

public static final java.lang.String ARGUMENT_PREFIX
See Also:
Constant Field Values
Constructor Detail

BankFrameMessage

public BankFrameMessage()
Constructor.


BankFrameMessage

public BankFrameMessage(DataPacket bankframeMessageDataPacket)
Constructor.

Parameters:
bankframeMessageDataPacket - a DataPacket containing the key and arguments for a message

BankFrameMessage

public BankFrameMessage(java.lang.String messageKey)
Constructor.

Parameters:
messageKey - the key of the message.

BankFrameMessage

public BankFrameMessage(java.lang.String messageKey,
                        java.lang.String[] arguments)
Constructor.

Parameters:
messageKey - the key of the message
arguments - the arguments to the message
Method Detail

fromDataPacket

public void fromDataPacket(DataPacket data)
This method initialises a BankFrameMessage from the information in the supplied DataPacket.

Parameters:
data - The supplied DataPackets

getMessageArguments

public java.lang.String[] getMessageArguments()
This method returns the message arguments for this message.

Returns:
an array of message arguments or null if the message has no arguments

getMessageKey

public java.lang.String getMessageKey()
This method returns the message key for this message.

Returns:
the message key

setMessageArguments

public void setMessageArguments(java.lang.String[] arguments)
This method sets the message arguments for this message.


setMessageKey

public void setMessageKey(java.lang.String messageKey)
This method sets the message key for this message.


toDataPacket

public DataPacket toDataPacket(DataPacket data)
This method converts a BankFrameMessage to a DataPacket.

Parameters:
data - The DataPacket to place the BankFrameMessage information in
Returns:
the modified DataPacket

toString

public java.lang.String toString()
This method converts the messsage to a String in the default locale. Use this method for debugging purposes only.

Returns:
a string instance containing the message

toString

public java.lang.String toString(java.util.Locale locale)
This method converts the message to a localized String.

Parameters:
locale - The locale to localize the message to.
Returns:
The localized string


Copyright © 2004 Siebel Systems, Inc. All rights reserved.