public class

DefaultNameProvider

extends Object
implements NameProvider
java.lang.Object
   ↳ org.joda.time.tz.DefaultNameProvider

Class Overview

The default name provider acquires localized names from DateFormatSymbols java.text.DateFormatSymbols.

DefaultNameProvider is thread-safe and immutable.

Summary

Public Constructors
DefaultNameProvider()
Public Methods
String getName(Locale locale, String id, String nameKey)
Returns a localized name, or null if not found.
String getShortName(Locale locale, String id, String nameKey)
Returns a localized short name, or null if not found.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.joda.time.tz.NameProvider

Public Constructors

public DefaultNameProvider ()

Public Methods

public String getName (Locale locale, String id, String nameKey)

Returns a localized name, or null if not found.

Parameters
locale locale to use for selecting name set
id time zone id
nameKey time zone name key

public String getShortName (Locale locale, String id, String nameKey)

Returns a localized short name, or null if not found.

Parameters
locale locale to use for selecting name set
id time zone id
nameKey time zone name key