org.eclipse.ocl.examples.xtext.essentialocl.essentialoclcs
Enum NavigationRole

java.lang.Object
  extended by java.lang.Enum<NavigationRole>
      extended by org.eclipse.ocl.examples.xtext.essentialocl.essentialoclcs.NavigationRole
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NavigationRole>, org.eclipse.emf.common.util.Enumerator

public enum NavigationRole
extends java.lang.Enum<NavigationRole>
implements org.eclipse.emf.common.util.Enumerator

A representation of the literals of the enumeration 'Navigation Role', and utility methods for working with them.

See Also:
EssentialOCLCSPackage.getNavigationRole()
Generated
Model

Enum Constant Summary
ACCUMULATOR
          The 'ACCUMULATOR' literal object.
EXPRESSION
          The 'EXPRESSION' literal object.
ITERATOR
          The 'ITERATOR' literal object.
 
Field Summary
static int ACCUMULATOR_VALUE
          The 'ACCUMULATOR' literal value.
static int EXPRESSION_VALUE
          The 'EXPRESSION' literal value.
static int ITERATOR_VALUE
          The 'ITERATOR' literal value.
static java.util.List<NavigationRole> VALUES
          A public read-only list of all the 'Navigation Role' enumerators.
 
Method Summary
static NavigationRole get(int value)
          Returns the 'Navigation Role' literal with the specified integer value.
static NavigationRole get(java.lang.String literal)
          Returns the 'Navigation Role' literal with the specified literal value.
static NavigationRole getByName(java.lang.String name)
          Returns the 'Navigation Role' literal with the specified name.
 java.lang.String getLiteral()
           
 java.lang.String getName()
           
 int getValue()
           
 java.lang.String toString()
          Returns the literal value of the enumerator, which is its string representation.
static NavigationRole valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NavigationRole[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ITERATOR

public static final NavigationRole ITERATOR
The 'ITERATOR' literal object.

See Also:
ITERATOR_VALUE
Generated
Ordered

ACCUMULATOR

public static final NavigationRole ACCUMULATOR
The 'ACCUMULATOR' literal object.

See Also:
ACCUMULATOR_VALUE
Generated
Ordered

EXPRESSION

public static final NavigationRole EXPRESSION
The 'EXPRESSION' literal object.

See Also:
EXPRESSION_VALUE
Generated
Ordered
Field Detail

ITERATOR_VALUE

public static final int ITERATOR_VALUE
The 'ITERATOR' literal value.

If the meaning of 'ITERATOR' literal object isn't clear, there really should be more of a description here...

See Also:
ITERATOR, Constant Field Values
Generated
Model
Ordered

ACCUMULATOR_VALUE

public static final int ACCUMULATOR_VALUE
The 'ACCUMULATOR' literal value.

If the meaning of 'ACCUMULATOR' literal object isn't clear, there really should be more of a description here...

See Also:
ACCUMULATOR, Constant Field Values
Generated
Model
Ordered

EXPRESSION_VALUE

public static final int EXPRESSION_VALUE
The 'EXPRESSION' literal value.

If the meaning of 'EXPRESSION' literal object isn't clear, there really should be more of a description here...

See Also:
EXPRESSION, Constant Field Values
Generated
Model
Ordered

VALUES

public static final java.util.List<NavigationRole> VALUES
A public read-only list of all the 'Navigation Role' enumerators.

Generated
Method Detail

values

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

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

valueOf

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

get

public static NavigationRole get(java.lang.String literal)
Returns the 'Navigation Role' literal with the specified literal value.

Generated

getByName

public static NavigationRole getByName(java.lang.String name)
Returns the 'Navigation Role' literal with the specified name.

Generated

get

public static NavigationRole get(int value)
Returns the 'Navigation Role' literal with the specified integer value.

Generated

getValue

public int getValue()

Specified by:
getValue in interface org.eclipse.emf.common.util.Enumerator
Generated

getName

public java.lang.String getName()

Specified by:
getName in interface org.eclipse.emf.common.util.Enumerator
Generated

getLiteral

public java.lang.String getLiteral()

Specified by:
getLiteral in interface org.eclipse.emf.common.util.Enumerator
Generated

toString

public java.lang.String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class java.lang.Enum<NavigationRole>
Generated