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

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:
Draft ICU 49.

Enum Constant Summary
GENERIC_LOCATION
          Generic location format, such as "United States Time (New York)", "Italy Time"
GENERIC_LONG
          Generic long non-location format, such as "Eastern Time".
GENERIC_SHORT
          Generic short non-location format, such as "ET".
ISO8601
          ISO 8601 format (extended), such as "-05:00", "Z"(UTC)
LOCALIZED_GMT
          Localized GMT offset format, such as "GMT-05:00", "UTC+0100"
RFC822
          RFC822 format, such as "-0500"
SPECIFIC_LONG
          Specific long format, such as "Eastern Standard Time".
SPECIFIC_SHORT
          Specific short format, such as "EST", "PDT".
 
Method Summary
static TimeZoneFormat.Style valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TimeZoneFormat.Style[] values()
          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
Generic location format, such as "United States Time (New York)", "Italy Time"

Status:
Draft ICU 49.

GENERIC_LONG

public static final TimeZoneFormat.Style GENERIC_LONG
Generic long non-location format, such as "Eastern Time".

Status:
Draft ICU 49.

GENERIC_SHORT

public static final TimeZoneFormat.Style GENERIC_SHORT
Generic short non-location format, such as "ET".

Status:
Draft ICU 49.

SPECIFIC_LONG

public static final TimeZoneFormat.Style SPECIFIC_LONG
Specific long format, such as "Eastern Standard Time".

Status:
Draft ICU 49.

SPECIFIC_SHORT

public static final TimeZoneFormat.Style SPECIFIC_SHORT
Specific short format, such as "EST", "PDT".

Status:
Draft ICU 49.

RFC822

public static final TimeZoneFormat.Style RFC822
RFC822 format, such as "-0500"

Status:
Draft ICU 49.

LOCALIZED_GMT

public static final TimeZoneFormat.Style LOCALIZED_GMT
Localized GMT offset format, such as "GMT-05:00", "UTC+0100"

Status:
Draft ICU 49.

ISO8601

public static final TimeZoneFormat.Style ISO8601
ISO 8601 format (extended), such as "-05:00", "Z"(UTC)

Status:
Draft ICU 49.
Method Detail

values

public static TimeZoneFormat.Style[] values()
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)
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) 2012 IBM Corporation and others.