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