com.ibm.icu.text
Enum TimeZoneFormat.Style

java.lang.Object
  extended by java.lang.Enum<TimeZoneFormat.Style>
      extended by com.ibm.icu.text.TimeZoneFormat.Style
All Implemented Interfaces:
Serializable, Comparable<TimeZoneFormat.Style>
Enclosing class:
TimeZoneFormat

Deprecated. This API might change or be removed in a future release.

public static enum TimeZoneFormat.Style
extends Enum<TimeZoneFormat.Style>

Time zone display format style enum used by format/parse APIs in TimeZoneFormat.

See Also:
TimeZoneFormat.format(Style, TimeZone, long), TimeZoneFormat.format(Style, TimeZone, long, Output), TimeZoneFormat.parse(Style, String, ParsePosition, Output)
Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.

Enum Constant Summary
GENERIC_LOCATION
          Deprecated. This API might change or be removed in a future release.
GENERIC_LONG
          Deprecated. This API might change or be removed in a future release.
GENERIC_SHORT
          Deprecated. This API might change or be removed in a future release.
LOCALIZED_GMT
          Deprecated. This API might change or be removed in a future release.
RFC822
          Deprecated. This API might change or be removed in a future release.
SPECIFIC_LONG
          Deprecated. This API might change or be removed in a future release.
SPECIFIC_SHORT
          Deprecated. This API might change or be removed in a future release.
SPECIFIC_SHORT_COMMONLY_USED
          Deprecated. This API might change or be removed in a future release.
 
Method Summary
static TimeZoneFormat.Style valueOf(String name)
          Deprecated. Returns the enum constant of this type with the specified name.
static TimeZoneFormat.Style[] values()
          Deprecated. Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GENERIC_LOCATION

public static final TimeZoneFormat.Style GENERIC_LOCATION
Deprecated. This API might change or be removed in a future release.
Generic location format, such as "United States Time (New York)", "Italy Time"

Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.

GENERIC_LONG

public static final TimeZoneFormat.Style GENERIC_LONG
Deprecated. This API might change or be removed in a future release.
Generic long non-location format, such as "Eastern Time".

Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.

GENERIC_SHORT

public static final TimeZoneFormat.Style GENERIC_SHORT
Deprecated. This API might change or be removed in a future release.
Generic short non-location format, such as "ET".

Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.

SPECIFIC_LONG

public static final TimeZoneFormat.Style SPECIFIC_LONG
Deprecated. This API might change or be removed in a future release.
Specific long format, such as "Eastern Standard Time".

Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.

SPECIFIC_SHORT

public static final TimeZoneFormat.Style SPECIFIC_SHORT
Deprecated. This API might change or be removed in a future release.
Specific short format, such as "EST", "PDT".

Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.

RFC822

public static final TimeZoneFormat.Style RFC822
Deprecated. This API might change or be removed in a future release.
RFC822 format, such as "-0500"

Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.

LOCALIZED_GMT

public static final TimeZoneFormat.Style LOCALIZED_GMT
Deprecated. This API might change or be removed in a future release.
Localized GMT offset format, such as "GMT-05:00", "UTC+0100"

Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.

SPECIFIC_SHORT_COMMONLY_USED

public static final TimeZoneFormat.Style SPECIFIC_SHORT_COMMONLY_USED
Deprecated. This API might change or be removed in a future release.
Specific short format, such as "EST", "PDT".

Note: This is a variant of SPECIFIC_SHORT, but excluding short abbreviations not commonly recognized by people for the locale.

Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.
Method Detail

values

public static TimeZoneFormat.Style[] values()
Deprecated. 
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TimeZoneFormat.Style c : TimeZoneFormat.Style.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TimeZoneFormat.Style valueOf(String name)
Deprecated. 
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright (c) 2011 IBM Corporation and others.