|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectResourceBundle
IndexedResourceBundle
Vocabulary
public class Vocabulary
Base class for locale-dependent resources. Instances of this class should
never been created directly. Use the factory method getResources(java.util.Locale)
or use static convenience methods instead.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ResourceBundle |
---|
ResourceBundle.Control |
Field Summary |
---|
Fields inherited from class ResourceBundle |
---|
parent |
Constructor Summary | |
---|---|
Vocabulary()
|
Method Summary | |
---|---|
static String |
format(int key)
Gets a string for the given key from this resource bundle or one of its parents. |
static String |
format(int key,
Object arg0)
Gets a string for the given key are replace all occurence of "{0}" with values of arg0 . |
static String |
format(int key,
Object arg0,
Object arg1)
Gets a string for the given key are replace all occurence of "{0}", "{1}", with values of arg0 , arg1 . |
static String |
format(int key,
Object arg0,
Object arg1,
Object arg2)
Gets a string for the given key are replace all occurence of "{0}", "{1}", with values of arg0 , arg1 , etc. |
static InternationalString |
formatInternational(int key)
Gets an international string for the given key. |
static InternationalString |
formatInternational(int key,
Object arg0)
Gets an international string for the given key. |
static InternationalString |
formatInternational(int key,
Object arg0,
Object arg1)
Gets an international string for the given key. |
static InternationalString |
formatInternational(int key,
Object arg0,
Object arg1,
Object arg2)
Gets an international string for the given key. |
static Vocabulary |
getResources(Locale locale)
Returns resources in the given locale. |
Methods inherited from class IndexedResourceBundle |
---|
format, getKeys, getLabel, getLogRecord, getLogRecord, getLogRecord, getLogRecord, getLogRecord, getMenuLabel, getString, getString, getString, getString, getString, getString, handleGetObject, list, toString |
Methods inherited from class ResourceBundle |
---|
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Vocabulary()
Method Detail |
---|
public static Vocabulary getResources(Locale locale) throws MissingResourceException
locale
- The locale, or null
for the default locale.
MissingResourceException
- if resources can't be found.public static InternationalString formatInternational(int key)
MissingResourceException
may be thrown
when a InternationalString.toString(java.util.Locale)
method is invoked.
key
- The key for the desired string.
public static InternationalString formatInternational(int key, Object arg0)
MissingResourceException
may be thrown
when a InternationalString.toString(java.util.Locale)
method is invoked.
key
- The key for the desired string.arg0
- Value to substitute to "{0}".
public static InternationalString formatInternational(int key, Object arg0, Object arg1)
MissingResourceException
may be thrown
when a InternationalString.toString(java.util.Locale)
method is invoked.
key
- The key for the desired string.arg0
- Value to substitute to "{0}".arg1
- Value to substitute to "{1}".
public static InternationalString formatInternational(int key, Object arg0, Object arg1, Object arg2)
MissingResourceException
may be thrown
when a InternationalString.toString(java.util.Locale)
method is invoked.
key
- The key for the desired string.arg0
- Value to substitute to "{0}".arg1
- Value to substitute to "{1}".arg2
- Value to substitute to "{2}".
public static String format(int key) throws MissingResourceException
key
- The key for the desired string.
MissingResourceException
- If no object for the given key can be found.public static String format(int key, Object arg0) throws MissingResourceException
arg0
.
key
- The key for the desired string.arg0
- Value to substitute to "{0}".
MissingResourceException
- If no object for the given key can be found.public static String format(int key, Object arg0, Object arg1) throws MissingResourceException
arg0
, arg1
.
key
- The key for the desired string.arg0
- Value to substitute to "{0}".arg1
- Value to substitute to "{1}".
MissingResourceException
- If no object for the given key can be found.public static String format(int key, Object arg0, Object arg1, Object arg2) throws MissingResourceException
arg0
, arg1
, etc.
key
- The key for the desired string.arg0
- Value to substitute to "{0}".arg1
- Value to substitute to "{1}".arg2
- Value to substitute to "{2}".
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 |