11
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
package com.nokia.s60tools.imaker.internal.model.iContent;
|
|
18 |
|
|
19 |
import java.util.Arrays;
|
|
20 |
import java.util.Collections;
|
|
21 |
import java.util.List;
|
|
22 |
|
|
23 |
import org.eclipse.emf.common.util.Enumerator;
|
|
24 |
|
|
25 |
/**
|
|
26 |
* <!-- begin-user-doc -->
|
|
27 |
* A representation of the literals of the enumeration '<em><b>ACTION</b></em>',
|
|
28 |
* and utility methods for working with them.
|
|
29 |
* <!-- end-user-doc -->
|
|
30 |
* @see com.nokia.s60tools.imaker.internal.model.iContent.IContentPackage#getACTION()
|
|
31 |
* @model
|
|
32 |
* @generated
|
|
33 |
*/
|
|
34 |
public enum ACTION implements Enumerator {
|
|
35 |
/**
|
|
36 |
* The '<em><b>UDEB</b></em>' literal object.
|
|
37 |
* <!-- begin-user-doc -->
|
|
38 |
* <!-- end-user-doc -->
|
|
39 |
* @see #UDEB_VALUE
|
|
40 |
* @generated
|
|
41 |
* @ordered
|
|
42 |
*/
|
|
43 |
UDEB(0, "UDEB", "udeb"), /**
|
|
44 |
* The '<em><b>REMOVE</b></em>' literal object.
|
|
45 |
* <!-- begin-user-doc -->
|
|
46 |
* <!-- end-user-doc -->
|
|
47 |
* @see #REMOVE_VALUE
|
|
48 |
* @generated
|
|
49 |
* @ordered
|
|
50 |
*/
|
|
51 |
REMOVE(1, "REMOVE", "remove"), /**
|
|
52 |
* The '<em><b>HIDE</b></em>' literal object.
|
|
53 |
* <!-- begin-user-doc -->
|
|
54 |
* <!-- end-user-doc -->
|
|
55 |
* @see #HIDE_VALUE
|
|
56 |
* @generated
|
|
57 |
* @ordered
|
|
58 |
*/
|
|
59 |
HIDE(2, "HIDE", "hide"),
|
|
60 |
|
|
61 |
/**
|
|
62 |
* The '<em><b>UDEB ADD</b></em>' literal object.
|
|
63 |
* <!-- begin-user-doc -->
|
|
64 |
* <!-- end-user-doc -->
|
|
65 |
* @see #UDEB_ADD_VALUE
|
|
66 |
* @generated
|
|
67 |
* @ordered
|
|
68 |
*/
|
|
69 |
UDEB_ADD(3, "UDEB_ADD", "udeb-add"),
|
|
70 |
|
|
71 |
/**
|
|
72 |
* The '<em><b>UREL</b></em>' literal object.
|
|
73 |
* <!-- begin-user-doc -->
|
|
74 |
* <!-- end-user-doc -->
|
|
75 |
* @see #UREL_VALUE
|
|
76 |
* @generated
|
|
77 |
* @ordered
|
|
78 |
*/
|
|
79 |
UREL(4, "UREL", "urel"),
|
|
80 |
|
|
81 |
/**
|
|
82 |
* The '<em><b>UREL ADD</b></em>' literal object.
|
|
83 |
* <!-- begin-user-doc -->
|
|
84 |
* <!-- end-user-doc -->
|
|
85 |
* @see #UREL_ADD_VALUE
|
|
86 |
* @generated
|
|
87 |
* @ordered
|
|
88 |
*/
|
|
89 |
UREL_ADD(5, "UREL_ADD", "urel-add"),
|
|
90 |
|
|
91 |
/**
|
|
92 |
* The '<em><b>REPLACE</b></em>' literal object.
|
|
93 |
* <!-- begin-user-doc -->
|
|
94 |
* <!-- end-user-doc -->
|
|
95 |
* @see #REPLACE_VALUE
|
|
96 |
* @generated
|
|
97 |
* @ordered
|
|
98 |
*/
|
|
99 |
REPLACE(6, "REPLACE", "replace"),
|
|
100 |
|
|
101 |
/**
|
|
102 |
* The '<em><b>REPLACE ADD</b></em>' literal object.
|
|
103 |
* <!-- begin-user-doc -->
|
|
104 |
* <!-- end-user-doc -->
|
|
105 |
* @see #REPLACE_ADD_VALUE
|
|
106 |
* @generated
|
|
107 |
* @ordered
|
|
108 |
*/
|
|
109 |
REPLACE_ADD(7, "REPLACE_ADD", "replace-add");
|
|
110 |
|
|
111 |
/**
|
|
112 |
* The '<em><b>UDEB</b></em>' literal value.
|
|
113 |
* <!-- begin-user-doc -->
|
|
114 |
* <p>
|
|
115 |
* If the meaning of '<em><b>UDEB</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 #UDEB
|
|
120 |
* @model literal="udeb"
|
|
121 |
* @generated
|
|
122 |
* @ordered
|
|
123 |
*/
|
|
124 |
public static final int UDEB_VALUE = 0;
|
|
125 |
|
|
126 |
/**
|
|
127 |
* The '<em><b>REMOVE</b></em>' literal value.
|
|
128 |
* <!-- begin-user-doc -->
|
|
129 |
* <p>
|
|
130 |
* If the meaning of '<em><b>REMOVE</b></em>' literal object isn't clear,
|
|
131 |
* there really should be more of a description here...
|
|
132 |
* </p>
|
|
133 |
* <!-- end-user-doc -->
|
|
134 |
* @see #REMOVE
|
|
135 |
* @model literal="remove"
|
|
136 |
* @generated
|
|
137 |
* @ordered
|
|
138 |
*/
|
|
139 |
public static final int REMOVE_VALUE = 1;
|
|
140 |
|
|
141 |
/**
|
|
142 |
* The '<em><b>HIDE</b></em>' literal value.
|
|
143 |
* <!-- begin-user-doc -->
|
|
144 |
* <p>
|
|
145 |
* If the meaning of '<em><b>HIDE</b></em>' literal object isn't clear,
|
|
146 |
* there really should be more of a description here...
|
|
147 |
* </p>
|
|
148 |
* <!-- end-user-doc -->
|
|
149 |
* @see #HIDE
|
|
150 |
* @model literal="hide"
|
|
151 |
* @generated
|
|
152 |
* @ordered
|
|
153 |
*/
|
|
154 |
public static final int HIDE_VALUE = 2;
|
|
155 |
|
|
156 |
/**
|
|
157 |
* The '<em><b>UDEB ADD</b></em>' literal value.
|
|
158 |
* <!-- begin-user-doc -->
|
|
159 |
* <p>
|
|
160 |
* If the meaning of '<em><b>UDEB ADD</b></em>' literal object isn't clear,
|
|
161 |
* there really should be more of a description here...
|
|
162 |
* </p>
|
|
163 |
* <!-- end-user-doc -->
|
|
164 |
* @see #UDEB_ADD
|
|
165 |
* @model literal="udeb-add"
|
|
166 |
* @generated
|
|
167 |
* @ordered
|
|
168 |
*/
|
|
169 |
public static final int UDEB_ADD_VALUE = 3;
|
|
170 |
|
|
171 |
/**
|
|
172 |
* The '<em><b>UREL</b></em>' literal value.
|
|
173 |
* <!-- begin-user-doc -->
|
|
174 |
* <p>
|
|
175 |
* If the meaning of '<em><b>UREL</b></em>' literal object isn't clear,
|
|
176 |
* there really should be more of a description here...
|
|
177 |
* </p>
|
|
178 |
* <!-- end-user-doc -->
|
|
179 |
* @see #UREL
|
|
180 |
* @model literal="urel"
|
|
181 |
* @generated
|
|
182 |
* @ordered
|
|
183 |
*/
|
|
184 |
public static final int UREL_VALUE = 4;
|
|
185 |
|
|
186 |
/**
|
|
187 |
* The '<em><b>UREL ADD</b></em>' literal value.
|
|
188 |
* <!-- begin-user-doc -->
|
|
189 |
* <p>
|
|
190 |
* If the meaning of '<em><b>UREL ADD</b></em>' literal object isn't clear,
|
|
191 |
* there really should be more of a description here...
|
|
192 |
* </p>
|
|
193 |
* <!-- end-user-doc -->
|
|
194 |
* @see #UREL_ADD
|
|
195 |
* @model literal="urel-add"
|
|
196 |
* @generated
|
|
197 |
* @ordered
|
|
198 |
*/
|
|
199 |
public static final int UREL_ADD_VALUE = 5;
|
|
200 |
|
|
201 |
/**
|
|
202 |
* The '<em><b>REPLACE</b></em>' literal value.
|
|
203 |
* <!-- begin-user-doc -->
|
|
204 |
* <p>
|
|
205 |
* If the meaning of '<em><b>REPLACE</b></em>' literal object isn't clear,
|
|
206 |
* there really should be more of a description here...
|
|
207 |
* </p>
|
|
208 |
* <!-- end-user-doc -->
|
|
209 |
* @see #REPLACE
|
|
210 |
* @model literal="replace"
|
|
211 |
* @generated
|
|
212 |
* @ordered
|
|
213 |
*/
|
|
214 |
public static final int REPLACE_VALUE = 6;
|
|
215 |
|
|
216 |
/**
|
|
217 |
* The '<em><b>REPLACE ADD</b></em>' literal value.
|
|
218 |
* <!-- begin-user-doc -->
|
|
219 |
* <p>
|
|
220 |
* If the meaning of '<em><b>REPLACE ADD</b></em>' literal object isn't clear,
|
|
221 |
* there really should be more of a description here...
|
|
222 |
* </p>
|
|
223 |
* <!-- end-user-doc -->
|
|
224 |
* @see #REPLACE_ADD
|
|
225 |
* @model literal="replace-add"
|
|
226 |
* @generated
|
|
227 |
* @ordered
|
|
228 |
*/
|
|
229 |
public static final int REPLACE_ADD_VALUE = 7;
|
|
230 |
|
|
231 |
/**
|
|
232 |
* An array of all the '<em><b>ACTION</b></em>' enumerators.
|
|
233 |
* <!-- begin-user-doc -->
|
|
234 |
* <!-- end-user-doc -->
|
|
235 |
* @generated
|
|
236 |
*/
|
|
237 |
private static final ACTION[] VALUES_ARRAY =
|
|
238 |
new ACTION[] {
|
|
239 |
UDEB,
|
|
240 |
REMOVE,
|
|
241 |
HIDE,
|
|
242 |
UDEB_ADD,
|
|
243 |
UREL,
|
|
244 |
UREL_ADD,
|
|
245 |
REPLACE,
|
|
246 |
REPLACE_ADD,
|
|
247 |
};
|
|
248 |
|
|
249 |
/**
|
|
250 |
* A public read-only list of all the '<em><b>ACTION</b></em>' enumerators.
|
|
251 |
* <!-- begin-user-doc -->
|
|
252 |
* <!-- end-user-doc -->
|
|
253 |
* @generated
|
|
254 |
*/
|
|
255 |
public static final List<ACTION> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
|
|
256 |
|
|
257 |
/**
|
|
258 |
* Returns the '<em><b>ACTION</b></em>' literal with the specified literal value.
|
|
259 |
* <!-- begin-user-doc -->
|
|
260 |
* <!-- end-user-doc -->
|
|
261 |
* @generated
|
|
262 |
*/
|
|
263 |
public static ACTION get(String literal) {
|
|
264 |
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
|
|
265 |
ACTION result = VALUES_ARRAY[i];
|
|
266 |
if (result.toString().equals(literal)) {
|
|
267 |
return result;
|
|
268 |
}
|
|
269 |
}
|
|
270 |
return null;
|
|
271 |
}
|
|
272 |
|
|
273 |
/**
|
|
274 |
* Returns the '<em><b>ACTION</b></em>' literal with the specified name.
|
|
275 |
* <!-- begin-user-doc -->
|
|
276 |
* <!-- end-user-doc -->
|
|
277 |
* @generated
|
|
278 |
*/
|
|
279 |
public static ACTION getByName(String name) {
|
|
280 |
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
|
|
281 |
ACTION result = VALUES_ARRAY[i];
|
|
282 |
if (result.getName().equals(name)) {
|
|
283 |
return result;
|
|
284 |
}
|
|
285 |
}
|
|
286 |
return null;
|
|
287 |
}
|
|
288 |
|
|
289 |
/**
|
|
290 |
* Returns the '<em><b>ACTION</b></em>' literal with the specified integer value.
|
|
291 |
* <!-- begin-user-doc -->
|
|
292 |
* <!-- end-user-doc -->
|
|
293 |
* @generated
|
|
294 |
*/
|
|
295 |
public static ACTION get(int value) {
|
|
296 |
switch (value) {
|
|
297 |
case UDEB_VALUE: return UDEB;
|
|
298 |
case REMOVE_VALUE: return REMOVE;
|
|
299 |
case HIDE_VALUE: return HIDE;
|
|
300 |
case UDEB_ADD_VALUE: return UDEB_ADD;
|
|
301 |
case UREL_VALUE: return UREL;
|
|
302 |
case UREL_ADD_VALUE: return UREL_ADD;
|
|
303 |
case REPLACE_VALUE: return REPLACE;
|
|
304 |
case REPLACE_ADD_VALUE: return REPLACE_ADD;
|
|
305 |
}
|
|
306 |
return null;
|
|
307 |
}
|
|
308 |
|
|
309 |
/**
|
|
310 |
* <!-- begin-user-doc -->
|
|
311 |
* <!-- end-user-doc -->
|
|
312 |
* @generated
|
|
313 |
*/
|
|
314 |
private final int value;
|
|
315 |
|
|
316 |
/**
|
|
317 |
* <!-- begin-user-doc -->
|
|
318 |
* <!-- end-user-doc -->
|
|
319 |
* @generated
|
|
320 |
*/
|
|
321 |
private final String name;
|
|
322 |
|
|
323 |
/**
|
|
324 |
* <!-- begin-user-doc -->
|
|
325 |
* <!-- end-user-doc -->
|
|
326 |
* @generated
|
|
327 |
*/
|
|
328 |
private final String literal;
|
|
329 |
|
|
330 |
/**
|
|
331 |
* Only this class can construct instances.
|
|
332 |
* <!-- begin-user-doc -->
|
|
333 |
* <!-- end-user-doc -->
|
|
334 |
* @generated
|
|
335 |
*/
|
|
336 |
private ACTION(int value, String name, String literal) {
|
|
337 |
this.value = value;
|
|
338 |
this.name = name;
|
|
339 |
this.literal = literal;
|
|
340 |
}
|
|
341 |
|
|
342 |
/**
|
|
343 |
* <!-- begin-user-doc -->
|
|
344 |
* <!-- end-user-doc -->
|
|
345 |
* @generated
|
|
346 |
*/
|
|
347 |
public int getValue() {
|
|
348 |
return value;
|
|
349 |
}
|
|
350 |
|
|
351 |
/**
|
|
352 |
* <!-- begin-user-doc -->
|
|
353 |
* <!-- end-user-doc -->
|
|
354 |
* @generated
|
|
355 |
*/
|
|
356 |
public String getName() {
|
|
357 |
return name;
|
|
358 |
}
|
|
359 |
|
|
360 |
/**
|
|
361 |
* <!-- begin-user-doc -->
|
|
362 |
* <!-- end-user-doc -->
|
|
363 |
* @generated
|
|
364 |
*/
|
|
365 |
public String getLiteral() {
|
|
366 |
return literal;
|
|
367 |
}
|
|
368 |
|
|
369 |
/**
|
|
370 |
* Returns the literal value of the enumerator, which is its string representation.
|
|
371 |
* <!-- begin-user-doc -->
|
|
372 |
* <!-- end-user-doc -->
|
|
373 |
* @generated
|
|
374 |
*/
|
|
375 |
@Override
|
|
376 |
public String toString() {
|
|
377 |
return literal;
|
|
378 |
}
|
|
379 |
|
|
380 |
} //ACTION
|