Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14650-04


oracle.security.jps.util
Class JpsBundle

java.lang.Object
  extended by oracle.security.jps.util.JpsBundle


public final class JpsBundle
extends java.lang.Object

This class manages the resource bundles used by the JPS.


Method Summary
static JpsBundle getResourceBundle(JpsBundleType resourceType)
          Returns the appropriate resource bundle based on the passed type
static JpsBundle getResourceBundle(JpsBundleType resourceType, java.util.Enumeration locales)
          Returns the resource bundle with the highest weight from the list of locales
static JpsBundle getResourceBundle(JpsBundleType bundleType, java.util.Locale locale)
          Returns the appropriate resource bundle based on the passed type
 java.util.Locale getResourceLocale()
          Returns the locale of this resource
 java.lang.String getString(java.lang.String key)
          This method finds the message from the appropriate bundle for the given key If the expected bundle is not initialized because its name is invalid or the bundle is initialized but it does not have the given key then it will fall back to use the base bundle i.e.
 java.lang.String getString(java.lang.String key, java.lang.Object[] params)
          Returns the formated string based on passed parameter
 java.lang.String getString(java.lang.String key, java.lang.String param)
          Returns the formated string based on passed parameter
 boolean isLocaleRTL()
          determine if the locale for this resource is a RTL language typically, this is limited to Hebrew (iw, he) or Arabic (ar)

 

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

 

Method Detail

getResourceBundle

public static JpsBundle getResourceBundle(JpsBundleType resourceType)
Returns the appropriate resource bundle based on the passed type
Parameters:
resourceType - - The JpsBundleType
Returns:
JPSResourceBundle
Since:
JPS 11.1.1

getResourceBundle

public static JpsBundle getResourceBundle(JpsBundleType bundleType,
                                          java.util.Locale locale)
Returns the appropriate resource bundle based on the passed type
Parameters:
bundleType - - The JpsBundleType
locale - - The locale
Returns:
JPSResourceBundle
Since:
JPS 11.1.1

getResourceBundle

public static JpsBundle getResourceBundle(JpsBundleType resourceType,
                                          java.util.Enumeration locales)
Returns the resource bundle with the highest weight from the list of locales
Parameters:
resourceType - - The JpsBundleType
locales - - The list of all locales
Returns:
the JpsResourceBundle

getString

public java.lang.String getString(java.lang.String key)
This method finds the message from the appropriate bundle for the given key If the expected bundle is not initialized because its name is invalid or the bundle is initialized but it does not have the given key then it will fall back to use the base bundle i.e. baseResourceBundle
Parameters:
key - The key name for which to get the value of
Returns:
The localized message value for the given ke
Since:
JPS 11.1.1

getString

public java.lang.String getString(java.lang.String key,
                                  java.lang.String param)
Returns the formated string based on passed parameter
Parameters:
key - The key
param - value passed dynamically
Returns:
String
Since:
JPS 11.1.1

getString

public java.lang.String getString(java.lang.String key,
                                  java.lang.Object[] params)
Returns the formated string based on passed parameter
Parameters:
key - The key
params - An Array of values passed dynamically
Returns:
String
Since:
JPS 11.1.1

getResourceLocale

public java.util.Locale getResourceLocale()
Returns the locale of this resource
Returns:
The resource Locale

isLocaleRTL

public boolean isLocaleRTL()
determine if the locale for this resource is a RTL language typically, this is limited to Hebrew (iw, he) or Arabic (ar)
Returns:
true if locale language is RTL, false otherwise.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14650-04


Copyright © 2011, Oracle. All rights reserved.