Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.java.util
Class ResourceBundle

java.lang.Object
  extended by oracle.adfnmc.java.util.ResourceBundle
Direct Known Subclasses:
ListResourceBundle, PropertyResourceBundle, XliffResourceBundle

public abstract class ResourceBundle
extends java.lang.Object

An implementation of Java SE's ResourceBundle class. Blackberry provides its own ResourceBundle class, in a different namespace, but the biggest problem with that version is it only supports retrieving resources by integer keys; not string keys like Java SE does.

Author:
PARACHAN

Field Summary
static java.lang.Class CLASS_INSTANCE
           
protected  ResourceBundle parent
           
static java.lang.String PROPERTIES_FILE
           
static java.lang.String XLIFF_FILE
           
 
Constructor Summary
protected ResourceBundle()
           
protected ResourceBundle(java.lang.String baseName, Locale locale)
          Constructor
 
Method Summary
static ResourceBundle getBundle(java.lang.String baseName)
          Get a ResourceBundle using the default locale and provided baseName
static ResourceBundle getBundle(java.lang.String baseName, Locale locale)
          Get a ResourceBundle for the specified baseName and Locale
abstract  java.util.Enumeration getKeys()
           
 Locale getLocale()
          Get the Locale associated with this ResourceBundle
abstract  java.lang.Object getObject(java.lang.String key)
          Subclasses must override this to return the Object associated with the specified key
protected  ResourceBundle getParent()
          Get the parent of this ResourceBundle
 java.lang.String getString(java.lang.String key)
          Return the value associated with this key as a String.
 java.lang.String[] getStringArray(java.lang.String key)
          Return the value associated with this key as a String[].
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_INSTANCE

public static final java.lang.Class CLASS_INSTANCE

PROPERTIES_FILE

public static final java.lang.String PROPERTIES_FILE
See Also:
Constant Field Values

XLIFF_FILE

public static final java.lang.String XLIFF_FILE
See Also:
Constant Field Values

parent

protected ResourceBundle parent
Constructor Detail

ResourceBundle

protected ResourceBundle(java.lang.String baseName,
                         Locale locale)
Constructor

Parameters:
baseName -
locale -

ResourceBundle

protected ResourceBundle()
Method Detail

getBundle

public static ResourceBundle getBundle(java.lang.String baseName)
Get a ResourceBundle using the default locale and provided baseName

Parameters:
baseName -
Returns:

getBundle

public static ResourceBundle getBundle(java.lang.String baseName,
                                       Locale locale)
Get a ResourceBundle for the specified baseName and Locale

Parameters:
baseName -
locale -
Returns:

getLocale

public Locale getLocale()
Get the Locale associated with this ResourceBundle

Returns:

getObject

public abstract java.lang.Object getObject(java.lang.String key)
Subclasses must override this to return the Object associated with the specified key

Parameters:
key -
Returns:

getString

public java.lang.String getString(java.lang.String key)
Return the value associated with this key as a String. Simply casts getObject(key) to String.

Parameters:
key -
Returns:

getStringArray

public java.lang.String[] getStringArray(java.lang.String key)
Return the value associated with this key as a String[]. Simply casts getObject(key) to String[].

Parameters:
key -
Returns:

getParent

protected ResourceBundle getParent()
Get the parent of this ResourceBundle

Returns:

getKeys

public abstract java.util.Enumeration getKeys()

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

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