public class DefaultNameProvider extends java.lang.Object implements NameProvider
java.text.DateFormatSymbols
.
DefaultNameProvider is thread-safe and immutable.
Constructor and Description |
---|
DefaultNameProvider() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName(java.util.Locale locale,
java.lang.String id,
java.lang.String nameKey)
Returns a localized name, or null if not found.
|
java.lang.String |
getName(java.util.Locale locale,
java.lang.String id,
java.lang.String nameKey,
boolean standardTime) |
java.lang.String |
getShortName(java.util.Locale locale,
java.lang.String id,
java.lang.String nameKey)
Returns a localized short name, or null if not found.
|
java.lang.String |
getShortName(java.util.Locale locale,
java.lang.String id,
java.lang.String nameKey,
boolean standardTime) |
public java.lang.String getShortName(java.util.Locale locale, java.lang.String id, java.lang.String nameKey)
NameProvider
getShortName
in interface NameProvider
locale
- locale to use for selecting name setid
- time zone idnameKey
- time zone name keypublic java.lang.String getName(java.util.Locale locale, java.lang.String id, java.lang.String nameKey)
NameProvider
getName
in interface NameProvider
locale
- locale to use for selecting name setid
- time zone idnameKey
- time zone name keypublic java.lang.String getShortName(java.util.Locale locale, java.lang.String id, java.lang.String nameKey, boolean standardTime)
public java.lang.String getName(java.util.Locale locale, java.lang.String id, java.lang.String nameKey, boolean standardTime)
Copyright © 2010 - 2020 Adobe. All Rights Reserved