org.jdesktop.swingx.ws.yahoo.search
Enum Region
java.lang.Object
java.lang.Enum<Region>
org.jdesktop.swingx.ws.yahoo.search.Region
- All Implemented Interfaces:
- Serializable, Comparable<Region>
public enum Region
- extends Enum<Region>
Region codes supported by Yahoo! search services
|
Method Summary |
String |
getCode()
|
static Region |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Region[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
ARGENTINA
public static final Region ARGENTINA
AUSTRALIA
public static final Region AUSTRALIA
AUSTRIA
public static final Region AUSTRIA
BELGIUM
public static final Region BELGIUM
BRAZIL
public static final Region BRAZIL
CANADA
public static final Region CANADA
CATALAN
public static final Region CATALAN
DENMARK
public static final Region DENMARK
FINLAND
public static final Region FINLAND
FRANCE
public static final Region FRANCE
GERMANY
public static final Region GERMANY
INDIA
public static final Region INDIA
INDONESIA
public static final Region INDONESIA
ITALY
public static final Region ITALY
MALAYSIA
public static final Region MALAYSIA
MEXICO
public static final Region MEXICO
NETHERLANDS
public static final Region NETHERLANDS
NORWAY
public static final Region NORWAY
PHILLIPINES
public static final Region PHILLIPINES
RUSSIAN_FEDERATION
public static final Region RUSSIAN_FEDERATION
SINGAPORE
public static final Region SINGAPORE
SPAIN
public static final Region SPAIN
SWEDEN
public static final Region SWEDEN
SWITZERLAND
public static final Region SWITZERLAND
THAILAND
public static final Region THAILAND
UNITED_KINGDOM
public static final Region UNITED_KINGDOM
UNITED_STATES
public static final Region UNITED_STATES
values
public static Region[] 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 (Region c : Region.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Region 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
getCode
public String getCode()