|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jeospace.text.CountryNames
Localization resource for the names of countrys, territories and areas of special sovereignty.
CountryCode,
Locale| Field Summary | |
protected static java.util.HashMap |
cache
Cache of resource bundles |
| Constructor Summary | |
protected |
CountryNames(java.util.Locale locale)
Construct a CountryNames object for the locale. |
| Method Summary | |
static CountryNames |
getInstance()
Return the CountryNames object for the default locale. |
static CountryNames |
getInstance(java.util.Locale locale)
Return the CountryNames object for the specified locale. |
java.lang.String |
getName(CountryCode code)
Return the localized name cooresponding to the passed CountryCode object. |
java.lang.String[] |
getNames(CountryCode[] code)
Return an array of localized names cooresponding to the passed CountryCode objects. |
| 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 CountryNames(java.util.Locale locale)
CountryNames object for the locale.
MissingResourceException - - if the resources for the specified
locale cannot be found or cannot be loaded.| Method Detail |
public static CountryNames getInstance()
CountryNames object for the default locale.
CountryNames object for the default locale.
MissingResourceException - - if the resources for the specified
locale cannot be found or cannot be loaded.public static CountryNames getInstance(java.util.Locale locale)
CountryNames object for the specified locale.
locale - the desired locale.
CountryNames 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(CountryCode[] code)
CountryCode objects.
code - an array of CountryCode onjects.
CountryCode
object parameters.
java.util.MissingResourceException - - if the resources for the specified locale do not
contain a localized name for a CountryCode.public java.lang.String getName(CountryCode code)
CountryCode object.
code - the CountryCode onject.
CountryCode
object parameter.
java.util.MissingResourceException - - if the resources for the specified locale do not
contain a localized name for the CountryCode.
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||