com.bankframe
Class EonMessage

java.lang.Object
  extended bycom.bankframe.EonMessage

public class EonMessage
extends java.lang.Object

This class is provide for backwards compatability with previous versions of BankFrame MCA. This class has been superceded by com.bankframe.localization.BankFrameMessage. This class will be deprecated in a future version of BankFrame MCA


Constructor Summary
EonMessage()
           
 
Method Summary
static java.lang.String format(int errorNumber)
          This method will return a specified message from the BankframeMessages resource bundle using the default locale.
static java.lang.String format(int errorNumber, java.util.Locale locale)
          This method will return a specified message from the BankframeMessages resource bundle for a specified locale.
static java.lang.String format(int errorNumber, java.lang.Object[] parameters)
          Deprecated. use format(int errorNumber, String[] parameters)
static java.lang.String format(int errorNumber, java.lang.Object[] parameters, java.util.Locale locale)
          This method will return the message from the BankframeMessages Resource Bundle for a specified locale based on the key passed in.
static java.lang.String format(int errorNumber, java.lang.String[] parameters)
          This method will return the message from the BankframeMessages resource bundle for the default locale based on the key passed in.
static java.lang.String format(int errorNumber, java.lang.String[] parameters, java.util.Locale locale)
          This method will return a specified message from the BankframeMessages resource bundle for a specified locale.
static java.util.Locale getLocale(java.lang.String langCountryCode)
          This method is a convience method which converts a ISO Language-Country Code String to a Locale object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EonMessage

public EonMessage()
Method Detail

format

public static java.lang.String format(int errorNumber)
This method will return a specified message from the BankframeMessages resource bundle using the default locale.

Parameters:
errorNumber - int The key identifying the message in the properties file. String Message for associated with error number for the default locale.

format

public static java.lang.String format(int errorNumber,
                                      java.lang.Object[] parameters)
Deprecated. use format(int errorNumber, String[] parameters)

This method will return the message from the BankframeMessages resource bundle for the default locale based on the key passed in. It will also substitute in the array of parameters passed in to the returned message.

Parameters:
errorNumber - int The key identifying the message in the properties file.
parameters - an array of parameters to substituted into the returned string.
Returns:
message taken from the Resource Bundle associated with the errorNumber & parameters passed in

format

public static java.lang.String format(int errorNumber,
                                      java.lang.Object[] parameters,
                                      java.util.Locale locale)
This method will return the message from the BankframeMessages Resource Bundle for a specified locale based on the key passed in. It will also substitute in the array of parameters passed in to the returned message.

Parameters:
errorNumber - int The key identifying the message in the properties file.
locale - Locale The locale to retreive messages for.
parameters - an array of parameters to substituted into the returned string.
Returns:
message taken from the Resource Bundle associated with the errorNumber & parameters passed in

format

public static java.lang.String format(int errorNumber,
                                      java.lang.String[] parameters)
This method will return the message from the BankframeMessages resource bundle for the default locale based on the key passed in. It will also substitute in the array of parameters passed in to the returned message.

Parameters:
errorNumber - int The key identifying the message in the properties file.
parameters - an array of parameters to substituted into the returned string.
Returns:
message taken from the Resource Bundle associated with the errorNumber & parameters passed in

format

public static java.lang.String format(int errorNumber,
                                      java.lang.String[] parameters,
                                      java.util.Locale locale)
This method will return a specified message from the BankframeMessages resource bundle for a specified locale.

Parameters:
errorNumber - int The key identifying the message in the properties file.
locale - Locale The locale to retreive messages for.
Returns:
String Message for associated with error number for the specified locale.

format

public static java.lang.String format(int errorNumber,
                                      java.util.Locale locale)
This method will return a specified message from the BankframeMessages resource bundle for a specified locale.

Parameters:
errorNumber - int The key identifying the message in the properties file.
locale - Locale The locale to retreive messages for.
Returns:
String Message for associated with error number for the specified locale.

getLocale

public static java.util.Locale getLocale(java.lang.String langCountryCode)
This method is a convience method which converts a ISO Language-Country Code String to a Locale object.

Returns:
Locacle Object representing Language-Country.


Copyright © 2005, 2007, Oracle. All rights reserved.