Class DefaultNameProvider

  • All Implemented Interfaces:
    NameProvider

    public class DefaultNameProvider
    extends java.lang.Object
    implements NameProvider
    The default name provider acquires localized names from java.text.DateFormatSymbols.

    DefaultNameProvider is thread-safe and immutable.

    Since:
    1.0
    • 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)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultNameProvider

        public DefaultNameProvider()
    • 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 interface NameProvider
        Parameters:
        locale - locale to use for selecting name set
        id - time zone id
        nameKey - 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 interface NameProvider
        Parameters:
        locale - locale to use for selecting name set
        id - time zone id
        nameKey - 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)