Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


oracle.stellent.ridc.i18n.locale
Class BaseMessages

java.lang.Object
  extended by oracle.stellent.ridc.i18n.locale.BaseMessages

Direct Known Subclasses:
RIDCMessages

public class BaseMessages
extends Object

Base class for the Messages which takes care of the plumbing for the Resource Bundles.


Field Summary
static String RESOURCE_BUNDLE
          The default resource bundle name to be used

 

Constructor Summary
BaseMessages()
           

 

Method Summary
static ResourceBundle getResourceBundle()
          Get the default resource bundle using the default locale
static ResourceBundle getResourceBundle(Locale locale)
           
static ResourceBundle getResourceBundle(String bundleName)
          Get the resource bundle
static ResourceBundle getResourceBundle(String bundleName, Locale locale)
          Get a resource bundle using a specific locale
static String getString(Locale locale, String bundleName, String key, Object... parameters)
           
static String getString(String key)
          Get string for the key from the default bundle
static String getString(String key, Object... arguments)
          Get the string value for the key
static String getString(String bundleName, String key)
          Get the string value for the key from a specific bundle
static String getString(String bundleName, String key, Object... arguments)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

RESOURCE_BUNDLE

public static final String RESOURCE_BUNDLE
The default resource bundle name to be used
See Also:
Constant Field Values

Constructor Detail

BaseMessages

public BaseMessages()

Method Detail

getResourceBundle

public static ResourceBundle getResourceBundle()
Get the default resource bundle using the default locale
Returns:
resource bundle

getResourceBundle

public static ResourceBundle getResourceBundle(String bundleName)
Get the resource bundle
Parameters:
bundleName - the bundle name
Returns:
the resource bundle

getResourceBundle

public static ResourceBundle getResourceBundle(String bundleName,
                                               Locale locale)
Get a resource bundle using a specific locale
Parameters:
bundleName - the bundle name
locale - the locale
Returns:
the resource bundle

getResourceBundle

public static ResourceBundle getResourceBundle(Locale locale)
Parameters:
locale - the locale
Returns:
the resource bundle

getString

public static String getString(String key)
Get string for the key from the default bundle
Parameters:
key - the key
Returns:
the string

getString

public static String getString(String bundleName,
                               String key)
Get the string value for the key from a specific bundle
Parameters:
bundleName - the bundle name
key - the key
Returns:
the string value

getString

public static String getString(String key,
                               Object... arguments)
Get the string value for the key
Parameters:
key - the key
arguments - the parameters
Returns:
the resource string

getString

public static String getString(String bundleName,
                               String key,
                               Object... arguments)
Parameters:
bundleName - the name of the bundle to use
key - the key
arguments - the parameters to be used
Returns:
formatted string

getString

public static String getString(Locale locale,
                               String bundleName,
                               String key,
                               Object... parameters)
Parameters:
locale - the locale for this string
key - the key
parameters - the parameters to be used
Returns:
the localized formatted string

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC)
11g Release 1 (11.1)

E17274-04


Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.