org.eclipse.swordfish.core.resolver.policy
Enum PolicyRole

java.lang.Object
  extended by java.lang.Enum<PolicyRole>
      extended by org.eclipse.swordfish.core.resolver.policy.PolicyRole
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PolicyRole>

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

Enum of possible roles of a Swordfish policy.


Enum Constant Summary
AGREED_POLICY
          Agreed policy traded between a Swordfish service consumer and provider.
CONSUMER_POLICY
          Policy demanded by a Swordfish service consumer.
PROVIDER_POLICY
          Policy demanded by a Swordfish service provider.
UNKNOWN
          Role not (yet) defined.
 
Method Summary
static PolicyRole valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PolicyRole[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CONSUMER_POLICY

public static final PolicyRole CONSUMER_POLICY
Policy demanded by a Swordfish service consumer.


PROVIDER_POLICY

public static final PolicyRole PROVIDER_POLICY
Policy demanded by a Swordfish service provider.


AGREED_POLICY

public static final PolicyRole AGREED_POLICY
Agreed policy traded between a Swordfish service consumer and provider.


UNKNOWN

public static final PolicyRole UNKNOWN
Role not (yet) defined.

Method Detail

values

public static final PolicyRole[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(PolicyRole c : PolicyRole.values())
        System.out.println(c);

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

valueOf

public static PolicyRole 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