Package org.joda.time.tz
Class DefaultNameProvider
- java.lang.Object
-
- org.joda.time.tz.DefaultNameProvider
-
- All Implemented Interfaces:
NameProvider
public class DefaultNameProvider extends java.lang.Object implements NameProvider
The default name provider acquires localized names fromjava.text.DateFormatSymbols
.DefaultNameProvider is thread-safe and immutable.
- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description DefaultNameProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getShortName
public java.lang.String getShortName(java.util.Locale locale, java.lang.String id, java.lang.String nameKey)
Description copied from interface:NameProvider
Returns a localized short name, or null if not found.- Specified by:
getShortName
in interfaceNameProvider
- Parameters:
locale
- locale to use for selecting name setid
- time zone idnameKey
- time zone name key
-
getName
public java.lang.String getName(java.util.Locale locale, java.lang.String id, java.lang.String nameKey)
Description copied from interface:NameProvider
Returns a localized name, or null if not found.- Specified by:
getName
in interfaceNameProvider
- Parameters:
locale
- locale to use for selecting name setid
- time zone idnameKey
- time zone name key
-
getShortName
public java.lang.String getShortName(java.util.Locale locale, java.lang.String id, java.lang.String nameKey, boolean standardTime)
-
getName
public java.lang.String getName(java.util.Locale locale, java.lang.String id, java.lang.String nameKey, boolean standardTime)
-
-