|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.ResourceBundle
org.deegree_impl.model.resources.ResourceBundle
javax.units.resources.Resources
Base class for local-dependent resources. Instances of this class should
never been created directly. Use the factory method getResources(java.util.Locale)
or use static methods instead.
Nested Class Summary |
Nested classes inherited from class java.util.ResourceBundle |
|
Field Summary |
Fields inherited from class org.deegree_impl.model.resources.ResourceBundle |
values |
Fields inherited from class java.util.ResourceBundle |
parent |
Constructor Summary | |
|
Resources()
Construct a resource bundle using english language. |
(package private) |
Resources(java.lang.String filepath)
Construct a resource bundle using the specified UTF8 file. |
Method Summary | |
static java.lang.String |
format(int key)
Gets a string for the given key from this resource bundle or one of its parents. |
static java.lang.String |
format(int key,
java.lang.Object arg0)
Gets a string for the given key are replace all occurence of "{0}" with values of arg0 . |
static java.lang.String |
format(int key,
java.lang.Object arg0,
java.lang.Object arg1)
Gets a string for the given key are replace all occurence of "{0}", "{1}", with values of arg0 , arg1 . |
protected java.lang.String |
getLoggerName()
Returns the name of the logger to use, which is javax.units . |
static Resources |
getResources(java.util.Locale locale)
Returns resources in the given locale. |
Methods inherited from class org.deegree_impl.model.resources.ResourceBundle |
getKeys, getLabel, getMenuLabel, getString, getString, getString, getString, getString, getString, handleGetObject, list, toString |
Methods inherited from class java.util.ResourceBundle |
getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Resources()
Resources(java.lang.String filepath)
Method Detail |
protected java.lang.String getLoggerName()
javax.units
.
getLoggerName
in class ResourceBundle
public static Resources getResources(java.util.Locale locale) throws java.util.MissingResourceException
locale
- The locale, or null
for the default locale.
java.util.MissingResourceException
- if resources can't be found.public static java.lang.String format(int key) throws java.util.MissingResourceException
key
- The key for the desired string.
java.util.MissingResourceException
- If no object for the given key can be found.public static java.lang.String format(int key, java.lang.Object arg0) throws java.util.MissingResourceException
arg0
.
key
- The key for the desired string.arg0
- Value to substitute to "{0}".
java.util.MissingResourceException
- If no object for the given key can be found.public static java.lang.String format(int key, java.lang.Object arg0, java.lang.Object arg1) throws java.util.MissingResourceException
arg0
, arg1
.
key
- The key for the desired string.arg0
- Value to substitute to "{0}".arg1
- Value to substitute to "{1}".
java.util.MissingResourceException
- If no object for the given key can be found.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |