diff options
author | 2020-04-26 18:23:13 -0400 | |
---|---|---|
committer | 2020-04-26 18:23:13 -0400 | |
commit | c0a758eedd457a5d8eb9f1a6c17fc24143aabb3e (patch) | |
tree | 0c2e212e4e95c1d2311629128641d5cd561210f3 /Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/Expense_Purpose.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/Expense_Purpose.java')
-rw-r--r-- | Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/Expense_Purpose.java | 301 |
1 files changed, 301 insertions, 0 deletions
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/Expense_Purpose.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/Expense_Purpose.java new file mode 100644 index 00000000..84ab9ef1 --- /dev/null +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/Expense_Purpose.java | |||
@@ -0,0 +1,301 @@ | |||
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>Expense Purpose</b></em>', | ||
14 | * and utility methods for working with them. | ||
15 | * <!-- end-user-doc --> | ||
16 | * @see Taxation.TaxationPackage#getExpense_Purpose() | ||
17 | * @model | ||
18 | * @generated | ||
19 | */ | ||
20 | public enum Expense_Purpose implements Enumerator { | ||
21 | /** | ||
22 | * The '<em><b>HOUSE CARE</b></em>' literal object. | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @see #HOUSE_CARE_VALUE | ||
26 | * @generated | ||
27 | * @ordered | ||
28 | */ | ||
29 | HOUSE_CARE(0, "HOUSE_CARE", "HOUSE_CARE"), | ||
30 | |||
31 | /** | ||
32 | * The '<em><b>CHILD CARE</b></em>' literal object. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #CHILD_CARE_VALUE | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | CHILD_CARE(1, "CHILD_CARE", "CHILD_CARE"), | ||
40 | |||
41 | /** | ||
42 | * The '<em><b>DEPENDENCE CARE</b></em>' literal object. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #DEPENDENCE_CARE_VALUE | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | DEPENDENCE_CARE(2, "DEPENDENCE_CARE", "DEPENDENCE_CARE"), | ||
50 | |||
51 | /** | ||
52 | * The '<em><b>OTHER</b></em>' literal object. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #OTHER_VALUE | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | OTHER(3, "OTHER", "OTHER"), | ||
60 | |||
61 | /** | ||
62 | * The '<em><b>ALIMONY</b></em>' literal object. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @see #ALIMONY_VALUE | ||
66 | * @generated | ||
67 | * @ordered | ||
68 | */ | ||
69 | ALIMONY(4, "ALIMONY", "ALIMONY"), | ||
70 | |||
71 | /** | ||
72 | * The '<em><b>RECURRENT DEPT</b></em>' literal object. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @see #RECURRENT_DEPT_VALUE | ||
76 | * @generated | ||
77 | * @ordered | ||
78 | */ | ||
79 | RECURRENT_DEPT(5, "RECURRENT_DEPT", "RECURRENT_DEPT"); | ||
80 | |||
81 | /** | ||
82 | * The '<em><b>HOUSE CARE</b></em>' literal value. | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @see #HOUSE_CARE | ||
86 | * @model | ||
87 | * @generated | ||
88 | * @ordered | ||
89 | */ | ||
90 | public static final int HOUSE_CARE_VALUE = 0; | ||
91 | |||
92 | /** | ||
93 | * The '<em><b>CHILD CARE</b></em>' literal value. | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @see #CHILD_CARE | ||
97 | * @model | ||
98 | * @generated | ||
99 | * @ordered | ||
100 | */ | ||
101 | public static final int CHILD_CARE_VALUE = 1; | ||
102 | |||
103 | /** | ||
104 | * The '<em><b>DEPENDENCE CARE</b></em>' literal value. | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @see #DEPENDENCE_CARE | ||
108 | * @model | ||
109 | * @generated | ||
110 | * @ordered | ||
111 | */ | ||
112 | public static final int DEPENDENCE_CARE_VALUE = 2; | ||
113 | |||
114 | /** | ||
115 | * The '<em><b>OTHER</b></em>' literal value. | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @see #OTHER | ||
119 | * @model | ||
120 | * @generated | ||
121 | * @ordered | ||
122 | */ | ||
123 | public static final int OTHER_VALUE = 3; | ||
124 | |||
125 | /** | ||
126 | * The '<em><b>ALIMONY</b></em>' literal value. | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @see #ALIMONY | ||
130 | * @model | ||
131 | * @generated | ||
132 | * @ordered | ||
133 | */ | ||
134 | public static final int ALIMONY_VALUE = 4; | ||
135 | |||
136 | /** | ||
137 | * The '<em><b>RECURRENT DEPT</b></em>' literal value. | ||
138 | * <!-- begin-user-doc --> | ||
139 | * <!-- end-user-doc --> | ||
140 | * @see #RECURRENT_DEPT | ||
141 | * @model | ||
142 | * @generated | ||
143 | * @ordered | ||
144 | */ | ||
145 | public static final int RECURRENT_DEPT_VALUE = 5; | ||
146 | |||
147 | /** | ||
148 | * An array of all the '<em><b>Expense Purpose</b></em>' enumerators. | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | private static final Expense_Purpose[] VALUES_ARRAY = | ||
154 | new Expense_Purpose[] { | ||
155 | HOUSE_CARE, | ||
156 | CHILD_CARE, | ||
157 | DEPENDENCE_CARE, | ||
158 | OTHER, | ||
159 | ALIMONY, | ||
160 | RECURRENT_DEPT, | ||
161 | }; | ||
162 | |||
163 | /** | ||
164 | * A public read-only list of all the '<em><b>Expense Purpose</b></em>' enumerators. | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @generated | ||
168 | */ | ||
169 | public static final List<Expense_Purpose> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); | ||
170 | |||
171 | /** | ||
172 | * Returns the '<em><b>Expense Purpose</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 Expense_Purpose get(String literal) { | ||
180 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
181 | Expense_Purpose 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>Expense Purpose</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 Expense_Purpose getByName(String name) { | ||
198 | for (int i = 0; i < VALUES_ARRAY.length; ++i) { | ||
199 | Expense_Purpose 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>Expense Purpose</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 Expense_Purpose get(int value) { | ||
216 | switch (value) { | ||
217 | case HOUSE_CARE_VALUE: return HOUSE_CARE; | ||
218 | case CHILD_CARE_VALUE: return CHILD_CARE; | ||
219 | case DEPENDENCE_CARE_VALUE: return DEPENDENCE_CARE; | ||
220 | case OTHER_VALUE: return OTHER; | ||
221 | case ALIMONY_VALUE: return ALIMONY; | ||
222 | case RECURRENT_DEPT_VALUE: return RECURRENT_DEPT; | ||
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 Expense_Purpose(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 | } //Expense_Purpose | ||