com.intel.gpe.client2.application.i18n
Class MessageBundle

java.lang.Object
  extended by com.intel.gpe.client2.application.i18n.MessageBundle

public class MessageBundle
extends java.lang.Object

Message bundle. Retrieving and formatting messages.

Author:
Alexander Lukichev

Method Summary
static MessageBundle getInstance(java.lang.String bundle)
           
static MessageBundle getInstance(java.lang.String bundle, java.util.Locale locale)
          Get the instance of the message bundle for the specified bundle name
 java.lang.String getMessage(java.lang.String key)
          Get message by key
 java.lang.String getMessage(java.lang.String key, java.lang.Object[] objects)
          Get the message identified by key and parametrized with the list of objects
 java.lang.String getMessageExt(java.lang.String key, java.lang.Object... objects)
          Get the message identified by key and parametrized with the list of objects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMessage

public java.lang.String getMessage(java.lang.String key)
Get message by key

Parameters:
key - - the key
Returns:
the message associated with the key

getMessage

public java.lang.String getMessage(java.lang.String key,
                                   java.lang.Object[] objects)
Get the message identified by key and parametrized with the list of objects

Parameters:
key - - the message key
objects - - the format function parameters
Returns:
the formatted message

getMessageExt

public java.lang.String getMessageExt(java.lang.String key,
                                      java.lang.Object... objects)
Get the message identified by key and parametrized with the list of objects

Parameters:
key - - the message key
objects - - the format function parameters
Returns:
the formatted message

getInstance

public static MessageBundle getInstance(java.lang.String bundle,
                                        java.util.Locale locale)
Get the instance of the message bundle for the specified bundle name

Parameters:
bundle - - the bundle name
Returns:
the instance of the message bundle

getInstance

public static MessageBundle getInstance(java.lang.String bundle)


Copyright © 2008. All Rights Reserved.