com.ibm.websphere.samples.i18nctx.currencyexchangelibrary
Class Resources

java.lang.Object
  extended by com.ibm.websphere.samples.i18nctx.currencyexchangelibrary.Resources

public class Resources
extends java.lang.Object

Class Resources provides support for retrieving messages from the sampi18nctx resource bundle(s).


Field Summary
static java.lang.String[] MSGKEYS
           
static java.lang.String SAMPLE_RESOURCE_BUNDLE
           
 
Constructor Summary
Resources()
           
 
Method Summary
static java.lang.String getMsg(java.lang.String key)
          Retrieve a message from resource bundle.
static java.lang.String[] getMsgs(java.lang.String[] key)
          Retrieve message from resource bundle.
static double[] getRates()
          Retrieve exchange rates from the specified resource bundle.
static void setResourceBundle(java.util.Locale locale)
          Reset the resource bundle to one for a specific locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SAMPLE_RESOURCE_BUNDLE

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

MSGKEYS

public static final java.lang.String[] MSGKEYS
Constructor Detail

Resources

public Resources()
Method Detail

getMsg

public static java.lang.String getMsg(java.lang.String key)
Retrieve a message from resource bundle.

Returns:
java.lang.String

getMsgs

public static java.lang.String[] getMsgs(java.lang.String[] key)
Retrieve message from resource bundle.

Returns:
java.lang.String []

getRates

public static double[] getRates()
Retrieve exchange rates from the specified resource bundle.

Returns:
double[]

setResourceBundle

public static void setResourceBundle(java.util.Locale locale)
Reset the resource bundle to one for a specific locale.