org.jboss.seam.international.examples.timeanddate.model
Enum TimeZoneRegions

java.lang.Object
  extended by java.lang.Enum<TimeZoneRegions>
      extended by 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

Enum Constant Summary
AFRICA
           
AMERICA
           
ASIA
           
ATLANTIC
           
AUSTRALIA
           
EUROPE
           
INDIAN
           
PACIFIC
           
 
Method Summary
 String getRegion()
           
static TimeZoneRegions valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TimeZoneRegions[] 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

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
Method Detail

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.