Package oracle.stellent.ridc.i18n.locale
Class BaseMessages
java.lang.Object
oracle.stellent.ridc.i18n.locale.BaseMessages
- Direct Known Subclasses:
RIDCMessages
Base class for the Messages which takes care of the plumbing for the Resource Bundles.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceBundleGet the default resource bundle using the default localestatic ResourceBundlegetResourceBundle(String bundleName) Get the resource bundlestatic ResourceBundlegetResourceBundle(String bundleName, Locale locale) Get a resource bundle using a specific localestatic ResourceBundlegetResourceBundle(Locale locale) static StringGet string for the key from the default bundlestatic StringGet the string value for the keystatic StringGet the string value for the key from a specific bundlestatic Stringstatic String
-
Field Details
-
RESOURCE_BUNDLE
The default resource bundle name to be used- See Also:
-
-
Constructor Details
-
BaseMessages
public BaseMessages()
-
-
Method Details
-
getResourceBundle
Get the default resource bundle using the default locale- Returns:
- resource bundle
-
getResourceBundle
Get the resource bundle- Parameters:
bundleName- the bundle name- Returns:
- the resource bundle
-
getResourceBundle
Get a resource bundle using a specific locale- Parameters:
bundleName- the bundle namelocale- the locale- Returns:
- the resource bundle
-
getResourceBundle
- Parameters:
locale- the locale- Returns:
- the resource bundle
-
getString
Get string for the key from the default bundle- Parameters:
key- the key- Returns:
- the string
-
getString
Get the string value for the key from a specific bundle- Parameters:
bundleName- the bundle namekey- the key- Returns:
- the string value
-
getString
Get the string value for the key- Parameters:
key- the keyarguments- the parameters- Returns:
- the resource string
-
getString
- Parameters:
bundleName- the name of the bundle to usekey- the keyarguments- the parameters to be used- Returns:
- formatted string
-
getString
- Parameters:
locale- the locale for this stringkey- the keyparameters- the parameters to be used- Returns:
- the localized formatted string
-