org.formaria.langmgr
Class LanguageDatabaseResourceBundle
java.lang.Object
java.util.ResourceBundle
org.formaria.langmgr.LanguageDatabaseResourceBundle
public class LanguageDatabaseResourceBundle
- extends java.util.ResourceBundle
A resource bundle interface for a language database resource. See the Localization chapter of the
Aria User Guide for more detail.
Aria uses standard property files for localization. These localization files can be set
for an individual page (by setting the 'resource' attribute of the Page
element or for the component factory. The project's resource manager
is used to identify the current locale and the name of the property file by default.
Copyright (c) Formaria Ltd., 2008, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Formaria.
$Revision: 1.5 $
| Nested classes/interfaces inherited from class java.util.ResourceBundle |
java.util.ResourceBundle.Control |
| Fields inherited from class java.util.ResourceBundle |
parent |
|
Method Summary |
java.util.Enumeration |
getKeys()
Returns an enumeration of the keys. |
protected java.lang.Object |
handleGetObject(java.lang.String key)
Gets an object for the given key from this resource bundle. |
| Methods inherited from class java.util.ResourceBundle |
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LanguageDatabaseResourceBundle
public LanguageDatabaseResourceBundle(Project currentProject,
java.lang.String keyField,
java.lang.String context)
- Construct a new resource bundle for the given context. The context may be a
page name or a named subset of a translation
- Parameters:
keyField - The database field to use as the language keycontext - the translation subset name
handleGetObject
protected java.lang.Object handleGetObject(java.lang.String key)
- Gets an object for the given key from this resource bundle. Returns the key if
this resource bundle does not contain an object for the given key.
- Specified by:
handleGetObject in class java.util.ResourceBundle
- Parameters:
key - the key for the desired object
- Returns:
- the object for the given key, or null
getKeys
public java.util.Enumeration getKeys()
- Returns an enumeration of the keys.
- Specified by:
getKeys in class java.util.ResourceBundle
- Returns:
- the language keys