diff options
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/Country.java')
-rw-r--r-- | Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/Country.java | 301 |
1 files changed, 301 insertions, 0 deletions
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/Country.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/Country.java new file mode 100644 index 00000000..4646e846 --- /dev/null +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/Country.java | |||
@@ -0,0 +1,301 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package TaxationWithRoot; | ||
4 | |||
5 | import java.util.Arrays; | ||
6 | import java.util.Collections; | ||
7 | import java.util.List; | ||
8 | |||
9 | import org.eclipse.emf.common.util.Enumerator; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * A representation of the literals of the enumeration '<em><b>Country</b></em>', | ||
14 | * and utility methods for working with them. | ||
15 | * <!-- end-user-doc --> | ||
16 | * @see TaxationWithRoot.TaxationPackage#getCountry() | ||
17 | * @model | ||
18 | * @generated | ||
19 | */ | ||
20 | public enum Country implements Enumerator { | ||
21 | /** | ||
22 | * The '<em><b>ZZ</b></em>' literal object. | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @see #ZZ_VALUE | ||
26 | * @generated | ||
27 | * @ordered | ||
28 | */ | ||
29 | ZZ(0, "ZZ", "ZZ"), | ||
30 | |||
31 | /** | ||
32 | * The '<em><b>FF</b></em>' literal object. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #FF_VALUE | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | FF(1, "FF", "FF"), | ||
40 | |||
41 | /** | ||
42 | * The '<em><b>BB</b></em>' literal object. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #BB_VALUE | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | BB(2, "BB", "BB"), | ||
50 | |||
51 | /** | ||
52 | * The '<em><b>DD</b></em>' literal object. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #DD_VALUE | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | DD(3, "DD", "DD"), | ||
60 | |||
61 | /** | ||
62 | * The '<em><b>NN</b></em>' literal object. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @see #NN_VALUE | ||
66 | * @generated | ||
67 | * @ordered | ||
68 | */ | ||
69 | NN(4, "NN", "NN"), | ||
70 | |||
71 | /** | ||
72 | * The '<em><b>OTHER</b></em>' literal object. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @see #OTHER_VALUE | ||
76 | * @generated | ||
77 | * @ordered | ||
78 | */ | ||
79 | OTHER(5, "OTHER", "OTHER"); | ||
80 | |||
81 | /** | ||
82 | * The '<em><b>ZZ</b></em>' literal value. | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @see #ZZ | ||
86 | * @model | ||
87 | * @generated | ||
88 | * @ordered | ||
89 | */ | ||
90 | public static final int ZZ_VALUE = 0; | ||
91 | |||
92 | /** | ||
93 | * The '<em><b>FF</b></em>' literal value. | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @see #FF | ||
97 | * @model | ||
98 | * @generated | ||
99 | * @ordered | ||
100 | */ | ||
101 | public static final int FF_VALUE = 1; | ||
102 | |||
103 | /** | ||
104 | * The '<em><b>BB</b></em>' literal value. | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @see #BB | ||
108 | * @model | ||
109 | * @generated | ||
110 | * @ordered | ||
111 | */ | ||
112 | public static final int BB_VALUE = 2; | ||
113 | |||
114 | /** | ||
115 | * The '<em><b>DD</b></em>' literal value. | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @see #DD | ||
119 | * @model | ||
120 | * @generated | ||
121 | * @ordered | ||
122 | */ | ||
123 | public static final int DD_VALUE = 3; | ||
124 | |||
125 | /** | ||
126 | * The '<em><b>NN</b></em>' literal value. | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @see #NN | ||
130 | * @model | ||
131 | * @generated | ||
132 | * @ordered | ||
133 | */ | ||
134 | public static final int NN_VALUE = 4; | ||
135 | |||
136 | /** | ||
137 | * The '<em><b>OTHER</b></em>' literal value. | ||
138 | * <!-- begin-user-doc --> | ||
139 | * <!-- end-user-doc --> | ||
140 | * @see #OTHER | ||
141 | * @model | ||
142 | * @generated | ||
143 | * @ordered | ||
144 | */ | ||
145 | public static final int OTHER_VALUE = 5; | ||
146 | |||
147 | /** | ||
148 | * An array of all the '<em><b>Country</b></em>' enumerators. | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | private static final Country[] VALUES_ARRAY = | ||
154 | new Country[] { | ||
155 | ZZ, | ||
156 | FF, | ||
157 | BB, | ||
158 | DD, | ||
159 | NN, | ||
160 | OTHER, | ||
161 | }; | ||
162 | |||
163 | /** | ||
164 | * A public read-only list of all the '<em><b>Country</b></em>' enumerators. | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @generated | ||
168 | */ | ||
169 | public static final List<Country> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); | ||
170 | |||
171 | /** | ||
172 | * Returns the '<em><b>Country</b></em>' literal with the specified literal value. | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @param literal the literal. | ||
176 | * @return the matching enumerator or <code>null</code>. | ||
177 | * @generated | ||
178 | */ | ||
179 | public static Country get(String literal) { | ||
180 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
181 | Country result = VALUES_ARRAY[i]; | ||
182 | if (result.toString().equals(literal)) { | ||
183 | return result; | ||
184 | } | ||
185 | } | ||
186 | return null; | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * Returns the '<em><b>Country</b></em>' literal with the specified name. | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @param name the name. | ||
194 | * @return the matching enumerator or <code>null</code>. | ||
195 | * @generated | ||
196 | */ | ||
197 | public static Country getByName(String name) { | ||
198 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
199 | Country result = VALUES_ARRAY[i]; | ||
200 | if (result.getName().equals(name)) { | ||
201 | return result; | ||
202 | } | ||
203 | } | ||
204 | return null; | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * Returns the '<em><b>Country</b></em>' literal with the specified integer value. | ||
209 | * <!-- begin-user-doc --> | ||
210 | * <!-- end-user-doc --> | ||
211 | * @param value the integer value. | ||
212 | * @return the matching enumerator or <code>null</code>. | ||
213 | * @generated | ||
214 | */ | ||
215 | public static Country get(int value) { | ||
216 | switch (value) { | ||
217 | case ZZ_VALUE: return ZZ; | ||
218 | case FF_VALUE: return FF; | ||
219 | case BB_VALUE: return BB; | ||
220 | case DD_VALUE: return DD; | ||
221 | case NN_VALUE: return NN; | ||
222 | case OTHER_VALUE: return OTHER; | ||
223 | } | ||
224 | return null; | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | private final int value; | ||
233 | |||
234 | /** | ||
235 | * <!-- begin-user-doc --> | ||
236 | * <!-- end-user-doc --> | ||
237 | * @generated | ||
238 | */ | ||
239 | private final String name; | ||
240 | |||
241 | /** | ||
242 | * <!-- begin-user-doc --> | ||
243 | * <!-- end-user-doc --> | ||
244 | * @generated | ||
245 | */ | ||
246 | private final String literal; | ||
247 | |||
248 | /** | ||
249 | * Only this class can construct instances. | ||
250 | * <!-- begin-user-doc --> | ||
251 | * <!-- end-user-doc --> | ||
252 | * @generated | ||
253 | */ | ||
254 | private Country(int value, String name, String literal) { | ||
255 | this.value = value; | ||
256 | this.name = name; | ||
257 | this.literal = literal; | ||
258 | } | ||
259 | |||
260 | /** | ||
261 | * <!-- begin-user-doc --> | ||
262 | * <!-- end-user-doc --> | ||
263 | * @generated | ||
264 | */ | ||
265 | @Override | ||
266 | public int getValue() { | ||
267 | return value; | ||
268 | } | ||
269 | |||
270 | /** | ||
271 | * <!-- begin-user-doc --> | ||
272 | * <!-- end-user-doc --> | ||
273 | * @generated | ||
274 | */ | ||
275 | @Override | ||
276 | public String getName() { | ||
277 | return name; | ||
278 | } | ||
279 | |||
280 | /** | ||
281 | * <!-- begin-user-doc --> | ||
282 | * <!-- end-user-doc --> | ||
283 | * @generated | ||
284 | */ | ||
285 | @Override | ||
286 | public String getLiteral() { | ||
287 | return literal; | ||
288 | } | ||
289 | |||
290 | /** | ||
291 | * Returns the literal value of the enumerator, which is its string representation. | ||
292 | * <!-- begin-user-doc --> | ||
293 | * <!-- end-user-doc --> | ||
294 | * @generated | ||
295 | */ | ||
296 | @Override | ||
297 | public String toString() { | ||
298 | return literal; | ||
299 | } | ||
300 | |||
301 | } //Country | ||