org.systinet.wasp.policy
Class PolicyUsage

java.lang.Object
  extended byorg.systinet.wasp.policy.PolicyUsage

public final class PolicyUsage
extends java.lang.Object

The policy usage identifies how the policy assertion is processed.

Since:
5.0
Component:
Core

Field Summary
static QName _IGNORED
           
static QName _OBSERVED
           
static QName _OPTIONAL
           
static QName _REJECTED
           
static QName _REQUIRED
           
static PolicyUsage IGNORED
          The assertion is processed, but ignored.
static PolicyUsage OBSERVED
          The assertion will be applied to all subjects and requesters of the service are informed that the policy will be applied.
static PolicyUsage OPTIONAL
          The assertion may be made of the subject but it is not required to be applied.
static PolicyUsage REJECTED
          The assertion is explicitly not supported and if present will cause failure.
static PolicyUsage REQUIRED
          The assertion must be applied to the subject.
 
Constructor Summary
protected PolicyUsage(QName value)
           
 
Method Summary
static PolicyUsage fromValue(QName value)
          Gets policy usage for given QName value.
 QName getValue()
          Gets QName value of this policy usage.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_REQUIRED

public static final QName _REQUIRED

_OPTIONAL

public static final QName _OPTIONAL

_REJECTED

public static final QName _REJECTED

_OBSERVED

public static final QName _OBSERVED

_IGNORED

public static final QName _IGNORED

REQUIRED

public static final PolicyUsage REQUIRED
The assertion must be applied to the subject. If the subject does not meet the criteria expressed in the assertion a fault or error will occur.


OPTIONAL

public static final PolicyUsage OPTIONAL
The assertion may be made of the subject but it is not required to be applied.


REJECTED

public static final PolicyUsage REJECTED
The assertion is explicitly not supported and if present will cause failure.


OBSERVED

public static final PolicyUsage OBSERVED
The assertion will be applied to all subjects and requesters of the service are informed that the policy will be applied.


IGNORED

public static final PolicyUsage IGNORED
The assertion is processed, but ignored. That is, it can be specified, but no action will be taken as a result of it being specified. Subjects and requesters are informed that the policy will be ignored.

Constructor Detail

PolicyUsage

protected PolicyUsage(QName value)
Method Detail

getValue

public QName getValue()
Gets QName value of this policy usage.

Returns:
the value

fromValue

public static PolicyUsage fromValue(QName value)
Gets policy usage for given QName value.

Parameters:
value - a QName value
Returns:
policy usage

hashCode

public int hashCode()

toString

public java.lang.String toString()