Public Member Functions | |
virtual String | getString (const String &key) const=0 |
Static Public Member Functions | |
static ResourceBundlePtr | getBundle (const String &baseName, const Locale &locale) |
Protected Attributes | |
ResourceBundlePtr | parent |
virtual String getString | ( | const String & | key | ) | const [pure virtual] |
Gets a string for the given key from this resource bundle or one of its parents. Calling this method is equivalent to calling
key | the key for the desired string |
MissingResourceException | - if no object for the given key can be found |
Implemented in PropertyResourceBundle.
ResourceBundlePtr getBundle | ( | const String & | baseName, | |
const Locale & | locale | |||
) | [static] |
Gets a resource bundle using the specified base name and locale
baseName | the base name of the resource bundle, a fully qualified class name or property filename | |
locale | the locale for which a resource bundle is desired |
ResourceBundlePtr parent [protected] |
The parent bundle of this bundle.
The parent bundle is searched by getString when this bundle does not contain a particular resource.