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