|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jeospace.text.WorldNames
Localization resource for the names of worlds in the Solar System.
Locale| Field Summary | |
protected static java.util.HashMap |
cache
Cache of resource bundles |
| Constructor Summary | |
protected |
WorldNames(java.util.Locale locale)
Construct a WorldNames object for the locale. |
| Method Summary | |
static WorldNames |
getInstance()
Return the WorldNames object for the default locale. |
static WorldNames |
getInstance(java.util.Locale locale)
Return the WorldNames object for the specified locale. |
java.lang.String |
getName(java.lang.String name)
Return the localized world name cooresponding to the passed string. |
java.lang.String[] |
getNames(java.lang.String[] name)
Return an array of localized world names cooresponding to the passed array of strings. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.util.HashMap cache
| Constructor Detail |
protected WorldNames(java.util.Locale locale)
WorldNames object for the locale.
MissingResourceException - - if the resources for the specified
locale cannot be found or cannot be loaded.| Method Detail |
public static WorldNames getInstance()
WorldNames object for the default locale.
WorldNames object for the default locale.
MissingResourceException - - if the resources for the specified
locale cannot be found or cannot be loaded.public static WorldNames getInstance(java.util.Locale locale)
WorldNames object for the specified locale.
locale - the desired locale.
WorldNames object for the cooresponding locale.
MissingResourceException - - if the resources for the specified
locale cannot be found or cannot be loaded.public java.lang.String[] getNames(java.lang.String[] name)
name - an array of world name strings.
java.util.MissingResourceException - - if the resources for the specified locale do not
contain a localized name for an argument.public java.lang.String getName(java.lang.String name)
name - the world name.
java.util.MissingResourceException - - if the resources for the specified locale do not
contain a localized name for the argument.
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||