org.jdesktop.swingx.ws.yahoo.search
Enum License

java.lang.Object
  extended by java.lang.Enum<License>
      extended by org.jdesktop.swingx.ws.yahoo.search.License
All Implemented Interfaces:
Serializable, Comparable<License>

public enum License
extends Enum<License>

License codes supported by Yahoo! search services


Enum Constant Summary
ANY
           
CC_ANY
           
CC_COMMERCIAL
           
CC_MODIFIABLE
           
 
Method Summary
 String getCode()
           
static License valueOf(String name)
          Returns the enum constant of this type with the specified name.
static License[] 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, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ANY

public static final License ANY

CC_ANY

public static final License CC_ANY

CC_COMMERCIAL

public static final License CC_COMMERCIAL

CC_MODIFIABLE

public static final License CC_MODIFIABLE
Method Detail

values

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

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

valueOf

public static License 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()