java.lang.Object | +--com.ibm.commerce.ras.ServerResourceBundleBridge
Handles locale dependant strings.
Constructor Summary | |
---|---|
ServerResourceBundleBridge(java.util.Locale theLocale,
java.lang.String resourceBundleName) Constructor for ServerResourceBundleBridge |
Method Summary | |
---|---|
java.lang.String |
get(java.lang.String id) Gets the message from the given id for the default locale. |
java.lang.String |
get(java.lang.String id, java.util.Locale locale) Gets the locale dependent message from the given id. |
static void |
main(java.lang.String[] args) Test program |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Constructor Detail |
---|
public ServerResourceBundleBridge(java.util.Locale theLocale, java.lang.String resourceBundleName)
theLocale
- Locale used to define the languageresourceBundleName
- resource bundle to retrieve the message
textMethod Detail |
---|
public final java.lang.String get(java.lang.String id)
id
- message identifierpublic final java.lang.String get(java.lang.String id, java.util.Locale locale)
id
- message identifierlocale
- the Locale of the messagepublic static void main(java.lang.String[] args)