0
|
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>IMAGESECTION</b></em>',
|
|
28 |
* and utility methods for working with them.
|
|
29 |
* <!-- end-user-doc -->
|
|
30 |
* @see com.nokia.s60tools.imaker.internal.model.iContent.IContentPackage#getIMAGESECTION()
|
|
31 |
* @model
|
|
32 |
* @generated
|
|
33 |
*/
|
|
34 |
public enum IMAGESECTION implements Enumerator {
|
|
35 |
/**
|
|
36 |
* The '<em><b>CORE</b></em>' literal object.
|
|
37 |
* <!-- begin-user-doc -->
|
|
38 |
* <!-- end-user-doc -->
|
|
39 |
* @see #CORE_VALUE
|
|
40 |
* @generated
|
|
41 |
* @ordered
|
|
42 |
*/
|
|
43 |
CORE(0, "CORE", "CORE"),
|
|
44 |
|
|
45 |
/**
|
|
46 |
* The '<em><b>ROFS2</b></em>' literal object.
|
|
47 |
* <!-- begin-user-doc -->
|
|
48 |
* <!-- end-user-doc -->
|
|
49 |
* @see #ROFS2_VALUE
|
|
50 |
* @generated
|
|
51 |
* @ordered
|
|
52 |
*/
|
|
53 |
ROFS2(1, "ROFS2", "ROFS2"),
|
|
54 |
|
|
55 |
/**
|
|
56 |
* The '<em><b>ROFS3</b></em>' literal object.
|
|
57 |
* <!-- begin-user-doc -->
|
|
58 |
* <!-- end-user-doc -->
|
|
59 |
* @see #ROFS3_VALUE
|
|
60 |
* @generated
|
|
61 |
* @ordered
|
|
62 |
*/
|
1
|
63 |
ROFS3(2, "ROFS3", "ROFS3");
|
0
|
64 |
|
|
65 |
/**
|
|
66 |
* The '<em><b>CORE</b></em>' literal value.
|
|
67 |
* <!-- begin-user-doc -->
|
|
68 |
* <p>
|
|
69 |
* If the meaning of '<em><b>CORE</b></em>' literal object isn't clear,
|
|
70 |
* there really should be more of a description here...
|
|
71 |
* </p>
|
|
72 |
* <!-- end-user-doc -->
|
|
73 |
* @see #CORE
|
|
74 |
* @model
|
|
75 |
* @generated
|
|
76 |
* @ordered
|
|
77 |
*/
|
|
78 |
public static final int CORE_VALUE = 0;
|
|
79 |
|
|
80 |
/**
|
|
81 |
* The '<em><b>ROFS2</b></em>' literal value.
|
|
82 |
* <!-- begin-user-doc -->
|
|
83 |
* <p>
|
|
84 |
* If the meaning of '<em><b>ROFS2</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 #ROFS2
|
|
89 |
* @model
|
|
90 |
* @generated
|
|
91 |
* @ordered
|
|
92 |
*/
|
|
93 |
public static final int ROFS2_VALUE = 1;
|
|
94 |
|
|
95 |
/**
|
|
96 |
* The '<em><b>ROFS3</b></em>' literal value.
|
|
97 |
* <!-- begin-user-doc -->
|
|
98 |
* <p>
|
|
99 |
* If the meaning of '<em><b>ROFS3</b></em>' literal object isn't clear,
|
|
100 |
* there really should be more of a description here...
|
|
101 |
* </p>
|
|
102 |
* <!-- end-user-doc -->
|
|
103 |
* @see #ROFS3
|
|
104 |
* @model
|
|
105 |
* @generated
|
|
106 |
* @ordered
|
|
107 |
*/
|
|
108 |
public static final int ROFS3_VALUE = 2;
|
|
109 |
|
|
110 |
/**
|
|
111 |
* An array of all the '<em><b>IMAGESECTION</b></em>' enumerators.
|
|
112 |
* <!-- begin-user-doc -->
|
|
113 |
* <!-- end-user-doc -->
|
|
114 |
* @generated
|
|
115 |
*/
|
|
116 |
private static final IMAGESECTION[] VALUES_ARRAY =
|
|
117 |
new IMAGESECTION[] {
|
|
118 |
CORE,
|
|
119 |
ROFS2,
|
|
120 |
ROFS3,
|
|
121 |
};
|
|
122 |
|
|
123 |
/**
|
|
124 |
* A public read-only list of all the '<em><b>IMAGESECTION</b></em>' enumerators.
|
|
125 |
* <!-- begin-user-doc -->
|
|
126 |
* <!-- end-user-doc -->
|
|
127 |
* @generated
|
|
128 |
*/
|
|
129 |
public static final List<IMAGESECTION> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
|
|
130 |
|
|
131 |
/**
|
|
132 |
* Returns the '<em><b>IMAGESECTION</b></em>' literal with the specified literal value.
|
|
133 |
* <!-- begin-user-doc -->
|
|
134 |
* <!-- end-user-doc -->
|
1
|
135 |
* @generated NOT
|
0
|
136 |
*/
|
|
137 |
public static IMAGESECTION get(String literal) {
|
|
138 |
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
|
|
139 |
IMAGESECTION result = VALUES_ARRAY[i];
|
1
|
140 |
if (result.toString().equalsIgnoreCase(literal)) {
|
0
|
141 |
return result;
|
|
142 |
}
|
|
143 |
}
|
|
144 |
return null;
|
|
145 |
}
|
|
146 |
|
|
147 |
/**
|
|
148 |
* Returns the '<em><b>IMAGESECTION</b></em>' literal with the specified name.
|
|
149 |
* <!-- begin-user-doc -->
|
|
150 |
* <!-- end-user-doc -->
|
|
151 |
* @generated
|
|
152 |
*/
|
|
153 |
public static IMAGESECTION getByName(String name) {
|
|
154 |
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
|
|
155 |
IMAGESECTION result = VALUES_ARRAY[i];
|
|
156 |
if (result.getName().equals(name)) {
|
|
157 |
return result;
|
|
158 |
}
|
|
159 |
}
|
|
160 |
return null;
|
|
161 |
}
|
|
162 |
|
|
163 |
/**
|
|
164 |
* Returns the '<em><b>IMAGESECTION</b></em>' literal with the specified integer value.
|
|
165 |
* <!-- begin-user-doc -->
|
|
166 |
* <!-- end-user-doc -->
|
|
167 |
* @generated
|
|
168 |
*/
|
|
169 |
public static IMAGESECTION get(int value) {
|
|
170 |
switch (value) {
|
|
171 |
case CORE_VALUE: return CORE;
|
|
172 |
case ROFS2_VALUE: return ROFS2;
|
|
173 |
case ROFS3_VALUE: return ROFS3;
|
|
174 |
}
|
|
175 |
return null;
|
|
176 |
}
|
|
177 |
|
|
178 |
/**
|
|
179 |
* <!-- begin-user-doc -->
|
|
180 |
* <!-- end-user-doc -->
|
|
181 |
* @generated
|
|
182 |
*/
|
|
183 |
private final int value;
|
|
184 |
|
|
185 |
/**
|
|
186 |
* <!-- begin-user-doc -->
|
|
187 |
* <!-- end-user-doc -->
|
|
188 |
* @generated
|
|
189 |
*/
|
|
190 |
private final String name;
|
|
191 |
|
|
192 |
/**
|
|
193 |
* <!-- begin-user-doc -->
|
|
194 |
* <!-- end-user-doc -->
|
|
195 |
* @generated
|
|
196 |
*/
|
|
197 |
private final String literal;
|
|
198 |
|
|
199 |
/**
|
|
200 |
* Only this class can construct instances.
|
|
201 |
* <!-- begin-user-doc -->
|
|
202 |
* <!-- end-user-doc -->
|
|
203 |
* @generated
|
|
204 |
*/
|
|
205 |
private IMAGESECTION(int value, String name, String literal) {
|
|
206 |
this.value = value;
|
|
207 |
this.name = name;
|
|
208 |
this.literal = literal;
|
|
209 |
}
|
|
210 |
|
|
211 |
/**
|
|
212 |
* <!-- begin-user-doc -->
|
|
213 |
* <!-- end-user-doc -->
|
|
214 |
* @generated
|
|
215 |
*/
|
|
216 |
public int getValue() {
|
|
217 |
return value;
|
|
218 |
}
|
|
219 |
|
|
220 |
/**
|
|
221 |
* <!-- begin-user-doc -->
|
|
222 |
* <!-- end-user-doc -->
|
|
223 |
* @generated
|
|
224 |
*/
|
|
225 |
public String getName() {
|
|
226 |
return name;
|
|
227 |
}
|
|
228 |
|
|
229 |
/**
|
|
230 |
* <!-- begin-user-doc -->
|
|
231 |
* <!-- end-user-doc -->
|
|
232 |
* @generated
|
|
233 |
*/
|
|
234 |
public String getLiteral() {
|
|
235 |
return literal;
|
|
236 |
}
|
|
237 |
|
|
238 |
/**
|
|
239 |
* Returns the literal value of the enumerator, which is its string representation.
|
|
240 |
* <!-- begin-user-doc -->
|
|
241 |
* <!-- end-user-doc -->
|
|
242 |
* @generated
|
|
243 |
*/
|
|
244 |
@Override
|
|
245 |
public String toString() {
|
|
246 |
return literal;
|
|
247 |
}
|
|
248 |
|
|
249 |
} //IMAGESECTION
|