com.sap.netweaver.bc.uwl.i18n

Class MessageBundle

java.lang.Object
  extended by com.sap.netweaver.bc.uwl.i18n.MessageBundle

public class MessageBundle
extends Object

Reference to resource bundle used in UWL service.


Nested Class Summary
static class MessageBundle.KEYS
           
 
Field Summary
static String CONNECTOR_BUNDLE_NAME
           
static String ENUM_DISPLAY_NAME_BUNDLE_NAME
           
static String UWL_CONFIG_BUNDLE_NAME
           
 
Constructor Summary
MessageBundle()
           
 
Method Summary
static String getKeyName(int keyPosition)
           
static String getTextMessage(String bundleName, Locale locale, String key)
          Given the resource bundle name, return the value of the key of the given locale.
static String getTextMessage(String bundleName, Locale locale, String key, Object[] args)
          Use this api careully when value of the key has placeholder(s) for argument(s).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONNECTOR_BUNDLE_NAME

public static final String CONNECTOR_BUNDLE_NAME
See Also:
Constant Field Values

ENUM_DISPLAY_NAME_BUNDLE_NAME

public static final String ENUM_DISPLAY_NAME_BUNDLE_NAME
See Also:
Constant Field Values

UWL_CONFIG_BUNDLE_NAME

public static final String UWL_CONFIG_BUNDLE_NAME
See Also:
Constant Field Values
Constructor Detail

MessageBundle

public MessageBundle()
Method Detail

getTextMessage

public static String getTextMessage(String bundleName,
                                    Locale locale,
                                    String key)
Given the resource bundle name, return the value of the key of the given locale. If not found, key is returned.

Parameters:
bundleName - Resource bundle name
locale - User locale
key -

getTextMessage

public static String getTextMessage(String bundleName,
                                    Locale locale,
                                    String key,
                                    Object[] args)
Use this api careully when value of the key has placeholder(s) for argument(s). Given the resource bundle name, return the value of the key of the given locale. If not found, key is returned. If the format of the value is not correct, the value of the key is returned.

Parameters:
bundleName - Resource bundle name
locale - User locale
key -
args - Not more than 10 arguments. Refer to java.text.MessageFormat.

getKeyName

public static String getKeyName(int keyPosition)


Copyright 2009 SAP AG Complete Copyright Notice