com.kpro.dataobjects
Enum Retention
java.lang.Object
java.lang.Enum<Retention>
com.kpro.dataobjects.Retention
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Retention>
public enum Retention
- extends java.lang.Enum<Retention>
The retentions that a case can contain. See P3P specs for more info.
- Author:
- ernie
Method Summary |
static Retention |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Retention[] |
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 |
NO_RETENTION
public static final Retention NO_RETENTION
STATED_PURPOSE
public static final Retention STATED_PURPOSE
LEGAL_REQUIREMENT
public static final Retention LEGAL_REQUIREMENT
BUSINESS_PRACTICES
public static final Retention BUSINESS_PRACTICES
INDEFINITELY
public static final Retention INDEFINITELY
values
public static Retention[] 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 (Retention c : Retention.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Retention 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