|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.localization.BankFrameMessage
public class BankFrameMessage
This class represents a localizable String.
| Field Summary | |
|---|---|
static String |
ARGUMENT_PREFIX
|
static String |
ARGUMENTS_SIZE
|
static String |
MESSAGE_KEY
|
static String |
NULL_MESSAGE_FILE
|
static String |
NULL_MESSAGE_KEY_ERROR
|
static String |
UNDEFINED_MESSAGE_KEY
|
| Constructor Summary | |
|---|---|
BankFrameMessage()
Constructor. |
|
BankFrameMessage(DataPacket bankframeMessageDataPacket)
Constructor. |
|
BankFrameMessage(String messageKey)
Constructor. |
|
BankFrameMessage(String messageKey,
String[] arguments)
Constructor. |
|
| Method Summary | |
|---|---|
void |
fromDataPacket(DataPacket data)
This method initialises a BankFrameMessage from the information in the supplied DataPacket. |
String[] |
getMessageArguments()
This method returns the message arguments for this message. |
String |
getMessageKey()
This method returns the message key for this message. |
void |
setMessageArguments(String[] arguments)
This method sets the message arguments for this message. |
void |
setMessageKey(String messageKey)
This method sets the message key for this message. |
DataPacket |
toDataPacket(DataPacket data)
This method converts a BankFrameMessage to a DataPacket. |
String |
toString()
This method converts the messsage to a String in the default locale. |
String |
toString(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 |
|---|
public static final String NULL_MESSAGE_FILE
public static final String NULL_MESSAGE_KEY_ERROR
public static final String UNDEFINED_MESSAGE_KEY
public static final String MESSAGE_KEY
public static final String ARGUMENTS_SIZE
public static final String ARGUMENT_PREFIX
| Constructor Detail |
|---|
public BankFrameMessage()
public BankFrameMessage(DataPacket bankframeMessageDataPacket)
bankframeMessageDataPacket - a DataPacket containing the key and arguments
for a messagepublic BankFrameMessage(String messageKey)
messageKey - the key of the message.
public BankFrameMessage(String messageKey,
String[] arguments)
messageKey - the key of the messagearguments - the arguments to the message| Method Detail |
|---|
public void fromDataPacket(DataPacket data)
data - The supplied DataPacketspublic String[] getMessageArguments()
public String getMessageKey()
public void setMessageArguments(String[] arguments)
arguments - public void setMessageKey(String messageKey)
messageKey - the new message keypublic DataPacket toDataPacket(DataPacket data)
data - The DataPacket to place the BankFrameMessage information in
public String toString()
toString in class Objectpublic String toString(Locale locale)
locale - The locale to localize the message to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||