org.eclipse.ocl.cst
Enum PrePostOrBodyEnum

java.lang.Object
  extended by java.lang.Enum<PrePostOrBodyEnum>
      extended by org.eclipse.ocl.cst.PrePostOrBodyEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PrePostOrBodyEnum>, org.eclipse.emf.common.util.Enumerator

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

A representation of the literals of the enumeration 'Pre Post Or Body Enum', and utility methods for working with them.

See Also:
CSTPackage.getPrePostOrBodyEnum()
Generated
Model

Enum Constant Summary
BODY_LITERAL
          The 'Body' literal object.
POST_LITERAL
          The 'Post' literal object.
PRE_LITERAL
          The 'Pre' literal object.
 
Field Summary
static int BODY
          The 'Body' literal value.
static int POST
          The 'Post' literal value.
static int PRE
          The 'Pre' literal value.
static java.util.List<PrePostOrBodyEnum> VALUES
          A public read-only list of all the 'Pre Post Or Body Enum' enumerators.
 
Method Summary
static PrePostOrBodyEnum get(int value)
          Returns the 'Pre Post Or Body Enum' literal with the specified integer value.
static PrePostOrBodyEnum get(java.lang.String literal)
          Returns the 'Pre Post Or Body Enum' literal with the specified literal value.
static PrePostOrBodyEnum getByName(java.lang.String name)
          Returns the 'Pre Post Or Body Enum' 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 PrePostOrBodyEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PrePostOrBodyEnum[] 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

PRE_LITERAL

public static final PrePostOrBodyEnum PRE_LITERAL
The 'Pre' literal object.

See Also:
PRE
Generated
Ordered

POST_LITERAL

public static final PrePostOrBodyEnum POST_LITERAL
The 'Post' literal object.

See Also:
POST
Generated
Ordered

BODY_LITERAL

public static final PrePostOrBodyEnum BODY_LITERAL
The 'Body' literal object.

See Also:
BODY
Generated
Ordered
Field Detail

PRE

public static final int PRE
The 'Pre' literal value.

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

See Also:
PRE_LITERAL, Constant Field Values
Generated
Model
name="pre"
Ordered

POST

public static final int POST
The 'Post' literal value.

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

See Also:
POST_LITERAL, Constant Field Values
Generated
Model
name="post"
Ordered

BODY

public static final int BODY
The 'Body' literal value.

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

See Also:
BODY_LITERAL, Constant Field Values
Generated
Model
name="body"
Ordered

VALUES

public static final java.util.List<PrePostOrBodyEnum> VALUES
A public read-only list of all the 'Pre Post Or Body Enum' enumerators.

Generated
Method Detail

values

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

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

valueOf

public static PrePostOrBodyEnum 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 PrePostOrBodyEnum get(java.lang.String literal)
Returns the 'Pre Post Or Body Enum' literal with the specified literal value.

Generated

getByName

public static PrePostOrBodyEnum getByName(java.lang.String name)
Returns the 'Pre Post Or Body Enum' literal with the specified name.

Generated

get

public static PrePostOrBodyEnum get(int value)
Returns the 'Pre Post Or Body Enum' 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<PrePostOrBodyEnum>
Generated