com.kpro.dataobjects
Enum Purpose
java.lang.Object
java.lang.Enum<Purpose>
com.kpro.dataobjects.Purpose
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Purpose>
public enum Purpose
- extends java.lang.Enum<Purpose>
The purposes that a case can contain. See P3P specs for more info.
- Author:
- ernie
Method Summary |
boolean |
isOptional()
|
void |
setOptional()
|
static Purpose |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Purpose[] |
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 |
CURRENT
public static final Purpose CURRENT
ADMIN
public static final Purpose ADMIN
DEVELOP
public static final Purpose DEVELOP
TAILORING
public static final Purpose TAILORING
PSEUDO_ANALYSIS
public static final Purpose PSEUDO_ANALYSIS
PSEUDO_DECISION
public static final Purpose PSEUDO_DECISION
INDIVIDUAL_ANALYSIS
public static final Purpose INDIVIDUAL_ANALYSIS
INDIVIDUAL_DECISION
public static final Purpose INDIVIDUAL_DECISION
CONTACT
public static final Purpose CONTACT
HISTORICAL
public static final Purpose HISTORICAL
TELEMARKETING
public static final Purpose TELEMARKETING
OTHER_PURPOSE
public static final Purpose OTHER_PURPOSE
CUSTOMIZATION
public static final Purpose CUSTOMIZATION
optional
private boolean optional
values
public static Purpose[] 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 (Purpose c : Purpose.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Purpose 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
setOptional
public void setOptional()
isOptional
public boolean isOptional()