Resource bundles contain locale-specific objects. More...
Inherits log4cxx::helpers::ObjectImpl.
Inherited by PropertyResourceBundle.
Classes | |
| class | ClazzResourceBundle |
Public Member Functions | |
| virtual const helpers::Class & | getClass () const |
| const void * | cast (const helpers::Class &clazz) const |
| bool | instanceof (const helpers::Class &clazz) const |
| virtual LogString | getString (const LogString &key) const =0 |
| Gets a string for the given key from this resource bundle or one of its parents. | |
Static Public Member Functions | |
| static const helpers::Class & | getStaticClass () |
| static const log4cxx::helpers::ClassRegistration & | registerClass () |
| static ResourceBundlePtr | getBundle (const LogString &baseName, const Locale &locale) |
| Gets a resource bundle using the specified base name and locale. | |
Protected Member Functions | |
| void | setParent (const ResourceBundlePtr &parent1) |
Protected Attributes | |
| ResourceBundlePtr | parent |
| The parent bundle of this bundle. | |
Resource bundles contain locale-specific objects.
| const void* cast | ( | const helpers::Class & | clazz | ) | const [inline, virtual] |
Implements Object.
Reimplemented in PropertyResourceBundle.
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 |
| virtual const helpers::Class& getClass | ( | ) | const [virtual] |
Reimplemented from Object.
Reimplemented in PropertyResourceBundle.
| static const helpers::Class& getStaticClass | ( | ) | [static] |
Reimplemented from Object.
Reimplemented in PropertyResourceBundle.
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.
| bool instanceof | ( | const helpers::Class & | clazz | ) | const [inline, virtual] |
Implements Object.
Reimplemented in PropertyResourceBundle.
| static const log4cxx::helpers::ClassRegistration& registerClass | ( | ) | [static] |
Reimplemented from Object.
Reimplemented in PropertyResourceBundle.
| void setParent | ( | const ResourceBundlePtr & | parent1 | ) | [inline, protected] |
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.