IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.rcp.xui.g11n
Class MessageHelper

java.lang.Object
  extended by com.ibm.btt.rcp.xui.g11n.MessageHelper

public class MessageHelper
extends java.lang.Object

Helper class to deal with globalization problem


Constructor Summary
MessageHelper()
           
 
Method Summary
static java.lang.String getKey(java.lang.String value)
          Get key property from desired string
static java.lang.String getMsg(java.lang.String filePath, java.lang.String key)
          Get globalized String from the given key and resource bundle file path
static java.lang.String getMsg(java.lang.String filePath, java.lang.String key, java.lang.Object[] args)
          Get globalized String from the given key, resource bundle file path and arguments
static java.lang.String getXUIMsg(java.lang.String key)
          Get globalized String from the given key
static java.lang.String getXUIMsg(java.lang.String key, java.lang.Object[] args)
          Get globalized String from the given key and arguments
static boolean isI18NMsg(java.lang.String value)
          Check if this String can be globalized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageHelper

public MessageHelper()
Method Detail

getXUIMsg

public static java.lang.String getXUIMsg(java.lang.String key)
Get globalized String from the given key

Parameters:
key - the key for the desired string
Returns:
the string for the given key

getXUIMsg

public static java.lang.String getXUIMsg(java.lang.String key,
                                         java.lang.Object[] args)
Get globalized String from the given key and arguments

Parameters:
key - the key for the desired string
args - an array of objects to be formatted and substituted.
Returns:
the string for the given key

getMsg

public static java.lang.String getMsg(java.lang.String filePath,
                                      java.lang.String key)
Get globalized String from the given key and resource bundle file path

Parameters:
filePath - resource bundle file path
key - the key for the desired string
Returns:
the string for the given key

getMsg

public static java.lang.String getMsg(java.lang.String filePath,
                                      java.lang.String key,
                                      java.lang.Object[] args)
Get globalized String from the given key, resource bundle file path and arguments

Parameters:
filePath - resource bundle file path
key - the key for the desired string
args - an array of objects to be formatted and substituted.
Returns:
the string for the given key

isI18NMsg

public static boolean isI18NMsg(java.lang.String value)
Check if this String can be globalized.

Parameters:
value - desired string
Returns:

getKey

public static java.lang.String getKey(java.lang.String value)
Get key property from desired string

Parameters:
value -
Returns:

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011