org.dasein.cloud.services.dc
Enum Jurisdiction

java.lang.Object
  extended by java.lang.Enum<Jurisdiction>
      extended by org.dasein.cloud.services.dc.Jurisdiction
All Implemented Interfaces:
Serializable, Comparable<Jurisdiction>

public enum Jurisdiction
extends Enum<Jurisdiction>

Represents the legal context of a given region of data centers. Given knowledge about the region in which resources are being used, an application can make determinations on how data from those resources may be shared.

Author:
George Reese @ enStratus (http://www.enstratus.com)

Enum Constant Summary
AU
          Australia
EU
          The European Union
JP
          Japan
OTHER
          Other jurisdiction
SG
          Singapore
US
          The United States of America
 
Method Summary
static Jurisdiction valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Jurisdiction[] 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

AU

public static final Jurisdiction AU
Australia


JP

public static final Jurisdiction JP
Japan


EU

public static final Jurisdiction EU
The European Union


US

public static final Jurisdiction US
The United States of America


SG

public static final Jurisdiction SG
Singapore


OTHER

public static final Jurisdiction OTHER
Other jurisdiction

Method Detail

values

public static Jurisdiction[] 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 (Jurisdiction c : Jurisdiction.values())
    System.out.println(c);

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

valueOf

public static Jurisdiction 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