com.kpro.dataobjects
Enum Recipient

java.lang.Object
  extended by java.lang.Enum<Recipient>
      extended by com.kpro.dataobjects.Recipient
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Recipient>

public enum Recipient
extends java.lang.Enum<Recipient>

The recipients that a case can contain. See P3P specs for more info.

Author:
ernie

Enum Constant Summary
DELIVERY
           
OTHER_RECIPIENT
           
OURS
           
PUBLIC
           
SAME
           
UNRELATED
           
 
Field Summary
private  boolean optional
           
 
Method Summary
 boolean isOptional()
           
 void setOptional()
           
static Recipient valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Recipient[] 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
 

Enum Constant Detail

OURS

public static final Recipient OURS

DELIVERY

public static final Recipient DELIVERY

SAME

public static final Recipient SAME

OTHER_RECIPIENT

public static final Recipient OTHER_RECIPIENT

UNRELATED

public static final Recipient UNRELATED

PUBLIC

public static final Recipient PUBLIC
Field Detail

optional

private boolean optional
Method Detail

values

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

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

valueOf

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