org.netbeans.modules.bpel.model.api.support
Enum Roles

java.lang.Object
  extended by java.lang.Enum<Roles>
      extended by org.netbeans.modules.bpel.model.api.support.Roles
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Roles>, EnumValue

public enum Roles
extends java.lang.Enum<Roles>
implements EnumValue

Java class for tRoles.

The following schema fragment specifies the expected content contained within this class.

    <simpleType name="tRoles">
      <restriction base="{http://www.w3.org/2001/XMLSchema}string">
        <enumeration value="myRole"/>
        <enumeration value="partnerRole"/>
      </restriction>
    </simpleType>
 


Enum Constant Summary
INVALID
           
MY_ROLE
           
PARTNER_ROLE
           
 
Method Summary
static Roles forString(java.lang.String str)
          Returns enumeration via its string representation.
 boolean isInvalid()
          
 java.lang.String toString()
          
static Roles valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Roles[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MY_ROLE

public static final Roles MY_ROLE

PARTNER_ROLE

public static final Roles PARTNER_ROLE

INVALID

public static final Roles INVALID
Method Detail

values

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

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

valueOf

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

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Enum<Roles>

isInvalid

public boolean isInvalid()

Specified by:
isInvalid in interface EnumValue
Returns:
Is valid or not this enumeration object.

forString

public static Roles forString(java.lang.String str)
Returns enumeration via its string representation.

Parameters:
str - string that represent enumeration.
Returns:
enumeration.