KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Olj > ValueModeType2


1 /**
2  * <copyright>
3  * </copyright>
4  *
5  * $Id$
6  */

7 package Olj;
8
9 import java.util.Arrays JavaDoc;
10 import java.util.Collections JavaDoc;
11 import java.util.List JavaDoc;
12
13 import org.eclipse.emf.common.util.AbstractEnumerator;
14
15 /**
16  * <!-- begin-user-doc -->
17  * A representation of the literals of the enumeration '<em><b>Value Mode Type2</b></em>',
18  * and utility methods for working with them.
19  * <!-- end-user-doc -->
20  * @see Olj.OljPackage#getValueModeType2()
21  * @model
22  * @generated
23  */

24 public final class ValueModeType2 extends AbstractEnumerator {
25     /**
26      * The '<em><b>Set If Created</b></em>' literal value.
27      * <!-- begin-user-doc -->
28      * <!-- end-user-doc -->
29      * @see #SET_IF_CREATED_LITERAL
30      * @model name="SetIfCreated"
31      * @generated
32      * @ordered
33      */

34     public static final int SET_IF_CREATED = 0;
35
36     /**
37      * The '<em><b>Set If Created</b></em>' literal object.
38      * <!-- begin-user-doc -->
39      * <p>
40      * If the meaning of '<em><b>Set If Created</b></em>' literal object isn't clear,
41      * there really should be more of a description here...
42      * </p>
43      * <!-- end-user-doc -->
44      * @see #SET_IF_CREATED
45      * @generated
46      * @ordered
47      */

48     public static final ValueModeType2 SET_IF_CREATED_LITERAL = new ValueModeType2(SET_IF_CREATED, "SetIfCreated");
49
50     /**
51      * An array of all the '<em><b>Value Mode Type2</b></em>' enumerators.
52      * <!-- begin-user-doc -->
53      * <!-- end-user-doc -->
54      * @generated
55      */

56     private static final ValueModeType2[] VALUES_ARRAY =
57         new ValueModeType2[] {
58             SET_IF_CREATED_LITERAL,
59         };
60
61     /**
62      * A public read-only list of all the '<em><b>Value Mode Type2</b></em>' enumerators.
63      * <!-- begin-user-doc -->
64      * <!-- end-user-doc -->
65      * @generated
66      */

67     public static final List JavaDoc VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
68
69     /**
70      * Returns the '<em><b>Value Mode Type2</b></em>' literal with the specified name.
71      * <!-- begin-user-doc -->
72      * <!-- end-user-doc -->
73      * @generated
74      */

75     public static ValueModeType2 get(String JavaDoc name) {
76         for (int i = 0; i < VALUES_ARRAY.length; ++i) {
77             ValueModeType2 result = VALUES_ARRAY[i];
78             if (result.toString().equals(name)) {
79                 return result;
80             }
81         }
82         return null;
83     }
84
85     /**
86      * Returns the '<em><b>Value Mode Type2</b></em>' literal with the specified value.
87      * <!-- begin-user-doc -->
88      * <!-- end-user-doc -->
89      * @generated
90      */

91     public static ValueModeType2 get(int value) {
92         switch (value) {
93             case SET_IF_CREATED: return SET_IF_CREATED_LITERAL;
94         }
95         return null;
96     }
97
98     /**
99      * Only this class can construct instances.
100      * <!-- begin-user-doc -->
101      * <!-- end-user-doc -->
102      * @generated
103      */

104     private ValueModeType2(int value, String JavaDoc name) {
105         super(value, name);
106     }
107
108 } //ValueModeType2
109
Popular Tags