KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Olj > ValueModeType5


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

24 public final class ValueModeType5 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>Set Null</b></em>' literal value.
71      * <!-- begin-user-doc -->
72      * <!-- end-user-doc -->
73      * @see #SET_NULL_LITERAL
74      * @model name="SetNull"
75      * @generated
76      * @ordered
77      */

78     public static final int SET_NULL = 4;
79
80     /**
81      * The '<em><b>Key</b></em>' literal object.
82      * <!-- begin-user-doc -->
83      * <p>
84      * If the meaning of '<em><b>Key</b></em>' literal object isn't clear,
85      * there really should be more of a description here...
86      * </p>
87      * <!-- end-user-doc -->
88      * @see #KEY
89      * @generated
90      * @ordered
91      */

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

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

120     public static final ValueModeType5 UPDATE_LITERAL = new ValueModeType5(UPDATE, "Update");
121
122     /**
123      * The '<em><b>Set If Created</b></em>' literal object.
124      * <!-- begin-user-doc -->
125      * <p>
126      * If the meaning of '<em><b>Set If Created</b></em>' literal object isn't clear,
127      * there really should be more of a description here...
128      * </p>
129      * <!-- end-user-doc -->
130      * @see #SET_IF_CREATED
131      * @generated
132      * @ordered
133      */

134     public static final ValueModeType5 SET_IF_CREATED_LITERAL = new ValueModeType5(SET_IF_CREATED, "SetIfCreated");
135
136     /**
137      * The '<em><b>Set Null</b></em>' literal object.
138      * <!-- begin-user-doc -->
139      * <p>
140      * If the meaning of '<em><b>Set Null</b></em>' literal object isn't clear,
141      * there really should be more of a description here...
142      * </p>
143      * <!-- end-user-doc -->
144      * @see #SET_NULL
145      * @generated
146      * @ordered
147      */

148     public static final ValueModeType5 SET_NULL_LITERAL = new ValueModeType5(SET_NULL, "SetNull");
149
150     /**
151      * An array of all the '<em><b>Value Mode Type5</b></em>' enumerators.
152      * <!-- begin-user-doc -->
153      * <!-- end-user-doc -->
154      * @generated
155      */

156     private static final ValueModeType5[] VALUES_ARRAY =
157         new ValueModeType5[] {
158             KEY_LITERAL,
159             OVERWRITE_LITERAL,
160             UPDATE_LITERAL,
161             SET_IF_CREATED_LITERAL,
162             SET_NULL_LITERAL,
163         };
164
165     /**
166      * A public read-only list of all the '<em><b>Value Mode Type5</b></em>' enumerators.
167      * <!-- begin-user-doc -->
168      * <!-- end-user-doc -->
169      * @generated
170      */

171     public static final List JavaDoc VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
172
173     /**
174      * Returns the '<em><b>Value Mode Type5</b></em>' literal with the specified name.
175      * <!-- begin-user-doc -->
176      * <!-- end-user-doc -->
177      * @generated
178      */

179     public static ValueModeType5 get(String JavaDoc name) {
180         for (int i = 0; i < VALUES_ARRAY.length; ++i) {
181             ValueModeType5 result = VALUES_ARRAY[i];
182             if (result.toString().equals(name)) {
183                 return result;
184             }
185         }
186         return null;
187     }
188
189     /**
190      * Returns the '<em><b>Value Mode Type5</b></em>' literal with the specified value.
191      * <!-- begin-user-doc -->
192      * <!-- end-user-doc -->
193      * @generated
194      */

195     public static ValueModeType5 get(int value) {
196         switch (value) {
197             case KEY: return KEY_LITERAL;
198             case OVERWRITE: return OVERWRITE_LITERAL;
199             case UPDATE: return UPDATE_LITERAL;
200             case SET_IF_CREATED: return SET_IF_CREATED_LITERAL;
201             case SET_NULL: return SET_NULL_LITERAL;
202         }
203         return null;
204     }
205
206     /**
207      * Only this class can construct instances.
208      * <!-- begin-user-doc -->
209      * <!-- end-user-doc -->
210      * @generated
211      */

212     private ValueModeType5(int value, String JavaDoc name) {
213         super(value, name);
214     }
215
216 } //ValueModeType5
217
Popular Tags