OCL

org.topcased.checkresultmodel
Enum State

java.lang.Object
  extended by java.lang.Enum<State>
      extended by org.topcased.checkresultmodel.State
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<State>, Enumerator

public enum State
extends java.lang.Enum<State>
implements Enumerator

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

See Also:
CheckresultmodelPackage.getState()
** Generated **
Model:

Enum Constant Summary
REJECTED
          The 'Rejected' literal object
SELECTED
          The 'Selected' literal object
UNKNOW
          The 'Unknow' literal object
 
Field Summary
static int REJECTED_VALUE
          The 'Rejected' literal value
static int SELECTED_VALUE
          The 'Selected' literal value
static int UNKNOW_VALUE
          The 'Unknow' literal value
static java.util.List<State> VALUES
          A public read-only list of all the 'State' enumerators
 
Method Summary
static State get(int value)
          Returns the 'State' literal with the specified integer value
static State get(java.lang.String literal)
          Returns the 'State' literal with the specified literal value
static State getByName(java.lang.String name)
          Returns the 'State' 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 State valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static State[] 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

UNKNOW

public static final State UNKNOW
The 'Unknow' literal object.

See Also:
UNKNOW_VALUE
** Generated **
Ordered:

SELECTED

public static final State SELECTED
The 'Selected' literal object.

See Also:
SELECTED_VALUE
** Generated **
Ordered:

REJECTED

public static final State REJECTED
The 'Rejected' literal object.

See Also:
REJECTED_VALUE
** Generated **
Ordered:
Field Detail

UNKNOW_VALUE

public static final int UNKNOW_VALUE
The 'Unknow' literal value.

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

See Also:
UNKNOW, Constant Field Values
** Generated **
Ordered:
Model:
name="unknow" literal=""

SELECTED_VALUE

public static final int SELECTED_VALUE
The 'Selected' literal value.

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

See Also:
SELECTED, Constant Field Values
** Generated **
Ordered:
Model:
name="selected"

REJECTED_VALUE

public static final int REJECTED_VALUE
The 'Rejected' literal value.

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

See Also:
REJECTED, Constant Field Values
** Generated **
Ordered:
Model:
name="rejected"

VALUES

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

** Generated **
Method Detail

values

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

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

valueOf

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

get

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

** Generated **

getByName

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

** Generated **

get

public static State get(int value)
Returns the 'State' literal with the specified integer value.

** Generated **

getValue

public int getValue()

Specified by:
getValue in interface Enumerator
** Generated **

getName

public java.lang.String getName()

Specified by:
getName in interface Enumerator
** Generated **

getLiteral

public java.lang.String getLiteral()

Specified by:
getLiteral in interface 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<State>
** Generated **

OCL

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.