|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.localization.BankFrameMessage
This class represents a localizable String.
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 |
public static final java.lang.String NULL_MESSAGE_FILE
public static final java.lang.String NULL_MESSAGE_KEY_ERROR
public static final java.lang.String UNDEFINED_MESSAGE_KEY
public static final java.lang.String MESSAGE_KEY
public static final java.lang.String ARGUMENTS_SIZE
public static final java.lang.String ARGUMENT_PREFIX
Constructor Detail |
public BankFrameMessage()
public BankFrameMessage(DataPacket bankframeMessageDataPacket)
bankframeMessageDataPacket
- a DataPacket containing the key and arguments
for a messagepublic BankFrameMessage(java.lang.String messageKey)
messageKey
- the key of the message.public BankFrameMessage(java.lang.String messageKey, java.lang.String[] arguments)
messageKey
- the key of the messagearguments
- the arguments to the messageMethod Detail |
public void fromDataPacket(DataPacket data)
data
- The supplied DataPacketspublic java.lang.String[] getMessageArguments()
public java.lang.String getMessageKey()
public void setMessageArguments(java.lang.String[] arguments)
public void setMessageKey(java.lang.String messageKey)
public DataPacket toDataPacket(DataPacket data)
data
- The DataPacket to place the BankFrameMessage information in
public java.lang.String toString()
public java.lang.String toString(java.util.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 |