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