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