com.sap.netweaver.bc.uwl.i18n
Class MessageBundle
java.lang.Object
com.sap.netweaver.bc.uwl.i18n.MessageBundle
public class MessageBundle
- extends Object
Reference to resource bundle used in UWL service.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
MessageBundle
public MessageBundle()
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 namelocale - User localekey -
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 namelocale - User localekey - 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