diff options
author | ArenBabikian <aren.babikian@mail.mcgill.ca> | 2020-04-26 18:23:13 -0400 |
---|---|---|
committer | ArenBabikian <aren.babikian@mail.mcgill.ca> | 2020-04-26 18:23:13 -0400 |
commit | c0a758eedd457a5d8eb9f1a6c17fc24143aabb3e (patch) | |
tree | 0c2e212e4e95c1d2311629128641d5cd561210f3 /Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/Disability_Types.java | |
parent | Merge branch 'Attribute-Solver' (diff) | |
download | VIATRA-Generator-c0a758eedd457a5d8eb9f1a6c17fc24143aabb3e.tar.gz VIATRA-Generator-c0a758eedd457a5d8eb9f1a6c17fc24143aabb3e.tar.zst VIATRA-Generator-c0a758eedd457a5d8eb9f1a6c17fc24143aabb3e.zip |
Add PLEDGE case study files
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/Disability_Types.java')
-rw-r--r-- | Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/Disability_Types.java | 347 |
1 files changed, 347 insertions, 0 deletions
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/Disability_Types.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/Disability_Types.java new file mode 100644 index 00000000..fc7fd273 --- /dev/null +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/Disability_Types.java | |||
@@ -0,0 +1,347 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package Taxation; | ||
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>Disability Types</b></em>', | ||
14 | * and utility methods for working with them. | ||
15 | * <!-- end-user-doc --> | ||
16 | * @see Taxation.TaxationPackage#getDisability_Types() | ||
17 | * @model | ||
18 | * @generated | ||
19 | */ | ||
20 | public enum Disability_Types implements Enumerator { | ||
21 | /** | ||
22 | * The '<em><b>Beug</b></em>' literal object. | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @see #BEUG_VALUE | ||
26 | * @generated | ||
27 | * @ordered | ||
28 | */ | ||
29 | BEUG(0, "beug", "beug"), | ||
30 | |||
31 | /** | ||
32 | * The '<em><b>NONE</b></em>' literal object. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #NONE_VALUE | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | NONE(1, "NONE", "NONE"), | ||
40 | |||
41 | /** | ||
42 | * The '<em><b>A</b></em>' literal object. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #A_VALUE | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | A(2, "A", "A"), | ||
50 | |||
51 | /** | ||
52 | * The '<em><b>B</b></em>' literal object. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #B_VALUE | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | B(3, "B", "B"), | ||
60 | |||
61 | /** | ||
62 | * The '<em><b>C</b></em>' literal object. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @see #C_VALUE | ||
66 | * @generated | ||
67 | * @ordered | ||
68 | */ | ||
69 | C(4, "C", "C"), | ||
70 | |||
71 | /** | ||
72 | * The '<em><b>D</b></em>' literal object. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @see #D_VALUE | ||
76 | * @generated | ||
77 | * @ordered | ||
78 | */ | ||
79 | D(5, "D", "D"), | ||
80 | |||
81 | /** | ||
82 | * The '<em><b>E</b></em>' literal object. | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @see #E_VALUE | ||
86 | * @generated | ||
87 | * @ordered | ||
88 | */ | ||
89 | E(6, "E", "E"), | ||
90 | |||
91 | /** | ||
92 | * The '<em><b>OTHER</b></em>' literal object. | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @see #OTHER_VALUE | ||
96 | * @generated | ||
97 | * @ordered | ||
98 | */ | ||
99 | OTHER(7, "OTHER", "OTHER"); | ||
100 | |||
101 | /** | ||
102 | * The '<em><b>Beug</b></em>' literal value. | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @see #BEUG | ||
106 | * @model name="beug" | ||
107 | * @generated | ||
108 | * @ordered | ||
109 | */ | ||
110 | public static final int BEUG_VALUE = 0; | ||
111 | |||
112 | /** | ||
113 | * The '<em><b>NONE</b></em>' literal value. | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @see #NONE | ||
117 | * @model | ||
118 | * @generated | ||
119 | * @ordered | ||
120 | */ | ||
121 | public static final int NONE_VALUE = 1; | ||
122 | |||
123 | /** | ||
124 | * The '<em><b>A</b></em>' literal value. | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @see #A | ||
128 | * @model | ||
129 | * @generated | ||
130 | * @ordered | ||
131 | */ | ||
132 | public static final int A_VALUE = 2; | ||
133 | |||
134 | /** | ||
135 | * The '<em><b>B</b></em>' literal value. | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @see #B | ||
139 | * @model | ||
140 | * @generated | ||
141 | * @ordered | ||
142 | */ | ||
143 | public static final int B_VALUE = 3; | ||
144 | |||
145 | /** | ||
146 | * The '<em><b>C</b></em>' literal value. | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @see #C | ||
150 | * @model | ||
151 | * @generated | ||
152 | * @ordered | ||
153 | */ | ||
154 | public static final int C_VALUE = 4; | ||
155 | |||
156 | /** | ||
157 | * The '<em><b>D</b></em>' literal value. | ||
158 | * <!-- begin-user-doc --> | ||
159 | * <!-- end-user-doc --> | ||
160 | * @see #D | ||
161 | * @model | ||
162 | * @generated | ||
163 | * @ordered | ||
164 | */ | ||
165 | public static final int D_VALUE = 5; | ||
166 | |||
167 | /** | ||
168 | * The '<em><b>E</b></em>' literal value. | ||
169 | * <!-- begin-user-doc --> | ||
170 | * <!-- end-user-doc --> | ||
171 | * @see #E | ||
172 | * @model | ||
173 | * @generated | ||
174 | * @ordered | ||
175 | */ | ||
176 | public static final int E_VALUE = 6; | ||
177 | |||
178 | /** | ||
179 | * The '<em><b>OTHER</b></em>' literal value. | ||
180 | * <!-- begin-user-doc --> | ||
181 | * <!-- end-user-doc --> | ||
182 | * @see #OTHER | ||
183 | * @model | ||
184 | * @generated | ||
185 | * @ordered | ||
186 | */ | ||
187 | public static final int OTHER_VALUE = 7; | ||
188 | |||
189 | /** | ||
190 | * An array of all the '<em><b>Disability Types</b></em>' enumerators. | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @generated | ||
194 | */ | ||
195 | private static final Disability_Types[] VALUES_ARRAY = | ||
196 | new Disability_Types[] { | ||
197 | BEUG, | ||
198 | NONE, | ||
199 | A, | ||
200 | B, | ||
201 | C, | ||
202 | D, | ||
203 | E, | ||
204 | OTHER, | ||
205 | }; | ||
206 | |||
207 | /** | ||
208 | * A public read-only list of all the '<em><b>Disability Types</b></em>' enumerators. | ||
209 | * <!-- begin-user-doc --> | ||
210 | * <!-- end-user-doc --> | ||
211 | * @generated | ||
212 | */ | ||
213 | public static final List<Disability_Types> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); | ||
214 | |||
215 | /** | ||
216 | * Returns the '<em><b>Disability Types</b></em>' literal with the specified literal value. | ||
217 | * <!-- begin-user-doc --> | ||
218 | * <!-- end-user-doc --> | ||
219 | * @param literal the literal. | ||
220 | * @return the matching enumerator or <code>null</code>. | ||
221 | * @generated | ||
222 | */ | ||
223 | public static Disability_Types get(String literal) { | ||
224 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
225 | Disability_Types result = VALUES_ARRAY[i]; | ||
226 | if (result.toString().equals(literal)) { | ||
227 | return result; | ||
228 | } | ||
229 | } | ||
230 | return null; | ||
231 | } | ||
232 | |||
233 | /** | ||
234 | * Returns the '<em><b>Disability Types</b></em>' literal with the specified name. | ||
235 | * <!-- begin-user-doc --> | ||
236 | * <!-- end-user-doc --> | ||
237 | * @param name the name. | ||
238 | * @return the matching enumerator or <code>null</code>. | ||
239 | * @generated | ||
240 | */ | ||
241 | public static Disability_Types getByName(String name) { | ||
242 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
243 | Disability_Types result = VALUES_ARRAY[i]; | ||
244 | if (result.getName().equals(name)) { | ||
245 | return result; | ||
246 | } | ||
247 | } | ||
248 | return null; | ||
249 | } | ||
250 | |||
251 | /** | ||
252 | * Returns the '<em><b>Disability Types</b></em>' literal with the specified integer value. | ||
253 | * <!-- begin-user-doc --> | ||
254 | * <!-- end-user-doc --> | ||
255 | * @param value the integer value. | ||
256 | * @return the matching enumerator or <code>null</code>. | ||
257 | * @generated | ||
258 | */ | ||
259 | public static Disability_Types get(int value) { | ||
260 | switch (value) { | ||
261 | case BEUG_VALUE: return BEUG; | ||
262 | case NONE_VALUE: return NONE; | ||
263 | case A_VALUE: return A; | ||
264 | case B_VALUE: return B; | ||
265 | case C_VALUE: return C; | ||
266 | case D_VALUE: return D; | ||
267 | case E_VALUE: return E; | ||
268 | case OTHER_VALUE: return OTHER; | ||
269 | } | ||
270 | return null; | ||
271 | } | ||
272 | |||
273 | /** | ||
274 | * <!-- begin-user-doc --> | ||
275 | * <!-- end-user-doc --> | ||
276 | * @generated | ||
277 | */ | ||
278 | private final int value; | ||
279 | |||
280 | /** | ||
281 | * <!-- begin-user-doc --> | ||
282 | * <!-- end-user-doc --> | ||
283 | * @generated | ||
284 | */ | ||
285 | private final String name; | ||
286 | |||
287 | /** | ||
288 | * <!-- begin-user-doc --> | ||
289 | * <!-- end-user-doc --> | ||
290 | * @generated | ||
291 | */ | ||
292 | private final String literal; | ||
293 | |||
294 | /** | ||
295 | * Only this class can construct instances. | ||
296 | * <!-- begin-user-doc --> | ||
297 | * <!-- end-user-doc --> | ||
298 | * @generated | ||
299 | */ | ||
300 | private Disability_Types(int value, String name, String literal) { | ||
301 | this.value = value; | ||
302 | this.name = name; | ||
303 | this.literal = literal; | ||
304 | } | ||
305 | |||
306 | /** | ||
307 | * <!-- begin-user-doc --> | ||
308 | * <!-- end-user-doc --> | ||
309 | * @generated | ||
310 | */ | ||
311 | @Override | ||
312 | public int getValue() { | ||
313 | return value; | ||
314 | } | ||
315 | |||
316 | /** | ||
317 | * <!-- begin-user-doc --> | ||
318 | * <!-- end-user-doc --> | ||
319 | * @generated | ||
320 | */ | ||
321 | @Override | ||
322 | public String getName() { | ||
323 | return name; | ||
324 | } | ||
325 | |||
326 | /** | ||
327 | * <!-- begin-user-doc --> | ||
328 | * <!-- end-user-doc --> | ||
329 | * @generated | ||
330 | */ | ||
331 | @Override | ||
332 | public String getLiteral() { | ||
333 | return literal; | ||
334 | } | ||
335 | |||
336 | /** | ||
337 | * Returns the literal value of the enumerator, which is its string representation. | ||
338 | * <!-- begin-user-doc --> | ||
339 | * <!-- end-user-doc --> | ||
340 | * @generated | ||
341 | */ | ||
342 | @Override | ||
343 | public String toString() { | ||
344 | return literal; | ||
345 | } | ||
346 | |||
347 | } //Disability_Types | ||