com.kpro.dataobjects
Enum Category
java.lang.Object
java.lang.Enum<Category>
com.kpro.dataobjects.Category
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Category>
public enum Category
- extends java.lang.Enum<Category>
The categories that a case can contain. See P3P specs for more info.
- Author:
- ernie
Method Summary |
static Category |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Category[] |
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 |
PHYSICAL
public static final Category PHYSICAL
ONLINE
public static final Category ONLINE
UNIQUEID
public static final Category UNIQUEID
PURCHASE
public static final Category PURCHASE
FINANCIAL
public static final Category FINANCIAL
COMPUTER
public static final Category COMPUTER
NAVIGATION
public static final Category NAVIGATION
INTERACTIVE
public static final Category INTERACTIVE
DEMOGRAPHIC
public static final Category DEMOGRAPHIC
CONTENT
public static final Category CONTENT
STATE
public static final Category STATE
POLITICAL
public static final Category POLITICAL
HEALTH
public static final Category HEALTH
PREFERENCE
public static final Category PREFERENCE
LOCATION
public static final Category LOCATION
GOVERNMENT
public static final Category GOVERNMENT
OTHER_CATEGORY
public static final Category OTHER_CATEGORY
values
public static Category[] 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 (Category c : Category.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Category valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null