KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Olj > ValueModeType3


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 Type3</b></em>',
18  * and utility methods for working with them.
19  * <!-- end-user-doc -->
20  * @see Olj.OljPackage#getValueModeType3()
21  * @model
22  * @generated
23  */

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

34     public static final int KEY = 0;
35
36     /**
37      * The '<em><b>Overwrite</b></em>' literal value.
38      * <!-- begin-user-doc -->
39      * <!-- end-user-doc -->
40      * @see #OVERWRITE_LITERAL
41      * @model name="Overwrite"
42      * @generated
43      * @ordered
44      */

45     public static final int OVERWRITE = 1;
46
47     /**
48      * The '<em><b>Update</b></em>' literal value.
49      * <!-- begin-user-doc -->
50      * <!-- end-user-doc -->
51      * @see #UPDATE_LITERAL
52      * @model name="Update"
53      * @generated
54      * @ordered
55      */

56     public static final int UPDATE = 2;
57
58     /**
59      * The '<em><b>Set If Created</b></em>' literal value.
60      * <!-- begin-user-doc -->
61      * <!-- end-user-doc -->
62      * @see #SET_IF_CREATED_LITERAL
63      * @model name="SetIfCreated"
64      * @generated
65      * @ordered
66      */

67     public static final int SET_IF_CREATED = 3;
68
69     /**
70      * The '<em><b>Key</b></em>' literal object.
71      * <!-- begin-user-doc -->
72      * <p>
73      * If the meaning of '<em><b>Key</b></em>' literal object isn't clear,
74      * there really should be more of a description here...
75      * </p>
76      * <!-- end-user-doc -->
77      * @see #KEY
78      * @generated
79      * @ordered
80      */

81     public static final ValueModeType3 KEY_LITERAL = new ValueModeType3(KEY, "Key");
82
83     /**
84      * The '<em><b>Overwrite</b></em>' literal object.
85      * <!-- begin-user-doc -->
86      * <p>
87      * If the meaning of '<em><b>Overwrite</b></em>' literal object isn't clear,
88      * there really should be more of a description here...
89      * </p>
90      * <!-- end-user-doc -->
91      * @see #OVERWRITE
92      * @generated
93      * @ordered
94      */

95     public static final ValueModeType3 OVERWRITE_LITERAL = new ValueModeType3(OVERWRITE, "Overwrite");
96
97     /**
98      * The '<em><b>Update</b></em>' literal object.
99      * <!-- begin-user-doc -->
100      * <p>
101      * If the meaning of '<em><b>Update</b></em>' literal object isn't clear,
102      * there really should be more of a description here...
103      * </p>
104      * <!-- end-user-doc -->
105      * @see #UPDATE
106      * @generated
107      * @ordered
108      */

109     public static final ValueModeType3 UPDATE_LITERAL = new ValueModeType3(UPDATE, "Update");
110
111     /**
112      * The '<em><b>Set If Created</b></em>' literal object.
113      * <!-- begin-user-doc -->
114      * <p>
115      * If the meaning of '<em><b>Set If Created</b></em>' literal object isn't clear,
116      * there really should be more of a description here...
117      * </p>
118      * <!-- end-user-doc -->
119      * @see #SET_IF_CREATED
120      * @generated
121      * @ordered
122      */

123     public static final ValueModeType3 SET_IF_CREATED_LITERAL = new ValueModeType3(SET_IF_CREATED, "SetIfCreated");
124
125     /**
126      * An array of all the '<em><b>Value Mode Type3</b></em>' enumerators.
127      * <!-- begin-user-doc -->
128      * <!-- end-user-doc -->
129      * @generated
130      */

131     private static final ValueModeType3[] VALUES_ARRAY =
132         new ValueModeType3[] {
133             KEY_LITERAL,
134             OVERWRITE_LITERAL,
135             UPDATE_LITERAL,
136             SET_IF_CREATED_LITERAL,
137         };
138
139     /**
140      * A public read-only list of all the '<em><b>Value Mode Type3</b></em>' enumerators.
141      * <!-- begin-user-doc -->
142      * <!-- end-user-doc -->
143      * @generated
144      */

145     public static final List JavaDoc VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
146
147     /**
148      * Returns the '<em><b>Value Mode Type3</b></em>' literal with the specified name.
149      * <!-- begin-user-doc -->
150      * <!-- end-user-doc -->
151      * @generated
152      */

153     public static ValueModeType3 get(String JavaDoc name) {
154         for (int i = 0; i < VALUES_ARRAY.length; ++i) {
155             ValueModeType3 result = VALUES_ARRAY[i];
156             if (result.toString().equals(name)) {
157                 return result;
158             }
159         }
160         return null;
161     }
162
163     /**
164      * Returns the '<em><b>Value Mode Type3</b></em>' literal with the specified value.
165      * <!-- begin-user-doc -->
166      * <!-- end-user-doc -->
167      * @generated
168      */

169     public static ValueModeType3 get(int value) {
170         switch (value) {
171             case KEY: return KEY_LITERAL;
172             case OVERWRITE: return OVERWRITE_LITERAL;
173             case UPDATE: return UPDATE_LITERAL;
174             case SET_IF_CREATED: return SET_IF_CREATED_LITERAL;
175         }
176         return null;
177     }
178
179     /**
180      * Only this class can construct instances.
181      * <!-- begin-user-doc -->
182      * <!-- end-user-doc -->
183      * @generated
184      */

185     private ValueModeType3(int value, String JavaDoc name) {
186         super(value, name);
187     }
188
189 } //ValueModeType3
190
Popular Tags