org.jboss.seam.international.examples.timeanddate.model
Enum TimeZoneRegions
java.lang.Object
java.lang.Enum<TimeZoneRegions>
org.jboss.seam.international.examples.timeanddate.model.TimeZoneRegions
- All Implemented Interfaces:
- Serializable, Comparable<TimeZoneRegions>
@Named
public enum TimeZoneRegions
- extends Enum<TimeZoneRegions>
Enum for regions
- Author:
- jose.freitas
AFRICA
public static final TimeZoneRegions AFRICA
AMERICA
public static final TimeZoneRegions AMERICA
ASIA
public static final TimeZoneRegions ASIA
AUSTRALIA
public static final TimeZoneRegions AUSTRALIA
ATLANTIC
public static final TimeZoneRegions ATLANTIC
EUROPE
public static final TimeZoneRegions EUROPE
INDIAN
public static final TimeZoneRegions INDIAN
PACIFIC
public static final TimeZoneRegions PACIFIC
values
public static TimeZoneRegions[] 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 (TimeZoneRegions c : TimeZoneRegions.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TimeZoneRegions 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
getRegion
public String getRegion()
Copyright © 2009-2011 Seam Framework. All Rights Reserved.