aboutsummaryrefslogtreecommitdiffstats
path: root/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl')
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/AddressImpl.java465
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Agriculture_and_Forestry_IncomeImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/CIMImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/CIPImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/CISImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Capital_and_Investments_IncomeImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/ConstantsImpl.java1509
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/DependentImpl.java599
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/DonationImpl.java220
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Employment_IncomeImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/ExpenseImpl.java654
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/External_AllowanceImpl.java500
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Extraordinary_Expense_CEImpl.java221
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Fiscal_AddressImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Foreign_IncomeImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/FromAgentImpl.java506
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/FromLawImpl.java268
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Habitual_AddressImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Health_and_Pension_InsuranceImpl.java221
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/HouseholdImpl.java313
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/IncomeImpl.java614
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_DetailImpl.java548
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_TaxImpl.java341
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_Tax_CreditImpl.java626
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_TypeImpl.java268
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Interest_ExpenseImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Legal_Union_RecordImpl.java648
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Local_IncomeImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Loss_CarryforwardImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Marriage_RecordImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Miscellaneous_Expense_FOImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Non_Resident_Tax_PayerImpl.java164
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Partnership_RecordImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Pensions_and_Annuities_IncomeImpl.java164
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Permanent_ExpenseImpl.java165
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Physical_PersonImpl.java617
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Private_Insurance_and_PlanImpl.java221
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Professional_ExpenseImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Rentals_and_Leases_IncomeImpl.java164
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Resident_Tax_PayerImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/ResourceImpl.java153
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Special_Expense_DSImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Spousal_Expense_ACImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Tax_CardImpl.java2093
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Tax_PayerImpl.java355
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Tax_PropertyImpl.java324
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/TaxationWithRootFactoryImpl.java988
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/TaxationWithRootPackageImpl.java3663
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Trade_and_Business_IncomeImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Travel_Expense_FDImpl.java37
50 files changed, 18369 insertions, 0 deletions
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/AddressImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/AddressImpl.java
new file mode 100644
index 00000000..8c97c7bf
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/AddressImpl.java
@@ -0,0 +1,465 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Address;
6import TaxationWithRoot.Country;
7import TaxationWithRoot.Physical_Person;
8import TaxationWithRoot.TaxationWithRootPackage;
9
10import java.util.Collection;
11
12import org.eclipse.emf.common.notify.Notification;
13import org.eclipse.emf.common.notify.NotificationChain;
14
15import org.eclipse.emf.common.util.EList;
16
17import org.eclipse.emf.ecore.EClass;
18import org.eclipse.emf.ecore.InternalEObject;
19
20import org.eclipse.emf.ecore.impl.ENotificationImpl;
21import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
22
23import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList;
24import org.eclipse.emf.ecore.util.InternalEList;
25
26/**
27 * <!-- begin-user-doc -->
28 * An implementation of the model object '<em><b>Address</b></em>'.
29 * <!-- end-user-doc -->
30 * <p>
31 * The following features are implemented:
32 * </p>
33 * <ul>
34 * <li>{@link TaxationWithRoot.impl.AddressImpl#getCountry <em>Country</em>}</li>
35 * <li>{@link TaxationWithRoot.impl.AddressImpl#getStreet <em>Street</em>}</li>
36 * <li>{@link TaxationWithRoot.impl.AddressImpl#getZipCode <em>Zip Code</em>}</li>
37 * <li>{@link TaxationWithRoot.impl.AddressImpl#getCity <em>City</em>}</li>
38 * <li>{@link TaxationWithRoot.impl.AddressImpl#getId2 <em>Id2</em>}</li>
39 * <li>{@link TaxationWithRoot.impl.AddressImpl#getTaxPayer <em>Tax Payer</em>}</li>
40 * </ul>
41 *
42 * @generated
43 */
44public class AddressImpl extends MinimalEObjectImpl.Container implements Address {
45 /**
46 * The default value of the '{@link #getCountry() <em>Country</em>}' attribute.
47 * <!-- begin-user-doc -->
48 * <!-- end-user-doc -->
49 * @see #getCountry()
50 * @generated
51 * @ordered
52 */
53 protected static final Country COUNTRY_EDEFAULT = Country.ZZ;
54
55 /**
56 * The cached value of the '{@link #getCountry() <em>Country</em>}' attribute.
57 * <!-- begin-user-doc -->
58 * <!-- end-user-doc -->
59 * @see #getCountry()
60 * @generated
61 * @ordered
62 */
63 protected Country country = COUNTRY_EDEFAULT;
64
65 /**
66 * The default value of the '{@link #getStreet() <em>Street</em>}' attribute.
67 * <!-- begin-user-doc -->
68 * <!-- end-user-doc -->
69 * @see #getStreet()
70 * @generated
71 * @ordered
72 */
73 protected static final String STREET_EDEFAULT = null;
74
75 /**
76 * The cached value of the '{@link #getStreet() <em>Street</em>}' attribute.
77 * <!-- begin-user-doc -->
78 * <!-- end-user-doc -->
79 * @see #getStreet()
80 * @generated
81 * @ordered
82 */
83 protected String street = STREET_EDEFAULT;
84
85 /**
86 * The default value of the '{@link #getZipCode() <em>Zip Code</em>}' attribute.
87 * <!-- begin-user-doc -->
88 * <!-- end-user-doc -->
89 * @see #getZipCode()
90 * @generated
91 * @ordered
92 */
93 protected static final String ZIP_CODE_EDEFAULT = null;
94
95 /**
96 * The cached value of the '{@link #getZipCode() <em>Zip Code</em>}' attribute.
97 * <!-- begin-user-doc -->
98 * <!-- end-user-doc -->
99 * @see #getZipCode()
100 * @generated
101 * @ordered
102 */
103 protected String zipCode = ZIP_CODE_EDEFAULT;
104
105 /**
106 * The default value of the '{@link #getCity() <em>City</em>}' attribute.
107 * <!-- begin-user-doc -->
108 * <!-- end-user-doc -->
109 * @see #getCity()
110 * @generated
111 * @ordered
112 */
113 protected static final String CITY_EDEFAULT = null;
114
115 /**
116 * The cached value of the '{@link #getCity() <em>City</em>}' attribute.
117 * <!-- begin-user-doc -->
118 * <!-- end-user-doc -->
119 * @see #getCity()
120 * @generated
121 * @ordered
122 */
123 protected String city = CITY_EDEFAULT;
124
125 /**
126 * The default value of the '{@link #getId2() <em>Id2</em>}' attribute.
127 * <!-- begin-user-doc -->
128 * <!-- end-user-doc -->
129 * @see #getId2()
130 * @generated
131 * @ordered
132 */
133 protected static final String ID2_EDEFAULT = null;
134
135 /**
136 * The cached value of the '{@link #getId2() <em>Id2</em>}' attribute.
137 * <!-- begin-user-doc -->
138 * <!-- end-user-doc -->
139 * @see #getId2()
140 * @generated
141 * @ordered
142 */
143 protected String id2 = ID2_EDEFAULT;
144
145 /**
146 * The cached value of the '{@link #getTaxPayer() <em>Tax Payer</em>}' reference list.
147 * <!-- begin-user-doc -->
148 * <!-- end-user-doc -->
149 * @see #getTaxPayer()
150 * @generated
151 * @ordered
152 */
153 protected EList<Physical_Person> taxPayer;
154
155 /**
156 * <!-- begin-user-doc -->
157 * <!-- end-user-doc -->
158 * @generated
159 */
160 protected AddressImpl() {
161 super();
162 }
163
164 /**
165 * <!-- begin-user-doc -->
166 * <!-- end-user-doc -->
167 * @generated
168 */
169 @Override
170 protected EClass eStaticClass() {
171 return TaxationWithRootPackage.Literals.ADDRESS;
172 }
173
174 /**
175 * <!-- begin-user-doc -->
176 * <!-- end-user-doc -->
177 * @generated
178 */
179 @Override
180 public Country getCountry() {
181 return country;
182 }
183
184 /**
185 * <!-- begin-user-doc -->
186 * <!-- end-user-doc -->
187 * @generated
188 */
189 @Override
190 public void setCountry(Country newCountry) {
191 Country oldCountry = country;
192 country = newCountry == null ? COUNTRY_EDEFAULT : newCountry;
193 if (eNotificationRequired())
194 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.ADDRESS__COUNTRY, oldCountry, country));
195 }
196
197 /**
198 * <!-- begin-user-doc -->
199 * <!-- end-user-doc -->
200 * @generated
201 */
202 @Override
203 public String getStreet() {
204 return street;
205 }
206
207 /**
208 * <!-- begin-user-doc -->
209 * <!-- end-user-doc -->
210 * @generated
211 */
212 @Override
213 public void setStreet(String newStreet) {
214 String oldStreet = street;
215 street = newStreet;
216 if (eNotificationRequired())
217 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.ADDRESS__STREET, oldStreet, street));
218 }
219
220 /**
221 * <!-- begin-user-doc -->
222 * <!-- end-user-doc -->
223 * @generated
224 */
225 @Override
226 public String getZipCode() {
227 return zipCode;
228 }
229
230 /**
231 * <!-- begin-user-doc -->
232 * <!-- end-user-doc -->
233 * @generated
234 */
235 @Override
236 public void setZipCode(String newZipCode) {
237 String oldZipCode = zipCode;
238 zipCode = newZipCode;
239 if (eNotificationRequired())
240 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.ADDRESS__ZIP_CODE, oldZipCode, zipCode));
241 }
242
243 /**
244 * <!-- begin-user-doc -->
245 * <!-- end-user-doc -->
246 * @generated
247 */
248 @Override
249 public String getCity() {
250 return city;
251 }
252
253 /**
254 * <!-- begin-user-doc -->
255 * <!-- end-user-doc -->
256 * @generated
257 */
258 @Override
259 public void setCity(String newCity) {
260 String oldCity = city;
261 city = newCity;
262 if (eNotificationRequired())
263 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.ADDRESS__CITY, oldCity, city));
264 }
265
266 /**
267 * <!-- begin-user-doc -->
268 * <!-- end-user-doc -->
269 * @generated
270 */
271 @Override
272 public String getId2() {
273 return id2;
274 }
275
276 /**
277 * <!-- begin-user-doc -->
278 * <!-- end-user-doc -->
279 * @generated
280 */
281 @Override
282 public void setId2(String newId2) {
283 String oldId2 = id2;
284 id2 = newId2;
285 if (eNotificationRequired())
286 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.ADDRESS__ID2, oldId2, id2));
287 }
288
289 /**
290 * <!-- begin-user-doc -->
291 * <!-- end-user-doc -->
292 * @generated
293 */
294 @Override
295 public EList<Physical_Person> getTaxPayer() {
296 if (taxPayer == null) {
297 taxPayer = new EObjectWithInverseResolvingEList.ManyInverse<Physical_Person>(Physical_Person.class, this, TaxationWithRootPackage.ADDRESS__TAX_PAYER, TaxationWithRootPackage.PHYSICAL_PERSON__ADDRESSES);
298 }
299 return taxPayer;
300 }
301
302 /**
303 * <!-- begin-user-doc -->
304 * <!-- end-user-doc -->
305 * @generated
306 */
307 @SuppressWarnings("unchecked")
308 @Override
309 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
310 switch (featureID) {
311 case TaxationWithRootPackage.ADDRESS__TAX_PAYER:
312 return ((InternalEList<InternalEObject>)(InternalEList<?>)getTaxPayer()).basicAdd(otherEnd, msgs);
313 }
314 return super.eInverseAdd(otherEnd, featureID, msgs);
315 }
316
317 /**
318 * <!-- begin-user-doc -->
319 * <!-- end-user-doc -->
320 * @generated
321 */
322 @Override
323 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
324 switch (featureID) {
325 case TaxationWithRootPackage.ADDRESS__TAX_PAYER:
326 return ((InternalEList<?>)getTaxPayer()).basicRemove(otherEnd, msgs);
327 }
328 return super.eInverseRemove(otherEnd, featureID, msgs);
329 }
330
331 /**
332 * <!-- begin-user-doc -->
333 * <!-- end-user-doc -->
334 * @generated
335 */
336 @Override
337 public Object eGet(int featureID, boolean resolve, boolean coreType) {
338 switch (featureID) {
339 case TaxationWithRootPackage.ADDRESS__COUNTRY:
340 return getCountry();
341 case TaxationWithRootPackage.ADDRESS__STREET:
342 return getStreet();
343 case TaxationWithRootPackage.ADDRESS__ZIP_CODE:
344 return getZipCode();
345 case TaxationWithRootPackage.ADDRESS__CITY:
346 return getCity();
347 case TaxationWithRootPackage.ADDRESS__ID2:
348 return getId2();
349 case TaxationWithRootPackage.ADDRESS__TAX_PAYER:
350 return getTaxPayer();
351 }
352 return super.eGet(featureID, resolve, coreType);
353 }
354
355 /**
356 * <!-- begin-user-doc -->
357 * <!-- end-user-doc -->
358 * @generated
359 */
360 @SuppressWarnings("unchecked")
361 @Override
362 public void eSet(int featureID, Object newValue) {
363 switch (featureID) {
364 case TaxationWithRootPackage.ADDRESS__COUNTRY:
365 setCountry((Country)newValue);
366 return;
367 case TaxationWithRootPackage.ADDRESS__STREET:
368 setStreet((String)newValue);
369 return;
370 case TaxationWithRootPackage.ADDRESS__ZIP_CODE:
371 setZipCode((String)newValue);
372 return;
373 case TaxationWithRootPackage.ADDRESS__CITY:
374 setCity((String)newValue);
375 return;
376 case TaxationWithRootPackage.ADDRESS__ID2:
377 setId2((String)newValue);
378 return;
379 case TaxationWithRootPackage.ADDRESS__TAX_PAYER:
380 getTaxPayer().clear();
381 getTaxPayer().addAll((Collection<? extends Physical_Person>)newValue);
382 return;
383 }
384 super.eSet(featureID, newValue);
385 }
386
387 /**
388 * <!-- begin-user-doc -->
389 * <!-- end-user-doc -->
390 * @generated
391 */
392 @Override
393 public void eUnset(int featureID) {
394 switch (featureID) {
395 case TaxationWithRootPackage.ADDRESS__COUNTRY:
396 setCountry(COUNTRY_EDEFAULT);
397 return;
398 case TaxationWithRootPackage.ADDRESS__STREET:
399 setStreet(STREET_EDEFAULT);
400 return;
401 case TaxationWithRootPackage.ADDRESS__ZIP_CODE:
402 setZipCode(ZIP_CODE_EDEFAULT);
403 return;
404 case TaxationWithRootPackage.ADDRESS__CITY:
405 setCity(CITY_EDEFAULT);
406 return;
407 case TaxationWithRootPackage.ADDRESS__ID2:
408 setId2(ID2_EDEFAULT);
409 return;
410 case TaxationWithRootPackage.ADDRESS__TAX_PAYER:
411 getTaxPayer().clear();
412 return;
413 }
414 super.eUnset(featureID);
415 }
416
417 /**
418 * <!-- begin-user-doc -->
419 * <!-- end-user-doc -->
420 * @generated
421 */
422 @Override
423 public boolean eIsSet(int featureID) {
424 switch (featureID) {
425 case TaxationWithRootPackage.ADDRESS__COUNTRY:
426 return country != COUNTRY_EDEFAULT;
427 case TaxationWithRootPackage.ADDRESS__STREET:
428 return STREET_EDEFAULT == null ? street != null : !STREET_EDEFAULT.equals(street);
429 case TaxationWithRootPackage.ADDRESS__ZIP_CODE:
430 return ZIP_CODE_EDEFAULT == null ? zipCode != null : !ZIP_CODE_EDEFAULT.equals(zipCode);
431 case TaxationWithRootPackage.ADDRESS__CITY:
432 return CITY_EDEFAULT == null ? city != null : !CITY_EDEFAULT.equals(city);
433 case TaxationWithRootPackage.ADDRESS__ID2:
434 return ID2_EDEFAULT == null ? id2 != null : !ID2_EDEFAULT.equals(id2);
435 case TaxationWithRootPackage.ADDRESS__TAX_PAYER:
436 return taxPayer != null && !taxPayer.isEmpty();
437 }
438 return super.eIsSet(featureID);
439 }
440
441 /**
442 * <!-- begin-user-doc -->
443 * <!-- end-user-doc -->
444 * @generated
445 */
446 @Override
447 public String toString() {
448 if (eIsProxy()) return super.toString();
449
450 StringBuilder result = new StringBuilder(super.toString());
451 result.append(" (country: ");
452 result.append(country);
453 result.append(", street: ");
454 result.append(street);
455 result.append(", zipCode: ");
456 result.append(zipCode);
457 result.append(", city: ");
458 result.append(city);
459 result.append(", id2: ");
460 result.append(id2);
461 result.append(')');
462 return result.toString();
463 }
464
465} //AddressImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Agriculture_and_Forestry_IncomeImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Agriculture_and_Forestry_IncomeImpl.java
new file mode 100644
index 00000000..4a953a0b
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Agriculture_and_Forestry_IncomeImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Agriculture_and_Forestry_Income;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Agriculture and Forestry Income</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class Agriculture_and_Forestry_IncomeImpl extends Income_TypeImpl implements Agriculture_and_Forestry_Income {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected Agriculture_and_Forestry_IncomeImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.AGRICULTURE_AND_FORESTRY_INCOME;
35 }
36
37} //Agriculture_and_Forestry_IncomeImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/CIMImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/CIMImpl.java
new file mode 100644
index 00000000..c511cece
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/CIMImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.CIM;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>CIM</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class CIMImpl extends Income_Tax_CreditImpl implements CIM {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected CIMImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.CIM;
35 }
36
37} //CIMImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/CIPImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/CIPImpl.java
new file mode 100644
index 00000000..41f43e75
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/CIPImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.CIP;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>CIP</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class CIPImpl extends Income_Tax_CreditImpl implements CIP {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected CIPImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.CIP;
35 }
36
37} //CIPImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/CISImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/CISImpl.java
new file mode 100644
index 00000000..1aa54828
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/CISImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.CIS;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>CIS</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class CISImpl extends Income_Tax_CreditImpl implements CIS {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected CISImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.CIS;
35 }
36
37} //CISImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Capital_and_Investments_IncomeImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Capital_and_Investments_IncomeImpl.java
new file mode 100644
index 00000000..7d1f8a04
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Capital_and_Investments_IncomeImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Capital_and_Investments_Income;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Capital and Investments Income</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class Capital_and_Investments_IncomeImpl extends Income_TypeImpl implements Capital_and_Investments_Income {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected Capital_and_Investments_IncomeImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.CAPITAL_AND_INVESTMENTS_INCOME;
35 }
36
37} //Capital_and_Investments_IncomeImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/ConstantsImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/ConstantsImpl.java
new file mode 100644
index 00000000..dcf5b13a
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/ConstantsImpl.java
@@ -0,0 +1,1509 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Constants;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.common.notify.Notification;
9
10import org.eclipse.emf.ecore.EClass;
11
12import org.eclipse.emf.ecore.impl.ENotificationImpl;
13import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
14
15/**
16 * <!-- begin-user-doc -->
17 * An implementation of the model object '<em><b>Constants</b></em>'.
18 * <!-- end-user-doc -->
19 * <p>
20 * The following features are implemented:
21 * </p>
22 * <ul>
23 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getMAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD <em>MAXIMUM CE RATE FOR CHILD NOT BEING PART OF HOUSEHOLD</em>}</li>
24 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getMAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE <em>MAXIMUM CE RATE FOR HOUSE CARE AND CHILD PART OF THE HOUSEHOLD CARE</em>}</li>
25 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getMINIMUM_SALARY <em>MINIMUM SALARY</em>}</li>
26 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getFLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION <em>FLAT RATE FOR EXTRA PROFESSIONAL DEDUCTION</em>}</li>
27 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getMAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS <em>MAXIMUM DEDUCTIBLE PERCENTAGE FOR DONATIONS</em>}</li>
28 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getMINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS <em>MINIMUM DEDUCTIBLE AMOUNT FOR DONATIONS</em>}</li>
29 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC <em>MAXIMUM DEDUCTIBLE AMOUNT FOR ADDITIONAL PENSION AND INSURANC</em>}</li>
30 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE <em>MAXIMUM DEDUCTIBLE AMOUNT FOR ALIMONY EXPENSE</em>}</li>
31 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getMAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION <em>MAXIMAL DISTANCE FOR TRAVEL EXPENSE DEDUCTION</em>}</li>
32 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getMAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION <em>MAXIMAL FLAT DISTANCE FOR TRAVEL EXPENSE DEDUCTION</em>}</li>
33 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getMINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION <em>MINIMAL DISTANCE FOR TRAVEL EXPENSE DEDUCTION</em>}</li>
34 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getFLAT_RATE_CIM_DAILY <em>FLAT RATE CIM DAILY</em>}</li>
35 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getFLAT_RATE_CIM_MONTHLY <em>FLAT RATE CIM MONTHLY</em>}</li>
36 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getFLAT_RATE_CIM_YEARLY <em>FLAT RATE CIM YEARLY</em>}</li>
37 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getFLAT_RATE_CIP_DAILY <em>FLAT RATE CIP DAILY</em>}</li>
38 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getFLAT_RATE_CIP_MONTHLY <em>FLAT RATE CIP MONTHLY</em>}</li>
39 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getFLAT_RATE_CIP_YEARLY <em>FLAT RATE CIP YEARLY</em>}</li>
40 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getFLAT_RATE_CIS_DAILY <em>FLAT RATE CIS DAILY</em>}</li>
41 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getFLAT_RATE_CIS_MONTHLY <em>FLAT RATE CIS MONTHLY</em>}</li>
42 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getFLAT_RATE_CIS_YEARLY <em>FLAT RATE CIS YEARLY</em>}</li>
43 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getFLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT <em>FLAT RATE FOR TRAVEL EXPENSE PER UNIT</em>}</li>
44 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS <em>MAXIMUM DEDUCTIBLE AMOUNT FOR DS</em>}</li>
45 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getFLAT_RATE_FOR_MISCELLANEOUS_EXPENSE <em>FLAT RATE FOR MISCELLANEOUS EXPENSE</em>}</li>
46 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getDISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE <em>DISABILITY FLAT RATE FOR MISCELLANEOUS EXPENSE</em>}</li>
47 * <li>{@link TaxationWithRoot.impl.ConstantsImpl#getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE <em>MAXIMUM DEDUCTIBLE AMOUNT FOR ADDITIONAL PENSION AND INSURANCE</em>}</li>
48 * </ul>
49 *
50 * @generated
51 */
52public abstract class ConstantsImpl extends MinimalEObjectImpl.Container implements Constants {
53 /**
54 * The default value of the '{@link #getMAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD() <em>MAXIMUM CE RATE FOR CHILD NOT BEING PART OF HOUSEHOLD</em>}' attribute.
55 * <!-- begin-user-doc -->
56 * <!-- end-user-doc -->
57 * @see #getMAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD()
58 * @generated
59 * @ordered
60 */
61 protected static final double MAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD_EDEFAULT = 3480.0;
62
63 /**
64 * The cached value of the '{@link #getMAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD() <em>MAXIMUM CE RATE FOR CHILD NOT BEING PART OF HOUSEHOLD</em>}' attribute.
65 * <!-- begin-user-doc -->
66 * <!-- end-user-doc -->
67 * @see #getMAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD()
68 * @generated
69 * @ordered
70 */
71 protected double maximuM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD = MAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD_EDEFAULT;
72
73 /**
74 * The default value of the '{@link #getMAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE() <em>MAXIMUM CE RATE FOR HOUSE CARE AND CHILD PART OF THE HOUSEHOLD CARE</em>}' attribute.
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @see #getMAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE()
78 * @generated
79 * @ordered
80 */
81 protected static final double MAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE_EDEFAULT = 3600.0;
82
83 /**
84 * The cached value of the '{@link #getMAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE() <em>MAXIMUM CE RATE FOR HOUSE CARE AND CHILD PART OF THE HOUSEHOLD CARE</em>}' attribute.
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @see #getMAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE()
88 * @generated
89 * @ordered
90 */
91 protected double maximuM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE = MAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE_EDEFAULT;
92
93 /**
94 * The default value of the '{@link #getMINIMUM_SALARY() <em>MINIMUM SALARY</em>}' attribute.
95 * <!-- begin-user-doc -->
96 * <!-- end-user-doc -->
97 * @see #getMINIMUM_SALARY()
98 * @generated
99 * @ordered
100 */
101 protected static final double MINIMUM_SALARY_EDEFAULT = 1500.0;
102
103 /**
104 * The cached value of the '{@link #getMINIMUM_SALARY() <em>MINIMUM SALARY</em>}' attribute.
105 * <!-- begin-user-doc -->
106 * <!-- end-user-doc -->
107 * @see #getMINIMUM_SALARY()
108 * @generated
109 * @ordered
110 */
111 protected double minimuM_SALARY = MINIMUM_SALARY_EDEFAULT;
112
113 /**
114 * The default value of the '{@link #getFLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION() <em>FLAT RATE FOR EXTRA PROFESSIONAL DEDUCTION</em>}' attribute.
115 * <!-- begin-user-doc -->
116 * <!-- end-user-doc -->
117 * @see #getFLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION()
118 * @generated
119 * @ordered
120 */
121 protected static final double FLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION_EDEFAULT = 4500.0;
122
123 /**
124 * The cached value of the '{@link #getFLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION() <em>FLAT RATE FOR EXTRA PROFESSIONAL DEDUCTION</em>}' attribute.
125 * <!-- begin-user-doc -->
126 * <!-- end-user-doc -->
127 * @see #getFLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION()
128 * @generated
129 * @ordered
130 */
131 protected double flaT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION = FLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION_EDEFAULT;
132
133 /**
134 * The default value of the '{@link #getMAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS() <em>MAXIMUM DEDUCTIBLE PERCENTAGE FOR DONATIONS</em>}' attribute.
135 * <!-- begin-user-doc -->
136 * <!-- end-user-doc -->
137 * @see #getMAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS()
138 * @generated
139 * @ordered
140 */
141 protected static final double MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS_EDEFAULT = 20.0;
142
143 /**
144 * The cached value of the '{@link #getMAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS() <em>MAXIMUM DEDUCTIBLE PERCENTAGE FOR DONATIONS</em>}' attribute.
145 * <!-- begin-user-doc -->
146 * <!-- end-user-doc -->
147 * @see #getMAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS()
148 * @generated
149 * @ordered
150 */
151 protected double maximuM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS = MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS_EDEFAULT;
152
153 /**
154 * The default value of the '{@link #getMINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS() <em>MINIMUM DEDUCTIBLE AMOUNT FOR DONATIONS</em>}' attribute.
155 * <!-- begin-user-doc -->
156 * <!-- end-user-doc -->
157 * @see #getMINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS()
158 * @generated
159 * @ordered
160 */
161 protected static final double MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS_EDEFAULT = 120.0;
162
163 /**
164 * The cached value of the '{@link #getMINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS() <em>MINIMUM DEDUCTIBLE AMOUNT FOR DONATIONS</em>}' attribute.
165 * <!-- begin-user-doc -->
166 * <!-- end-user-doc -->
167 * @see #getMINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS()
168 * @generated
169 * @ordered
170 */
171 protected double minimuM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS = MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS_EDEFAULT;
172
173 /**
174 * The default value of the '{@link #getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC() <em>MAXIMUM DEDUCTIBLE AMOUNT FOR ADDITIONAL PENSION AND INSURANC</em>}' attribute.
175 * <!-- begin-user-doc -->
176 * <!-- end-user-doc -->
177 * @see #getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC()
178 * @generated
179 * @ordered
180 */
181 protected static final double MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC_EDEFAULT = 0.0;
182
183 /**
184 * The cached value of the '{@link #getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC() <em>MAXIMUM DEDUCTIBLE AMOUNT FOR ADDITIONAL PENSION AND INSURANC</em>}' attribute.
185 * <!-- begin-user-doc -->
186 * <!-- end-user-doc -->
187 * @see #getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC()
188 * @generated
189 * @ordered
190 */
191 protected double maximuM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC = MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC_EDEFAULT;
192
193 /**
194 * The default value of the '{@link #getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE() <em>MAXIMUM DEDUCTIBLE AMOUNT FOR ALIMONY EXPENSE</em>}' attribute.
195 * <!-- begin-user-doc -->
196 * <!-- end-user-doc -->
197 * @see #getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE()
198 * @generated
199 * @ordered
200 */
201 protected static final double MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE_EDEFAULT = 24000.0;
202
203 /**
204 * The cached value of the '{@link #getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE() <em>MAXIMUM DEDUCTIBLE AMOUNT FOR ALIMONY EXPENSE</em>}' attribute.
205 * <!-- begin-user-doc -->
206 * <!-- end-user-doc -->
207 * @see #getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE()
208 * @generated
209 * @ordered
210 */
211 protected double maximuM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE = MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE_EDEFAULT;
212
213 /**
214 * The default value of the '{@link #getMAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION() <em>MAXIMAL DISTANCE FOR TRAVEL EXPENSE DEDUCTION</em>}' attribute.
215 * <!-- begin-user-doc -->
216 * <!-- end-user-doc -->
217 * @see #getMAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION()
218 * @generated
219 * @ordered
220 */
221 protected static final double MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION_EDEFAULT = 99.0;
222
223 /**
224 * The cached value of the '{@link #getMAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION() <em>MAXIMAL DISTANCE FOR TRAVEL EXPENSE DEDUCTION</em>}' attribute.
225 * <!-- begin-user-doc -->
226 * <!-- end-user-doc -->
227 * @see #getMAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION()
228 * @generated
229 * @ordered
230 */
231 protected double maximaL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION = MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION_EDEFAULT;
232
233 /**
234 * The default value of the '{@link #getMAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION() <em>MAXIMAL FLAT DISTANCE FOR TRAVEL EXPENSE DEDUCTION</em>}' attribute.
235 * <!-- begin-user-doc -->
236 * <!-- end-user-doc -->
237 * @see #getMAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION()
238 * @generated
239 * @ordered
240 */
241 protected static final double MAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION_EDEFAULT = 30.0;
242
243 /**
244 * The cached value of the '{@link #getMAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION() <em>MAXIMAL FLAT DISTANCE FOR TRAVEL EXPENSE DEDUCTION</em>}' attribute.
245 * <!-- begin-user-doc -->
246 * <!-- end-user-doc -->
247 * @see #getMAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION()
248 * @generated
249 * @ordered
250 */
251 protected double maximaL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION = MAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION_EDEFAULT;
252
253 /**
254 * The default value of the '{@link #getMINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION() <em>MINIMAL DISTANCE FOR TRAVEL EXPENSE DEDUCTION</em>}' attribute.
255 * <!-- begin-user-doc -->
256 * <!-- end-user-doc -->
257 * @see #getMINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION()
258 * @generated
259 * @ordered
260 */
261 protected static final double MINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION_EDEFAULT = 4.0;
262
263 /**
264 * The cached value of the '{@link #getMINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION() <em>MINIMAL DISTANCE FOR TRAVEL EXPENSE DEDUCTION</em>}' attribute.
265 * <!-- begin-user-doc -->
266 * <!-- end-user-doc -->
267 * @see #getMINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION()
268 * @generated
269 * @ordered
270 */
271 protected double minimaL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION = MINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION_EDEFAULT;
272
273 /**
274 * The default value of the '{@link #getFLAT_RATE_CIM_DAILY() <em>FLAT RATE CIM DAILY</em>}' attribute.
275 * <!-- begin-user-doc -->
276 * <!-- end-user-doc -->
277 * @see #getFLAT_RATE_CIM_DAILY()
278 * @generated
279 * @ordered
280 */
281 protected static final double FLAT_RATE_CIM_DAILY_EDEFAULT = 2.0;
282
283 /**
284 * The cached value of the '{@link #getFLAT_RATE_CIM_DAILY() <em>FLAT RATE CIM DAILY</em>}' attribute.
285 * <!-- begin-user-doc -->
286 * <!-- end-user-doc -->
287 * @see #getFLAT_RATE_CIM_DAILY()
288 * @generated
289 * @ordered
290 */
291 protected double flaT_RATE_CIM_DAILY = FLAT_RATE_CIM_DAILY_EDEFAULT;
292
293 /**
294 * The default value of the '{@link #getFLAT_RATE_CIM_MONTHLY() <em>FLAT RATE CIM MONTHLY</em>}' attribute.
295 * <!-- begin-user-doc -->
296 * <!-- end-user-doc -->
297 * @see #getFLAT_RATE_CIM_MONTHLY()
298 * @generated
299 * @ordered
300 */
301 protected static final double FLAT_RATE_CIM_MONTHLY_EDEFAULT = 62.0;
302
303 /**
304 * The cached value of the '{@link #getFLAT_RATE_CIM_MONTHLY() <em>FLAT RATE CIM MONTHLY</em>}' attribute.
305 * <!-- begin-user-doc -->
306 * <!-- end-user-doc -->
307 * @see #getFLAT_RATE_CIM_MONTHLY()
308 * @generated
309 * @ordered
310 */
311 protected double flaT_RATE_CIM_MONTHLY = FLAT_RATE_CIM_MONTHLY_EDEFAULT;
312
313 /**
314 * The default value of the '{@link #getFLAT_RATE_CIM_YEARLY() <em>FLAT RATE CIM YEARLY</em>}' attribute.
315 * <!-- begin-user-doc -->
316 * <!-- end-user-doc -->
317 * @see #getFLAT_RATE_CIM_YEARLY()
318 * @generated
319 * @ordered
320 */
321 protected static final double FLAT_RATE_CIM_YEARLY_EDEFAULT = 750.0;
322
323 /**
324 * The cached value of the '{@link #getFLAT_RATE_CIM_YEARLY() <em>FLAT RATE CIM YEARLY</em>}' attribute.
325 * <!-- begin-user-doc -->
326 * <!-- end-user-doc -->
327 * @see #getFLAT_RATE_CIM_YEARLY()
328 * @generated
329 * @ordered
330 */
331 protected double flaT_RATE_CIM_YEARLY = FLAT_RATE_CIM_YEARLY_EDEFAULT;
332
333 /**
334 * The default value of the '{@link #getFLAT_RATE_CIP_DAILY() <em>FLAT RATE CIP DAILY</em>}' attribute.
335 * <!-- begin-user-doc -->
336 * <!-- end-user-doc -->
337 * @see #getFLAT_RATE_CIP_DAILY()
338 * @generated
339 * @ordered
340 */
341 protected static final double FLAT_RATE_CIP_DAILY_EDEFAULT = 1.0;
342
343 /**
344 * The cached value of the '{@link #getFLAT_RATE_CIP_DAILY() <em>FLAT RATE CIP DAILY</em>}' attribute.
345 * <!-- begin-user-doc -->
346 * <!-- end-user-doc -->
347 * @see #getFLAT_RATE_CIP_DAILY()
348 * @generated
349 * @ordered
350 */
351 protected double flaT_RATE_CIP_DAILY = FLAT_RATE_CIP_DAILY_EDEFAULT;
352
353 /**
354 * The default value of the '{@link #getFLAT_RATE_CIP_MONTHLY() <em>FLAT RATE CIP MONTHLY</em>}' attribute.
355 * <!-- begin-user-doc -->
356 * <!-- end-user-doc -->
357 * @see #getFLAT_RATE_CIP_MONTHLY()
358 * @generated
359 * @ordered
360 */
361 protected static final double FLAT_RATE_CIP_MONTHLY_EDEFAULT = 25.0;
362
363 /**
364 * The cached value of the '{@link #getFLAT_RATE_CIP_MONTHLY() <em>FLAT RATE CIP MONTHLY</em>}' attribute.
365 * <!-- begin-user-doc -->
366 * <!-- end-user-doc -->
367 * @see #getFLAT_RATE_CIP_MONTHLY()
368 * @generated
369 * @ordered
370 */
371 protected double flaT_RATE_CIP_MONTHLY = FLAT_RATE_CIP_MONTHLY_EDEFAULT;
372
373 /**
374 * The default value of the '{@link #getFLAT_RATE_CIP_YEARLY() <em>FLAT RATE CIP YEARLY</em>}' attribute.
375 * <!-- begin-user-doc -->
376 * <!-- end-user-doc -->
377 * @see #getFLAT_RATE_CIP_YEARLY()
378 * @generated
379 * @ordered
380 */
381 protected static final double FLAT_RATE_CIP_YEARLY_EDEFAULT = 30.0;
382
383 /**
384 * The cached value of the '{@link #getFLAT_RATE_CIP_YEARLY() <em>FLAT RATE CIP YEARLY</em>}' attribute.
385 * <!-- begin-user-doc -->
386 * <!-- end-user-doc -->
387 * @see #getFLAT_RATE_CIP_YEARLY()
388 * @generated
389 * @ordered
390 */
391 protected double flaT_RATE_CIP_YEARLY = FLAT_RATE_CIP_YEARLY_EDEFAULT;
392
393 /**
394 * The default value of the '{@link #getFLAT_RATE_CIS_DAILY() <em>FLAT RATE CIS DAILY</em>}' attribute.
395 * <!-- begin-user-doc -->
396 * <!-- end-user-doc -->
397 * @see #getFLAT_RATE_CIS_DAILY()
398 * @generated
399 * @ordered
400 */
401 protected static final double FLAT_RATE_CIS_DAILY_EDEFAULT = 1.0;
402
403 /**
404 * The cached value of the '{@link #getFLAT_RATE_CIS_DAILY() <em>FLAT RATE CIS DAILY</em>}' attribute.
405 * <!-- begin-user-doc -->
406 * <!-- end-user-doc -->
407 * @see #getFLAT_RATE_CIS_DAILY()
408 * @generated
409 * @ordered
410 */
411 protected double flaT_RATE_CIS_DAILY = FLAT_RATE_CIS_DAILY_EDEFAULT;
412
413 /**
414 * The default value of the '{@link #getFLAT_RATE_CIS_MONTHLY() <em>FLAT RATE CIS MONTHLY</em>}' attribute.
415 * <!-- begin-user-doc -->
416 * <!-- end-user-doc -->
417 * @see #getFLAT_RATE_CIS_MONTHLY()
418 * @generated
419 * @ordered
420 */
421 protected static final double FLAT_RATE_CIS_MONTHLY_EDEFAULT = 25.0;
422
423 /**
424 * The cached value of the '{@link #getFLAT_RATE_CIS_MONTHLY() <em>FLAT RATE CIS MONTHLY</em>}' attribute.
425 * <!-- begin-user-doc -->
426 * <!-- end-user-doc -->
427 * @see #getFLAT_RATE_CIS_MONTHLY()
428 * @generated
429 * @ordered
430 */
431 protected double flaT_RATE_CIS_MONTHLY = FLAT_RATE_CIS_MONTHLY_EDEFAULT;
432
433 /**
434 * The default value of the '{@link #getFLAT_RATE_CIS_YEARLY() <em>FLAT RATE CIS YEARLY</em>}' attribute.
435 * <!-- begin-user-doc -->
436 * <!-- end-user-doc -->
437 * @see #getFLAT_RATE_CIS_YEARLY()
438 * @generated
439 * @ordered
440 */
441 protected static final double FLAT_RATE_CIS_YEARLY_EDEFAULT = 300.0;
442
443 /**
444 * The cached value of the '{@link #getFLAT_RATE_CIS_YEARLY() <em>FLAT RATE CIS YEARLY</em>}' attribute.
445 * <!-- begin-user-doc -->
446 * <!-- end-user-doc -->
447 * @see #getFLAT_RATE_CIS_YEARLY()
448 * @generated
449 * @ordered
450 */
451 protected double flaT_RATE_CIS_YEARLY = FLAT_RATE_CIS_YEARLY_EDEFAULT;
452
453 /**
454 * The default value of the '{@link #getFLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT() <em>FLAT RATE FOR TRAVEL EXPENSE PER UNIT</em>}' attribute.
455 * <!-- begin-user-doc -->
456 * <!-- end-user-doc -->
457 * @see #getFLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT()
458 * @generated
459 * @ordered
460 */
461 protected static final double FLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT_EDEFAULT = 99.0;
462
463 /**
464 * The cached value of the '{@link #getFLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT() <em>FLAT RATE FOR TRAVEL EXPENSE PER UNIT</em>}' attribute.
465 * <!-- begin-user-doc -->
466 * <!-- end-user-doc -->
467 * @see #getFLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT()
468 * @generated
469 * @ordered
470 */
471 protected double flaT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT = FLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT_EDEFAULT;
472
473 /**
474 * The default value of the '{@link #getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS() <em>MAXIMUM DEDUCTIBLE AMOUNT FOR DS</em>}' attribute.
475 * <!-- begin-user-doc -->
476 * <!-- end-user-doc -->
477 * @see #getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS()
478 * @generated
479 * @ordered
480 */
481 protected static final double MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS_EDEFAULT = 0.0;
482
483 /**
484 * The cached value of the '{@link #getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS() <em>MAXIMUM DEDUCTIBLE AMOUNT FOR DS</em>}' attribute.
485 * <!-- begin-user-doc -->
486 * <!-- end-user-doc -->
487 * @see #getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS()
488 * @generated
489 * @ordered
490 */
491 protected double maximuM_DEDUCTIBLE_AMOUNT_FOR_DS = MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS_EDEFAULT;
492
493 /**
494 * The default value of the '{@link #getFLAT_RATE_FOR_MISCELLANEOUS_EXPENSE() <em>FLAT RATE FOR MISCELLANEOUS EXPENSE</em>}' attribute.
495 * <!-- begin-user-doc -->
496 * <!-- end-user-doc -->
497 * @see #getFLAT_RATE_FOR_MISCELLANEOUS_EXPENSE()
498 * @generated
499 * @ordered
500 */
501 protected static final double FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE_EDEFAULT = 0.0;
502
503 /**
504 * The cached value of the '{@link #getFLAT_RATE_FOR_MISCELLANEOUS_EXPENSE() <em>FLAT RATE FOR MISCELLANEOUS EXPENSE</em>}' attribute.
505 * <!-- begin-user-doc -->
506 * <!-- end-user-doc -->
507 * @see #getFLAT_RATE_FOR_MISCELLANEOUS_EXPENSE()
508 * @generated
509 * @ordered
510 */
511 protected double flaT_RATE_FOR_MISCELLANEOUS_EXPENSE = FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE_EDEFAULT;
512
513 /**
514 * The default value of the '{@link #getDISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE() <em>DISABILITY FLAT RATE FOR MISCELLANEOUS EXPENSE</em>}' attribute.
515 * <!-- begin-user-doc -->
516 * <!-- end-user-doc -->
517 * @see #getDISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE()
518 * @generated
519 * @ordered
520 */
521 protected static final double DISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE_EDEFAULT = 0.0;
522
523 /**
524 * The cached value of the '{@link #getDISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE() <em>DISABILITY FLAT RATE FOR MISCELLANEOUS EXPENSE</em>}' attribute.
525 * <!-- begin-user-doc -->
526 * <!-- end-user-doc -->
527 * @see #getDISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE()
528 * @generated
529 * @ordered
530 */
531 protected double disabilitY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE = DISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE_EDEFAULT;
532
533 /**
534 * The default value of the '{@link #getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE() <em>MAXIMUM DEDUCTIBLE AMOUNT FOR ADDITIONAL PENSION AND INSURANCE</em>}' attribute.
535 * <!-- begin-user-doc -->
536 * <!-- end-user-doc -->
537 * @see #getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE()
538 * @generated
539 * @ordered
540 */
541 protected static final double MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE_EDEFAULT = 0.0;
542
543 /**
544 * The cached value of the '{@link #getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE() <em>MAXIMUM DEDUCTIBLE AMOUNT FOR ADDITIONAL PENSION AND INSURANCE</em>}' attribute.
545 * <!-- begin-user-doc -->
546 * <!-- end-user-doc -->
547 * @see #getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE()
548 * @generated
549 * @ordered
550 */
551 protected double maximuM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE = MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE_EDEFAULT;
552
553 /**
554 * <!-- begin-user-doc -->
555 * <!-- end-user-doc -->
556 * @generated
557 */
558 protected ConstantsImpl() {
559 super();
560 }
561
562 /**
563 * <!-- begin-user-doc -->
564 * <!-- end-user-doc -->
565 * @generated
566 */
567 @Override
568 protected EClass eStaticClass() {
569 return TaxationWithRootPackage.Literals.CONSTANTS;
570 }
571
572 /**
573 * <!-- begin-user-doc -->
574 * <!-- end-user-doc -->
575 * @generated
576 */
577 @Override
578 public double getMAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD() {
579 return maximuM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD;
580 }
581
582 /**
583 * <!-- begin-user-doc -->
584 * <!-- end-user-doc -->
585 * @generated
586 */
587 @Override
588 public void setMAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD(double newMAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD) {
589 double oldMAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD = maximuM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD;
590 maximuM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD = newMAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD;
591 if (eNotificationRequired())
592 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__MAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD, oldMAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD, maximuM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD));
593 }
594
595 /**
596 * <!-- begin-user-doc -->
597 * <!-- end-user-doc -->
598 * @generated
599 */
600 @Override
601 public double getMAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE() {
602 return maximuM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE;
603 }
604
605 /**
606 * <!-- begin-user-doc -->
607 * <!-- end-user-doc -->
608 * @generated
609 */
610 @Override
611 public void setMAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE(double newMAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE) {
612 double oldMAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE = maximuM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE;
613 maximuM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE = newMAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE;
614 if (eNotificationRequired())
615 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__MAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE, oldMAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE, maximuM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE));
616 }
617
618 /**
619 * <!-- begin-user-doc -->
620 * <!-- end-user-doc -->
621 * @generated
622 */
623 @Override
624 public double getMINIMUM_SALARY() {
625 return minimuM_SALARY;
626 }
627
628 /**
629 * <!-- begin-user-doc -->
630 * <!-- end-user-doc -->
631 * @generated
632 */
633 @Override
634 public void setMINIMUM_SALARY(double newMINIMUM_SALARY) {
635 double oldMINIMUM_SALARY = minimuM_SALARY;
636 minimuM_SALARY = newMINIMUM_SALARY;
637 if (eNotificationRequired())
638 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__MINIMUM_SALARY, oldMINIMUM_SALARY, minimuM_SALARY));
639 }
640
641 /**
642 * <!-- begin-user-doc -->
643 * <!-- end-user-doc -->
644 * @generated
645 */
646 @Override
647 public double getFLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION() {
648 return flaT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION;
649 }
650
651 /**
652 * <!-- begin-user-doc -->
653 * <!-- end-user-doc -->
654 * @generated
655 */
656 @Override
657 public void setFLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION(double newFLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION) {
658 double oldFLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION = flaT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION;
659 flaT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION = newFLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION;
660 if (eNotificationRequired())
661 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__FLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION, oldFLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION, flaT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION));
662 }
663
664 /**
665 * <!-- begin-user-doc -->
666 * <!-- end-user-doc -->
667 * @generated
668 */
669 @Override
670 public double getMAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS() {
671 return maximuM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS;
672 }
673
674 /**
675 * <!-- begin-user-doc -->
676 * <!-- end-user-doc -->
677 * @generated
678 */
679 @Override
680 public void setMAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS(double newMAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS) {
681 double oldMAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS = maximuM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS;
682 maximuM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS = newMAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS;
683 if (eNotificationRequired())
684 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS, oldMAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS, maximuM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS));
685 }
686
687 /**
688 * <!-- begin-user-doc -->
689 * <!-- end-user-doc -->
690 * @generated
691 */
692 @Override
693 public double getMINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS() {
694 return minimuM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS;
695 }
696
697 /**
698 * <!-- begin-user-doc -->
699 * <!-- end-user-doc -->
700 * @generated
701 */
702 @Override
703 public void setMINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS(double newMINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS) {
704 double oldMINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS = minimuM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS;
705 minimuM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS = newMINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS;
706 if (eNotificationRequired())
707 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS, oldMINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS, minimuM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS));
708 }
709
710 /**
711 * <!-- begin-user-doc -->
712 * <!-- end-user-doc -->
713 * @generated
714 */
715 @Override
716 public double getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC() {
717 return maximuM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC;
718 }
719
720 /**
721 * <!-- begin-user-doc -->
722 * <!-- end-user-doc -->
723 * @generated
724 */
725 @Override
726 public void setMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC(double newMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC) {
727 double oldMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC = maximuM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC;
728 maximuM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC = newMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC;
729 if (eNotificationRequired())
730 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC, oldMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC, maximuM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC));
731 }
732
733 /**
734 * <!-- begin-user-doc -->
735 * <!-- end-user-doc -->
736 * @generated
737 */
738 @Override
739 public double getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE() {
740 return maximuM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE;
741 }
742
743 /**
744 * <!-- begin-user-doc -->
745 * <!-- end-user-doc -->
746 * @generated
747 */
748 @Override
749 public void setMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE(double newMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE) {
750 double oldMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE = maximuM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE;
751 maximuM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE = newMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE;
752 if (eNotificationRequired())
753 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE, oldMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE, maximuM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE));
754 }
755
756 /**
757 * <!-- begin-user-doc -->
758 * <!-- end-user-doc -->
759 * @generated
760 */
761 @Override
762 public double getMAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION() {
763 return maximaL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION;
764 }
765
766 /**
767 * <!-- begin-user-doc -->
768 * <!-- end-user-doc -->
769 * @generated
770 */
771 @Override
772 public void setMAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION(double newMAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION) {
773 double oldMAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION = maximaL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION;
774 maximaL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION = newMAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION;
775 if (eNotificationRequired())
776 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION, oldMAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION, maximaL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION));
777 }
778
779 /**
780 * <!-- begin-user-doc -->
781 * <!-- end-user-doc -->
782 * @generated
783 */
784 @Override
785 public double getMAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION() {
786 return maximaL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION;
787 }
788
789 /**
790 * <!-- begin-user-doc -->
791 * <!-- end-user-doc -->
792 * @generated
793 */
794 @Override
795 public void setMAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION(double newMAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION) {
796 double oldMAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION = maximaL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION;
797 maximaL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION = newMAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION;
798 if (eNotificationRequired())
799 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__MAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION, oldMAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION, maximaL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION));
800 }
801
802 /**
803 * <!-- begin-user-doc -->
804 * <!-- end-user-doc -->
805 * @generated
806 */
807 @Override
808 public double getMINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION() {
809 return minimaL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION;
810 }
811
812 /**
813 * <!-- begin-user-doc -->
814 * <!-- end-user-doc -->
815 * @generated
816 */
817 @Override
818 public void setMINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION(double newMINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION) {
819 double oldMINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION = minimaL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION;
820 minimaL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION = newMINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION;
821 if (eNotificationRequired())
822 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__MINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION, oldMINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION, minimaL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION));
823 }
824
825 /**
826 * <!-- begin-user-doc -->
827 * <!-- end-user-doc -->
828 * @generated
829 */
830 @Override
831 public double getFLAT_RATE_CIM_DAILY() {
832 return flaT_RATE_CIM_DAILY;
833 }
834
835 /**
836 * <!-- begin-user-doc -->
837 * <!-- end-user-doc -->
838 * @generated
839 */
840 @Override
841 public void setFLAT_RATE_CIM_DAILY(double newFLAT_RATE_CIM_DAILY) {
842 double oldFLAT_RATE_CIM_DAILY = flaT_RATE_CIM_DAILY;
843 flaT_RATE_CIM_DAILY = newFLAT_RATE_CIM_DAILY;
844 if (eNotificationRequired())
845 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIM_DAILY, oldFLAT_RATE_CIM_DAILY, flaT_RATE_CIM_DAILY));
846 }
847
848 /**
849 * <!-- begin-user-doc -->
850 * <!-- end-user-doc -->
851 * @generated
852 */
853 @Override
854 public double getFLAT_RATE_CIM_MONTHLY() {
855 return flaT_RATE_CIM_MONTHLY;
856 }
857
858 /**
859 * <!-- begin-user-doc -->
860 * <!-- end-user-doc -->
861 * @generated
862 */
863 @Override
864 public void setFLAT_RATE_CIM_MONTHLY(double newFLAT_RATE_CIM_MONTHLY) {
865 double oldFLAT_RATE_CIM_MONTHLY = flaT_RATE_CIM_MONTHLY;
866 flaT_RATE_CIM_MONTHLY = newFLAT_RATE_CIM_MONTHLY;
867 if (eNotificationRequired())
868 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIM_MONTHLY, oldFLAT_RATE_CIM_MONTHLY, flaT_RATE_CIM_MONTHLY));
869 }
870
871 /**
872 * <!-- begin-user-doc -->
873 * <!-- end-user-doc -->
874 * @generated
875 */
876 @Override
877 public double getFLAT_RATE_CIM_YEARLY() {
878 return flaT_RATE_CIM_YEARLY;
879 }
880
881 /**
882 * <!-- begin-user-doc -->
883 * <!-- end-user-doc -->
884 * @generated
885 */
886 @Override
887 public void setFLAT_RATE_CIM_YEARLY(double newFLAT_RATE_CIM_YEARLY) {
888 double oldFLAT_RATE_CIM_YEARLY = flaT_RATE_CIM_YEARLY;
889 flaT_RATE_CIM_YEARLY = newFLAT_RATE_CIM_YEARLY;
890 if (eNotificationRequired())
891 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIM_YEARLY, oldFLAT_RATE_CIM_YEARLY, flaT_RATE_CIM_YEARLY));
892 }
893
894 /**
895 * <!-- begin-user-doc -->
896 * <!-- end-user-doc -->
897 * @generated
898 */
899 @Override
900 public double getFLAT_RATE_CIP_DAILY() {
901 return flaT_RATE_CIP_DAILY;
902 }
903
904 /**
905 * <!-- begin-user-doc -->
906 * <!-- end-user-doc -->
907 * @generated
908 */
909 @Override
910 public void setFLAT_RATE_CIP_DAILY(double newFLAT_RATE_CIP_DAILY) {
911 double oldFLAT_RATE_CIP_DAILY = flaT_RATE_CIP_DAILY;
912 flaT_RATE_CIP_DAILY = newFLAT_RATE_CIP_DAILY;
913 if (eNotificationRequired())
914 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIP_DAILY, oldFLAT_RATE_CIP_DAILY, flaT_RATE_CIP_DAILY));
915 }
916
917 /**
918 * <!-- begin-user-doc -->
919 * <!-- end-user-doc -->
920 * @generated
921 */
922 @Override
923 public double getFLAT_RATE_CIP_MONTHLY() {
924 return flaT_RATE_CIP_MONTHLY;
925 }
926
927 /**
928 * <!-- begin-user-doc -->
929 * <!-- end-user-doc -->
930 * @generated
931 */
932 @Override
933 public void setFLAT_RATE_CIP_MONTHLY(double newFLAT_RATE_CIP_MONTHLY) {
934 double oldFLAT_RATE_CIP_MONTHLY = flaT_RATE_CIP_MONTHLY;
935 flaT_RATE_CIP_MONTHLY = newFLAT_RATE_CIP_MONTHLY;
936 if (eNotificationRequired())
937 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIP_MONTHLY, oldFLAT_RATE_CIP_MONTHLY, flaT_RATE_CIP_MONTHLY));
938 }
939
940 /**
941 * <!-- begin-user-doc -->
942 * <!-- end-user-doc -->
943 * @generated
944 */
945 @Override
946 public double getFLAT_RATE_CIP_YEARLY() {
947 return flaT_RATE_CIP_YEARLY;
948 }
949
950 /**
951 * <!-- begin-user-doc -->
952 * <!-- end-user-doc -->
953 * @generated
954 */
955 @Override
956 public void setFLAT_RATE_CIP_YEARLY(double newFLAT_RATE_CIP_YEARLY) {
957 double oldFLAT_RATE_CIP_YEARLY = flaT_RATE_CIP_YEARLY;
958 flaT_RATE_CIP_YEARLY = newFLAT_RATE_CIP_YEARLY;
959 if (eNotificationRequired())
960 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIP_YEARLY, oldFLAT_RATE_CIP_YEARLY, flaT_RATE_CIP_YEARLY));
961 }
962
963 /**
964 * <!-- begin-user-doc -->
965 * <!-- end-user-doc -->
966 * @generated
967 */
968 @Override
969 public double getFLAT_RATE_CIS_DAILY() {
970 return flaT_RATE_CIS_DAILY;
971 }
972
973 /**
974 * <!-- begin-user-doc -->
975 * <!-- end-user-doc -->
976 * @generated
977 */
978 @Override
979 public void setFLAT_RATE_CIS_DAILY(double newFLAT_RATE_CIS_DAILY) {
980 double oldFLAT_RATE_CIS_DAILY = flaT_RATE_CIS_DAILY;
981 flaT_RATE_CIS_DAILY = newFLAT_RATE_CIS_DAILY;
982 if (eNotificationRequired())
983 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIS_DAILY, oldFLAT_RATE_CIS_DAILY, flaT_RATE_CIS_DAILY));
984 }
985
986 /**
987 * <!-- begin-user-doc -->
988 * <!-- end-user-doc -->
989 * @generated
990 */
991 @Override
992 public double getFLAT_RATE_CIS_MONTHLY() {
993 return flaT_RATE_CIS_MONTHLY;
994 }
995
996 /**
997 * <!-- begin-user-doc -->
998 * <!-- end-user-doc -->
999 * @generated
1000 */
1001 @Override
1002 public void setFLAT_RATE_CIS_MONTHLY(double newFLAT_RATE_CIS_MONTHLY) {
1003 double oldFLAT_RATE_CIS_MONTHLY = flaT_RATE_CIS_MONTHLY;
1004 flaT_RATE_CIS_MONTHLY = newFLAT_RATE_CIS_MONTHLY;
1005 if (eNotificationRequired())
1006 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIS_MONTHLY, oldFLAT_RATE_CIS_MONTHLY, flaT_RATE_CIS_MONTHLY));
1007 }
1008
1009 /**
1010 * <!-- begin-user-doc -->
1011 * <!-- end-user-doc -->
1012 * @generated
1013 */
1014 @Override
1015 public double getFLAT_RATE_CIS_YEARLY() {
1016 return flaT_RATE_CIS_YEARLY;
1017 }
1018
1019 /**
1020 * <!-- begin-user-doc -->
1021 * <!-- end-user-doc -->
1022 * @generated
1023 */
1024 @Override
1025 public void setFLAT_RATE_CIS_YEARLY(double newFLAT_RATE_CIS_YEARLY) {
1026 double oldFLAT_RATE_CIS_YEARLY = flaT_RATE_CIS_YEARLY;
1027 flaT_RATE_CIS_YEARLY = newFLAT_RATE_CIS_YEARLY;
1028 if (eNotificationRequired())
1029 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIS_YEARLY, oldFLAT_RATE_CIS_YEARLY, flaT_RATE_CIS_YEARLY));
1030 }
1031
1032 /**
1033 * <!-- begin-user-doc -->
1034 * <!-- end-user-doc -->
1035 * @generated
1036 */
1037 @Override
1038 public double getFLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT() {
1039 return flaT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT;
1040 }
1041
1042 /**
1043 * <!-- begin-user-doc -->
1044 * <!-- end-user-doc -->
1045 * @generated
1046 */
1047 @Override
1048 public void setFLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT(double newFLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT) {
1049 double oldFLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT = flaT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT;
1050 flaT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT = newFLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT;
1051 if (eNotificationRequired())
1052 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__FLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT, oldFLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT, flaT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT));
1053 }
1054
1055 /**
1056 * <!-- begin-user-doc -->
1057 * <!-- end-user-doc -->
1058 * @generated
1059 */
1060 @Override
1061 public double getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS() {
1062 return maximuM_DEDUCTIBLE_AMOUNT_FOR_DS;
1063 }
1064
1065 /**
1066 * <!-- begin-user-doc -->
1067 * <!-- end-user-doc -->
1068 * @generated
1069 */
1070 @Override
1071 public void setMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS(double newMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS) {
1072 double oldMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS = maximuM_DEDUCTIBLE_AMOUNT_FOR_DS;
1073 maximuM_DEDUCTIBLE_AMOUNT_FOR_DS = newMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS;
1074 if (eNotificationRequired())
1075 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS, oldMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS, maximuM_DEDUCTIBLE_AMOUNT_FOR_DS));
1076 }
1077
1078 /**
1079 * <!-- begin-user-doc -->
1080 * <!-- end-user-doc -->
1081 * @generated
1082 */
1083 @Override
1084 public double getFLAT_RATE_FOR_MISCELLANEOUS_EXPENSE() {
1085 return flaT_RATE_FOR_MISCELLANEOUS_EXPENSE;
1086 }
1087
1088 /**
1089 * <!-- begin-user-doc -->
1090 * <!-- end-user-doc -->
1091 * @generated
1092 */
1093 @Override
1094 public void setFLAT_RATE_FOR_MISCELLANEOUS_EXPENSE(double newFLAT_RATE_FOR_MISCELLANEOUS_EXPENSE) {
1095 double oldFLAT_RATE_FOR_MISCELLANEOUS_EXPENSE = flaT_RATE_FOR_MISCELLANEOUS_EXPENSE;
1096 flaT_RATE_FOR_MISCELLANEOUS_EXPENSE = newFLAT_RATE_FOR_MISCELLANEOUS_EXPENSE;
1097 if (eNotificationRequired())
1098 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE, oldFLAT_RATE_FOR_MISCELLANEOUS_EXPENSE, flaT_RATE_FOR_MISCELLANEOUS_EXPENSE));
1099 }
1100
1101 /**
1102 * <!-- begin-user-doc -->
1103 * <!-- end-user-doc -->
1104 * @generated
1105 */
1106 @Override
1107 public double getDISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE() {
1108 return disabilitY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE;
1109 }
1110
1111 /**
1112 * <!-- begin-user-doc -->
1113 * <!-- end-user-doc -->
1114 * @generated
1115 */
1116 @Override
1117 public void setDISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE(double newDISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE) {
1118 double oldDISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE = disabilitY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE;
1119 disabilitY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE = newDISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE;
1120 if (eNotificationRequired())
1121 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__DISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE, oldDISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE, disabilitY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE));
1122 }
1123
1124 /**
1125 * <!-- begin-user-doc -->
1126 * <!-- end-user-doc -->
1127 * @generated
1128 */
1129 @Override
1130 public double getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE() {
1131 return maximuM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE;
1132 }
1133
1134 /**
1135 * <!-- begin-user-doc -->
1136 * <!-- end-user-doc -->
1137 * @generated
1138 */
1139 @Override
1140 public void setMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE(double newMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE) {
1141 double oldMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE = maximuM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE;
1142 maximuM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE = newMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE;
1143 if (eNotificationRequired())
1144 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE, oldMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE, maximuM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE));
1145 }
1146
1147 /**
1148 * <!-- begin-user-doc -->
1149 * <!-- end-user-doc -->
1150 * @generated
1151 */
1152 @Override
1153 public Object eGet(int featureID, boolean resolve, boolean coreType) {
1154 switch (featureID) {
1155 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD:
1156 return getMAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD();
1157 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE:
1158 return getMAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE();
1159 case TaxationWithRootPackage.CONSTANTS__MINIMUM_SALARY:
1160 return getMINIMUM_SALARY();
1161 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION:
1162 return getFLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION();
1163 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS:
1164 return getMAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS();
1165 case TaxationWithRootPackage.CONSTANTS__MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS:
1166 return getMINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS();
1167 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC:
1168 return getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC();
1169 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE:
1170 return getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE();
1171 case TaxationWithRootPackage.CONSTANTS__MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION:
1172 return getMAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION();
1173 case TaxationWithRootPackage.CONSTANTS__MAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION:
1174 return getMAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION();
1175 case TaxationWithRootPackage.CONSTANTS__MINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION:
1176 return getMINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION();
1177 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIM_DAILY:
1178 return getFLAT_RATE_CIM_DAILY();
1179 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIM_MONTHLY:
1180 return getFLAT_RATE_CIM_MONTHLY();
1181 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIM_YEARLY:
1182 return getFLAT_RATE_CIM_YEARLY();
1183 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIP_DAILY:
1184 return getFLAT_RATE_CIP_DAILY();
1185 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIP_MONTHLY:
1186 return getFLAT_RATE_CIP_MONTHLY();
1187 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIP_YEARLY:
1188 return getFLAT_RATE_CIP_YEARLY();
1189 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIS_DAILY:
1190 return getFLAT_RATE_CIS_DAILY();
1191 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIS_MONTHLY:
1192 return getFLAT_RATE_CIS_MONTHLY();
1193 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIS_YEARLY:
1194 return getFLAT_RATE_CIS_YEARLY();
1195 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT:
1196 return getFLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT();
1197 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS:
1198 return getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS();
1199 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE:
1200 return getFLAT_RATE_FOR_MISCELLANEOUS_EXPENSE();
1201 case TaxationWithRootPackage.CONSTANTS__DISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE:
1202 return getDISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE();
1203 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE:
1204 return getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE();
1205 }
1206 return super.eGet(featureID, resolve, coreType);
1207 }
1208
1209 /**
1210 * <!-- begin-user-doc -->
1211 * <!-- end-user-doc -->
1212 * @generated
1213 */
1214 @Override
1215 public void eSet(int featureID, Object newValue) {
1216 switch (featureID) {
1217 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD:
1218 setMAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD((Double)newValue);
1219 return;
1220 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE:
1221 setMAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE((Double)newValue);
1222 return;
1223 case TaxationWithRootPackage.CONSTANTS__MINIMUM_SALARY:
1224 setMINIMUM_SALARY((Double)newValue);
1225 return;
1226 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION:
1227 setFLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION((Double)newValue);
1228 return;
1229 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS:
1230 setMAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS((Double)newValue);
1231 return;
1232 case TaxationWithRootPackage.CONSTANTS__MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS:
1233 setMINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS((Double)newValue);
1234 return;
1235 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC:
1236 setMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC((Double)newValue);
1237 return;
1238 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE:
1239 setMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE((Double)newValue);
1240 return;
1241 case TaxationWithRootPackage.CONSTANTS__MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION:
1242 setMAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION((Double)newValue);
1243 return;
1244 case TaxationWithRootPackage.CONSTANTS__MAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION:
1245 setMAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION((Double)newValue);
1246 return;
1247 case TaxationWithRootPackage.CONSTANTS__MINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION:
1248 setMINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION((Double)newValue);
1249 return;
1250 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIM_DAILY:
1251 setFLAT_RATE_CIM_DAILY((Double)newValue);
1252 return;
1253 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIM_MONTHLY:
1254 setFLAT_RATE_CIM_MONTHLY((Double)newValue);
1255 return;
1256 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIM_YEARLY:
1257 setFLAT_RATE_CIM_YEARLY((Double)newValue);
1258 return;
1259 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIP_DAILY:
1260 setFLAT_RATE_CIP_DAILY((Double)newValue);
1261 return;
1262 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIP_MONTHLY:
1263 setFLAT_RATE_CIP_MONTHLY((Double)newValue);
1264 return;
1265 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIP_YEARLY:
1266 setFLAT_RATE_CIP_YEARLY((Double)newValue);
1267 return;
1268 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIS_DAILY:
1269 setFLAT_RATE_CIS_DAILY((Double)newValue);
1270 return;
1271 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIS_MONTHLY:
1272 setFLAT_RATE_CIS_MONTHLY((Double)newValue);
1273 return;
1274 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIS_YEARLY:
1275 setFLAT_RATE_CIS_YEARLY((Double)newValue);
1276 return;
1277 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT:
1278 setFLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT((Double)newValue);
1279 return;
1280 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS:
1281 setMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS((Double)newValue);
1282 return;
1283 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE:
1284 setFLAT_RATE_FOR_MISCELLANEOUS_EXPENSE((Double)newValue);
1285 return;
1286 case TaxationWithRootPackage.CONSTANTS__DISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE:
1287 setDISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE((Double)newValue);
1288 return;
1289 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE:
1290 setMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE((Double)newValue);
1291 return;
1292 }
1293 super.eSet(featureID, newValue);
1294 }
1295
1296 /**
1297 * <!-- begin-user-doc -->
1298 * <!-- end-user-doc -->
1299 * @generated
1300 */
1301 @Override
1302 public void eUnset(int featureID) {
1303 switch (featureID) {
1304 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD:
1305 setMAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD(MAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD_EDEFAULT);
1306 return;
1307 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE:
1308 setMAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE(MAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE_EDEFAULT);
1309 return;
1310 case TaxationWithRootPackage.CONSTANTS__MINIMUM_SALARY:
1311 setMINIMUM_SALARY(MINIMUM_SALARY_EDEFAULT);
1312 return;
1313 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION:
1314 setFLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION(FLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION_EDEFAULT);
1315 return;
1316 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS:
1317 setMAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS(MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS_EDEFAULT);
1318 return;
1319 case TaxationWithRootPackage.CONSTANTS__MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS:
1320 setMINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS(MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS_EDEFAULT);
1321 return;
1322 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC:
1323 setMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC(MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC_EDEFAULT);
1324 return;
1325 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE:
1326 setMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE(MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE_EDEFAULT);
1327 return;
1328 case TaxationWithRootPackage.CONSTANTS__MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION:
1329 setMAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION(MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION_EDEFAULT);
1330 return;
1331 case TaxationWithRootPackage.CONSTANTS__MAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION:
1332 setMAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION(MAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION_EDEFAULT);
1333 return;
1334 case TaxationWithRootPackage.CONSTANTS__MINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION:
1335 setMINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION(MINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION_EDEFAULT);
1336 return;
1337 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIM_DAILY:
1338 setFLAT_RATE_CIM_DAILY(FLAT_RATE_CIM_DAILY_EDEFAULT);
1339 return;
1340 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIM_MONTHLY:
1341 setFLAT_RATE_CIM_MONTHLY(FLAT_RATE_CIM_MONTHLY_EDEFAULT);
1342 return;
1343 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIM_YEARLY:
1344 setFLAT_RATE_CIM_YEARLY(FLAT_RATE_CIM_YEARLY_EDEFAULT);
1345 return;
1346 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIP_DAILY:
1347 setFLAT_RATE_CIP_DAILY(FLAT_RATE_CIP_DAILY_EDEFAULT);
1348 return;
1349 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIP_MONTHLY:
1350 setFLAT_RATE_CIP_MONTHLY(FLAT_RATE_CIP_MONTHLY_EDEFAULT);
1351 return;
1352 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIP_YEARLY:
1353 setFLAT_RATE_CIP_YEARLY(FLAT_RATE_CIP_YEARLY_EDEFAULT);
1354 return;
1355 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIS_DAILY:
1356 setFLAT_RATE_CIS_DAILY(FLAT_RATE_CIS_DAILY_EDEFAULT);
1357 return;
1358 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIS_MONTHLY:
1359 setFLAT_RATE_CIS_MONTHLY(FLAT_RATE_CIS_MONTHLY_EDEFAULT);
1360 return;
1361 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIS_YEARLY:
1362 setFLAT_RATE_CIS_YEARLY(FLAT_RATE_CIS_YEARLY_EDEFAULT);
1363 return;
1364 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT:
1365 setFLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT(FLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT_EDEFAULT);
1366 return;
1367 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS:
1368 setMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS(MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS_EDEFAULT);
1369 return;
1370 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE:
1371 setFLAT_RATE_FOR_MISCELLANEOUS_EXPENSE(FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE_EDEFAULT);
1372 return;
1373 case TaxationWithRootPackage.CONSTANTS__DISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE:
1374 setDISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE(DISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE_EDEFAULT);
1375 return;
1376 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE:
1377 setMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE(MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE_EDEFAULT);
1378 return;
1379 }
1380 super.eUnset(featureID);
1381 }
1382
1383 /**
1384 * <!-- begin-user-doc -->
1385 * <!-- end-user-doc -->
1386 * @generated
1387 */
1388 @Override
1389 public boolean eIsSet(int featureID) {
1390 switch (featureID) {
1391 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD:
1392 return maximuM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD != MAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD_EDEFAULT;
1393 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE:
1394 return maximuM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE != MAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE_EDEFAULT;
1395 case TaxationWithRootPackage.CONSTANTS__MINIMUM_SALARY:
1396 return minimuM_SALARY != MINIMUM_SALARY_EDEFAULT;
1397 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION:
1398 return flaT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION != FLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION_EDEFAULT;
1399 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS:
1400 return maximuM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS != MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS_EDEFAULT;
1401 case TaxationWithRootPackage.CONSTANTS__MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS:
1402 return minimuM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS != MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS_EDEFAULT;
1403 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC:
1404 return maximuM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC != MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC_EDEFAULT;
1405 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE:
1406 return maximuM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE != MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE_EDEFAULT;
1407 case TaxationWithRootPackage.CONSTANTS__MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION:
1408 return maximaL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION != MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION_EDEFAULT;
1409 case TaxationWithRootPackage.CONSTANTS__MAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION:
1410 return maximaL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION != MAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION_EDEFAULT;
1411 case TaxationWithRootPackage.CONSTANTS__MINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION:
1412 return minimaL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION != MINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION_EDEFAULT;
1413 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIM_DAILY:
1414 return flaT_RATE_CIM_DAILY != FLAT_RATE_CIM_DAILY_EDEFAULT;
1415 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIM_MONTHLY:
1416 return flaT_RATE_CIM_MONTHLY != FLAT_RATE_CIM_MONTHLY_EDEFAULT;
1417 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIM_YEARLY:
1418 return flaT_RATE_CIM_YEARLY != FLAT_RATE_CIM_YEARLY_EDEFAULT;
1419 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIP_DAILY:
1420 return flaT_RATE_CIP_DAILY != FLAT_RATE_CIP_DAILY_EDEFAULT;
1421 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIP_MONTHLY:
1422 return flaT_RATE_CIP_MONTHLY != FLAT_RATE_CIP_MONTHLY_EDEFAULT;
1423 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIP_YEARLY:
1424 return flaT_RATE_CIP_YEARLY != FLAT_RATE_CIP_YEARLY_EDEFAULT;
1425 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIS_DAILY:
1426 return flaT_RATE_CIS_DAILY != FLAT_RATE_CIS_DAILY_EDEFAULT;
1427 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIS_MONTHLY:
1428 return flaT_RATE_CIS_MONTHLY != FLAT_RATE_CIS_MONTHLY_EDEFAULT;
1429 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_CIS_YEARLY:
1430 return flaT_RATE_CIS_YEARLY != FLAT_RATE_CIS_YEARLY_EDEFAULT;
1431 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT:
1432 return flaT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT != FLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT_EDEFAULT;
1433 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS:
1434 return maximuM_DEDUCTIBLE_AMOUNT_FOR_DS != MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS_EDEFAULT;
1435 case TaxationWithRootPackage.CONSTANTS__FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE:
1436 return flaT_RATE_FOR_MISCELLANEOUS_EXPENSE != FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE_EDEFAULT;
1437 case TaxationWithRootPackage.CONSTANTS__DISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE:
1438 return disabilitY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE != DISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE_EDEFAULT;
1439 case TaxationWithRootPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE:
1440 return maximuM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE != MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE_EDEFAULT;
1441 }
1442 return super.eIsSet(featureID);
1443 }
1444
1445 /**
1446 * <!-- begin-user-doc -->
1447 * <!-- end-user-doc -->
1448 * @generated
1449 */
1450 @Override
1451 public String toString() {
1452 if (eIsProxy()) return super.toString();
1453
1454 StringBuilder result = new StringBuilder(super.toString());
1455 result.append(" (MAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD: ");
1456 result.append(maximuM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD);
1457 result.append(", MAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE: ");
1458 result.append(maximuM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE);
1459 result.append(", MINIMUM_SALARY: ");
1460 result.append(minimuM_SALARY);
1461 result.append(", FLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION: ");
1462 result.append(flaT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION);
1463 result.append(", MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS: ");
1464 result.append(maximuM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS);
1465 result.append(", MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS: ");
1466 result.append(minimuM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS);
1467 result.append(", MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC: ");
1468 result.append(maximuM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC);
1469 result.append(", MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE: ");
1470 result.append(maximuM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE);
1471 result.append(", MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION: ");
1472 result.append(maximaL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION);
1473 result.append(", MAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION: ");
1474 result.append(maximaL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION);
1475 result.append(", MINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION: ");
1476 result.append(minimaL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION);
1477 result.append(", FLAT_RATE_CIM_DAILY: ");
1478 result.append(flaT_RATE_CIM_DAILY);
1479 result.append(", FLAT_RATE_CIM_MONTHLY: ");
1480 result.append(flaT_RATE_CIM_MONTHLY);
1481 result.append(", FLAT_RATE_CIM_YEARLY: ");
1482 result.append(flaT_RATE_CIM_YEARLY);
1483 result.append(", FLAT_RATE_CIP_DAILY: ");
1484 result.append(flaT_RATE_CIP_DAILY);
1485 result.append(", FLAT_RATE_CIP_MONTHLY: ");
1486 result.append(flaT_RATE_CIP_MONTHLY);
1487 result.append(", FLAT_RATE_CIP_YEARLY: ");
1488 result.append(flaT_RATE_CIP_YEARLY);
1489 result.append(", FLAT_RATE_CIS_DAILY: ");
1490 result.append(flaT_RATE_CIS_DAILY);
1491 result.append(", FLAT_RATE_CIS_MONTHLY: ");
1492 result.append(flaT_RATE_CIS_MONTHLY);
1493 result.append(", FLAT_RATE_CIS_YEARLY: ");
1494 result.append(flaT_RATE_CIS_YEARLY);
1495 result.append(", FLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT: ");
1496 result.append(flaT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT);
1497 result.append(", MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS: ");
1498 result.append(maximuM_DEDUCTIBLE_AMOUNT_FOR_DS);
1499 result.append(", FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE: ");
1500 result.append(flaT_RATE_FOR_MISCELLANEOUS_EXPENSE);
1501 result.append(", DISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE: ");
1502 result.append(disabilitY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE);
1503 result.append(", MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE: ");
1504 result.append(maximuM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE);
1505 result.append(')');
1506 return result.toString();
1507 }
1508
1509} //ConstantsImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/DependentImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/DependentImpl.java
new file mode 100644
index 00000000..f6111014
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/DependentImpl.java
@@ -0,0 +1,599 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Dependent;
6import TaxationWithRoot.Dependent_Type;
7import TaxationWithRoot.Expense;
8import TaxationWithRoot.External_Allowance;
9import TaxationWithRoot.FromAgent;
10import TaxationWithRoot.Household;
11import TaxationWithRoot.Tax_Payer;
12import TaxationWithRoot.TaxationWithRootPackage;
13
14import java.util.Collection;
15
16import org.eclipse.emf.common.notify.Notification;
17import org.eclipse.emf.common.notify.NotificationChain;
18
19import org.eclipse.emf.common.util.EList;
20
21import org.eclipse.emf.ecore.EClass;
22import org.eclipse.emf.ecore.InternalEObject;
23
24import org.eclipse.emf.ecore.impl.ENotificationImpl;
25
26import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList;
27import org.eclipse.emf.ecore.util.EcoreUtil;
28import org.eclipse.emf.ecore.util.InternalEList;
29
30/**
31 * <!-- begin-user-doc -->
32 * An implementation of the model object '<em><b>Dependent</b></em>'.
33 * <!-- end-user-doc -->
34 * <p>
35 * The following features are implemented:
36 * </p>
37 * <ul>
38 * <li>{@link TaxationWithRoot.impl.DependentImpl#getDependent_type <em>Dependent type</em>}</li>
39 * <li>{@link TaxationWithRoot.impl.DependentImpl#getResponsible_person <em>Responsible person</em>}</li>
40 * <li>{@link TaxationWithRoot.impl.DependentImpl#isContinued_studies <em>Continued studies</em>}</li>
41 * <li>{@link TaxationWithRoot.impl.DependentImpl#getAllowances <em>Allowances</em>}</li>
42 * <li>{@link TaxationWithRoot.impl.DependentImpl#getHousehold <em>Household</em>}</li>
43 * <li>{@link TaxationWithRoot.impl.DependentImpl#getFrom_agent <em>From agent</em>}</li>
44 * <li>{@link TaxationWithRoot.impl.DependentImpl#getExpense <em>Expense</em>}</li>
45 * </ul>
46 *
47 * @generated
48 */
49public class DependentImpl extends Physical_PersonImpl implements Dependent {
50 /**
51 * The default value of the '{@link #getDependent_type() <em>Dependent type</em>}' attribute.
52 * <!-- begin-user-doc -->
53 * <!-- end-user-doc -->
54 * @see #getDependent_type()
55 * @generated
56 * @ordered
57 */
58 protected static final Dependent_Type DEPENDENT_TYPE_EDEFAULT = Dependent_Type.CHILD;
59
60 /**
61 * The cached value of the '{@link #getDependent_type() <em>Dependent type</em>}' attribute.
62 * <!-- begin-user-doc -->
63 * <!-- end-user-doc -->
64 * @see #getDependent_type()
65 * @generated
66 * @ordered
67 */
68 protected Dependent_Type dependent_type = DEPENDENT_TYPE_EDEFAULT;
69
70 /**
71 * The default value of the '{@link #isContinued_studies() <em>Continued studies</em>}' attribute.
72 * <!-- begin-user-doc -->
73 * <!-- end-user-doc -->
74 * @see #isContinued_studies()
75 * @generated
76 * @ordered
77 */
78 protected static final boolean CONTINUED_STUDIES_EDEFAULT = false;
79
80 /**
81 * The cached value of the '{@link #isContinued_studies() <em>Continued studies</em>}' attribute.
82 * <!-- begin-user-doc -->
83 * <!-- end-user-doc -->
84 * @see #isContinued_studies()
85 * @generated
86 * @ordered
87 */
88 protected boolean continued_studies = CONTINUED_STUDIES_EDEFAULT;
89
90 /**
91 * The cached value of the '{@link #getAllowances() <em>Allowances</em>}' containment reference.
92 * <!-- begin-user-doc -->
93 * <!-- end-user-doc -->
94 * @see #getAllowances()
95 * @generated
96 * @ordered
97 */
98 protected External_Allowance allowances;
99
100 /**
101 * The cached value of the '{@link #getFrom_agent() <em>From agent</em>}' reference.
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @see #getFrom_agent()
105 * @generated
106 * @ordered
107 */
108 protected FromAgent from_agent;
109
110 /**
111 * The cached value of the '{@link #getExpense() <em>Expense</em>}' reference list.
112 * <!-- begin-user-doc -->
113 * <!-- end-user-doc -->
114 * @see #getExpense()
115 * @generated
116 * @ordered
117 */
118 protected EList<Expense> expense;
119
120 /**
121 * <!-- begin-user-doc -->
122 * <!-- end-user-doc -->
123 * @generated
124 */
125 protected DependentImpl() {
126 super();
127 }
128
129 /**
130 * <!-- begin-user-doc -->
131 * <!-- end-user-doc -->
132 * @generated
133 */
134 @Override
135 protected EClass eStaticClass() {
136 return TaxationWithRootPackage.Literals.DEPENDENT;
137 }
138
139 /**
140 * <!-- begin-user-doc -->
141 * <!-- end-user-doc -->
142 * @generated
143 */
144 @Override
145 public Dependent_Type getDependent_type() {
146 return dependent_type;
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 @Override
155 public void setDependent_type(Dependent_Type newDependent_type) {
156 Dependent_Type oldDependent_type = dependent_type;
157 dependent_type = newDependent_type == null ? DEPENDENT_TYPE_EDEFAULT : newDependent_type;
158 if (eNotificationRequired())
159 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.DEPENDENT__DEPENDENT_TYPE, oldDependent_type, dependent_type));
160 }
161
162 /**
163 * <!-- begin-user-doc -->
164 * <!-- end-user-doc -->
165 * @generated
166 */
167 @Override
168 public Tax_Payer getResponsible_person() {
169 if (eContainerFeatureID() != TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON) return null;
170 return (Tax_Payer)eInternalContainer();
171 }
172
173 /**
174 * <!-- begin-user-doc -->
175 * <!-- end-user-doc -->
176 * @generated
177 */
178 public NotificationChain basicSetResponsible_person(Tax_Payer newResponsible_person, NotificationChain msgs) {
179 msgs = eBasicSetContainer((InternalEObject)newResponsible_person, TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON, msgs);
180 return msgs;
181 }
182
183 /**
184 * <!-- begin-user-doc -->
185 * <!-- end-user-doc -->
186 * @generated
187 */
188 @Override
189 public void setResponsible_person(Tax_Payer newResponsible_person) {
190 if (newResponsible_person != eInternalContainer() || (eContainerFeatureID() != TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON && newResponsible_person != null)) {
191 if (EcoreUtil.isAncestor(this, newResponsible_person))
192 throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
193 NotificationChain msgs = null;
194 if (eInternalContainer() != null)
195 msgs = eBasicRemoveFromContainer(msgs);
196 if (newResponsible_person != null)
197 msgs = ((InternalEObject)newResponsible_person).eInverseAdd(this, TaxationWithRootPackage.TAX_PAYER__DEPENDENTS, Tax_Payer.class, msgs);
198 msgs = basicSetResponsible_person(newResponsible_person, msgs);
199 if (msgs != null) msgs.dispatch();
200 }
201 else if (eNotificationRequired())
202 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON, newResponsible_person, newResponsible_person));
203 }
204
205 /**
206 * <!-- begin-user-doc -->
207 * <!-- end-user-doc -->
208 * @generated
209 */
210 @Override
211 public boolean isContinued_studies() {
212 return continued_studies;
213 }
214
215 /**
216 * <!-- begin-user-doc -->
217 * <!-- end-user-doc -->
218 * @generated
219 */
220 @Override
221 public void setContinued_studies(boolean newContinued_studies) {
222 boolean oldContinued_studies = continued_studies;
223 continued_studies = newContinued_studies;
224 if (eNotificationRequired())
225 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.DEPENDENT__CONTINUED_STUDIES, oldContinued_studies, continued_studies));
226 }
227
228 /**
229 * <!-- begin-user-doc -->
230 * <!-- end-user-doc -->
231 * @generated
232 */
233 @Override
234 public External_Allowance getAllowances() {
235 return allowances;
236 }
237
238 /**
239 * <!-- begin-user-doc -->
240 * <!-- end-user-doc -->
241 * @generated
242 */
243 public NotificationChain basicSetAllowances(External_Allowance newAllowances, NotificationChain msgs) {
244 External_Allowance oldAllowances = allowances;
245 allowances = newAllowances;
246 if (eNotificationRequired()) {
247 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.DEPENDENT__ALLOWANCES, oldAllowances, newAllowances);
248 if (msgs == null) msgs = notification; else msgs.add(notification);
249 }
250 return msgs;
251 }
252
253 /**
254 * <!-- begin-user-doc -->
255 * <!-- end-user-doc -->
256 * @generated
257 */
258 @Override
259 public void setAllowances(External_Allowance newAllowances) {
260 if (newAllowances != allowances) {
261 NotificationChain msgs = null;
262 if (allowances != null)
263 msgs = ((InternalEObject)allowances).eInverseRemove(this, TaxationWithRootPackage.EXTERNAL_ALLOWANCE__PERSON, External_Allowance.class, msgs);
264 if (newAllowances != null)
265 msgs = ((InternalEObject)newAllowances).eInverseAdd(this, TaxationWithRootPackage.EXTERNAL_ALLOWANCE__PERSON, External_Allowance.class, msgs);
266 msgs = basicSetAllowances(newAllowances, msgs);
267 if (msgs != null) msgs.dispatch();
268 }
269 else if (eNotificationRequired())
270 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.DEPENDENT__ALLOWANCES, newAllowances, newAllowances));
271 }
272
273 /**
274 * <!-- begin-user-doc -->
275 * <!-- end-user-doc -->
276 * @generated
277 */
278 @Override
279 public Household getHousehold() {
280 if (eContainerFeatureID() != TaxationWithRootPackage.DEPENDENT__HOUSEHOLD) return null;
281 return (Household)eInternalContainer();
282 }
283
284 /**
285 * <!-- begin-user-doc -->
286 * <!-- end-user-doc -->
287 * @generated
288 */
289 public NotificationChain basicSetHousehold(Household newHousehold, NotificationChain msgs) {
290 msgs = eBasicSetContainer((InternalEObject)newHousehold, TaxationWithRootPackage.DEPENDENT__HOUSEHOLD, msgs);
291 return msgs;
292 }
293
294 /**
295 * <!-- begin-user-doc -->
296 * <!-- end-user-doc -->
297 * @generated
298 */
299 @Override
300 public void setHousehold(Household newHousehold) {
301 if (newHousehold != eInternalContainer() || (eContainerFeatureID() != TaxationWithRootPackage.DEPENDENT__HOUSEHOLD && newHousehold != null)) {
302 if (EcoreUtil.isAncestor(this, newHousehold))
303 throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
304 NotificationChain msgs = null;
305 if (eInternalContainer() != null)
306 msgs = eBasicRemoveFromContainer(msgs);
307 if (newHousehold != null)
308 msgs = ((InternalEObject)newHousehold).eInverseAdd(this, TaxationWithRootPackage.HOUSEHOLD__CHILDREN, Household.class, msgs);
309 msgs = basicSetHousehold(newHousehold, msgs);
310 if (msgs != null) msgs.dispatch();
311 }
312 else if (eNotificationRequired())
313 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.DEPENDENT__HOUSEHOLD, newHousehold, newHousehold));
314 }
315
316 /**
317 * <!-- begin-user-doc -->
318 * <!-- end-user-doc -->
319 * @generated
320 */
321 @Override
322 public FromAgent getFrom_agent() {
323 if (from_agent != null && from_agent.eIsProxy()) {
324 InternalEObject oldFrom_agent = (InternalEObject)from_agent;
325 from_agent = (FromAgent)eResolveProxy(oldFrom_agent);
326 if (from_agent != oldFrom_agent) {
327 if (eNotificationRequired())
328 eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationWithRootPackage.DEPENDENT__FROM_AGENT, oldFrom_agent, from_agent));
329 }
330 }
331 return from_agent;
332 }
333
334 /**
335 * <!-- begin-user-doc -->
336 * <!-- end-user-doc -->
337 * @generated
338 */
339 public FromAgent basicGetFrom_agent() {
340 return from_agent;
341 }
342
343 /**
344 * <!-- begin-user-doc -->
345 * <!-- end-user-doc -->
346 * @generated
347 */
348 public NotificationChain basicSetFrom_agent(FromAgent newFrom_agent, NotificationChain msgs) {
349 FromAgent oldFrom_agent = from_agent;
350 from_agent = newFrom_agent;
351 if (eNotificationRequired()) {
352 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.DEPENDENT__FROM_AGENT, oldFrom_agent, newFrom_agent);
353 if (msgs == null) msgs = notification; else msgs.add(notification);
354 }
355 return msgs;
356 }
357
358 /**
359 * <!-- begin-user-doc -->
360 * <!-- end-user-doc -->
361 * @generated
362 */
363 @Override
364 public void setFrom_agent(FromAgent newFrom_agent) {
365 if (newFrom_agent != from_agent) {
366 NotificationChain msgs = null;
367 if (from_agent != null)
368 msgs = ((InternalEObject)from_agent).eInverseRemove(this, TaxationWithRootPackage.FROM_AGENT__DEPENDENT, FromAgent.class, msgs);
369 if (newFrom_agent != null)
370 msgs = ((InternalEObject)newFrom_agent).eInverseAdd(this, TaxationWithRootPackage.FROM_AGENT__DEPENDENT, FromAgent.class, msgs);
371 msgs = basicSetFrom_agent(newFrom_agent, msgs);
372 if (msgs != null) msgs.dispatch();
373 }
374 else if (eNotificationRequired())
375 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.DEPENDENT__FROM_AGENT, newFrom_agent, newFrom_agent));
376 }
377
378 /**
379 * <!-- begin-user-doc -->
380 * <!-- end-user-doc -->
381 * @generated
382 */
383 @Override
384 public EList<Expense> getExpense() {
385 if (expense == null) {
386 expense = new EObjectWithInverseResolvingEList<Expense>(Expense.class, this, TaxationWithRootPackage.DEPENDENT__EXPENSE, TaxationWithRootPackage.EXPENSE__DEPENDENT);
387 }
388 return expense;
389 }
390
391 /**
392 * <!-- begin-user-doc -->
393 * <!-- end-user-doc -->
394 * @generated
395 */
396 @SuppressWarnings("unchecked")
397 @Override
398 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
399 switch (featureID) {
400 case TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON:
401 if (eInternalContainer() != null)
402 msgs = eBasicRemoveFromContainer(msgs);
403 return basicSetResponsible_person((Tax_Payer)otherEnd, msgs);
404 case TaxationWithRootPackage.DEPENDENT__ALLOWANCES:
405 if (allowances != null)
406 msgs = ((InternalEObject)allowances).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TaxationWithRootPackage.DEPENDENT__ALLOWANCES, null, msgs);
407 return basicSetAllowances((External_Allowance)otherEnd, msgs);
408 case TaxationWithRootPackage.DEPENDENT__HOUSEHOLD:
409 if (eInternalContainer() != null)
410 msgs = eBasicRemoveFromContainer(msgs);
411 return basicSetHousehold((Household)otherEnd, msgs);
412 case TaxationWithRootPackage.DEPENDENT__FROM_AGENT:
413 if (from_agent != null)
414 msgs = ((InternalEObject)from_agent).eInverseRemove(this, TaxationWithRootPackage.FROM_AGENT__DEPENDENT, FromAgent.class, msgs);
415 return basicSetFrom_agent((FromAgent)otherEnd, msgs);
416 case TaxationWithRootPackage.DEPENDENT__EXPENSE:
417 return ((InternalEList<InternalEObject>)(InternalEList<?>)getExpense()).basicAdd(otherEnd, msgs);
418 }
419 return super.eInverseAdd(otherEnd, featureID, msgs);
420 }
421
422 /**
423 * <!-- begin-user-doc -->
424 * <!-- end-user-doc -->
425 * @generated
426 */
427 @Override
428 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
429 switch (featureID) {
430 case TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON:
431 return basicSetResponsible_person(null, msgs);
432 case TaxationWithRootPackage.DEPENDENT__ALLOWANCES:
433 return basicSetAllowances(null, msgs);
434 case TaxationWithRootPackage.DEPENDENT__HOUSEHOLD:
435 return basicSetHousehold(null, msgs);
436 case TaxationWithRootPackage.DEPENDENT__FROM_AGENT:
437 return basicSetFrom_agent(null, msgs);
438 case TaxationWithRootPackage.DEPENDENT__EXPENSE:
439 return ((InternalEList<?>)getExpense()).basicRemove(otherEnd, msgs);
440 }
441 return super.eInverseRemove(otherEnd, featureID, msgs);
442 }
443
444 /**
445 * <!-- begin-user-doc -->
446 * <!-- end-user-doc -->
447 * @generated
448 */
449 @Override
450 public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
451 switch (eContainerFeatureID()) {
452 case TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON:
453 return eInternalContainer().eInverseRemove(this, TaxationWithRootPackage.TAX_PAYER__DEPENDENTS, Tax_Payer.class, msgs);
454 case TaxationWithRootPackage.DEPENDENT__HOUSEHOLD:
455 return eInternalContainer().eInverseRemove(this, TaxationWithRootPackage.HOUSEHOLD__CHILDREN, Household.class, msgs);
456 }
457 return super.eBasicRemoveFromContainerFeature(msgs);
458 }
459
460 /**
461 * <!-- begin-user-doc -->
462 * <!-- end-user-doc -->
463 * @generated
464 */
465 @Override
466 public Object eGet(int featureID, boolean resolve, boolean coreType) {
467 switch (featureID) {
468 case TaxationWithRootPackage.DEPENDENT__DEPENDENT_TYPE:
469 return getDependent_type();
470 case TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON:
471 return getResponsible_person();
472 case TaxationWithRootPackage.DEPENDENT__CONTINUED_STUDIES:
473 return isContinued_studies();
474 case TaxationWithRootPackage.DEPENDENT__ALLOWANCES:
475 return getAllowances();
476 case TaxationWithRootPackage.DEPENDENT__HOUSEHOLD:
477 return getHousehold();
478 case TaxationWithRootPackage.DEPENDENT__FROM_AGENT:
479 if (resolve) return getFrom_agent();
480 return basicGetFrom_agent();
481 case TaxationWithRootPackage.DEPENDENT__EXPENSE:
482 return getExpense();
483 }
484 return super.eGet(featureID, resolve, coreType);
485 }
486
487 /**
488 * <!-- begin-user-doc -->
489 * <!-- end-user-doc -->
490 * @generated
491 */
492 @SuppressWarnings("unchecked")
493 @Override
494 public void eSet(int featureID, Object newValue) {
495 switch (featureID) {
496 case TaxationWithRootPackage.DEPENDENT__DEPENDENT_TYPE:
497 setDependent_type((Dependent_Type)newValue);
498 return;
499 case TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON:
500 setResponsible_person((Tax_Payer)newValue);
501 return;
502 case TaxationWithRootPackage.DEPENDENT__CONTINUED_STUDIES:
503 setContinued_studies((Boolean)newValue);
504 return;
505 case TaxationWithRootPackage.DEPENDENT__ALLOWANCES:
506 setAllowances((External_Allowance)newValue);
507 return;
508 case TaxationWithRootPackage.DEPENDENT__HOUSEHOLD:
509 setHousehold((Household)newValue);
510 return;
511 case TaxationWithRootPackage.DEPENDENT__FROM_AGENT:
512 setFrom_agent((FromAgent)newValue);
513 return;
514 case TaxationWithRootPackage.DEPENDENT__EXPENSE:
515 getExpense().clear();
516 getExpense().addAll((Collection<? extends Expense>)newValue);
517 return;
518 }
519 super.eSet(featureID, newValue);
520 }
521
522 /**
523 * <!-- begin-user-doc -->
524 * <!-- end-user-doc -->
525 * @generated
526 */
527 @Override
528 public void eUnset(int featureID) {
529 switch (featureID) {
530 case TaxationWithRootPackage.DEPENDENT__DEPENDENT_TYPE:
531 setDependent_type(DEPENDENT_TYPE_EDEFAULT);
532 return;
533 case TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON:
534 setResponsible_person((Tax_Payer)null);
535 return;
536 case TaxationWithRootPackage.DEPENDENT__CONTINUED_STUDIES:
537 setContinued_studies(CONTINUED_STUDIES_EDEFAULT);
538 return;
539 case TaxationWithRootPackage.DEPENDENT__ALLOWANCES:
540 setAllowances((External_Allowance)null);
541 return;
542 case TaxationWithRootPackage.DEPENDENT__HOUSEHOLD:
543 setHousehold((Household)null);
544 return;
545 case TaxationWithRootPackage.DEPENDENT__FROM_AGENT:
546 setFrom_agent((FromAgent)null);
547 return;
548 case TaxationWithRootPackage.DEPENDENT__EXPENSE:
549 getExpense().clear();
550 return;
551 }
552 super.eUnset(featureID);
553 }
554
555 /**
556 * <!-- begin-user-doc -->
557 * <!-- end-user-doc -->
558 * @generated
559 */
560 @Override
561 public boolean eIsSet(int featureID) {
562 switch (featureID) {
563 case TaxationWithRootPackage.DEPENDENT__DEPENDENT_TYPE:
564 return dependent_type != DEPENDENT_TYPE_EDEFAULT;
565 case TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON:
566 return getResponsible_person() != null;
567 case TaxationWithRootPackage.DEPENDENT__CONTINUED_STUDIES:
568 return continued_studies != CONTINUED_STUDIES_EDEFAULT;
569 case TaxationWithRootPackage.DEPENDENT__ALLOWANCES:
570 return allowances != null;
571 case TaxationWithRootPackage.DEPENDENT__HOUSEHOLD:
572 return getHousehold() != null;
573 case TaxationWithRootPackage.DEPENDENT__FROM_AGENT:
574 return from_agent != null;
575 case TaxationWithRootPackage.DEPENDENT__EXPENSE:
576 return expense != null && !expense.isEmpty();
577 }
578 return super.eIsSet(featureID);
579 }
580
581 /**
582 * <!-- begin-user-doc -->
583 * <!-- end-user-doc -->
584 * @generated
585 */
586 @Override
587 public String toString() {
588 if (eIsProxy()) return super.toString();
589
590 StringBuilder result = new StringBuilder(super.toString());
591 result.append(" (dependent_type: ");
592 result.append(dependent_type);
593 result.append(", continued_studies: ");
594 result.append(continued_studies);
595 result.append(')');
596 return result.toString();
597 }
598
599} //DependentImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/DonationImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/DonationImpl.java
new file mode 100644
index 00000000..50e05d9f
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/DonationImpl.java
@@ -0,0 +1,220 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Donation;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.common.notify.Notification;
9
10import org.eclipse.emf.ecore.EClass;
11
12import org.eclipse.emf.ecore.impl.ENotificationImpl;
13
14/**
15 * <!-- begin-user-doc -->
16 * An implementation of the model object '<em><b>Donation</b></em>'.
17 * <!-- end-user-doc -->
18 * <p>
19 * The following features are implemented:
20 * </p>
21 * <ul>
22 * <li>{@link TaxationWithRoot.impl.DonationImpl#getBeneficiary1 <em>Beneficiary1</em>}</li>
23 * <li>{@link TaxationWithRoot.impl.DonationImpl#isIs_donation_reported <em>Is donation reported</em>}</li>
24 * </ul>
25 *
26 * @generated
27 */
28public class DonationImpl extends Special_Expense_DSImpl implements Donation {
29 /**
30 * The default value of the '{@link #getBeneficiary1() <em>Beneficiary1</em>}' attribute.
31 * <!-- begin-user-doc -->
32 * <!-- end-user-doc -->
33 * @see #getBeneficiary1()
34 * @generated
35 * @ordered
36 */
37 protected static final String BENEFICIARY1_EDEFAULT = null;
38
39 /**
40 * The cached value of the '{@link #getBeneficiary1() <em>Beneficiary1</em>}' attribute.
41 * <!-- begin-user-doc -->
42 * <!-- end-user-doc -->
43 * @see #getBeneficiary1()
44 * @generated
45 * @ordered
46 */
47 protected String beneficiary1 = BENEFICIARY1_EDEFAULT;
48
49 /**
50 * The default value of the '{@link #isIs_donation_reported() <em>Is donation reported</em>}' attribute.
51 * <!-- begin-user-doc -->
52 * <!-- end-user-doc -->
53 * @see #isIs_donation_reported()
54 * @generated
55 * @ordered
56 */
57 protected static final boolean IS_DONATION_REPORTED_EDEFAULT = false;
58
59 /**
60 * The cached value of the '{@link #isIs_donation_reported() <em>Is donation reported</em>}' attribute.
61 * <!-- begin-user-doc -->
62 * <!-- end-user-doc -->
63 * @see #isIs_donation_reported()
64 * @generated
65 * @ordered
66 */
67 protected boolean is_donation_reported = IS_DONATION_REPORTED_EDEFAULT;
68
69 /**
70 * <!-- begin-user-doc -->
71 * <!-- end-user-doc -->
72 * @generated
73 */
74 protected DonationImpl() {
75 super();
76 }
77
78 /**
79 * <!-- begin-user-doc -->
80 * <!-- end-user-doc -->
81 * @generated
82 */
83 @Override
84 protected EClass eStaticClass() {
85 return TaxationWithRootPackage.Literals.DONATION;
86 }
87
88 /**
89 * <!-- begin-user-doc -->
90 * <!-- end-user-doc -->
91 * @generated
92 */
93 @Override
94 public String getBeneficiary1() {
95 return beneficiary1;
96 }
97
98 /**
99 * <!-- begin-user-doc -->
100 * <!-- end-user-doc -->
101 * @generated
102 */
103 @Override
104 public void setBeneficiary1(String newBeneficiary1) {
105 String oldBeneficiary1 = beneficiary1;
106 beneficiary1 = newBeneficiary1;
107 if (eNotificationRequired())
108 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.DONATION__BENEFICIARY1, oldBeneficiary1, beneficiary1));
109 }
110
111 /**
112 * <!-- begin-user-doc -->
113 * <!-- end-user-doc -->
114 * @generated
115 */
116 @Override
117 public boolean isIs_donation_reported() {
118 return is_donation_reported;
119 }
120
121 /**
122 * <!-- begin-user-doc -->
123 * <!-- end-user-doc -->
124 * @generated
125 */
126 @Override
127 public void setIs_donation_reported(boolean newIs_donation_reported) {
128 boolean oldIs_donation_reported = is_donation_reported;
129 is_donation_reported = newIs_donation_reported;
130 if (eNotificationRequired())
131 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.DONATION__IS_DONATION_REPORTED, oldIs_donation_reported, is_donation_reported));
132 }
133
134 /**
135 * <!-- begin-user-doc -->
136 * <!-- end-user-doc -->
137 * @generated
138 */
139 @Override
140 public Object eGet(int featureID, boolean resolve, boolean coreType) {
141 switch (featureID) {
142 case TaxationWithRootPackage.DONATION__BENEFICIARY1:
143 return getBeneficiary1();
144 case TaxationWithRootPackage.DONATION__IS_DONATION_REPORTED:
145 return isIs_donation_reported();
146 }
147 return super.eGet(featureID, resolve, coreType);
148 }
149
150 /**
151 * <!-- begin-user-doc -->
152 * <!-- end-user-doc -->
153 * @generated
154 */
155 @Override
156 public void eSet(int featureID, Object newValue) {
157 switch (featureID) {
158 case TaxationWithRootPackage.DONATION__BENEFICIARY1:
159 setBeneficiary1((String)newValue);
160 return;
161 case TaxationWithRootPackage.DONATION__IS_DONATION_REPORTED:
162 setIs_donation_reported((Boolean)newValue);
163 return;
164 }
165 super.eSet(featureID, newValue);
166 }
167
168 /**
169 * <!-- begin-user-doc -->
170 * <!-- end-user-doc -->
171 * @generated
172 */
173 @Override
174 public void eUnset(int featureID) {
175 switch (featureID) {
176 case TaxationWithRootPackage.DONATION__BENEFICIARY1:
177 setBeneficiary1(BENEFICIARY1_EDEFAULT);
178 return;
179 case TaxationWithRootPackage.DONATION__IS_DONATION_REPORTED:
180 setIs_donation_reported(IS_DONATION_REPORTED_EDEFAULT);
181 return;
182 }
183 super.eUnset(featureID);
184 }
185
186 /**
187 * <!-- begin-user-doc -->
188 * <!-- end-user-doc -->
189 * @generated
190 */
191 @Override
192 public boolean eIsSet(int featureID) {
193 switch (featureID) {
194 case TaxationWithRootPackage.DONATION__BENEFICIARY1:
195 return BENEFICIARY1_EDEFAULT == null ? beneficiary1 != null : !BENEFICIARY1_EDEFAULT.equals(beneficiary1);
196 case TaxationWithRootPackage.DONATION__IS_DONATION_REPORTED:
197 return is_donation_reported != IS_DONATION_REPORTED_EDEFAULT;
198 }
199 return super.eIsSet(featureID);
200 }
201
202 /**
203 * <!-- begin-user-doc -->
204 * <!-- end-user-doc -->
205 * @generated
206 */
207 @Override
208 public String toString() {
209 if (eIsProxy()) return super.toString();
210
211 StringBuilder result = new StringBuilder(super.toString());
212 result.append(" (beneficiary1: ");
213 result.append(beneficiary1);
214 result.append(", is_donation_reported: ");
215 result.append(is_donation_reported);
216 result.append(')');
217 return result.toString();
218 }
219
220} //DonationImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Employment_IncomeImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Employment_IncomeImpl.java
new file mode 100644
index 00000000..32ea4f65
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Employment_IncomeImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Employment_Income;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Employment Income</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class Employment_IncomeImpl extends Income_TypeImpl implements Employment_Income {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected Employment_IncomeImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.EMPLOYMENT_INCOME;
35 }
36
37} //Employment_IncomeImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/ExpenseImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/ExpenseImpl.java
new file mode 100644
index 00000000..bab7796d
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/ExpenseImpl.java
@@ -0,0 +1,654 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Dependent;
6import TaxationWithRoot.Expense;
7import TaxationWithRoot.Expense_Purpose;
8import TaxationWithRoot.FromAgent;
9import TaxationWithRoot.Income;
10import TaxationWithRoot.Physical_Person;
11import TaxationWithRoot.TaxationWithRootPackage;
12
13import org.eclipse.emf.common.notify.Notification;
14import org.eclipse.emf.common.notify.NotificationChain;
15
16import org.eclipse.emf.ecore.EClass;
17import org.eclipse.emf.ecore.InternalEObject;
18
19import org.eclipse.emf.ecore.impl.ENotificationImpl;
20import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
21
22import org.eclipse.emf.ecore.util.EcoreUtil;
23
24/**
25 * <!-- begin-user-doc -->
26 * An implementation of the model object '<em><b>Expense</b></em>'.
27 * <!-- end-user-doc -->
28 * <p>
29 * The following features are implemented:
30 * </p>
31 * <ul>
32 * <li>{@link TaxationWithRoot.impl.ExpenseImpl#getDeclared_amount <em>Declared amount</em>}</li>
33 * <li>{@link TaxationWithRoot.impl.ExpenseImpl#getExpense_purpose <em>Expense purpose</em>}</li>
34 * <li>{@link TaxationWithRoot.impl.ExpenseImpl#getDependent <em>Dependent</em>}</li>
35 * <li>{@link TaxationWithRoot.impl.ExpenseImpl#getFrom_agent <em>From agent</em>}</li>
36 * <li>{@link TaxationWithRoot.impl.ExpenseImpl#getIncome <em>Income</em>}</li>
37 * <li>{@link TaxationWithRoot.impl.ExpenseImpl#getId4 <em>Id4</em>}</li>
38 * <li>{@link TaxationWithRoot.impl.ExpenseImpl#getBeneficiary <em>Beneficiary</em>}</li>
39 * </ul>
40 *
41 * @generated
42 */
43public class ExpenseImpl extends MinimalEObjectImpl.Container implements Expense {
44 /**
45 * The default value of the '{@link #getDeclared_amount() <em>Declared amount</em>}' attribute.
46 * <!-- begin-user-doc -->
47 * <!-- end-user-doc -->
48 * @see #getDeclared_amount()
49 * @generated
50 * @ordered
51 */
52 protected static final double DECLARED_AMOUNT_EDEFAULT = 0.0;
53
54 /**
55 * The cached value of the '{@link #getDeclared_amount() <em>Declared amount</em>}' attribute.
56 * <!-- begin-user-doc -->
57 * <!-- end-user-doc -->
58 * @see #getDeclared_amount()
59 * @generated
60 * @ordered
61 */
62 protected double declared_amount = DECLARED_AMOUNT_EDEFAULT;
63
64 /**
65 * The default value of the '{@link #getExpense_purpose() <em>Expense purpose</em>}' attribute.
66 * <!-- begin-user-doc -->
67 * <!-- end-user-doc -->
68 * @see #getExpense_purpose()
69 * @generated
70 * @ordered
71 */
72 protected static final Expense_Purpose EXPENSE_PURPOSE_EDEFAULT = Expense_Purpose.OTHER;
73
74 /**
75 * The cached value of the '{@link #getExpense_purpose() <em>Expense purpose</em>}' attribute.
76 * <!-- begin-user-doc -->
77 * <!-- end-user-doc -->
78 * @see #getExpense_purpose()
79 * @generated
80 * @ordered
81 */
82 protected Expense_Purpose expense_purpose = EXPENSE_PURPOSE_EDEFAULT;
83
84 /**
85 * The cached value of the '{@link #getDependent() <em>Dependent</em>}' reference.
86 * <!-- begin-user-doc -->
87 * <!-- end-user-doc -->
88 * @see #getDependent()
89 * @generated
90 * @ordered
91 */
92 protected Dependent dependent;
93
94 /**
95 * The cached value of the '{@link #getFrom_agent() <em>From agent</em>}' reference.
96 * <!-- begin-user-doc -->
97 * <!-- end-user-doc -->
98 * @see #getFrom_agent()
99 * @generated
100 * @ordered
101 */
102 protected FromAgent from_agent;
103
104 /**
105 * The default value of the '{@link #getId4() <em>Id4</em>}' attribute.
106 * <!-- begin-user-doc -->
107 * <!-- end-user-doc -->
108 * @see #getId4()
109 * @generated
110 * @ordered
111 */
112 protected static final String ID4_EDEFAULT = null;
113
114 /**
115 * The cached value of the '{@link #getId4() <em>Id4</em>}' attribute.
116 * <!-- begin-user-doc -->
117 * <!-- end-user-doc -->
118 * @see #getId4()
119 * @generated
120 * @ordered
121 */
122 protected String id4 = ID4_EDEFAULT;
123
124 /**
125 * The cached value of the '{@link #getBeneficiary() <em>Beneficiary</em>}' reference.
126 * <!-- begin-user-doc -->
127 * <!-- end-user-doc -->
128 * @see #getBeneficiary()
129 * @generated
130 * @ordered
131 */
132 protected Physical_Person beneficiary;
133
134 /**
135 * <!-- begin-user-doc -->
136 * <!-- end-user-doc -->
137 * @generated
138 */
139 protected ExpenseImpl() {
140 super();
141 }
142
143 /**
144 * <!-- begin-user-doc -->
145 * <!-- end-user-doc -->
146 * @generated
147 */
148 @Override
149 protected EClass eStaticClass() {
150 return TaxationWithRootPackage.Literals.EXPENSE;
151 }
152
153 /**
154 * <!-- begin-user-doc -->
155 * <!-- end-user-doc -->
156 * @generated
157 */
158 @Override
159 public double getDeclared_amount() {
160 return declared_amount;
161 }
162
163 /**
164 * <!-- begin-user-doc -->
165 * <!-- end-user-doc -->
166 * @generated
167 */
168 @Override
169 public void setDeclared_amount(double newDeclared_amount) {
170 double oldDeclared_amount = declared_amount;
171 declared_amount = newDeclared_amount;
172 if (eNotificationRequired())
173 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.EXPENSE__DECLARED_AMOUNT, oldDeclared_amount, declared_amount));
174 }
175
176 /**
177 * <!-- begin-user-doc -->
178 * <!-- end-user-doc -->
179 * @generated
180 */
181 @Override
182 public Expense_Purpose getExpense_purpose() {
183 return expense_purpose;
184 }
185
186 /**
187 * <!-- begin-user-doc -->
188 * <!-- end-user-doc -->
189 * @generated
190 */
191 @Override
192 public void setExpense_purpose(Expense_Purpose newExpense_purpose) {
193 Expense_Purpose oldExpense_purpose = expense_purpose;
194 expense_purpose = newExpense_purpose == null ? EXPENSE_PURPOSE_EDEFAULT : newExpense_purpose;
195 if (eNotificationRequired())
196 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.EXPENSE__EXPENSE_PURPOSE, oldExpense_purpose, expense_purpose));
197 }
198
199 /**
200 * <!-- begin-user-doc -->
201 * <!-- end-user-doc -->
202 * @generated
203 */
204 @Override
205 public Dependent getDependent() {
206 if (dependent != null && dependent.eIsProxy()) {
207 InternalEObject oldDependent = (InternalEObject)dependent;
208 dependent = (Dependent)eResolveProxy(oldDependent);
209 if (dependent != oldDependent) {
210 if (eNotificationRequired())
211 eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationWithRootPackage.EXPENSE__DEPENDENT, oldDependent, dependent));
212 }
213 }
214 return dependent;
215 }
216
217 /**
218 * <!-- begin-user-doc -->
219 * <!-- end-user-doc -->
220 * @generated
221 */
222 public Dependent basicGetDependent() {
223 return dependent;
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 public NotificationChain basicSetDependent(Dependent newDependent, NotificationChain msgs) {
232 Dependent oldDependent = dependent;
233 dependent = newDependent;
234 if (eNotificationRequired()) {
235 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.EXPENSE__DEPENDENT, oldDependent, newDependent);
236 if (msgs == null) msgs = notification; else msgs.add(notification);
237 }
238 return msgs;
239 }
240
241 /**
242 * <!-- begin-user-doc -->
243 * <!-- end-user-doc -->
244 * @generated
245 */
246 @Override
247 public void setDependent(Dependent newDependent) {
248 if (newDependent != dependent) {
249 NotificationChain msgs = null;
250 if (dependent != null)
251 msgs = ((InternalEObject)dependent).eInverseRemove(this, TaxationWithRootPackage.DEPENDENT__EXPENSE, Dependent.class, msgs);
252 if (newDependent != null)
253 msgs = ((InternalEObject)newDependent).eInverseAdd(this, TaxationWithRootPackage.DEPENDENT__EXPENSE, Dependent.class, msgs);
254 msgs = basicSetDependent(newDependent, msgs);
255 if (msgs != null) msgs.dispatch();
256 }
257 else if (eNotificationRequired())
258 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.EXPENSE__DEPENDENT, newDependent, newDependent));
259 }
260
261 /**
262 * <!-- begin-user-doc -->
263 * <!-- end-user-doc -->
264 * @generated
265 */
266 @Override
267 public FromAgent getFrom_agent() {
268 if (from_agent != null && from_agent.eIsProxy()) {
269 InternalEObject oldFrom_agent = (InternalEObject)from_agent;
270 from_agent = (FromAgent)eResolveProxy(oldFrom_agent);
271 if (from_agent != oldFrom_agent) {
272 if (eNotificationRequired())
273 eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationWithRootPackage.EXPENSE__FROM_AGENT, oldFrom_agent, from_agent));
274 }
275 }
276 return from_agent;
277 }
278
279 /**
280 * <!-- begin-user-doc -->
281 * <!-- end-user-doc -->
282 * @generated
283 */
284 public FromAgent basicGetFrom_agent() {
285 return from_agent;
286 }
287
288 /**
289 * <!-- begin-user-doc -->
290 * <!-- end-user-doc -->
291 * @generated
292 */
293 public NotificationChain basicSetFrom_agent(FromAgent newFrom_agent, NotificationChain msgs) {
294 FromAgent oldFrom_agent = from_agent;
295 from_agent = newFrom_agent;
296 if (eNotificationRequired()) {
297 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.EXPENSE__FROM_AGENT, oldFrom_agent, newFrom_agent);
298 if (msgs == null) msgs = notification; else msgs.add(notification);
299 }
300 return msgs;
301 }
302
303 /**
304 * <!-- begin-user-doc -->
305 * <!-- end-user-doc -->
306 * @generated
307 */
308 @Override
309 public void setFrom_agent(FromAgent newFrom_agent) {
310 if (newFrom_agent != from_agent) {
311 NotificationChain msgs = null;
312 if (from_agent != null)
313 msgs = ((InternalEObject)from_agent).eInverseRemove(this, TaxationWithRootPackage.FROM_AGENT__EXPENSE, FromAgent.class, msgs);
314 if (newFrom_agent != null)
315 msgs = ((InternalEObject)newFrom_agent).eInverseAdd(this, TaxationWithRootPackage.FROM_AGENT__EXPENSE, FromAgent.class, msgs);
316 msgs = basicSetFrom_agent(newFrom_agent, msgs);
317 if (msgs != null) msgs.dispatch();
318 }
319 else if (eNotificationRequired())
320 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.EXPENSE__FROM_AGENT, newFrom_agent, newFrom_agent));
321 }
322
323 /**
324 * <!-- begin-user-doc -->
325 * <!-- end-user-doc -->
326 * @generated
327 */
328 @Override
329 public Income getIncome() {
330 if (eContainerFeatureID() != TaxationWithRootPackage.EXPENSE__INCOME) return null;
331 return (Income)eInternalContainer();
332 }
333
334 /**
335 * <!-- begin-user-doc -->
336 * <!-- end-user-doc -->
337 * @generated
338 */
339 public NotificationChain basicSetIncome(Income newIncome, NotificationChain msgs) {
340 msgs = eBasicSetContainer((InternalEObject)newIncome, TaxationWithRootPackage.EXPENSE__INCOME, msgs);
341 return msgs;
342 }
343
344 /**
345 * <!-- begin-user-doc -->
346 * <!-- end-user-doc -->
347 * @generated
348 */
349 @Override
350 public void setIncome(Income newIncome) {
351 if (newIncome != eInternalContainer() || (eContainerFeatureID() != TaxationWithRootPackage.EXPENSE__INCOME && newIncome != null)) {
352 if (EcoreUtil.isAncestor(this, newIncome))
353 throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
354 NotificationChain msgs = null;
355 if (eInternalContainer() != null)
356 msgs = eBasicRemoveFromContainer(msgs);
357 if (newIncome != null)
358 msgs = ((InternalEObject)newIncome).eInverseAdd(this, TaxationWithRootPackage.INCOME__EXPENSES, Income.class, msgs);
359 msgs = basicSetIncome(newIncome, msgs);
360 if (msgs != null) msgs.dispatch();
361 }
362 else if (eNotificationRequired())
363 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.EXPENSE__INCOME, newIncome, newIncome));
364 }
365
366 /**
367 * <!-- begin-user-doc -->
368 * <!-- end-user-doc -->
369 * @generated
370 */
371 @Override
372 public String getId4() {
373 return id4;
374 }
375
376 /**
377 * <!-- begin-user-doc -->
378 * <!-- end-user-doc -->
379 * @generated
380 */
381 @Override
382 public void setId4(String newId4) {
383 String oldId4 = id4;
384 id4 = newId4;
385 if (eNotificationRequired())
386 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.EXPENSE__ID4, oldId4, id4));
387 }
388
389 /**
390 * <!-- begin-user-doc -->
391 * <!-- end-user-doc -->
392 * @generated
393 */
394 @Override
395 public Physical_Person getBeneficiary() {
396 if (beneficiary != null && beneficiary.eIsProxy()) {
397 InternalEObject oldBeneficiary = (InternalEObject)beneficiary;
398 beneficiary = (Physical_Person)eResolveProxy(oldBeneficiary);
399 if (beneficiary != oldBeneficiary) {
400 if (eNotificationRequired())
401 eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationWithRootPackage.EXPENSE__BENEFICIARY, oldBeneficiary, beneficiary));
402 }
403 }
404 return beneficiary;
405 }
406
407 /**
408 * <!-- begin-user-doc -->
409 * <!-- end-user-doc -->
410 * @generated
411 */
412 public Physical_Person basicGetBeneficiary() {
413 return beneficiary;
414 }
415
416 /**
417 * <!-- begin-user-doc -->
418 * <!-- end-user-doc -->
419 * @generated
420 */
421 public NotificationChain basicSetBeneficiary(Physical_Person newBeneficiary, NotificationChain msgs) {
422 Physical_Person oldBeneficiary = beneficiary;
423 beneficiary = newBeneficiary;
424 if (eNotificationRequired()) {
425 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.EXPENSE__BENEFICIARY, oldBeneficiary, newBeneficiary);
426 if (msgs == null) msgs = notification; else msgs.add(notification);
427 }
428 return msgs;
429 }
430
431 /**
432 * <!-- begin-user-doc -->
433 * <!-- end-user-doc -->
434 * @generated
435 */
436 @Override
437 public void setBeneficiary(Physical_Person newBeneficiary) {
438 if (newBeneficiary != beneficiary) {
439 NotificationChain msgs = null;
440 if (beneficiary != null)
441 msgs = ((InternalEObject)beneficiary).eInverseRemove(this, TaxationWithRootPackage.PHYSICAL_PERSON__EXPENSES, Physical_Person.class, msgs);
442 if (newBeneficiary != null)
443 msgs = ((InternalEObject)newBeneficiary).eInverseAdd(this, TaxationWithRootPackage.PHYSICAL_PERSON__EXPENSES, Physical_Person.class, msgs);
444 msgs = basicSetBeneficiary(newBeneficiary, msgs);
445 if (msgs != null) msgs.dispatch();
446 }
447 else if (eNotificationRequired())
448 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.EXPENSE__BENEFICIARY, newBeneficiary, newBeneficiary));
449 }
450
451 /**
452 * <!-- begin-user-doc -->
453 * <!-- end-user-doc -->
454 * @generated
455 */
456 @Override
457 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
458 switch (featureID) {
459 case TaxationWithRootPackage.EXPENSE__DEPENDENT:
460 if (dependent != null)
461 msgs = ((InternalEObject)dependent).eInverseRemove(this, TaxationWithRootPackage.DEPENDENT__EXPENSE, Dependent.class, msgs);
462 return basicSetDependent((Dependent)otherEnd, msgs);
463 case TaxationWithRootPackage.EXPENSE__FROM_AGENT:
464 if (from_agent != null)
465 msgs = ((InternalEObject)from_agent).eInverseRemove(this, TaxationWithRootPackage.FROM_AGENT__EXPENSE, FromAgent.class, msgs);
466 return basicSetFrom_agent((FromAgent)otherEnd, msgs);
467 case TaxationWithRootPackage.EXPENSE__INCOME:
468 if (eInternalContainer() != null)
469 msgs = eBasicRemoveFromContainer(msgs);
470 return basicSetIncome((Income)otherEnd, msgs);
471 case TaxationWithRootPackage.EXPENSE__BENEFICIARY:
472 if (beneficiary != null)
473 msgs = ((InternalEObject)beneficiary).eInverseRemove(this, TaxationWithRootPackage.PHYSICAL_PERSON__EXPENSES, Physical_Person.class, msgs);
474 return basicSetBeneficiary((Physical_Person)otherEnd, msgs);
475 }
476 return super.eInverseAdd(otherEnd, featureID, msgs);
477 }
478
479 /**
480 * <!-- begin-user-doc -->
481 * <!-- end-user-doc -->
482 * @generated
483 */
484 @Override
485 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
486 switch (featureID) {
487 case TaxationWithRootPackage.EXPENSE__DEPENDENT:
488 return basicSetDependent(null, msgs);
489 case TaxationWithRootPackage.EXPENSE__FROM_AGENT:
490 return basicSetFrom_agent(null, msgs);
491 case TaxationWithRootPackage.EXPENSE__INCOME:
492 return basicSetIncome(null, msgs);
493 case TaxationWithRootPackage.EXPENSE__BENEFICIARY:
494 return basicSetBeneficiary(null, msgs);
495 }
496 return super.eInverseRemove(otherEnd, featureID, msgs);
497 }
498
499 /**
500 * <!-- begin-user-doc -->
501 * <!-- end-user-doc -->
502 * @generated
503 */
504 @Override
505 public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
506 switch (eContainerFeatureID()) {
507 case TaxationWithRootPackage.EXPENSE__INCOME:
508 return eInternalContainer().eInverseRemove(this, TaxationWithRootPackage.INCOME__EXPENSES, Income.class, msgs);
509 }
510 return super.eBasicRemoveFromContainerFeature(msgs);
511 }
512
513 /**
514 * <!-- begin-user-doc -->
515 * <!-- end-user-doc -->
516 * @generated
517 */
518 @Override
519 public Object eGet(int featureID, boolean resolve, boolean coreType) {
520 switch (featureID) {
521 case TaxationWithRootPackage.EXPENSE__DECLARED_AMOUNT:
522 return getDeclared_amount();
523 case TaxationWithRootPackage.EXPENSE__EXPENSE_PURPOSE:
524 return getExpense_purpose();
525 case TaxationWithRootPackage.EXPENSE__DEPENDENT:
526 if (resolve) return getDependent();
527 return basicGetDependent();
528 case TaxationWithRootPackage.EXPENSE__FROM_AGENT:
529 if (resolve) return getFrom_agent();
530 return basicGetFrom_agent();
531 case TaxationWithRootPackage.EXPENSE__INCOME:
532 return getIncome();
533 case TaxationWithRootPackage.EXPENSE__ID4:
534 return getId4();
535 case TaxationWithRootPackage.EXPENSE__BENEFICIARY:
536 if (resolve) return getBeneficiary();
537 return basicGetBeneficiary();
538 }
539 return super.eGet(featureID, resolve, coreType);
540 }
541
542 /**
543 * <!-- begin-user-doc -->
544 * <!-- end-user-doc -->
545 * @generated
546 */
547 @Override
548 public void eSet(int featureID, Object newValue) {
549 switch (featureID) {
550 case TaxationWithRootPackage.EXPENSE__DECLARED_AMOUNT:
551 setDeclared_amount((Double)newValue);
552 return;
553 case TaxationWithRootPackage.EXPENSE__EXPENSE_PURPOSE:
554 setExpense_purpose((Expense_Purpose)newValue);
555 return;
556 case TaxationWithRootPackage.EXPENSE__DEPENDENT:
557 setDependent((Dependent)newValue);
558 return;
559 case TaxationWithRootPackage.EXPENSE__FROM_AGENT:
560 setFrom_agent((FromAgent)newValue);
561 return;
562 case TaxationWithRootPackage.EXPENSE__INCOME:
563 setIncome((Income)newValue);
564 return;
565 case TaxationWithRootPackage.EXPENSE__ID4:
566 setId4((String)newValue);
567 return;
568 case TaxationWithRootPackage.EXPENSE__BENEFICIARY:
569 setBeneficiary((Physical_Person)newValue);
570 return;
571 }
572 super.eSet(featureID, newValue);
573 }
574
575 /**
576 * <!-- begin-user-doc -->
577 * <!-- end-user-doc -->
578 * @generated
579 */
580 @Override
581 public void eUnset(int featureID) {
582 switch (featureID) {
583 case TaxationWithRootPackage.EXPENSE__DECLARED_AMOUNT:
584 setDeclared_amount(DECLARED_AMOUNT_EDEFAULT);
585 return;
586 case TaxationWithRootPackage.EXPENSE__EXPENSE_PURPOSE:
587 setExpense_purpose(EXPENSE_PURPOSE_EDEFAULT);
588 return;
589 case TaxationWithRootPackage.EXPENSE__DEPENDENT:
590 setDependent((Dependent)null);
591 return;
592 case TaxationWithRootPackage.EXPENSE__FROM_AGENT:
593 setFrom_agent((FromAgent)null);
594 return;
595 case TaxationWithRootPackage.EXPENSE__INCOME:
596 setIncome((Income)null);
597 return;
598 case TaxationWithRootPackage.EXPENSE__ID4:
599 setId4(ID4_EDEFAULT);
600 return;
601 case TaxationWithRootPackage.EXPENSE__BENEFICIARY:
602 setBeneficiary((Physical_Person)null);
603 return;
604 }
605 super.eUnset(featureID);
606 }
607
608 /**
609 * <!-- begin-user-doc -->
610 * <!-- end-user-doc -->
611 * @generated
612 */
613 @Override
614 public boolean eIsSet(int featureID) {
615 switch (featureID) {
616 case TaxationWithRootPackage.EXPENSE__DECLARED_AMOUNT:
617 return declared_amount != DECLARED_AMOUNT_EDEFAULT;
618 case TaxationWithRootPackage.EXPENSE__EXPENSE_PURPOSE:
619 return expense_purpose != EXPENSE_PURPOSE_EDEFAULT;
620 case TaxationWithRootPackage.EXPENSE__DEPENDENT:
621 return dependent != null;
622 case TaxationWithRootPackage.EXPENSE__FROM_AGENT:
623 return from_agent != null;
624 case TaxationWithRootPackage.EXPENSE__INCOME:
625 return getIncome() != null;
626 case TaxationWithRootPackage.EXPENSE__ID4:
627 return ID4_EDEFAULT == null ? id4 != null : !ID4_EDEFAULT.equals(id4);
628 case TaxationWithRootPackage.EXPENSE__BENEFICIARY:
629 return beneficiary != null;
630 }
631 return super.eIsSet(featureID);
632 }
633
634 /**
635 * <!-- begin-user-doc -->
636 * <!-- end-user-doc -->
637 * @generated
638 */
639 @Override
640 public String toString() {
641 if (eIsProxy()) return super.toString();
642
643 StringBuilder result = new StringBuilder(super.toString());
644 result.append(" (declared_amount: ");
645 result.append(declared_amount);
646 result.append(", expense_purpose: ");
647 result.append(expense_purpose);
648 result.append(", id4: ");
649 result.append(id4);
650 result.append(')');
651 return result.toString();
652 }
653
654} //ExpenseImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/External_AllowanceImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/External_AllowanceImpl.java
new file mode 100644
index 00000000..88f96468
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/External_AllowanceImpl.java
@@ -0,0 +1,500 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Dependent;
6import TaxationWithRoot.External_Allowance;
7import TaxationWithRoot.Grantor;
8import TaxationWithRoot.Physical_Person;
9import TaxationWithRoot.TaxationWithRootPackage;
10
11import org.eclipse.emf.common.notify.Notification;
12import org.eclipse.emf.common.notify.NotificationChain;
13
14import org.eclipse.emf.ecore.EClass;
15import org.eclipse.emf.ecore.InternalEObject;
16
17import org.eclipse.emf.ecore.impl.ENotificationImpl;
18import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
19
20import org.eclipse.emf.ecore.util.EcoreUtil;
21
22/**
23 * <!-- begin-user-doc -->
24 * An implementation of the model object '<em><b>External Allowance</b></em>'.
25 * <!-- end-user-doc -->
26 * <p>
27 * The following features are implemented:
28 * </p>
29 * <ul>
30 * <li>{@link TaxationWithRoot.impl.External_AllowanceImpl#getGrantor <em>Grantor</em>}</li>
31 * <li>{@link TaxationWithRoot.impl.External_AllowanceImpl#getStarting_year <em>Starting year</em>}</li>
32 * <li>{@link TaxationWithRoot.impl.External_AllowanceImpl#getEnding_year <em>Ending year</em>}</li>
33 * <li>{@link TaxationWithRoot.impl.External_AllowanceImpl#getReciver <em>Reciver</em>}</li>
34 * <li>{@link TaxationWithRoot.impl.External_AllowanceImpl#getId5 <em>Id5</em>}</li>
35 * <li>{@link TaxationWithRoot.impl.External_AllowanceImpl#getPerson <em>Person</em>}</li>
36 * </ul>
37 *
38 * @generated
39 */
40public class External_AllowanceImpl extends MinimalEObjectImpl.Container implements External_Allowance {
41 /**
42 * The default value of the '{@link #getGrantor() <em>Grantor</em>}' attribute.
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
45 * @see #getGrantor()
46 * @generated
47 * @ordered
48 */
49 protected static final Grantor GRANTOR_EDEFAULT = Grantor.WWW;
50
51 /**
52 * The cached value of the '{@link #getGrantor() <em>Grantor</em>}' attribute.
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @see #getGrantor()
56 * @generated
57 * @ordered
58 */
59 protected Grantor grantor = GRANTOR_EDEFAULT;
60
61 /**
62 * The default value of the '{@link #getStarting_year() <em>Starting year</em>}' attribute.
63 * <!-- begin-user-doc -->
64 * <!-- end-user-doc -->
65 * @see #getStarting_year()
66 * @generated
67 * @ordered
68 */
69 protected static final int STARTING_YEAR_EDEFAULT = 0;
70
71 /**
72 * The cached value of the '{@link #getStarting_year() <em>Starting year</em>}' attribute.
73 * <!-- begin-user-doc -->
74 * <!-- end-user-doc -->
75 * @see #getStarting_year()
76 * @generated
77 * @ordered
78 */
79 protected int starting_year = STARTING_YEAR_EDEFAULT;
80
81 /**
82 * The default value of the '{@link #getEnding_year() <em>Ending year</em>}' attribute.
83 * <!-- begin-user-doc -->
84 * <!-- end-user-doc -->
85 * @see #getEnding_year()
86 * @generated
87 * @ordered
88 */
89 protected static final int ENDING_YEAR_EDEFAULT = 0;
90
91 /**
92 * The cached value of the '{@link #getEnding_year() <em>Ending year</em>}' attribute.
93 * <!-- begin-user-doc -->
94 * <!-- end-user-doc -->
95 * @see #getEnding_year()
96 * @generated
97 * @ordered
98 */
99 protected int ending_year = ENDING_YEAR_EDEFAULT;
100
101 /**
102 * The cached value of the '{@link #getReciver() <em>Reciver</em>}' reference.
103 * <!-- begin-user-doc -->
104 * <!-- end-user-doc -->
105 * @see #getReciver()
106 * @generated
107 * @ordered
108 */
109 protected Physical_Person reciver;
110
111 /**
112 * The default value of the '{@link #getId5() <em>Id5</em>}' attribute.
113 * <!-- begin-user-doc -->
114 * <!-- end-user-doc -->
115 * @see #getId5()
116 * @generated
117 * @ordered
118 */
119 protected static final String ID5_EDEFAULT = null;
120
121 /**
122 * The cached value of the '{@link #getId5() <em>Id5</em>}' attribute.
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @see #getId5()
126 * @generated
127 * @ordered
128 */
129 protected String id5 = ID5_EDEFAULT;
130
131 /**
132 * <!-- begin-user-doc -->
133 * <!-- end-user-doc -->
134 * @generated
135 */
136 protected External_AllowanceImpl() {
137 super();
138 }
139
140 /**
141 * <!-- begin-user-doc -->
142 * <!-- end-user-doc -->
143 * @generated
144 */
145 @Override
146 protected EClass eStaticClass() {
147 return TaxationWithRootPackage.Literals.EXTERNAL_ALLOWANCE;
148 }
149
150 /**
151 * <!-- begin-user-doc -->
152 * <!-- end-user-doc -->
153 * @generated
154 */
155 @Override
156 public Grantor getGrantor() {
157 return grantor;
158 }
159
160 /**
161 * <!-- begin-user-doc -->
162 * <!-- end-user-doc -->
163 * @generated
164 */
165 @Override
166 public void setGrantor(Grantor newGrantor) {
167 Grantor oldGrantor = grantor;
168 grantor = newGrantor == null ? GRANTOR_EDEFAULT : newGrantor;
169 if (eNotificationRequired())
170 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.EXTERNAL_ALLOWANCE__GRANTOR, oldGrantor, grantor));
171 }
172
173 /**
174 * <!-- begin-user-doc -->
175 * <!-- end-user-doc -->
176 * @generated
177 */
178 @Override
179 public int getStarting_year() {
180 return starting_year;
181 }
182
183 /**
184 * <!-- begin-user-doc -->
185 * <!-- end-user-doc -->
186 * @generated
187 */
188 @Override
189 public void setStarting_year(int newStarting_year) {
190 int oldStarting_year = starting_year;
191 starting_year = newStarting_year;
192 if (eNotificationRequired())
193 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.EXTERNAL_ALLOWANCE__STARTING_YEAR, oldStarting_year, starting_year));
194 }
195
196 /**
197 * <!-- begin-user-doc -->
198 * <!-- end-user-doc -->
199 * @generated
200 */
201 @Override
202 public int getEnding_year() {
203 return ending_year;
204 }
205
206 /**
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @generated
210 */
211 @Override
212 public void setEnding_year(int newEnding_year) {
213 int oldEnding_year = ending_year;
214 ending_year = newEnding_year;
215 if (eNotificationRequired())
216 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.EXTERNAL_ALLOWANCE__ENDING_YEAR, oldEnding_year, ending_year));
217 }
218
219 /**
220 * <!-- begin-user-doc -->
221 * <!-- end-user-doc -->
222 * @generated
223 */
224 @Override
225 public Physical_Person getReciver() {
226 if (reciver != null && reciver.eIsProxy()) {
227 InternalEObject oldReciver = (InternalEObject)reciver;
228 reciver = (Physical_Person)eResolveProxy(oldReciver);
229 if (reciver != oldReciver) {
230 if (eNotificationRequired())
231 eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationWithRootPackage.EXTERNAL_ALLOWANCE__RECIVER, oldReciver, reciver));
232 }
233 }
234 return reciver;
235 }
236
237 /**
238 * <!-- begin-user-doc -->
239 * <!-- end-user-doc -->
240 * @generated
241 */
242 public Physical_Person basicGetReciver() {
243 return reciver;
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 @Override
252 public void setReciver(Physical_Person newReciver) {
253 Physical_Person oldReciver = reciver;
254 reciver = newReciver;
255 if (eNotificationRequired())
256 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.EXTERNAL_ALLOWANCE__RECIVER, oldReciver, reciver));
257 }
258
259 /**
260 * <!-- begin-user-doc -->
261 * <!-- end-user-doc -->
262 * @generated
263 */
264 @Override
265 public String getId5() {
266 return id5;
267 }
268
269 /**
270 * <!-- begin-user-doc -->
271 * <!-- end-user-doc -->
272 * @generated
273 */
274 @Override
275 public void setId5(String newId5) {
276 String oldId5 = id5;
277 id5 = newId5;
278 if (eNotificationRequired())
279 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.EXTERNAL_ALLOWANCE__ID5, oldId5, id5));
280 }
281
282 /**
283 * <!-- begin-user-doc -->
284 * <!-- end-user-doc -->
285 * @generated
286 */
287 @Override
288 public Dependent getPerson() {
289 if (eContainerFeatureID() != TaxationWithRootPackage.EXTERNAL_ALLOWANCE__PERSON) return null;
290 return (Dependent)eInternalContainer();
291 }
292
293 /**
294 * <!-- begin-user-doc -->
295 * <!-- end-user-doc -->
296 * @generated
297 */
298 public NotificationChain basicSetPerson(Dependent newPerson, NotificationChain msgs) {
299 msgs = eBasicSetContainer((InternalEObject)newPerson, TaxationWithRootPackage.EXTERNAL_ALLOWANCE__PERSON, msgs);
300 return msgs;
301 }
302
303 /**
304 * <!-- begin-user-doc -->
305 * <!-- end-user-doc -->
306 * @generated
307 */
308 @Override
309 public void setPerson(Dependent newPerson) {
310 if (newPerson != eInternalContainer() || (eContainerFeatureID() != TaxationWithRootPackage.EXTERNAL_ALLOWANCE__PERSON && newPerson != null)) {
311 if (EcoreUtil.isAncestor(this, newPerson))
312 throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
313 NotificationChain msgs = null;
314 if (eInternalContainer() != null)
315 msgs = eBasicRemoveFromContainer(msgs);
316 if (newPerson != null)
317 msgs = ((InternalEObject)newPerson).eInverseAdd(this, TaxationWithRootPackage.DEPENDENT__ALLOWANCES, Dependent.class, msgs);
318 msgs = basicSetPerson(newPerson, msgs);
319 if (msgs != null) msgs.dispatch();
320 }
321 else if (eNotificationRequired())
322 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.EXTERNAL_ALLOWANCE__PERSON, newPerson, newPerson));
323 }
324
325 /**
326 * <!-- begin-user-doc -->
327 * <!-- end-user-doc -->
328 * @generated
329 */
330 @Override
331 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
332 switch (featureID) {
333 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__PERSON:
334 if (eInternalContainer() != null)
335 msgs = eBasicRemoveFromContainer(msgs);
336 return basicSetPerson((Dependent)otherEnd, msgs);
337 }
338 return super.eInverseAdd(otherEnd, featureID, msgs);
339 }
340
341 /**
342 * <!-- begin-user-doc -->
343 * <!-- end-user-doc -->
344 * @generated
345 */
346 @Override
347 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
348 switch (featureID) {
349 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__PERSON:
350 return basicSetPerson(null, msgs);
351 }
352 return super.eInverseRemove(otherEnd, featureID, msgs);
353 }
354
355 /**
356 * <!-- begin-user-doc -->
357 * <!-- end-user-doc -->
358 * @generated
359 */
360 @Override
361 public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
362 switch (eContainerFeatureID()) {
363 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__PERSON:
364 return eInternalContainer().eInverseRemove(this, TaxationWithRootPackage.DEPENDENT__ALLOWANCES, Dependent.class, msgs);
365 }
366 return super.eBasicRemoveFromContainerFeature(msgs);
367 }
368
369 /**
370 * <!-- begin-user-doc -->
371 * <!-- end-user-doc -->
372 * @generated
373 */
374 @Override
375 public Object eGet(int featureID, boolean resolve, boolean coreType) {
376 switch (featureID) {
377 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__GRANTOR:
378 return getGrantor();
379 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__STARTING_YEAR:
380 return getStarting_year();
381 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__ENDING_YEAR:
382 return getEnding_year();
383 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__RECIVER:
384 if (resolve) return getReciver();
385 return basicGetReciver();
386 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__ID5:
387 return getId5();
388 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__PERSON:
389 return getPerson();
390 }
391 return super.eGet(featureID, resolve, coreType);
392 }
393
394 /**
395 * <!-- begin-user-doc -->
396 * <!-- end-user-doc -->
397 * @generated
398 */
399 @Override
400 public void eSet(int featureID, Object newValue) {
401 switch (featureID) {
402 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__GRANTOR:
403 setGrantor((Grantor)newValue);
404 return;
405 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__STARTING_YEAR:
406 setStarting_year((Integer)newValue);
407 return;
408 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__ENDING_YEAR:
409 setEnding_year((Integer)newValue);
410 return;
411 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__RECIVER:
412 setReciver((Physical_Person)newValue);
413 return;
414 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__ID5:
415 setId5((String)newValue);
416 return;
417 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__PERSON:
418 setPerson((Dependent)newValue);
419 return;
420 }
421 super.eSet(featureID, newValue);
422 }
423
424 /**
425 * <!-- begin-user-doc -->
426 * <!-- end-user-doc -->
427 * @generated
428 */
429 @Override
430 public void eUnset(int featureID) {
431 switch (featureID) {
432 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__GRANTOR:
433 setGrantor(GRANTOR_EDEFAULT);
434 return;
435 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__STARTING_YEAR:
436 setStarting_year(STARTING_YEAR_EDEFAULT);
437 return;
438 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__ENDING_YEAR:
439 setEnding_year(ENDING_YEAR_EDEFAULT);
440 return;
441 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__RECIVER:
442 setReciver((Physical_Person)null);
443 return;
444 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__ID5:
445 setId5(ID5_EDEFAULT);
446 return;
447 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__PERSON:
448 setPerson((Dependent)null);
449 return;
450 }
451 super.eUnset(featureID);
452 }
453
454 /**
455 * <!-- begin-user-doc -->
456 * <!-- end-user-doc -->
457 * @generated
458 */
459 @Override
460 public boolean eIsSet(int featureID) {
461 switch (featureID) {
462 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__GRANTOR:
463 return grantor != GRANTOR_EDEFAULT;
464 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__STARTING_YEAR:
465 return starting_year != STARTING_YEAR_EDEFAULT;
466 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__ENDING_YEAR:
467 return ending_year != ENDING_YEAR_EDEFAULT;
468 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__RECIVER:
469 return reciver != null;
470 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__ID5:
471 return ID5_EDEFAULT == null ? id5 != null : !ID5_EDEFAULT.equals(id5);
472 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE__PERSON:
473 return getPerson() != null;
474 }
475 return super.eIsSet(featureID);
476 }
477
478 /**
479 * <!-- begin-user-doc -->
480 * <!-- end-user-doc -->
481 * @generated
482 */
483 @Override
484 public String toString() {
485 if (eIsProxy()) return super.toString();
486
487 StringBuilder result = new StringBuilder(super.toString());
488 result.append(" (grantor: ");
489 result.append(grantor);
490 result.append(", starting_year: ");
491 result.append(starting_year);
492 result.append(", ending_year: ");
493 result.append(ending_year);
494 result.append(", id5: ");
495 result.append(id5);
496 result.append(')');
497 return result.toString();
498 }
499
500} //External_AllowanceImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Extraordinary_Expense_CEImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Extraordinary_Expense_CEImpl.java
new file mode 100644
index 00000000..74920a1d
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Extraordinary_Expense_CEImpl.java
@@ -0,0 +1,221 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.CE_Type;
6import TaxationWithRoot.Extraordinary_Expense_CE;
7import TaxationWithRoot.TaxationWithRootPackage;
8
9import org.eclipse.emf.common.notify.Notification;
10
11import org.eclipse.emf.ecore.EClass;
12
13import org.eclipse.emf.ecore.impl.ENotificationImpl;
14
15/**
16 * <!-- begin-user-doc -->
17 * An implementation of the model object '<em><b>Extraordinary Expense CE</b></em>'.
18 * <!-- end-user-doc -->
19 * <p>
20 * The following features are implemented:
21 * </p>
22 * <ul>
23 * <li>{@link TaxationWithRoot.impl.Extraordinary_Expense_CEImpl#getThresholded_deduction_percentage <em>Thresholded deduction percentage</em>}</li>
24 * <li>{@link TaxationWithRoot.impl.Extraordinary_Expense_CEImpl#getCe_type <em>Ce type</em>}</li>
25 * </ul>
26 *
27 * @generated
28 */
29public class Extraordinary_Expense_CEImpl extends ExpenseImpl implements Extraordinary_Expense_CE {
30 /**
31 * The default value of the '{@link #getThresholded_deduction_percentage() <em>Thresholded deduction percentage</em>}' attribute.
32 * <!-- begin-user-doc -->
33 * <!-- end-user-doc -->
34 * @see #getThresholded_deduction_percentage()
35 * @generated
36 * @ordered
37 */
38 protected static final double THRESHOLDED_DEDUCTION_PERCENTAGE_EDEFAULT = 0.0;
39
40 /**
41 * The cached value of the '{@link #getThresholded_deduction_percentage() <em>Thresholded deduction percentage</em>}' attribute.
42 * <!-- begin-user-doc -->
43 * <!-- end-user-doc -->
44 * @see #getThresholded_deduction_percentage()
45 * @generated
46 * @ordered
47 */
48 protected double thresholded_deduction_percentage = THRESHOLDED_DEDUCTION_PERCENTAGE_EDEFAULT;
49
50 /**
51 * The default value of the '{@link #getCe_type() <em>Ce type</em>}' attribute.
52 * <!-- begin-user-doc -->
53 * <!-- end-user-doc -->
54 * @see #getCe_type()
55 * @generated
56 * @ordered
57 */
58 protected static final CE_Type CE_TYPE_EDEFAULT = CE_Type.INALIDITY_AND_INFIRMITY;
59
60 /**
61 * The cached value of the '{@link #getCe_type() <em>Ce type</em>}' attribute.
62 * <!-- begin-user-doc -->
63 * <!-- end-user-doc -->
64 * @see #getCe_type()
65 * @generated
66 * @ordered
67 */
68 protected CE_Type ce_type = CE_TYPE_EDEFAULT;
69
70 /**
71 * <!-- begin-user-doc -->
72 * <!-- end-user-doc -->
73 * @generated
74 */
75 protected Extraordinary_Expense_CEImpl() {
76 super();
77 }
78
79 /**
80 * <!-- begin-user-doc -->
81 * <!-- end-user-doc -->
82 * @generated
83 */
84 @Override
85 protected EClass eStaticClass() {
86 return TaxationWithRootPackage.Literals.EXTRAORDINARY_EXPENSE_CE;
87 }
88
89 /**
90 * <!-- begin-user-doc -->
91 * <!-- end-user-doc -->
92 * @generated
93 */
94 @Override
95 public double getThresholded_deduction_percentage() {
96 return thresholded_deduction_percentage;
97 }
98
99 /**
100 * <!-- begin-user-doc -->
101 * <!-- end-user-doc -->
102 * @generated
103 */
104 @Override
105 public void setThresholded_deduction_percentage(double newThresholded_deduction_percentage) {
106 double oldThresholded_deduction_percentage = thresholded_deduction_percentage;
107 thresholded_deduction_percentage = newThresholded_deduction_percentage;
108 if (eNotificationRequired())
109 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.EXTRAORDINARY_EXPENSE_CE__THRESHOLDED_DEDUCTION_PERCENTAGE, oldThresholded_deduction_percentage, thresholded_deduction_percentage));
110 }
111
112 /**
113 * <!-- begin-user-doc -->
114 * <!-- end-user-doc -->
115 * @generated
116 */
117 @Override
118 public CE_Type getCe_type() {
119 return ce_type;
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 @Override
128 public void setCe_type(CE_Type newCe_type) {
129 CE_Type oldCe_type = ce_type;
130 ce_type = newCe_type == null ? CE_TYPE_EDEFAULT : newCe_type;
131 if (eNotificationRequired())
132 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.EXTRAORDINARY_EXPENSE_CE__CE_TYPE, oldCe_type, ce_type));
133 }
134
135 /**
136 * <!-- begin-user-doc -->
137 * <!-- end-user-doc -->
138 * @generated
139 */
140 @Override
141 public Object eGet(int featureID, boolean resolve, boolean coreType) {
142 switch (featureID) {
143 case TaxationWithRootPackage.EXTRAORDINARY_EXPENSE_CE__THRESHOLDED_DEDUCTION_PERCENTAGE:
144 return getThresholded_deduction_percentage();
145 case TaxationWithRootPackage.EXTRAORDINARY_EXPENSE_CE__CE_TYPE:
146 return getCe_type();
147 }
148 return super.eGet(featureID, resolve, coreType);
149 }
150
151 /**
152 * <!-- begin-user-doc -->
153 * <!-- end-user-doc -->
154 * @generated
155 */
156 @Override
157 public void eSet(int featureID, Object newValue) {
158 switch (featureID) {
159 case TaxationWithRootPackage.EXTRAORDINARY_EXPENSE_CE__THRESHOLDED_DEDUCTION_PERCENTAGE:
160 setThresholded_deduction_percentage((Double)newValue);
161 return;
162 case TaxationWithRootPackage.EXTRAORDINARY_EXPENSE_CE__CE_TYPE:
163 setCe_type((CE_Type)newValue);
164 return;
165 }
166 super.eSet(featureID, newValue);
167 }
168
169 /**
170 * <!-- begin-user-doc -->
171 * <!-- end-user-doc -->
172 * @generated
173 */
174 @Override
175 public void eUnset(int featureID) {
176 switch (featureID) {
177 case TaxationWithRootPackage.EXTRAORDINARY_EXPENSE_CE__THRESHOLDED_DEDUCTION_PERCENTAGE:
178 setThresholded_deduction_percentage(THRESHOLDED_DEDUCTION_PERCENTAGE_EDEFAULT);
179 return;
180 case TaxationWithRootPackage.EXTRAORDINARY_EXPENSE_CE__CE_TYPE:
181 setCe_type(CE_TYPE_EDEFAULT);
182 return;
183 }
184 super.eUnset(featureID);
185 }
186
187 /**
188 * <!-- begin-user-doc -->
189 * <!-- end-user-doc -->
190 * @generated
191 */
192 @Override
193 public boolean eIsSet(int featureID) {
194 switch (featureID) {
195 case TaxationWithRootPackage.EXTRAORDINARY_EXPENSE_CE__THRESHOLDED_DEDUCTION_PERCENTAGE:
196 return thresholded_deduction_percentage != THRESHOLDED_DEDUCTION_PERCENTAGE_EDEFAULT;
197 case TaxationWithRootPackage.EXTRAORDINARY_EXPENSE_CE__CE_TYPE:
198 return ce_type != CE_TYPE_EDEFAULT;
199 }
200 return super.eIsSet(featureID);
201 }
202
203 /**
204 * <!-- begin-user-doc -->
205 * <!-- end-user-doc -->
206 * @generated
207 */
208 @Override
209 public String toString() {
210 if (eIsProxy()) return super.toString();
211
212 StringBuilder result = new StringBuilder(super.toString());
213 result.append(" (thresholded_deduction_percentage: ");
214 result.append(thresholded_deduction_percentage);
215 result.append(", ce_type: ");
216 result.append(ce_type);
217 result.append(')');
218 return result.toString();
219 }
220
221} //Extraordinary_Expense_CEImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Fiscal_AddressImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Fiscal_AddressImpl.java
new file mode 100644
index 00000000..747486de
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Fiscal_AddressImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Fiscal_Address;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Fiscal Address</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class Fiscal_AddressImpl extends AddressImpl implements Fiscal_Address {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected Fiscal_AddressImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.FISCAL_ADDRESS;
35 }
36
37} //Fiscal_AddressImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Foreign_IncomeImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Foreign_IncomeImpl.java
new file mode 100644
index 00000000..fd87c33b
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Foreign_IncomeImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Foreign_Income;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Foreign Income</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class Foreign_IncomeImpl extends IncomeImpl implements Foreign_Income {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected Foreign_IncomeImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.FOREIGN_INCOME;
35 }
36
37} //Foreign_IncomeImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/FromAgentImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/FromAgentImpl.java
new file mode 100644
index 00000000..7523607e
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/FromAgentImpl.java
@@ -0,0 +1,506 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Dependent;
6import TaxationWithRoot.Expense;
7import TaxationWithRoot.FromAgent;
8import TaxationWithRoot.Tax_Payer;
9import TaxationWithRoot.TaxationWithRootPackage;
10
11import org.eclipse.emf.common.notify.Notification;
12import org.eclipse.emf.common.notify.NotificationChain;
13
14import org.eclipse.emf.ecore.EClass;
15import org.eclipse.emf.ecore.InternalEObject;
16
17import org.eclipse.emf.ecore.impl.ENotificationImpl;
18import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
19
20import org.eclipse.emf.ecore.util.EcoreUtil;
21
22/**
23 * <!-- begin-user-doc -->
24 * An implementation of the model object '<em><b>From Agent</b></em>'.
25 * <!-- end-user-doc -->
26 * <p>
27 * The following features are implemented:
28 * </p>
29 * <ul>
30 * <li>{@link TaxationWithRoot.impl.FromAgentImpl#getTaxPayer <em>Tax Payer</em>}</li>
31 * <li>{@link TaxationWithRoot.impl.FromAgentImpl#isIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care <em>Is dependent eligible for CE Not In Houshold Children Care</em>}</li>
32 * <li>{@link TaxationWithRoot.impl.FromAgentImpl#getExpense <em>Expense</em>}</li>
33 * <li>{@link TaxationWithRoot.impl.FromAgentImpl#isIs_eligible_debt <em>Is eligible debt</em>}</li>
34 * <li>{@link TaxationWithRoot.impl.FromAgentImpl#getDependent <em>Dependent</em>}</li>
35 * </ul>
36 *
37 * @generated
38 */
39public class FromAgentImpl extends MinimalEObjectImpl.Container implements FromAgent {
40 /**
41 * The default value of the '{@link #isIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care() <em>Is dependent eligible for CE Not In Houshold Children Care</em>}' attribute.
42 * <!-- begin-user-doc -->
43 * <!-- end-user-doc -->
44 * @see #isIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care()
45 * @generated
46 * @ordered
47 */
48 protected static final boolean IS_DEPENDENT_ELIGIBLE_FOR_CE_NOT_IN_HOUSHOLD_CHILDREN_CARE_EDEFAULT = false;
49
50 /**
51 * The cached value of the '{@link #isIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care() <em>Is dependent eligible for CE Not In Houshold Children Care</em>}' attribute.
52 * <!-- begin-user-doc -->
53 * <!-- end-user-doc -->
54 * @see #isIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care()
55 * @generated
56 * @ordered
57 */
58 protected boolean is_dependent_eligible_for_CE_Not_In_Houshold_Children_Care = IS_DEPENDENT_ELIGIBLE_FOR_CE_NOT_IN_HOUSHOLD_CHILDREN_CARE_EDEFAULT;
59
60 /**
61 * The cached value of the '{@link #getExpense() <em>Expense</em>}' reference.
62 * <!-- begin-user-doc -->
63 * <!-- end-user-doc -->
64 * @see #getExpense()
65 * @generated
66 * @ordered
67 */
68 protected Expense expense;
69
70 /**
71 * The default value of the '{@link #isIs_eligible_debt() <em>Is eligible debt</em>}' attribute.
72 * <!-- begin-user-doc -->
73 * <!-- end-user-doc -->
74 * @see #isIs_eligible_debt()
75 * @generated
76 * @ordered
77 */
78 protected static final boolean IS_ELIGIBLE_DEBT_EDEFAULT = false;
79
80 /**
81 * The cached value of the '{@link #isIs_eligible_debt() <em>Is eligible debt</em>}' attribute.
82 * <!-- begin-user-doc -->
83 * <!-- end-user-doc -->
84 * @see #isIs_eligible_debt()
85 * @generated
86 * @ordered
87 */
88 protected boolean is_eligible_debt = IS_ELIGIBLE_DEBT_EDEFAULT;
89
90 /**
91 * The cached value of the '{@link #getDependent() <em>Dependent</em>}' reference.
92 * <!-- begin-user-doc -->
93 * <!-- end-user-doc -->
94 * @see #getDependent()
95 * @generated
96 * @ordered
97 */
98 protected Dependent dependent;
99
100 /**
101 * <!-- begin-user-doc -->
102 * <!-- end-user-doc -->
103 * @generated
104 */
105 protected FromAgentImpl() {
106 super();
107 }
108
109 /**
110 * <!-- begin-user-doc -->
111 * <!-- end-user-doc -->
112 * @generated
113 */
114 @Override
115 protected EClass eStaticClass() {
116 return TaxationWithRootPackage.Literals.FROM_AGENT;
117 }
118
119 /**
120 * <!-- begin-user-doc -->
121 * <!-- end-user-doc -->
122 * @generated
123 */
124 @Override
125 public Tax_Payer getTaxPayer() {
126 if (eContainerFeatureID() != TaxationWithRootPackage.FROM_AGENT__TAX_PAYER) return null;
127 return (Tax_Payer)eInternalContainer();
128 }
129
130 /**
131 * <!-- begin-user-doc -->
132 * <!-- end-user-doc -->
133 * @generated
134 */
135 public NotificationChain basicSetTaxPayer(Tax_Payer newTaxPayer, NotificationChain msgs) {
136 msgs = eBasicSetContainer((InternalEObject)newTaxPayer, TaxationWithRootPackage.FROM_AGENT__TAX_PAYER, msgs);
137 return msgs;
138 }
139
140 /**
141 * <!-- begin-user-doc -->
142 * <!-- end-user-doc -->
143 * @generated
144 */
145 @Override
146 public void setTaxPayer(Tax_Payer newTaxPayer) {
147 if (newTaxPayer != eInternalContainer() || (eContainerFeatureID() != TaxationWithRootPackage.FROM_AGENT__TAX_PAYER && newTaxPayer != null)) {
148 if (EcoreUtil.isAncestor(this, newTaxPayer))
149 throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
150 NotificationChain msgs = null;
151 if (eInternalContainer() != null)
152 msgs = eBasicRemoveFromContainer(msgs);
153 if (newTaxPayer != null)
154 msgs = ((InternalEObject)newTaxPayer).eInverseAdd(this, TaxationWithRootPackage.TAX_PAYER__FROM_AGENT, Tax_Payer.class, msgs);
155 msgs = basicSetTaxPayer(newTaxPayer, msgs);
156 if (msgs != null) msgs.dispatch();
157 }
158 else if (eNotificationRequired())
159 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.FROM_AGENT__TAX_PAYER, newTaxPayer, newTaxPayer));
160 }
161
162 /**
163 * <!-- begin-user-doc -->
164 * <!-- end-user-doc -->
165 * @generated
166 */
167 @Override
168 public boolean isIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care() {
169 return is_dependent_eligible_for_CE_Not_In_Houshold_Children_Care;
170 }
171
172 /**
173 * <!-- begin-user-doc -->
174 * <!-- end-user-doc -->
175 * @generated
176 */
177 @Override
178 public void setIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care(boolean newIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care) {
179 boolean oldIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care = is_dependent_eligible_for_CE_Not_In_Houshold_Children_Care;
180 is_dependent_eligible_for_CE_Not_In_Houshold_Children_Care = newIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care;
181 if (eNotificationRequired())
182 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.FROM_AGENT__IS_DEPENDENT_ELIGIBLE_FOR_CE_NOT_IN_HOUSHOLD_CHILDREN_CARE, oldIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care, is_dependent_eligible_for_CE_Not_In_Houshold_Children_Care));
183 }
184
185 /**
186 * <!-- begin-user-doc -->
187 * <!-- end-user-doc -->
188 * @generated
189 */
190 @Override
191 public Expense getExpense() {
192 if (expense != null && expense.eIsProxy()) {
193 InternalEObject oldExpense = (InternalEObject)expense;
194 expense = (Expense)eResolveProxy(oldExpense);
195 if (expense != oldExpense) {
196 if (eNotificationRequired())
197 eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationWithRootPackage.FROM_AGENT__EXPENSE, oldExpense, expense));
198 }
199 }
200 return expense;
201 }
202
203 /**
204 * <!-- begin-user-doc -->
205 * <!-- end-user-doc -->
206 * @generated
207 */
208 public Expense basicGetExpense() {
209 return expense;
210 }
211
212 /**
213 * <!-- begin-user-doc -->
214 * <!-- end-user-doc -->
215 * @generated
216 */
217 public NotificationChain basicSetExpense(Expense newExpense, NotificationChain msgs) {
218 Expense oldExpense = expense;
219 expense = newExpense;
220 if (eNotificationRequired()) {
221 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.FROM_AGENT__EXPENSE, oldExpense, newExpense);
222 if (msgs == null) msgs = notification; else msgs.add(notification);
223 }
224 return msgs;
225 }
226
227 /**
228 * <!-- begin-user-doc -->
229 * <!-- end-user-doc -->
230 * @generated
231 */
232 @Override
233 public void setExpense(Expense newExpense) {
234 if (newExpense != expense) {
235 NotificationChain msgs = null;
236 if (expense != null)
237 msgs = ((InternalEObject)expense).eInverseRemove(this, TaxationWithRootPackage.EXPENSE__FROM_AGENT, Expense.class, msgs);
238 if (newExpense != null)
239 msgs = ((InternalEObject)newExpense).eInverseAdd(this, TaxationWithRootPackage.EXPENSE__FROM_AGENT, Expense.class, msgs);
240 msgs = basicSetExpense(newExpense, msgs);
241 if (msgs != null) msgs.dispatch();
242 }
243 else if (eNotificationRequired())
244 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.FROM_AGENT__EXPENSE, newExpense, newExpense));
245 }
246
247 /**
248 * <!-- begin-user-doc -->
249 * <!-- end-user-doc -->
250 * @generated
251 */
252 @Override
253 public boolean isIs_eligible_debt() {
254 return is_eligible_debt;
255 }
256
257 /**
258 * <!-- begin-user-doc -->
259 * <!-- end-user-doc -->
260 * @generated
261 */
262 @Override
263 public void setIs_eligible_debt(boolean newIs_eligible_debt) {
264 boolean oldIs_eligible_debt = is_eligible_debt;
265 is_eligible_debt = newIs_eligible_debt;
266 if (eNotificationRequired())
267 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.FROM_AGENT__IS_ELIGIBLE_DEBT, oldIs_eligible_debt, is_eligible_debt));
268 }
269
270 /**
271 * <!-- begin-user-doc -->
272 * <!-- end-user-doc -->
273 * @generated
274 */
275 @Override
276 public Dependent getDependent() {
277 if (dependent != null && dependent.eIsProxy()) {
278 InternalEObject oldDependent = (InternalEObject)dependent;
279 dependent = (Dependent)eResolveProxy(oldDependent);
280 if (dependent != oldDependent) {
281 if (eNotificationRequired())
282 eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationWithRootPackage.FROM_AGENT__DEPENDENT, oldDependent, dependent));
283 }
284 }
285 return dependent;
286 }
287
288 /**
289 * <!-- begin-user-doc -->
290 * <!-- end-user-doc -->
291 * @generated
292 */
293 public Dependent basicGetDependent() {
294 return dependent;
295 }
296
297 /**
298 * <!-- begin-user-doc -->
299 * <!-- end-user-doc -->
300 * @generated
301 */
302 public NotificationChain basicSetDependent(Dependent newDependent, NotificationChain msgs) {
303 Dependent oldDependent = dependent;
304 dependent = newDependent;
305 if (eNotificationRequired()) {
306 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.FROM_AGENT__DEPENDENT, oldDependent, newDependent);
307 if (msgs == null) msgs = notification; else msgs.add(notification);
308 }
309 return msgs;
310 }
311
312 /**
313 * <!-- begin-user-doc -->
314 * <!-- end-user-doc -->
315 * @generated
316 */
317 @Override
318 public void setDependent(Dependent newDependent) {
319 if (newDependent != dependent) {
320 NotificationChain msgs = null;
321 if (dependent != null)
322 msgs = ((InternalEObject)dependent).eInverseRemove(this, TaxationWithRootPackage.DEPENDENT__FROM_AGENT, Dependent.class, msgs);
323 if (newDependent != null)
324 msgs = ((InternalEObject)newDependent).eInverseAdd(this, TaxationWithRootPackage.DEPENDENT__FROM_AGENT, Dependent.class, msgs);
325 msgs = basicSetDependent(newDependent, msgs);
326 if (msgs != null) msgs.dispatch();
327 }
328 else if (eNotificationRequired())
329 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.FROM_AGENT__DEPENDENT, newDependent, newDependent));
330 }
331
332 /**
333 * <!-- begin-user-doc -->
334 * <!-- end-user-doc -->
335 * @generated
336 */
337 @Override
338 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
339 switch (featureID) {
340 case TaxationWithRootPackage.FROM_AGENT__TAX_PAYER:
341 if (eInternalContainer() != null)
342 msgs = eBasicRemoveFromContainer(msgs);
343 return basicSetTaxPayer((Tax_Payer)otherEnd, msgs);
344 case TaxationWithRootPackage.FROM_AGENT__EXPENSE:
345 if (expense != null)
346 msgs = ((InternalEObject)expense).eInverseRemove(this, TaxationWithRootPackage.EXPENSE__FROM_AGENT, Expense.class, msgs);
347 return basicSetExpense((Expense)otherEnd, msgs);
348 case TaxationWithRootPackage.FROM_AGENT__DEPENDENT:
349 if (dependent != null)
350 msgs = ((InternalEObject)dependent).eInverseRemove(this, TaxationWithRootPackage.DEPENDENT__FROM_AGENT, Dependent.class, msgs);
351 return basicSetDependent((Dependent)otherEnd, msgs);
352 }
353 return super.eInverseAdd(otherEnd, featureID, msgs);
354 }
355
356 /**
357 * <!-- begin-user-doc -->
358 * <!-- end-user-doc -->
359 * @generated
360 */
361 @Override
362 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
363 switch (featureID) {
364 case TaxationWithRootPackage.FROM_AGENT__TAX_PAYER:
365 return basicSetTaxPayer(null, msgs);
366 case TaxationWithRootPackage.FROM_AGENT__EXPENSE:
367 return basicSetExpense(null, msgs);
368 case TaxationWithRootPackage.FROM_AGENT__DEPENDENT:
369 return basicSetDependent(null, msgs);
370 }
371 return super.eInverseRemove(otherEnd, featureID, msgs);
372 }
373
374 /**
375 * <!-- begin-user-doc -->
376 * <!-- end-user-doc -->
377 * @generated
378 */
379 @Override
380 public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
381 switch (eContainerFeatureID()) {
382 case TaxationWithRootPackage.FROM_AGENT__TAX_PAYER:
383 return eInternalContainer().eInverseRemove(this, TaxationWithRootPackage.TAX_PAYER__FROM_AGENT, Tax_Payer.class, msgs);
384 }
385 return super.eBasicRemoveFromContainerFeature(msgs);
386 }
387
388 /**
389 * <!-- begin-user-doc -->
390 * <!-- end-user-doc -->
391 * @generated
392 */
393 @Override
394 public Object eGet(int featureID, boolean resolve, boolean coreType) {
395 switch (featureID) {
396 case TaxationWithRootPackage.FROM_AGENT__TAX_PAYER:
397 return getTaxPayer();
398 case TaxationWithRootPackage.FROM_AGENT__IS_DEPENDENT_ELIGIBLE_FOR_CE_NOT_IN_HOUSHOLD_CHILDREN_CARE:
399 return isIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care();
400 case TaxationWithRootPackage.FROM_AGENT__EXPENSE:
401 if (resolve) return getExpense();
402 return basicGetExpense();
403 case TaxationWithRootPackage.FROM_AGENT__IS_ELIGIBLE_DEBT:
404 return isIs_eligible_debt();
405 case TaxationWithRootPackage.FROM_AGENT__DEPENDENT:
406 if (resolve) return getDependent();
407 return basicGetDependent();
408 }
409 return super.eGet(featureID, resolve, coreType);
410 }
411
412 /**
413 * <!-- begin-user-doc -->
414 * <!-- end-user-doc -->
415 * @generated
416 */
417 @Override
418 public void eSet(int featureID, Object newValue) {
419 switch (featureID) {
420 case TaxationWithRootPackage.FROM_AGENT__TAX_PAYER:
421 setTaxPayer((Tax_Payer)newValue);
422 return;
423 case TaxationWithRootPackage.FROM_AGENT__IS_DEPENDENT_ELIGIBLE_FOR_CE_NOT_IN_HOUSHOLD_CHILDREN_CARE:
424 setIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care((Boolean)newValue);
425 return;
426 case TaxationWithRootPackage.FROM_AGENT__EXPENSE:
427 setExpense((Expense)newValue);
428 return;
429 case TaxationWithRootPackage.FROM_AGENT__IS_ELIGIBLE_DEBT:
430 setIs_eligible_debt((Boolean)newValue);
431 return;
432 case TaxationWithRootPackage.FROM_AGENT__DEPENDENT:
433 setDependent((Dependent)newValue);
434 return;
435 }
436 super.eSet(featureID, newValue);
437 }
438
439 /**
440 * <!-- begin-user-doc -->
441 * <!-- end-user-doc -->
442 * @generated
443 */
444 @Override
445 public void eUnset(int featureID) {
446 switch (featureID) {
447 case TaxationWithRootPackage.FROM_AGENT__TAX_PAYER:
448 setTaxPayer((Tax_Payer)null);
449 return;
450 case TaxationWithRootPackage.FROM_AGENT__IS_DEPENDENT_ELIGIBLE_FOR_CE_NOT_IN_HOUSHOLD_CHILDREN_CARE:
451 setIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care(IS_DEPENDENT_ELIGIBLE_FOR_CE_NOT_IN_HOUSHOLD_CHILDREN_CARE_EDEFAULT);
452 return;
453 case TaxationWithRootPackage.FROM_AGENT__EXPENSE:
454 setExpense((Expense)null);
455 return;
456 case TaxationWithRootPackage.FROM_AGENT__IS_ELIGIBLE_DEBT:
457 setIs_eligible_debt(IS_ELIGIBLE_DEBT_EDEFAULT);
458 return;
459 case TaxationWithRootPackage.FROM_AGENT__DEPENDENT:
460 setDependent((Dependent)null);
461 return;
462 }
463 super.eUnset(featureID);
464 }
465
466 /**
467 * <!-- begin-user-doc -->
468 * <!-- end-user-doc -->
469 * @generated
470 */
471 @Override
472 public boolean eIsSet(int featureID) {
473 switch (featureID) {
474 case TaxationWithRootPackage.FROM_AGENT__TAX_PAYER:
475 return getTaxPayer() != null;
476 case TaxationWithRootPackage.FROM_AGENT__IS_DEPENDENT_ELIGIBLE_FOR_CE_NOT_IN_HOUSHOLD_CHILDREN_CARE:
477 return is_dependent_eligible_for_CE_Not_In_Houshold_Children_Care != IS_DEPENDENT_ELIGIBLE_FOR_CE_NOT_IN_HOUSHOLD_CHILDREN_CARE_EDEFAULT;
478 case TaxationWithRootPackage.FROM_AGENT__EXPENSE:
479 return expense != null;
480 case TaxationWithRootPackage.FROM_AGENT__IS_ELIGIBLE_DEBT:
481 return is_eligible_debt != IS_ELIGIBLE_DEBT_EDEFAULT;
482 case TaxationWithRootPackage.FROM_AGENT__DEPENDENT:
483 return dependent != null;
484 }
485 return super.eIsSet(featureID);
486 }
487
488 /**
489 * <!-- begin-user-doc -->
490 * <!-- end-user-doc -->
491 * @generated
492 */
493 @Override
494 public String toString() {
495 if (eIsProxy()) return super.toString();
496
497 StringBuilder result = new StringBuilder(super.toString());
498 result.append(" (is_dependent_eligible_for_CE_Not_In_Houshold_Children_Care: ");
499 result.append(is_dependent_eligible_for_CE_Not_In_Houshold_Children_Care);
500 result.append(", is_eligible_debt: ");
501 result.append(is_eligible_debt);
502 result.append(')');
503 return result.toString();
504 }
505
506} //FromAgentImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/FromLawImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/FromLawImpl.java
new file mode 100644
index 00000000..6244e60f
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/FromLawImpl.java
@@ -0,0 +1,268 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.FromLaw;
6import TaxationWithRoot.Tax_Payer;
7import TaxationWithRoot.TaxationWithRootPackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
17
18import org.eclipse.emf.ecore.util.EcoreUtil;
19
20/**
21 * <!-- begin-user-doc -->
22 * An implementation of the model object '<em><b>From Law</b></em>'.
23 * <!-- end-user-doc -->
24 * <p>
25 * The following features are implemented:
26 * </p>
27 * <ul>
28 * <li>{@link TaxationWithRoot.impl.FromLawImpl#getId <em>Id</em>}</li>
29 * <li>{@link TaxationWithRoot.impl.FromLawImpl#getTaxPayer <em>Tax Payer</em>}</li>
30 * </ul>
31 *
32 * @generated
33 */
34public class FromLawImpl extends MinimalEObjectImpl.Container implements FromLaw {
35 /**
36 * The default value of the '{@link #getId() <em>Id</em>}' attribute.
37 * <!-- begin-user-doc -->
38 * <!-- end-user-doc -->
39 * @see #getId()
40 * @generated
41 * @ordered
42 */
43 protected static final String ID_EDEFAULT = null;
44
45 /**
46 * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
47 * <!-- begin-user-doc -->
48 * <!-- end-user-doc -->
49 * @see #getId()
50 * @generated
51 * @ordered
52 */
53 protected String id = ID_EDEFAULT;
54
55 /**
56 * <!-- begin-user-doc -->
57 * <!-- end-user-doc -->
58 * @generated
59 */
60 protected FromLawImpl() {
61 super();
62 }
63
64 /**
65 * <!-- begin-user-doc -->
66 * <!-- end-user-doc -->
67 * @generated
68 */
69 @Override
70 protected EClass eStaticClass() {
71 return TaxationWithRootPackage.Literals.FROM_LAW;
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 @Override
80 public String getId() {
81 return id;
82 }
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 @Override
90 public void setId(String newId) {
91 String oldId = id;
92 id = newId;
93 if (eNotificationRequired())
94 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.FROM_LAW__ID, oldId, id));
95 }
96
97 /**
98 * <!-- begin-user-doc -->
99 * <!-- end-user-doc -->
100 * @generated
101 */
102 @Override
103 public Tax_Payer getTaxPayer() {
104 if (eContainerFeatureID() != TaxationWithRootPackage.FROM_LAW__TAX_PAYER) return null;
105 return (Tax_Payer)eInternalContainer();
106 }
107
108 /**
109 * <!-- begin-user-doc -->
110 * <!-- end-user-doc -->
111 * @generated
112 */
113 public NotificationChain basicSetTaxPayer(Tax_Payer newTaxPayer, NotificationChain msgs) {
114 msgs = eBasicSetContainer((InternalEObject)newTaxPayer, TaxationWithRootPackage.FROM_LAW__TAX_PAYER, msgs);
115 return msgs;
116 }
117
118 /**
119 * <!-- begin-user-doc -->
120 * <!-- end-user-doc -->
121 * @generated
122 */
123 @Override
124 public void setTaxPayer(Tax_Payer newTaxPayer) {
125 if (newTaxPayer != eInternalContainer() || (eContainerFeatureID() != TaxationWithRootPackage.FROM_LAW__TAX_PAYER && newTaxPayer != null)) {
126 if (EcoreUtil.isAncestor(this, newTaxPayer))
127 throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
128 NotificationChain msgs = null;
129 if (eInternalContainer() != null)
130 msgs = eBasicRemoveFromContainer(msgs);
131 if (newTaxPayer != null)
132 msgs = ((InternalEObject)newTaxPayer).eInverseAdd(this, TaxationWithRootPackage.TAX_PAYER__FROM_LAW, Tax_Payer.class, msgs);
133 msgs = basicSetTaxPayer(newTaxPayer, msgs);
134 if (msgs != null) msgs.dispatch();
135 }
136 else if (eNotificationRequired())
137 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.FROM_LAW__TAX_PAYER, newTaxPayer, newTaxPayer));
138 }
139
140 /**
141 * <!-- begin-user-doc -->
142 * <!-- end-user-doc -->
143 * @generated
144 */
145 @Override
146 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
147 switch (featureID) {
148 case TaxationWithRootPackage.FROM_LAW__TAX_PAYER:
149 if (eInternalContainer() != null)
150 msgs = eBasicRemoveFromContainer(msgs);
151 return basicSetTaxPayer((Tax_Payer)otherEnd, msgs);
152 }
153 return super.eInverseAdd(otherEnd, featureID, msgs);
154 }
155
156 /**
157 * <!-- begin-user-doc -->
158 * <!-- end-user-doc -->
159 * @generated
160 */
161 @Override
162 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
163 switch (featureID) {
164 case TaxationWithRootPackage.FROM_LAW__TAX_PAYER:
165 return basicSetTaxPayer(null, msgs);
166 }
167 return super.eInverseRemove(otherEnd, featureID, msgs);
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 @Override
176 public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
177 switch (eContainerFeatureID()) {
178 case TaxationWithRootPackage.FROM_LAW__TAX_PAYER:
179 return eInternalContainer().eInverseRemove(this, TaxationWithRootPackage.TAX_PAYER__FROM_LAW, Tax_Payer.class, msgs);
180 }
181 return super.eBasicRemoveFromContainerFeature(msgs);
182 }
183
184 /**
185 * <!-- begin-user-doc -->
186 * <!-- end-user-doc -->
187 * @generated
188 */
189 @Override
190 public Object eGet(int featureID, boolean resolve, boolean coreType) {
191 switch (featureID) {
192 case TaxationWithRootPackage.FROM_LAW__ID:
193 return getId();
194 case TaxationWithRootPackage.FROM_LAW__TAX_PAYER:
195 return getTaxPayer();
196 }
197 return super.eGet(featureID, resolve, coreType);
198 }
199
200 /**
201 * <!-- begin-user-doc -->
202 * <!-- end-user-doc -->
203 * @generated
204 */
205 @Override
206 public void eSet(int featureID, Object newValue) {
207 switch (featureID) {
208 case TaxationWithRootPackage.FROM_LAW__ID:
209 setId((String)newValue);
210 return;
211 case TaxationWithRootPackage.FROM_LAW__TAX_PAYER:
212 setTaxPayer((Tax_Payer)newValue);
213 return;
214 }
215 super.eSet(featureID, newValue);
216 }
217
218 /**
219 * <!-- begin-user-doc -->
220 * <!-- end-user-doc -->
221 * @generated
222 */
223 @Override
224 public void eUnset(int featureID) {
225 switch (featureID) {
226 case TaxationWithRootPackage.FROM_LAW__ID:
227 setId(ID_EDEFAULT);
228 return;
229 case TaxationWithRootPackage.FROM_LAW__TAX_PAYER:
230 setTaxPayer((Tax_Payer)null);
231 return;
232 }
233 super.eUnset(featureID);
234 }
235
236 /**
237 * <!-- begin-user-doc -->
238 * <!-- end-user-doc -->
239 * @generated
240 */
241 @Override
242 public boolean eIsSet(int featureID) {
243 switch (featureID) {
244 case TaxationWithRootPackage.FROM_LAW__ID:
245 return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
246 case TaxationWithRootPackage.FROM_LAW__TAX_PAYER:
247 return getTaxPayer() != null;
248 }
249 return super.eIsSet(featureID);
250 }
251
252 /**
253 * <!-- begin-user-doc -->
254 * <!-- end-user-doc -->
255 * @generated
256 */
257 @Override
258 public String toString() {
259 if (eIsProxy()) return super.toString();
260
261 StringBuilder result = new StringBuilder(super.toString());
262 result.append(" (id: ");
263 result.append(id);
264 result.append(')');
265 return result.toString();
266 }
267
268} //FromLawImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Habitual_AddressImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Habitual_AddressImpl.java
new file mode 100644
index 00000000..4fea235c
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Habitual_AddressImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Habitual_Address;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Habitual Address</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class Habitual_AddressImpl extends AddressImpl implements Habitual_Address {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected Habitual_AddressImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.HABITUAL_ADDRESS;
35 }
36
37} //Habitual_AddressImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Health_and_Pension_InsuranceImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Health_and_Pension_InsuranceImpl.java
new file mode 100644
index 00000000..2e2346b7
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Health_and_Pension_InsuranceImpl.java
@@ -0,0 +1,221 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Category_of_Health_and_Pension_Insurances;
6import TaxationWithRoot.Health_and_Pension_Insurance;
7import TaxationWithRoot.TaxationWithRootPackage;
8
9import org.eclipse.emf.common.notify.Notification;
10
11import org.eclipse.emf.ecore.EClass;
12
13import org.eclipse.emf.ecore.impl.ENotificationImpl;
14
15/**
16 * <!-- begin-user-doc -->
17 * An implementation of the model object '<em><b>Health and Pension Insurance</b></em>'.
18 * <!-- end-user-doc -->
19 * <p>
20 * The following features are implemented:
21 * </p>
22 * <ul>
23 * <li>{@link TaxationWithRoot.impl.Health_and_Pension_InsuranceImpl#getCategory <em>Category</em>}</li>
24 * <li>{@link TaxationWithRoot.impl.Health_and_Pension_InsuranceImpl#isIs_related_to_additional_salary <em>Is related to additional salary</em>}</li>
25 * </ul>
26 *
27 * @generated
28 */
29public class Health_and_Pension_InsuranceImpl extends Special_Expense_DSImpl implements Health_and_Pension_Insurance {
30 /**
31 * The default value of the '{@link #getCategory() <em>Category</em>}' attribute.
32 * <!-- begin-user-doc -->
33 * <!-- end-user-doc -->
34 * @see #getCategory()
35 * @generated
36 * @ordered
37 */
38 protected static final Category_of_Health_and_Pension_Insurances CATEGORY_EDEFAULT = Category_of_Health_and_Pension_Insurances.MANDATORY_HEALTH_AND_PENSION_INSURANCE;
39
40 /**
41 * The cached value of the '{@link #getCategory() <em>Category</em>}' attribute.
42 * <!-- begin-user-doc -->
43 * <!-- end-user-doc -->
44 * @see #getCategory()
45 * @generated
46 * @ordered
47 */
48 protected Category_of_Health_and_Pension_Insurances category = CATEGORY_EDEFAULT;
49
50 /**
51 * The default value of the '{@link #isIs_related_to_additional_salary() <em>Is related to additional salary</em>}' attribute.
52 * <!-- begin-user-doc -->
53 * <!-- end-user-doc -->
54 * @see #isIs_related_to_additional_salary()
55 * @generated
56 * @ordered
57 */
58 protected static final boolean IS_RELATED_TO_ADDITIONAL_SALARY_EDEFAULT = false;
59
60 /**
61 * The cached value of the '{@link #isIs_related_to_additional_salary() <em>Is related to additional salary</em>}' attribute.
62 * <!-- begin-user-doc -->
63 * <!-- end-user-doc -->
64 * @see #isIs_related_to_additional_salary()
65 * @generated
66 * @ordered
67 */
68 protected boolean is_related_to_additional_salary = IS_RELATED_TO_ADDITIONAL_SALARY_EDEFAULT;
69
70 /**
71 * <!-- begin-user-doc -->
72 * <!-- end-user-doc -->
73 * @generated
74 */
75 protected Health_and_Pension_InsuranceImpl() {
76 super();
77 }
78
79 /**
80 * <!-- begin-user-doc -->
81 * <!-- end-user-doc -->
82 * @generated
83 */
84 @Override
85 protected EClass eStaticClass() {
86 return TaxationWithRootPackage.Literals.HEALTH_AND_PENSION_INSURANCE;
87 }
88
89 /**
90 * <!-- begin-user-doc -->
91 * <!-- end-user-doc -->
92 * @generated
93 */
94 @Override
95 public Category_of_Health_and_Pension_Insurances getCategory() {
96 return category;
97 }
98
99 /**
100 * <!-- begin-user-doc -->
101 * <!-- end-user-doc -->
102 * @generated
103 */
104 @Override
105 public void setCategory(Category_of_Health_and_Pension_Insurances newCategory) {
106 Category_of_Health_and_Pension_Insurances oldCategory = category;
107 category = newCategory == null ? CATEGORY_EDEFAULT : newCategory;
108 if (eNotificationRequired())
109 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE__CATEGORY, oldCategory, category));
110 }
111
112 /**
113 * <!-- begin-user-doc -->
114 * <!-- end-user-doc -->
115 * @generated
116 */
117 @Override
118 public boolean isIs_related_to_additional_salary() {
119 return is_related_to_additional_salary;
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 @Override
128 public void setIs_related_to_additional_salary(boolean newIs_related_to_additional_salary) {
129 boolean oldIs_related_to_additional_salary = is_related_to_additional_salary;
130 is_related_to_additional_salary = newIs_related_to_additional_salary;
131 if (eNotificationRequired())
132 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE__IS_RELATED_TO_ADDITIONAL_SALARY, oldIs_related_to_additional_salary, is_related_to_additional_salary));
133 }
134
135 /**
136 * <!-- begin-user-doc -->
137 * <!-- end-user-doc -->
138 * @generated
139 */
140 @Override
141 public Object eGet(int featureID, boolean resolve, boolean coreType) {
142 switch (featureID) {
143 case TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE__CATEGORY:
144 return getCategory();
145 case TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE__IS_RELATED_TO_ADDITIONAL_SALARY:
146 return isIs_related_to_additional_salary();
147 }
148 return super.eGet(featureID, resolve, coreType);
149 }
150
151 /**
152 * <!-- begin-user-doc -->
153 * <!-- end-user-doc -->
154 * @generated
155 */
156 @Override
157 public void eSet(int featureID, Object newValue) {
158 switch (featureID) {
159 case TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE__CATEGORY:
160 setCategory((Category_of_Health_and_Pension_Insurances)newValue);
161 return;
162 case TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE__IS_RELATED_TO_ADDITIONAL_SALARY:
163 setIs_related_to_additional_salary((Boolean)newValue);
164 return;
165 }
166 super.eSet(featureID, newValue);
167 }
168
169 /**
170 * <!-- begin-user-doc -->
171 * <!-- end-user-doc -->
172 * @generated
173 */
174 @Override
175 public void eUnset(int featureID) {
176 switch (featureID) {
177 case TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE__CATEGORY:
178 setCategory(CATEGORY_EDEFAULT);
179 return;
180 case TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE__IS_RELATED_TO_ADDITIONAL_SALARY:
181 setIs_related_to_additional_salary(IS_RELATED_TO_ADDITIONAL_SALARY_EDEFAULT);
182 return;
183 }
184 super.eUnset(featureID);
185 }
186
187 /**
188 * <!-- begin-user-doc -->
189 * <!-- end-user-doc -->
190 * @generated
191 */
192 @Override
193 public boolean eIsSet(int featureID) {
194 switch (featureID) {
195 case TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE__CATEGORY:
196 return category != CATEGORY_EDEFAULT;
197 case TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE__IS_RELATED_TO_ADDITIONAL_SALARY:
198 return is_related_to_additional_salary != IS_RELATED_TO_ADDITIONAL_SALARY_EDEFAULT;
199 }
200 return super.eIsSet(featureID);
201 }
202
203 /**
204 * <!-- begin-user-doc -->
205 * <!-- end-user-doc -->
206 * @generated
207 */
208 @Override
209 public String toString() {
210 if (eIsProxy()) return super.toString();
211
212 StringBuilder result = new StringBuilder(super.toString());
213 result.append(" (category: ");
214 result.append(category);
215 result.append(", is_related_to_additional_salary: ");
216 result.append(is_related_to_additional_salary);
217 result.append(')');
218 return result.toString();
219 }
220
221} //Health_and_Pension_InsuranceImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/HouseholdImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/HouseholdImpl.java
new file mode 100644
index 00000000..9cd59977
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/HouseholdImpl.java
@@ -0,0 +1,313 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Dependent;
6import TaxationWithRoot.Household;
7import TaxationWithRoot.Legal_Union_Record;
8import TaxationWithRoot.TaxationWithRootPackage;
9
10import java.util.Collection;
11
12import org.eclipse.emf.common.notify.Notification;
13import org.eclipse.emf.common.notify.NotificationChain;
14
15import org.eclipse.emf.common.util.EList;
16
17import org.eclipse.emf.ecore.EClass;
18import org.eclipse.emf.ecore.InternalEObject;
19
20import org.eclipse.emf.ecore.impl.ENotificationImpl;
21import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
22
23import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
24import org.eclipse.emf.ecore.util.InternalEList;
25
26/**
27 * <!-- begin-user-doc -->
28 * An implementation of the model object '<em><b>Household</b></em>'.
29 * <!-- end-user-doc -->
30 * <p>
31 * The following features are implemented:
32 * </p>
33 * <ul>
34 * <li>{@link TaxationWithRoot.impl.HouseholdImpl#getParents <em>Parents</em>}</li>
35 * <li>{@link TaxationWithRoot.impl.HouseholdImpl#getId1 <em>Id1</em>}</li>
36 * <li>{@link TaxationWithRoot.impl.HouseholdImpl#getChildren <em>Children</em>}</li>
37 * </ul>
38 *
39 * @generated
40 */
41public class HouseholdImpl extends MinimalEObjectImpl.Container implements Household {
42 /**
43 * The cached value of the '{@link #getParents() <em>Parents</em>}' containment reference.
44 * <!-- begin-user-doc -->
45 * <!-- end-user-doc -->
46 * @see #getParents()
47 * @generated
48 * @ordered
49 */
50 protected Legal_Union_Record parents;
51
52 /**
53 * The default value of the '{@link #getId1() <em>Id1</em>}' attribute.
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @see #getId1()
57 * @generated
58 * @ordered
59 */
60 protected static final String ID1_EDEFAULT = null;
61
62 /**
63 * The cached value of the '{@link #getId1() <em>Id1</em>}' attribute.
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @see #getId1()
67 * @generated
68 * @ordered
69 */
70 protected String id1 = ID1_EDEFAULT;
71
72 /**
73 * The cached value of the '{@link #getChildren() <em>Children</em>}' containment reference list.
74 * <!-- begin-user-doc -->
75 * <!-- end-user-doc -->
76 * @see #getChildren()
77 * @generated
78 * @ordered
79 */
80 protected EList<Dependent> children;
81
82 /**
83 * <!-- begin-user-doc -->
84 * <!-- end-user-doc -->
85 * @generated
86 */
87 protected HouseholdImpl() {
88 super();
89 }
90
91 /**
92 * <!-- begin-user-doc -->
93 * <!-- end-user-doc -->
94 * @generated
95 */
96 @Override
97 protected EClass eStaticClass() {
98 return TaxationWithRootPackage.Literals.HOUSEHOLD;
99 }
100
101 /**
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @generated
105 */
106 @Override
107 public Legal_Union_Record getParents() {
108 return parents;
109 }
110
111 /**
112 * <!-- begin-user-doc -->
113 * <!-- end-user-doc -->
114 * @generated
115 */
116 public NotificationChain basicSetParents(Legal_Union_Record newParents, NotificationChain msgs) {
117 Legal_Union_Record oldParents = parents;
118 parents = newParents;
119 if (eNotificationRequired()) {
120 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.HOUSEHOLD__PARENTS, oldParents, newParents);
121 if (msgs == null) msgs = notification; else msgs.add(notification);
122 }
123 return msgs;
124 }
125
126 /**
127 * <!-- begin-user-doc -->
128 * <!-- end-user-doc -->
129 * @generated
130 */
131 @Override
132 public void setParents(Legal_Union_Record newParents) {
133 if (newParents != parents) {
134 NotificationChain msgs = null;
135 if (parents != null)
136 msgs = ((InternalEObject)parents).eInverseRemove(this, TaxationWithRootPackage.LEGAL_UNION_RECORD__HOUSEHOLD, Legal_Union_Record.class, msgs);
137 if (newParents != null)
138 msgs = ((InternalEObject)newParents).eInverseAdd(this, TaxationWithRootPackage.LEGAL_UNION_RECORD__HOUSEHOLD, Legal_Union_Record.class, msgs);
139 msgs = basicSetParents(newParents, msgs);
140 if (msgs != null) msgs.dispatch();
141 }
142 else if (eNotificationRequired())
143 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.HOUSEHOLD__PARENTS, newParents, newParents));
144 }
145
146 /**
147 * <!-- begin-user-doc -->
148 * <!-- end-user-doc -->
149 * @generated
150 */
151 @Override
152 public String getId1() {
153 return id1;
154 }
155
156 /**
157 * <!-- begin-user-doc -->
158 * <!-- end-user-doc -->
159 * @generated
160 */
161 @Override
162 public void setId1(String newId1) {
163 String oldId1 = id1;
164 id1 = newId1;
165 if (eNotificationRequired())
166 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.HOUSEHOLD__ID1, oldId1, id1));
167 }
168
169 /**
170 * <!-- begin-user-doc -->
171 * <!-- end-user-doc -->
172 * @generated
173 */
174 @Override
175 public EList<Dependent> getChildren() {
176 if (children == null) {
177 children = new EObjectContainmentWithInverseEList<Dependent>(Dependent.class, this, TaxationWithRootPackage.HOUSEHOLD__CHILDREN, TaxationWithRootPackage.DEPENDENT__HOUSEHOLD);
178 }
179 return children;
180 }
181
182 /**
183 * <!-- begin-user-doc -->
184 * <!-- end-user-doc -->
185 * @generated
186 */
187 @SuppressWarnings("unchecked")
188 @Override
189 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
190 switch (featureID) {
191 case TaxationWithRootPackage.HOUSEHOLD__PARENTS:
192 if (parents != null)
193 msgs = ((InternalEObject)parents).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TaxationWithRootPackage.HOUSEHOLD__PARENTS, null, msgs);
194 return basicSetParents((Legal_Union_Record)otherEnd, msgs);
195 case TaxationWithRootPackage.HOUSEHOLD__CHILDREN:
196 return ((InternalEList<InternalEObject>)(InternalEList<?>)getChildren()).basicAdd(otherEnd, msgs);
197 }
198 return super.eInverseAdd(otherEnd, featureID, msgs);
199 }
200
201 /**
202 * <!-- begin-user-doc -->
203 * <!-- end-user-doc -->
204 * @generated
205 */
206 @Override
207 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
208 switch (featureID) {
209 case TaxationWithRootPackage.HOUSEHOLD__PARENTS:
210 return basicSetParents(null, msgs);
211 case TaxationWithRootPackage.HOUSEHOLD__CHILDREN:
212 return ((InternalEList<?>)getChildren()).basicRemove(otherEnd, msgs);
213 }
214 return super.eInverseRemove(otherEnd, featureID, msgs);
215 }
216
217 /**
218 * <!-- begin-user-doc -->
219 * <!-- end-user-doc -->
220 * @generated
221 */
222 @Override
223 public Object eGet(int featureID, boolean resolve, boolean coreType) {
224 switch (featureID) {
225 case TaxationWithRootPackage.HOUSEHOLD__PARENTS:
226 return getParents();
227 case TaxationWithRootPackage.HOUSEHOLD__ID1:
228 return getId1();
229 case TaxationWithRootPackage.HOUSEHOLD__CHILDREN:
230 return getChildren();
231 }
232 return super.eGet(featureID, resolve, coreType);
233 }
234
235 /**
236 * <!-- begin-user-doc -->
237 * <!-- end-user-doc -->
238 * @generated
239 */
240 @SuppressWarnings("unchecked")
241 @Override
242 public void eSet(int featureID, Object newValue) {
243 switch (featureID) {
244 case TaxationWithRootPackage.HOUSEHOLD__PARENTS:
245 setParents((Legal_Union_Record)newValue);
246 return;
247 case TaxationWithRootPackage.HOUSEHOLD__ID1:
248 setId1((String)newValue);
249 return;
250 case TaxationWithRootPackage.HOUSEHOLD__CHILDREN:
251 getChildren().clear();
252 getChildren().addAll((Collection<? extends Dependent>)newValue);
253 return;
254 }
255 super.eSet(featureID, newValue);
256 }
257
258 /**
259 * <!-- begin-user-doc -->
260 * <!-- end-user-doc -->
261 * @generated
262 */
263 @Override
264 public void eUnset(int featureID) {
265 switch (featureID) {
266 case TaxationWithRootPackage.HOUSEHOLD__PARENTS:
267 setParents((Legal_Union_Record)null);
268 return;
269 case TaxationWithRootPackage.HOUSEHOLD__ID1:
270 setId1(ID1_EDEFAULT);
271 return;
272 case TaxationWithRootPackage.HOUSEHOLD__CHILDREN:
273 getChildren().clear();
274 return;
275 }
276 super.eUnset(featureID);
277 }
278
279 /**
280 * <!-- begin-user-doc -->
281 * <!-- end-user-doc -->
282 * @generated
283 */
284 @Override
285 public boolean eIsSet(int featureID) {
286 switch (featureID) {
287 case TaxationWithRootPackage.HOUSEHOLD__PARENTS:
288 return parents != null;
289 case TaxationWithRootPackage.HOUSEHOLD__ID1:
290 return ID1_EDEFAULT == null ? id1 != null : !ID1_EDEFAULT.equals(id1);
291 case TaxationWithRootPackage.HOUSEHOLD__CHILDREN:
292 return children != null && !children.isEmpty();
293 }
294 return super.eIsSet(featureID);
295 }
296
297 /**
298 * <!-- begin-user-doc -->
299 * <!-- end-user-doc -->
300 * @generated
301 */
302 @Override
303 public String toString() {
304 if (eIsProxy()) return super.toString();
305
306 StringBuilder result = new StringBuilder(super.toString());
307 result.append(" (id1: ");
308 result.append(id1);
309 result.append(')');
310 return result.toString();
311 }
312
313} //HouseholdImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/IncomeImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/IncomeImpl.java
new file mode 100644
index 00000000..83667fd8
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/IncomeImpl.java
@@ -0,0 +1,614 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Expense;
6import TaxationWithRoot.Income;
7import TaxationWithRoot.Income_Detail;
8import TaxationWithRoot.Income_Type;
9import TaxationWithRoot.Tax_Card;
10import TaxationWithRoot.Tax_Payer;
11import TaxationWithRoot.TaxationWithRootPackage;
12
13import java.util.Collection;
14
15import org.eclipse.emf.common.notify.Notification;
16import org.eclipse.emf.common.notify.NotificationChain;
17
18import org.eclipse.emf.common.util.EList;
19
20import org.eclipse.emf.ecore.EClass;
21import org.eclipse.emf.ecore.InternalEObject;
22
23import org.eclipse.emf.ecore.impl.ENotificationImpl;
24import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
25
26import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
27import org.eclipse.emf.ecore.util.EcoreUtil;
28import org.eclipse.emf.ecore.util.InternalEList;
29
30/**
31 * <!-- begin-user-doc -->
32 * An implementation of the model object '<em><b>Income</b></em>'.
33 * <!-- end-user-doc -->
34 * <p>
35 * The following features are implemented:
36 * </p>
37 * <ul>
38 * <li>{@link TaxationWithRoot.impl.IncomeImpl#getIncome_amount <em>Income amount</em>}</li>
39 * <li>{@link TaxationWithRoot.impl.IncomeImpl#getIncome_type <em>Income type</em>}</li>
40 * <li>{@link TaxationWithRoot.impl.IncomeImpl#getTax_card <em>Tax card</em>}</li>
41 * <li>{@link TaxationWithRoot.impl.IncomeImpl#getTax_liability <em>Tax liability</em>}</li>
42 * <li>{@link TaxationWithRoot.impl.IncomeImpl#getTaxPayer <em>Tax Payer</em>}</li>
43 * <li>{@link TaxationWithRoot.impl.IncomeImpl#getDetails <em>Details</em>}</li>
44 * <li>{@link TaxationWithRoot.impl.IncomeImpl#getNum <em>Num</em>}</li>
45 * <li>{@link TaxationWithRoot.impl.IncomeImpl#getExpenses <em>Expenses</em>}</li>
46 * </ul>
47 *
48 * @generated
49 */
50public abstract class IncomeImpl extends MinimalEObjectImpl.Container implements Income {
51 /**
52 * The default value of the '{@link #getIncome_amount() <em>Income amount</em>}' attribute.
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @see #getIncome_amount()
56 * @generated
57 * @ordered
58 */
59 protected static final double INCOME_AMOUNT_EDEFAULT = 0.0;
60
61 /**
62 * The cached value of the '{@link #getIncome_amount() <em>Income amount</em>}' attribute.
63 * <!-- begin-user-doc -->
64 * <!-- end-user-doc -->
65 * @see #getIncome_amount()
66 * @generated
67 * @ordered
68 */
69 protected double income_amount = INCOME_AMOUNT_EDEFAULT;
70
71 /**
72 * The cached value of the '{@link #getIncome_type() <em>Income type</em>}' containment reference.
73 * <!-- begin-user-doc -->
74 * <!-- end-user-doc -->
75 * @see #getIncome_type()
76 * @generated
77 * @ordered
78 */
79 protected Income_Type income_type;
80
81 /**
82 * The cached value of the '{@link #getTax_card() <em>Tax card</em>}' containment reference.
83 * <!-- begin-user-doc -->
84 * <!-- end-user-doc -->
85 * @see #getTax_card()
86 * @generated
87 * @ordered
88 */
89 protected Tax_Card tax_card;
90
91 /**
92 * The default value of the '{@link #getTax_liability() <em>Tax liability</em>}' attribute.
93 * <!-- begin-user-doc -->
94 * <!-- end-user-doc -->
95 * @see #getTax_liability()
96 * @generated
97 * @ordered
98 */
99 protected static final double TAX_LIABILITY_EDEFAULT = 0.0;
100
101 /**
102 * The cached value of the '{@link #getTax_liability() <em>Tax liability</em>}' attribute.
103 * <!-- begin-user-doc -->
104 * <!-- end-user-doc -->
105 * @see #getTax_liability()
106 * @generated
107 * @ordered
108 */
109 protected double tax_liability = TAX_LIABILITY_EDEFAULT;
110
111 /**
112 * The cached value of the '{@link #getDetails() <em>Details</em>}' containment reference list.
113 * <!-- begin-user-doc -->
114 * <!-- end-user-doc -->
115 * @see #getDetails()
116 * @generated
117 * @ordered
118 */
119 protected EList<Income_Detail> details;
120
121 /**
122 * The default value of the '{@link #getNum() <em>Num</em>}' attribute.
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @see #getNum()
126 * @generated
127 * @ordered
128 */
129 protected static final int NUM_EDEFAULT = 0;
130
131 /**
132 * The cached value of the '{@link #getNum() <em>Num</em>}' attribute.
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @see #getNum()
136 * @generated
137 * @ordered
138 */
139 protected int num = NUM_EDEFAULT;
140
141 /**
142 * The cached value of the '{@link #getExpenses() <em>Expenses</em>}' containment reference list.
143 * <!-- begin-user-doc -->
144 * <!-- end-user-doc -->
145 * @see #getExpenses()
146 * @generated
147 * @ordered
148 */
149 protected EList<Expense> expenses;
150
151 /**
152 * <!-- begin-user-doc -->
153 * <!-- end-user-doc -->
154 * @generated
155 */
156 protected IncomeImpl() {
157 super();
158 }
159
160 /**
161 * <!-- begin-user-doc -->
162 * <!-- end-user-doc -->
163 * @generated
164 */
165 @Override
166 protected EClass eStaticClass() {
167 return TaxationWithRootPackage.Literals.INCOME;
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 @Override
176 public double getIncome_amount() {
177 return income_amount;
178 }
179
180 /**
181 * <!-- begin-user-doc -->
182 * <!-- end-user-doc -->
183 * @generated
184 */
185 @Override
186 public void setIncome_amount(double newIncome_amount) {
187 double oldIncome_amount = income_amount;
188 income_amount = newIncome_amount;
189 if (eNotificationRequired())
190 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME__INCOME_AMOUNT, oldIncome_amount, income_amount));
191 }
192
193 /**
194 * <!-- begin-user-doc -->
195 * <!-- end-user-doc -->
196 * @generated
197 */
198 @Override
199 public Income_Type getIncome_type() {
200 return income_type;
201 }
202
203 /**
204 * <!-- begin-user-doc -->
205 * <!-- end-user-doc -->
206 * @generated
207 */
208 public NotificationChain basicSetIncome_type(Income_Type newIncome_type, NotificationChain msgs) {
209 Income_Type oldIncome_type = income_type;
210 income_type = newIncome_type;
211 if (eNotificationRequired()) {
212 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME__INCOME_TYPE, oldIncome_type, newIncome_type);
213 if (msgs == null) msgs = notification; else msgs.add(notification);
214 }
215 return msgs;
216 }
217
218 /**
219 * <!-- begin-user-doc -->
220 * <!-- end-user-doc -->
221 * @generated
222 */
223 @Override
224 public void setIncome_type(Income_Type newIncome_type) {
225 if (newIncome_type != income_type) {
226 NotificationChain msgs = null;
227 if (income_type != null)
228 msgs = ((InternalEObject)income_type).eInverseRemove(this, TaxationWithRootPackage.INCOME_TYPE__INCOME, Income_Type.class, msgs);
229 if (newIncome_type != null)
230 msgs = ((InternalEObject)newIncome_type).eInverseAdd(this, TaxationWithRootPackage.INCOME_TYPE__INCOME, Income_Type.class, msgs);
231 msgs = basicSetIncome_type(newIncome_type, msgs);
232 if (msgs != null) msgs.dispatch();
233 }
234 else if (eNotificationRequired())
235 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME__INCOME_TYPE, newIncome_type, newIncome_type));
236 }
237
238 /**
239 * <!-- begin-user-doc -->
240 * <!-- end-user-doc -->
241 * @generated
242 */
243 @Override
244 public Tax_Card getTax_card() {
245 return tax_card;
246 }
247
248 /**
249 * <!-- begin-user-doc -->
250 * <!-- end-user-doc -->
251 * @generated
252 */
253 public NotificationChain basicSetTax_card(Tax_Card newTax_card, NotificationChain msgs) {
254 Tax_Card oldTax_card = tax_card;
255 tax_card = newTax_card;
256 if (eNotificationRequired()) {
257 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME__TAX_CARD, oldTax_card, newTax_card);
258 if (msgs == null) msgs = notification; else msgs.add(notification);
259 }
260 return msgs;
261 }
262
263 /**
264 * <!-- begin-user-doc -->
265 * <!-- end-user-doc -->
266 * @generated
267 */
268 @Override
269 public void setTax_card(Tax_Card newTax_card) {
270 if (newTax_card != tax_card) {
271 NotificationChain msgs = null;
272 if (tax_card != null)
273 msgs = ((InternalEObject)tax_card).eInverseRemove(this, TaxationWithRootPackage.TAX_CARD__INCOME, Tax_Card.class, msgs);
274 if (newTax_card != null)
275 msgs = ((InternalEObject)newTax_card).eInverseAdd(this, TaxationWithRootPackage.TAX_CARD__INCOME, Tax_Card.class, msgs);
276 msgs = basicSetTax_card(newTax_card, msgs);
277 if (msgs != null) msgs.dispatch();
278 }
279 else if (eNotificationRequired())
280 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME__TAX_CARD, newTax_card, newTax_card));
281 }
282
283 /**
284 * <!-- begin-user-doc -->
285 * <!-- end-user-doc -->
286 * @generated
287 */
288 @Override
289 public double getTax_liability() {
290 return tax_liability;
291 }
292
293 /**
294 * <!-- begin-user-doc -->
295 * <!-- end-user-doc -->
296 * @generated
297 */
298 @Override
299 public void setTax_liability(double newTax_liability) {
300 double oldTax_liability = tax_liability;
301 tax_liability = newTax_liability;
302 if (eNotificationRequired())
303 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME__TAX_LIABILITY, oldTax_liability, tax_liability));
304 }
305
306 /**
307 * <!-- begin-user-doc -->
308 * <!-- end-user-doc -->
309 * @generated
310 */
311 @Override
312 public Tax_Payer getTaxPayer() {
313 if (eContainerFeatureID() != TaxationWithRootPackage.INCOME__TAX_PAYER) return null;
314 return (Tax_Payer)eInternalContainer();
315 }
316
317 /**
318 * <!-- begin-user-doc -->
319 * <!-- end-user-doc -->
320 * @generated
321 */
322 public NotificationChain basicSetTaxPayer(Tax_Payer newTaxPayer, NotificationChain msgs) {
323 msgs = eBasicSetContainer((InternalEObject)newTaxPayer, TaxationWithRootPackage.INCOME__TAX_PAYER, msgs);
324 return msgs;
325 }
326
327 /**
328 * <!-- begin-user-doc -->
329 * <!-- end-user-doc -->
330 * @generated
331 */
332 @Override
333 public void setTaxPayer(Tax_Payer newTaxPayer) {
334 if (newTaxPayer != eInternalContainer() || (eContainerFeatureID() != TaxationWithRootPackage.INCOME__TAX_PAYER && newTaxPayer != null)) {
335 if (EcoreUtil.isAncestor(this, newTaxPayer))
336 throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
337 NotificationChain msgs = null;
338 if (eInternalContainer() != null)
339 msgs = eBasicRemoveFromContainer(msgs);
340 if (newTaxPayer != null)
341 msgs = ((InternalEObject)newTaxPayer).eInverseAdd(this, TaxationWithRootPackage.TAX_PAYER__INCOMES, Tax_Payer.class, msgs);
342 msgs = basicSetTaxPayer(newTaxPayer, msgs);
343 if (msgs != null) msgs.dispatch();
344 }
345 else if (eNotificationRequired())
346 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME__TAX_PAYER, newTaxPayer, newTaxPayer));
347 }
348
349 /**
350 * <!-- begin-user-doc -->
351 * <!-- end-user-doc -->
352 * @generated
353 */
354 @Override
355 public EList<Income_Detail> getDetails() {
356 if (details == null) {
357 details = new EObjectContainmentWithInverseEList<Income_Detail>(Income_Detail.class, this, TaxationWithRootPackage.INCOME__DETAILS, TaxationWithRootPackage.INCOME_DETAIL__INCOME);
358 }
359 return details;
360 }
361
362 /**
363 * <!-- begin-user-doc -->
364 * <!-- end-user-doc -->
365 * @generated
366 */
367 @Override
368 public int getNum() {
369 return num;
370 }
371
372 /**
373 * <!-- begin-user-doc -->
374 * <!-- end-user-doc -->
375 * @generated
376 */
377 @Override
378 public void setNum(int newNum) {
379 int oldNum = num;
380 num = newNum;
381 if (eNotificationRequired())
382 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME__NUM, oldNum, num));
383 }
384
385 /**
386 * <!-- begin-user-doc -->
387 * <!-- end-user-doc -->
388 * @generated
389 */
390 @Override
391 public EList<Expense> getExpenses() {
392 if (expenses == null) {
393 expenses = new EObjectContainmentWithInverseEList<Expense>(Expense.class, this, TaxationWithRootPackage.INCOME__EXPENSES, TaxationWithRootPackage.EXPENSE__INCOME);
394 }
395 return expenses;
396 }
397
398 /**
399 * <!-- begin-user-doc -->
400 * <!-- end-user-doc -->
401 * @generated
402 */
403 @SuppressWarnings("unchecked")
404 @Override
405 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
406 switch (featureID) {
407 case TaxationWithRootPackage.INCOME__INCOME_TYPE:
408 if (income_type != null)
409 msgs = ((InternalEObject)income_type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TaxationWithRootPackage.INCOME__INCOME_TYPE, null, msgs);
410 return basicSetIncome_type((Income_Type)otherEnd, msgs);
411 case TaxationWithRootPackage.INCOME__TAX_CARD:
412 if (tax_card != null)
413 msgs = ((InternalEObject)tax_card).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TaxationWithRootPackage.INCOME__TAX_CARD, null, msgs);
414 return basicSetTax_card((Tax_Card)otherEnd, msgs);
415 case TaxationWithRootPackage.INCOME__TAX_PAYER:
416 if (eInternalContainer() != null)
417 msgs = eBasicRemoveFromContainer(msgs);
418 return basicSetTaxPayer((Tax_Payer)otherEnd, msgs);
419 case TaxationWithRootPackage.INCOME__DETAILS:
420 return ((InternalEList<InternalEObject>)(InternalEList<?>)getDetails()).basicAdd(otherEnd, msgs);
421 case TaxationWithRootPackage.INCOME__EXPENSES:
422 return ((InternalEList<InternalEObject>)(InternalEList<?>)getExpenses()).basicAdd(otherEnd, msgs);
423 }
424 return super.eInverseAdd(otherEnd, featureID, msgs);
425 }
426
427 /**
428 * <!-- begin-user-doc -->
429 * <!-- end-user-doc -->
430 * @generated
431 */
432 @Override
433 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
434 switch (featureID) {
435 case TaxationWithRootPackage.INCOME__INCOME_TYPE:
436 return basicSetIncome_type(null, msgs);
437 case TaxationWithRootPackage.INCOME__TAX_CARD:
438 return basicSetTax_card(null, msgs);
439 case TaxationWithRootPackage.INCOME__TAX_PAYER:
440 return basicSetTaxPayer(null, msgs);
441 case TaxationWithRootPackage.INCOME__DETAILS:
442 return ((InternalEList<?>)getDetails()).basicRemove(otherEnd, msgs);
443 case TaxationWithRootPackage.INCOME__EXPENSES:
444 return ((InternalEList<?>)getExpenses()).basicRemove(otherEnd, msgs);
445 }
446 return super.eInverseRemove(otherEnd, featureID, msgs);
447 }
448
449 /**
450 * <!-- begin-user-doc -->
451 * <!-- end-user-doc -->
452 * @generated
453 */
454 @Override
455 public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
456 switch (eContainerFeatureID()) {
457 case TaxationWithRootPackage.INCOME__TAX_PAYER:
458 return eInternalContainer().eInverseRemove(this, TaxationWithRootPackage.TAX_PAYER__INCOMES, Tax_Payer.class, msgs);
459 }
460 return super.eBasicRemoveFromContainerFeature(msgs);
461 }
462
463 /**
464 * <!-- begin-user-doc -->
465 * <!-- end-user-doc -->
466 * @generated
467 */
468 @Override
469 public Object eGet(int featureID, boolean resolve, boolean coreType) {
470 switch (featureID) {
471 case TaxationWithRootPackage.INCOME__INCOME_AMOUNT:
472 return getIncome_amount();
473 case TaxationWithRootPackage.INCOME__INCOME_TYPE:
474 return getIncome_type();
475 case TaxationWithRootPackage.INCOME__TAX_CARD:
476 return getTax_card();
477 case TaxationWithRootPackage.INCOME__TAX_LIABILITY:
478 return getTax_liability();
479 case TaxationWithRootPackage.INCOME__TAX_PAYER:
480 return getTaxPayer();
481 case TaxationWithRootPackage.INCOME__DETAILS:
482 return getDetails();
483 case TaxationWithRootPackage.INCOME__NUM:
484 return getNum();
485 case TaxationWithRootPackage.INCOME__EXPENSES:
486 return getExpenses();
487 }
488 return super.eGet(featureID, resolve, coreType);
489 }
490
491 /**
492 * <!-- begin-user-doc -->
493 * <!-- end-user-doc -->
494 * @generated
495 */
496 @SuppressWarnings("unchecked")
497 @Override
498 public void eSet(int featureID, Object newValue) {
499 switch (featureID) {
500 case TaxationWithRootPackage.INCOME__INCOME_AMOUNT:
501 setIncome_amount((Double)newValue);
502 return;
503 case TaxationWithRootPackage.INCOME__INCOME_TYPE:
504 setIncome_type((Income_Type)newValue);
505 return;
506 case TaxationWithRootPackage.INCOME__TAX_CARD:
507 setTax_card((Tax_Card)newValue);
508 return;
509 case TaxationWithRootPackage.INCOME__TAX_LIABILITY:
510 setTax_liability((Double)newValue);
511 return;
512 case TaxationWithRootPackage.INCOME__TAX_PAYER:
513 setTaxPayer((Tax_Payer)newValue);
514 return;
515 case TaxationWithRootPackage.INCOME__DETAILS:
516 getDetails().clear();
517 getDetails().addAll((Collection<? extends Income_Detail>)newValue);
518 return;
519 case TaxationWithRootPackage.INCOME__NUM:
520 setNum((Integer)newValue);
521 return;
522 case TaxationWithRootPackage.INCOME__EXPENSES:
523 getExpenses().clear();
524 getExpenses().addAll((Collection<? extends Expense>)newValue);
525 return;
526 }
527 super.eSet(featureID, newValue);
528 }
529
530 /**
531 * <!-- begin-user-doc -->
532 * <!-- end-user-doc -->
533 * @generated
534 */
535 @Override
536 public void eUnset(int featureID) {
537 switch (featureID) {
538 case TaxationWithRootPackage.INCOME__INCOME_AMOUNT:
539 setIncome_amount(INCOME_AMOUNT_EDEFAULT);
540 return;
541 case TaxationWithRootPackage.INCOME__INCOME_TYPE:
542 setIncome_type((Income_Type)null);
543 return;
544 case TaxationWithRootPackage.INCOME__TAX_CARD:
545 setTax_card((Tax_Card)null);
546 return;
547 case TaxationWithRootPackage.INCOME__TAX_LIABILITY:
548 setTax_liability(TAX_LIABILITY_EDEFAULT);
549 return;
550 case TaxationWithRootPackage.INCOME__TAX_PAYER:
551 setTaxPayer((Tax_Payer)null);
552 return;
553 case TaxationWithRootPackage.INCOME__DETAILS:
554 getDetails().clear();
555 return;
556 case TaxationWithRootPackage.INCOME__NUM:
557 setNum(NUM_EDEFAULT);
558 return;
559 case TaxationWithRootPackage.INCOME__EXPENSES:
560 getExpenses().clear();
561 return;
562 }
563 super.eUnset(featureID);
564 }
565
566 /**
567 * <!-- begin-user-doc -->
568 * <!-- end-user-doc -->
569 * @generated
570 */
571 @Override
572 public boolean eIsSet(int featureID) {
573 switch (featureID) {
574 case TaxationWithRootPackage.INCOME__INCOME_AMOUNT:
575 return income_amount != INCOME_AMOUNT_EDEFAULT;
576 case TaxationWithRootPackage.INCOME__INCOME_TYPE:
577 return income_type != null;
578 case TaxationWithRootPackage.INCOME__TAX_CARD:
579 return tax_card != null;
580 case TaxationWithRootPackage.INCOME__TAX_LIABILITY:
581 return tax_liability != TAX_LIABILITY_EDEFAULT;
582 case TaxationWithRootPackage.INCOME__TAX_PAYER:
583 return getTaxPayer() != null;
584 case TaxationWithRootPackage.INCOME__DETAILS:
585 return details != null && !details.isEmpty();
586 case TaxationWithRootPackage.INCOME__NUM:
587 return num != NUM_EDEFAULT;
588 case TaxationWithRootPackage.INCOME__EXPENSES:
589 return expenses != null && !expenses.isEmpty();
590 }
591 return super.eIsSet(featureID);
592 }
593
594 /**
595 * <!-- begin-user-doc -->
596 * <!-- end-user-doc -->
597 * @generated
598 */
599 @Override
600 public String toString() {
601 if (eIsProxy()) return super.toString();
602
603 StringBuilder result = new StringBuilder(super.toString());
604 result.append(" (income_amount: ");
605 result.append(income_amount);
606 result.append(", tax_liability: ");
607 result.append(tax_liability);
608 result.append(", num: ");
609 result.append(num);
610 result.append(')');
611 return result.toString();
612 }
613
614} //IncomeImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_DetailImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_DetailImpl.java
new file mode 100644
index 00000000..4820079f
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_DetailImpl.java
@@ -0,0 +1,548 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Income;
6import TaxationWithRoot.Income_Detail;
7import TaxationWithRoot.TaxationWithRootPackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
17
18import org.eclipse.emf.ecore.util.EcoreUtil;
19
20/**
21 * <!-- begin-user-doc -->
22 * An implementation of the model object '<em><b>Income Detail</b></em>'.
23 * <!-- end-user-doc -->
24 * <p>
25 * The following features are implemented:
26 * </p>
27 * <ul>
28 * <li>{@link TaxationWithRoot.impl.Income_DetailImpl#getAmount <em>Amount</em>}</li>
29 * <li>{@link TaxationWithRoot.impl.Income_DetailImpl#isIs_worked <em>Is worked</em>}</li>
30 * <li>{@link TaxationWithRoot.impl.Income_DetailImpl#getDistance <em>Distance</em>}</li>
31 * <li>{@link TaxationWithRoot.impl.Income_DetailImpl#getWorked_days <em>Worked days</em>}</li>
32 * <li>{@link TaxationWithRoot.impl.Income_DetailImpl#isIs_contributing_CNS <em>Is contributing CNS</em>}</li>
33 * <li>{@link TaxationWithRoot.impl.Income_DetailImpl#getId5 <em>Id5</em>}</li>
34 * <li>{@link TaxationWithRoot.impl.Income_DetailImpl#getIncome <em>Income</em>}</li>
35 * </ul>
36 *
37 * @generated
38 */
39public class Income_DetailImpl extends MinimalEObjectImpl.Container implements Income_Detail {
40 /**
41 * The default value of the '{@link #getAmount() <em>Amount</em>}' attribute.
42 * <!-- begin-user-doc -->
43 * <!-- end-user-doc -->
44 * @see #getAmount()
45 * @generated
46 * @ordered
47 */
48 protected static final double AMOUNT_EDEFAULT = 0.0;
49
50 /**
51 * The cached value of the '{@link #getAmount() <em>Amount</em>}' attribute.
52 * <!-- begin-user-doc -->
53 * <!-- end-user-doc -->
54 * @see #getAmount()
55 * @generated
56 * @ordered
57 */
58 protected double amount = AMOUNT_EDEFAULT;
59
60 /**
61 * The default value of the '{@link #isIs_worked() <em>Is worked</em>}' attribute.
62 * <!-- begin-user-doc -->
63 * <!-- end-user-doc -->
64 * @see #isIs_worked()
65 * @generated
66 * @ordered
67 */
68 protected static final boolean IS_WORKED_EDEFAULT = false;
69
70 /**
71 * The cached value of the '{@link #isIs_worked() <em>Is worked</em>}' attribute.
72 * <!-- begin-user-doc -->
73 * <!-- end-user-doc -->
74 * @see #isIs_worked()
75 * @generated
76 * @ordered
77 */
78 protected boolean is_worked = IS_WORKED_EDEFAULT;
79
80 /**
81 * The default value of the '{@link #getDistance() <em>Distance</em>}' attribute.
82 * <!-- begin-user-doc -->
83 * <!-- end-user-doc -->
84 * @see #getDistance()
85 * @generated
86 * @ordered
87 */
88 protected static final double DISTANCE_EDEFAULT = 0.0;
89
90 /**
91 * The cached value of the '{@link #getDistance() <em>Distance</em>}' attribute.
92 * <!-- begin-user-doc -->
93 * <!-- end-user-doc -->
94 * @see #getDistance()
95 * @generated
96 * @ordered
97 */
98 protected double distance = DISTANCE_EDEFAULT;
99
100 /**
101 * The default value of the '{@link #getWorked_days() <em>Worked days</em>}' attribute.
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @see #getWorked_days()
105 * @generated
106 * @ordered
107 */
108 protected static final int WORKED_DAYS_EDEFAULT = 0;
109
110 /**
111 * The cached value of the '{@link #getWorked_days() <em>Worked days</em>}' attribute.
112 * <!-- begin-user-doc -->
113 * <!-- end-user-doc -->
114 * @see #getWorked_days()
115 * @generated
116 * @ordered
117 */
118 protected int worked_days = WORKED_DAYS_EDEFAULT;
119
120 /**
121 * The default value of the '{@link #isIs_contributing_CNS() <em>Is contributing CNS</em>}' attribute.
122 * <!-- begin-user-doc -->
123 * <!-- end-user-doc -->
124 * @see #isIs_contributing_CNS()
125 * @generated
126 * @ordered
127 */
128 protected static final boolean IS_CONTRIBUTING_CNS_EDEFAULT = false;
129
130 /**
131 * The cached value of the '{@link #isIs_contributing_CNS() <em>Is contributing CNS</em>}' attribute.
132 * <!-- begin-user-doc -->
133 * <!-- end-user-doc -->
134 * @see #isIs_contributing_CNS()
135 * @generated
136 * @ordered
137 */
138 protected boolean is_contributing_CNS = IS_CONTRIBUTING_CNS_EDEFAULT;
139
140 /**
141 * The default value of the '{@link #getId5() <em>Id5</em>}' attribute.
142 * <!-- begin-user-doc -->
143 * <!-- end-user-doc -->
144 * @see #getId5()
145 * @generated
146 * @ordered
147 */
148 protected static final String ID5_EDEFAULT = null;
149
150 /**
151 * The cached value of the '{@link #getId5() <em>Id5</em>}' attribute.
152 * <!-- begin-user-doc -->
153 * <!-- end-user-doc -->
154 * @see #getId5()
155 * @generated
156 * @ordered
157 */
158 protected String id5 = ID5_EDEFAULT;
159
160 /**
161 * <!-- begin-user-doc -->
162 * <!-- end-user-doc -->
163 * @generated
164 */
165 protected Income_DetailImpl() {
166 super();
167 }
168
169 /**
170 * <!-- begin-user-doc -->
171 * <!-- end-user-doc -->
172 * @generated
173 */
174 @Override
175 protected EClass eStaticClass() {
176 return TaxationWithRootPackage.Literals.INCOME_DETAIL;
177 }
178
179 /**
180 * <!-- begin-user-doc -->
181 * <!-- end-user-doc -->
182 * @generated
183 */
184 @Override
185 public double getAmount() {
186 return amount;
187 }
188
189 /**
190 * <!-- begin-user-doc -->
191 * <!-- end-user-doc -->
192 * @generated
193 */
194 @Override
195 public void setAmount(double newAmount) {
196 double oldAmount = amount;
197 amount = newAmount;
198 if (eNotificationRequired())
199 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_DETAIL__AMOUNT, oldAmount, amount));
200 }
201
202 /**
203 * <!-- begin-user-doc -->
204 * <!-- end-user-doc -->
205 * @generated
206 */
207 @Override
208 public boolean isIs_worked() {
209 return is_worked;
210 }
211
212 /**
213 * <!-- begin-user-doc -->
214 * <!-- end-user-doc -->
215 * @generated
216 */
217 @Override
218 public void setIs_worked(boolean newIs_worked) {
219 boolean oldIs_worked = is_worked;
220 is_worked = newIs_worked;
221 if (eNotificationRequired())
222 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_DETAIL__IS_WORKED, oldIs_worked, is_worked));
223 }
224
225 /**
226 * <!-- begin-user-doc -->
227 * <!-- end-user-doc -->
228 * @generated
229 */
230 @Override
231 public double getDistance() {
232 return distance;
233 }
234
235 /**
236 * <!-- begin-user-doc -->
237 * <!-- end-user-doc -->
238 * @generated
239 */
240 @Override
241 public void setDistance(double newDistance) {
242 double oldDistance = distance;
243 distance = newDistance;
244 if (eNotificationRequired())
245 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_DETAIL__DISTANCE, oldDistance, distance));
246 }
247
248 /**
249 * <!-- begin-user-doc -->
250 * <!-- end-user-doc -->
251 * @generated
252 */
253 @Override
254 public int getWorked_days() {
255 return worked_days;
256 }
257
258 /**
259 * <!-- begin-user-doc -->
260 * <!-- end-user-doc -->
261 * @generated
262 */
263 @Override
264 public void setWorked_days(int newWorked_days) {
265 int oldWorked_days = worked_days;
266 worked_days = newWorked_days;
267 if (eNotificationRequired())
268 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_DETAIL__WORKED_DAYS, oldWorked_days, worked_days));
269 }
270
271 /**
272 * <!-- begin-user-doc -->
273 * <!-- end-user-doc -->
274 * @generated
275 */
276 @Override
277 public boolean isIs_contributing_CNS() {
278 return is_contributing_CNS;
279 }
280
281 /**
282 * <!-- begin-user-doc -->
283 * <!-- end-user-doc -->
284 * @generated
285 */
286 @Override
287 public void setIs_contributing_CNS(boolean newIs_contributing_CNS) {
288 boolean oldIs_contributing_CNS = is_contributing_CNS;
289 is_contributing_CNS = newIs_contributing_CNS;
290 if (eNotificationRequired())
291 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_DETAIL__IS_CONTRIBUTING_CNS, oldIs_contributing_CNS, is_contributing_CNS));
292 }
293
294 /**
295 * <!-- begin-user-doc -->
296 * <!-- end-user-doc -->
297 * @generated
298 */
299 @Override
300 public String getId5() {
301 return id5;
302 }
303
304 /**
305 * <!-- begin-user-doc -->
306 * <!-- end-user-doc -->
307 * @generated
308 */
309 @Override
310 public void setId5(String newId5) {
311 String oldId5 = id5;
312 id5 = newId5;
313 if (eNotificationRequired())
314 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_DETAIL__ID5, oldId5, id5));
315 }
316
317 /**
318 * <!-- begin-user-doc -->
319 * <!-- end-user-doc -->
320 * @generated
321 */
322 @Override
323 public Income getIncome() {
324 if (eContainerFeatureID() != TaxationWithRootPackage.INCOME_DETAIL__INCOME) return null;
325 return (Income)eInternalContainer();
326 }
327
328 /**
329 * <!-- begin-user-doc -->
330 * <!-- end-user-doc -->
331 * @generated
332 */
333 public NotificationChain basicSetIncome(Income newIncome, NotificationChain msgs) {
334 msgs = eBasicSetContainer((InternalEObject)newIncome, TaxationWithRootPackage.INCOME_DETAIL__INCOME, msgs);
335 return msgs;
336 }
337
338 /**
339 * <!-- begin-user-doc -->
340 * <!-- end-user-doc -->
341 * @generated
342 */
343 @Override
344 public void setIncome(Income newIncome) {
345 if (newIncome != eInternalContainer() || (eContainerFeatureID() != TaxationWithRootPackage.INCOME_DETAIL__INCOME && newIncome != null)) {
346 if (EcoreUtil.isAncestor(this, newIncome))
347 throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
348 NotificationChain msgs = null;
349 if (eInternalContainer() != null)
350 msgs = eBasicRemoveFromContainer(msgs);
351 if (newIncome != null)
352 msgs = ((InternalEObject)newIncome).eInverseAdd(this, TaxationWithRootPackage.INCOME__DETAILS, Income.class, msgs);
353 msgs = basicSetIncome(newIncome, msgs);
354 if (msgs != null) msgs.dispatch();
355 }
356 else if (eNotificationRequired())
357 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_DETAIL__INCOME, newIncome, newIncome));
358 }
359
360 /**
361 * <!-- begin-user-doc -->
362 * <!-- end-user-doc -->
363 * @generated
364 */
365 @Override
366 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
367 switch (featureID) {
368 case TaxationWithRootPackage.INCOME_DETAIL__INCOME:
369 if (eInternalContainer() != null)
370 msgs = eBasicRemoveFromContainer(msgs);
371 return basicSetIncome((Income)otherEnd, msgs);
372 }
373 return super.eInverseAdd(otherEnd, featureID, msgs);
374 }
375
376 /**
377 * <!-- begin-user-doc -->
378 * <!-- end-user-doc -->
379 * @generated
380 */
381 @Override
382 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
383 switch (featureID) {
384 case TaxationWithRootPackage.INCOME_DETAIL__INCOME:
385 return basicSetIncome(null, msgs);
386 }
387 return super.eInverseRemove(otherEnd, featureID, msgs);
388 }
389
390 /**
391 * <!-- begin-user-doc -->
392 * <!-- end-user-doc -->
393 * @generated
394 */
395 @Override
396 public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
397 switch (eContainerFeatureID()) {
398 case TaxationWithRootPackage.INCOME_DETAIL__INCOME:
399 return eInternalContainer().eInverseRemove(this, TaxationWithRootPackage.INCOME__DETAILS, Income.class, msgs);
400 }
401 return super.eBasicRemoveFromContainerFeature(msgs);
402 }
403
404 /**
405 * <!-- begin-user-doc -->
406 * <!-- end-user-doc -->
407 * @generated
408 */
409 @Override
410 public Object eGet(int featureID, boolean resolve, boolean coreType) {
411 switch (featureID) {
412 case TaxationWithRootPackage.INCOME_DETAIL__AMOUNT:
413 return getAmount();
414 case TaxationWithRootPackage.INCOME_DETAIL__IS_WORKED:
415 return isIs_worked();
416 case TaxationWithRootPackage.INCOME_DETAIL__DISTANCE:
417 return getDistance();
418 case TaxationWithRootPackage.INCOME_DETAIL__WORKED_DAYS:
419 return getWorked_days();
420 case TaxationWithRootPackage.INCOME_DETAIL__IS_CONTRIBUTING_CNS:
421 return isIs_contributing_CNS();
422 case TaxationWithRootPackage.INCOME_DETAIL__ID5:
423 return getId5();
424 case TaxationWithRootPackage.INCOME_DETAIL__INCOME:
425 return getIncome();
426 }
427 return super.eGet(featureID, resolve, coreType);
428 }
429
430 /**
431 * <!-- begin-user-doc -->
432 * <!-- end-user-doc -->
433 * @generated
434 */
435 @Override
436 public void eSet(int featureID, Object newValue) {
437 switch (featureID) {
438 case TaxationWithRootPackage.INCOME_DETAIL__AMOUNT:
439 setAmount((Double)newValue);
440 return;
441 case TaxationWithRootPackage.INCOME_DETAIL__IS_WORKED:
442 setIs_worked((Boolean)newValue);
443 return;
444 case TaxationWithRootPackage.INCOME_DETAIL__DISTANCE:
445 setDistance((Double)newValue);
446 return;
447 case TaxationWithRootPackage.INCOME_DETAIL__WORKED_DAYS:
448 setWorked_days((Integer)newValue);
449 return;
450 case TaxationWithRootPackage.INCOME_DETAIL__IS_CONTRIBUTING_CNS:
451 setIs_contributing_CNS((Boolean)newValue);
452 return;
453 case TaxationWithRootPackage.INCOME_DETAIL__ID5:
454 setId5((String)newValue);
455 return;
456 case TaxationWithRootPackage.INCOME_DETAIL__INCOME:
457 setIncome((Income)newValue);
458 return;
459 }
460 super.eSet(featureID, newValue);
461 }
462
463 /**
464 * <!-- begin-user-doc -->
465 * <!-- end-user-doc -->
466 * @generated
467 */
468 @Override
469 public void eUnset(int featureID) {
470 switch (featureID) {
471 case TaxationWithRootPackage.INCOME_DETAIL__AMOUNT:
472 setAmount(AMOUNT_EDEFAULT);
473 return;
474 case TaxationWithRootPackage.INCOME_DETAIL__IS_WORKED:
475 setIs_worked(IS_WORKED_EDEFAULT);
476 return;
477 case TaxationWithRootPackage.INCOME_DETAIL__DISTANCE:
478 setDistance(DISTANCE_EDEFAULT);
479 return;
480 case TaxationWithRootPackage.INCOME_DETAIL__WORKED_DAYS:
481 setWorked_days(WORKED_DAYS_EDEFAULT);
482 return;
483 case TaxationWithRootPackage.INCOME_DETAIL__IS_CONTRIBUTING_CNS:
484 setIs_contributing_CNS(IS_CONTRIBUTING_CNS_EDEFAULT);
485 return;
486 case TaxationWithRootPackage.INCOME_DETAIL__ID5:
487 setId5(ID5_EDEFAULT);
488 return;
489 case TaxationWithRootPackage.INCOME_DETAIL__INCOME:
490 setIncome((Income)null);
491 return;
492 }
493 super.eUnset(featureID);
494 }
495
496 /**
497 * <!-- begin-user-doc -->
498 * <!-- end-user-doc -->
499 * @generated
500 */
501 @Override
502 public boolean eIsSet(int featureID) {
503 switch (featureID) {
504 case TaxationWithRootPackage.INCOME_DETAIL__AMOUNT:
505 return amount != AMOUNT_EDEFAULT;
506 case TaxationWithRootPackage.INCOME_DETAIL__IS_WORKED:
507 return is_worked != IS_WORKED_EDEFAULT;
508 case TaxationWithRootPackage.INCOME_DETAIL__DISTANCE:
509 return distance != DISTANCE_EDEFAULT;
510 case TaxationWithRootPackage.INCOME_DETAIL__WORKED_DAYS:
511 return worked_days != WORKED_DAYS_EDEFAULT;
512 case TaxationWithRootPackage.INCOME_DETAIL__IS_CONTRIBUTING_CNS:
513 return is_contributing_CNS != IS_CONTRIBUTING_CNS_EDEFAULT;
514 case TaxationWithRootPackage.INCOME_DETAIL__ID5:
515 return ID5_EDEFAULT == null ? id5 != null : !ID5_EDEFAULT.equals(id5);
516 case TaxationWithRootPackage.INCOME_DETAIL__INCOME:
517 return getIncome() != null;
518 }
519 return super.eIsSet(featureID);
520 }
521
522 /**
523 * <!-- begin-user-doc -->
524 * <!-- end-user-doc -->
525 * @generated
526 */
527 @Override
528 public String toString() {
529 if (eIsProxy()) return super.toString();
530
531 StringBuilder result = new StringBuilder(super.toString());
532 result.append(" (amount: ");
533 result.append(amount);
534 result.append(", is_worked: ");
535 result.append(is_worked);
536 result.append(", distance: ");
537 result.append(distance);
538 result.append(", worked_days: ");
539 result.append(worked_days);
540 result.append(", is_contributing_CNS: ");
541 result.append(is_contributing_CNS);
542 result.append(", id5: ");
543 result.append(id5);
544 result.append(')');
545 return result.toString();
546 }
547
548} //Income_DetailImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_TaxImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_TaxImpl.java
new file mode 100644
index 00000000..58619bc1
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_TaxImpl.java
@@ -0,0 +1,341 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Income_Tax;
6import TaxationWithRoot.Tax_Payer;
7import TaxationWithRoot.TaxationWithRootPackage;
8
9import org.eclipse.emf.common.notify.Notification;
10
11import org.eclipse.emf.ecore.EClass;
12import org.eclipse.emf.ecore.InternalEObject;
13
14import org.eclipse.emf.ecore.impl.ENotificationImpl;
15import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
16
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>Income Tax</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * </p>
24 * <ul>
25 * <li>{@link TaxationWithRoot.impl.Income_TaxImpl#getTaxPayer <em>Tax Payer</em>}</li>
26 * <li>{@link TaxationWithRoot.impl.Income_TaxImpl#getTax_amount <em>Tax amount</em>}</li>
27 * <li>{@link TaxationWithRoot.impl.Income_TaxImpl#getTax_year <em>Tax year</em>}</li>
28 * <li>{@link TaxationWithRoot.impl.Income_TaxImpl#getId6 <em>Id6</em>}</li>
29 * </ul>
30 *
31 * @generated
32 */
33public class Income_TaxImpl extends MinimalEObjectImpl.Container implements Income_Tax {
34 /**
35 * The cached value of the '{@link #getTaxPayer() <em>Tax Payer</em>}' reference.
36 * <!-- begin-user-doc -->
37 * <!-- end-user-doc -->
38 * @see #getTaxPayer()
39 * @generated
40 * @ordered
41 */
42 protected Tax_Payer taxPayer;
43
44 /**
45 * The default value of the '{@link #getTax_amount() <em>Tax amount</em>}' attribute.
46 * <!-- begin-user-doc -->
47 * <!-- end-user-doc -->
48 * @see #getTax_amount()
49 * @generated
50 * @ordered
51 */
52 protected static final double TAX_AMOUNT_EDEFAULT = 0.0;
53
54 /**
55 * The cached value of the '{@link #getTax_amount() <em>Tax amount</em>}' attribute.
56 * <!-- begin-user-doc -->
57 * <!-- end-user-doc -->
58 * @see #getTax_amount()
59 * @generated
60 * @ordered
61 */
62 protected double tax_amount = TAX_AMOUNT_EDEFAULT;
63
64 /**
65 * The default value of the '{@link #getTax_year() <em>Tax year</em>}' attribute.
66 * <!-- begin-user-doc -->
67 * <!-- end-user-doc -->
68 * @see #getTax_year()
69 * @generated
70 * @ordered
71 */
72 protected static final int TAX_YEAR_EDEFAULT = 0;
73
74 /**
75 * The cached value of the '{@link #getTax_year() <em>Tax year</em>}' attribute.
76 * <!-- begin-user-doc -->
77 * <!-- end-user-doc -->
78 * @see #getTax_year()
79 * @generated
80 * @ordered
81 */
82 protected int tax_year = TAX_YEAR_EDEFAULT;
83
84 /**
85 * The default value of the '{@link #getId6() <em>Id6</em>}' attribute.
86 * <!-- begin-user-doc -->
87 * <!-- end-user-doc -->
88 * @see #getId6()
89 * @generated
90 * @ordered
91 */
92 protected static final String ID6_EDEFAULT = null;
93
94 /**
95 * The cached value of the '{@link #getId6() <em>Id6</em>}' attribute.
96 * <!-- begin-user-doc -->
97 * <!-- end-user-doc -->
98 * @see #getId6()
99 * @generated
100 * @ordered
101 */
102 protected String id6 = ID6_EDEFAULT;
103
104 /**
105 * <!-- begin-user-doc -->
106 * <!-- end-user-doc -->
107 * @generated
108 */
109 protected Income_TaxImpl() {
110 super();
111 }
112
113 /**
114 * <!-- begin-user-doc -->
115 * <!-- end-user-doc -->
116 * @generated
117 */
118 @Override
119 protected EClass eStaticClass() {
120 return TaxationWithRootPackage.Literals.INCOME_TAX;
121 }
122
123 /**
124 * <!-- begin-user-doc -->
125 * <!-- end-user-doc -->
126 * @generated
127 */
128 @Override
129 public Tax_Payer getTaxPayer() {
130 if (taxPayer != null && taxPayer.eIsProxy()) {
131 InternalEObject oldTaxPayer = (InternalEObject)taxPayer;
132 taxPayer = (Tax_Payer)eResolveProxy(oldTaxPayer);
133 if (taxPayer != oldTaxPayer) {
134 if (eNotificationRequired())
135 eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationWithRootPackage.INCOME_TAX__TAX_PAYER, oldTaxPayer, taxPayer));
136 }
137 }
138 return taxPayer;
139 }
140
141 /**
142 * <!-- begin-user-doc -->
143 * <!-- end-user-doc -->
144 * @generated
145 */
146 public Tax_Payer basicGetTaxPayer() {
147 return taxPayer;
148 }
149
150 /**
151 * <!-- begin-user-doc -->
152 * <!-- end-user-doc -->
153 * @generated
154 */
155 @Override
156 public void setTaxPayer(Tax_Payer newTaxPayer) {
157 Tax_Payer oldTaxPayer = taxPayer;
158 taxPayer = newTaxPayer;
159 if (eNotificationRequired())
160 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX__TAX_PAYER, oldTaxPayer, taxPayer));
161 }
162
163 /**
164 * <!-- begin-user-doc -->
165 * <!-- end-user-doc -->
166 * @generated
167 */
168 @Override
169 public double getTax_amount() {
170 return tax_amount;
171 }
172
173 /**
174 * <!-- begin-user-doc -->
175 * <!-- end-user-doc -->
176 * @generated
177 */
178 @Override
179 public void setTax_amount(double newTax_amount) {
180 double oldTax_amount = tax_amount;
181 tax_amount = newTax_amount;
182 if (eNotificationRequired())
183 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX__TAX_AMOUNT, oldTax_amount, tax_amount));
184 }
185
186 /**
187 * <!-- begin-user-doc -->
188 * <!-- end-user-doc -->
189 * @generated
190 */
191 @Override
192 public int getTax_year() {
193 return tax_year;
194 }
195
196 /**
197 * <!-- begin-user-doc -->
198 * <!-- end-user-doc -->
199 * @generated
200 */
201 @Override
202 public void setTax_year(int newTax_year) {
203 int oldTax_year = tax_year;
204 tax_year = newTax_year;
205 if (eNotificationRequired())
206 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX__TAX_YEAR, oldTax_year, tax_year));
207 }
208
209 /**
210 * <!-- begin-user-doc -->
211 * <!-- end-user-doc -->
212 * @generated
213 */
214 @Override
215 public String getId6() {
216 return id6;
217 }
218
219 /**
220 * <!-- begin-user-doc -->
221 * <!-- end-user-doc -->
222 * @generated
223 */
224 @Override
225 public void setId6(String newId6) {
226 String oldId6 = id6;
227 id6 = newId6;
228 if (eNotificationRequired())
229 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX__ID6, oldId6, id6));
230 }
231
232 /**
233 * <!-- begin-user-doc -->
234 * <!-- end-user-doc -->
235 * @generated
236 */
237 @Override
238 public Object eGet(int featureID, boolean resolve, boolean coreType) {
239 switch (featureID) {
240 case TaxationWithRootPackage.INCOME_TAX__TAX_PAYER:
241 if (resolve) return getTaxPayer();
242 return basicGetTaxPayer();
243 case TaxationWithRootPackage.INCOME_TAX__TAX_AMOUNT:
244 return getTax_amount();
245 case TaxationWithRootPackage.INCOME_TAX__TAX_YEAR:
246 return getTax_year();
247 case TaxationWithRootPackage.INCOME_TAX__ID6:
248 return getId6();
249 }
250 return super.eGet(featureID, resolve, coreType);
251 }
252
253 /**
254 * <!-- begin-user-doc -->
255 * <!-- end-user-doc -->
256 * @generated
257 */
258 @Override
259 public void eSet(int featureID, Object newValue) {
260 switch (featureID) {
261 case TaxationWithRootPackage.INCOME_TAX__TAX_PAYER:
262 setTaxPayer((Tax_Payer)newValue);
263 return;
264 case TaxationWithRootPackage.INCOME_TAX__TAX_AMOUNT:
265 setTax_amount((Double)newValue);
266 return;
267 case TaxationWithRootPackage.INCOME_TAX__TAX_YEAR:
268 setTax_year((Integer)newValue);
269 return;
270 case TaxationWithRootPackage.INCOME_TAX__ID6:
271 setId6((String)newValue);
272 return;
273 }
274 super.eSet(featureID, newValue);
275 }
276
277 /**
278 * <!-- begin-user-doc -->
279 * <!-- end-user-doc -->
280 * @generated
281 */
282 @Override
283 public void eUnset(int featureID) {
284 switch (featureID) {
285 case TaxationWithRootPackage.INCOME_TAX__TAX_PAYER:
286 setTaxPayer((Tax_Payer)null);
287 return;
288 case TaxationWithRootPackage.INCOME_TAX__TAX_AMOUNT:
289 setTax_amount(TAX_AMOUNT_EDEFAULT);
290 return;
291 case TaxationWithRootPackage.INCOME_TAX__TAX_YEAR:
292 setTax_year(TAX_YEAR_EDEFAULT);
293 return;
294 case TaxationWithRootPackage.INCOME_TAX__ID6:
295 setId6(ID6_EDEFAULT);
296 return;
297 }
298 super.eUnset(featureID);
299 }
300
301 /**
302 * <!-- begin-user-doc -->
303 * <!-- end-user-doc -->
304 * @generated
305 */
306 @Override
307 public boolean eIsSet(int featureID) {
308 switch (featureID) {
309 case TaxationWithRootPackage.INCOME_TAX__TAX_PAYER:
310 return taxPayer != null;
311 case TaxationWithRootPackage.INCOME_TAX__TAX_AMOUNT:
312 return tax_amount != TAX_AMOUNT_EDEFAULT;
313 case TaxationWithRootPackage.INCOME_TAX__TAX_YEAR:
314 return tax_year != TAX_YEAR_EDEFAULT;
315 case TaxationWithRootPackage.INCOME_TAX__ID6:
316 return ID6_EDEFAULT == null ? id6 != null : !ID6_EDEFAULT.equals(id6);
317 }
318 return super.eIsSet(featureID);
319 }
320
321 /**
322 * <!-- begin-user-doc -->
323 * <!-- end-user-doc -->
324 * @generated
325 */
326 @Override
327 public String toString() {
328 if (eIsProxy()) return super.toString();
329
330 StringBuilder result = new StringBuilder(super.toString());
331 result.append(" (tax_amount: ");
332 result.append(tax_amount);
333 result.append(", tax_year: ");
334 result.append(tax_year);
335 result.append(", id6: ");
336 result.append(id6);
337 result.append(')');
338 return result.toString();
339 }
340
341} //Income_TaxImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_Tax_CreditImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_Tax_CreditImpl.java
new file mode 100644
index 00000000..4e7a317a
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_Tax_CreditImpl.java
@@ -0,0 +1,626 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Grantor;
6import TaxationWithRoot.Income_Tax_Credit;
7import TaxationWithRoot.Tax_Card;
8import TaxationWithRoot.Tax_Payer;
9import TaxationWithRoot.TaxationWithRootPackage;
10
11import org.eclipse.emf.common.notify.Notification;
12import org.eclipse.emf.common.notify.NotificationChain;
13
14import org.eclipse.emf.ecore.EClass;
15import org.eclipse.emf.ecore.InternalEObject;
16
17import org.eclipse.emf.ecore.impl.ENotificationImpl;
18import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
19
20/**
21 * <!-- begin-user-doc -->
22 * An implementation of the model object '<em><b>Income Tax Credit</b></em>'.
23 * <!-- end-user-doc -->
24 * <p>
25 * The following features are implemented:
26 * </p>
27 * <ul>
28 * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getGrantedBy <em>Granted By</em>}</li>
29 * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getTaxPayer <em>Tax Payer</em>}</li>
30 * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getTax_year <em>Tax year</em>}</li>
31 * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getYearly <em>Yearly</em>}</li>
32 * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getMonthly <em>Monthly</em>}</li>
33 * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getDaily <em>Daily</em>}</li>
34 * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getId7 <em>Id7</em>}</li>
35 * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getTaxation_Frame <em>Taxation Frame</em>}</li>
36 * </ul>
37 *
38 * @generated
39 */
40public class Income_Tax_CreditImpl extends MinimalEObjectImpl.Container implements Income_Tax_Credit {
41 /**
42 * The default value of the '{@link #getGrantedBy() <em>Granted By</em>}' attribute.
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
45 * @see #getGrantedBy()
46 * @generated
47 * @ordered
48 */
49 protected static final Grantor GRANTED_BY_EDEFAULT = Grantor.WWW;
50
51 /**
52 * The cached value of the '{@link #getGrantedBy() <em>Granted By</em>}' attribute.
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @see #getGrantedBy()
56 * @generated
57 * @ordered
58 */
59 protected Grantor grantedBy = GRANTED_BY_EDEFAULT;
60
61 /**
62 * The cached value of the '{@link #getTaxPayer() <em>Tax Payer</em>}' reference.
63 * <!-- begin-user-doc -->
64 * <!-- end-user-doc -->
65 * @see #getTaxPayer()
66 * @generated
67 * @ordered
68 */
69 protected Tax_Payer taxPayer;
70
71 /**
72 * The default value of the '{@link #getTax_year() <em>Tax year</em>}' attribute.
73 * <!-- begin-user-doc -->
74 * <!-- end-user-doc -->
75 * @see #getTax_year()
76 * @generated
77 * @ordered
78 */
79 protected static final int TAX_YEAR_EDEFAULT = 0;
80
81 /**
82 * The cached value of the '{@link #getTax_year() <em>Tax year</em>}' attribute.
83 * <!-- begin-user-doc -->
84 * <!-- end-user-doc -->
85 * @see #getTax_year()
86 * @generated
87 * @ordered
88 */
89 protected int tax_year = TAX_YEAR_EDEFAULT;
90
91 /**
92 * The default value of the '{@link #getYearly() <em>Yearly</em>}' attribute.
93 * <!-- begin-user-doc -->
94 * <!-- end-user-doc -->
95 * @see #getYearly()
96 * @generated
97 * @ordered
98 */
99 protected static final double YEARLY_EDEFAULT = 300.0;
100
101 /**
102 * The cached value of the '{@link #getYearly() <em>Yearly</em>}' attribute.
103 * <!-- begin-user-doc -->
104 * <!-- end-user-doc -->
105 * @see #getYearly()
106 * @generated
107 * @ordered
108 */
109 protected double yearly = YEARLY_EDEFAULT;
110
111 /**
112 * The default value of the '{@link #getMonthly() <em>Monthly</em>}' attribute.
113 * <!-- begin-user-doc -->
114 * <!-- end-user-doc -->
115 * @see #getMonthly()
116 * @generated
117 * @ordered
118 */
119 protected static final double MONTHLY_EDEFAULT = 25.0;
120
121 /**
122 * The cached value of the '{@link #getMonthly() <em>Monthly</em>}' attribute.
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @see #getMonthly()
126 * @generated
127 * @ordered
128 */
129 protected double monthly = MONTHLY_EDEFAULT;
130
131 /**
132 * The default value of the '{@link #getDaily() <em>Daily</em>}' attribute.
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @see #getDaily()
136 * @generated
137 * @ordered
138 */
139 protected static final double DAILY_EDEFAULT = 1.0;
140
141 /**
142 * The cached value of the '{@link #getDaily() <em>Daily</em>}' attribute.
143 * <!-- begin-user-doc -->
144 * <!-- end-user-doc -->
145 * @see #getDaily()
146 * @generated
147 * @ordered
148 */
149 protected double daily = DAILY_EDEFAULT;
150
151 /**
152 * The default value of the '{@link #getId7() <em>Id7</em>}' attribute.
153 * <!-- begin-user-doc -->
154 * <!-- end-user-doc -->
155 * @see #getId7()
156 * @generated
157 * @ordered
158 */
159 protected static final String ID7_EDEFAULT = null;
160
161 /**
162 * The cached value of the '{@link #getId7() <em>Id7</em>}' attribute.
163 * <!-- begin-user-doc -->
164 * <!-- end-user-doc -->
165 * @see #getId7()
166 * @generated
167 * @ordered
168 */
169 protected String id7 = ID7_EDEFAULT;
170
171 /**
172 * The cached value of the '{@link #getTaxation_Frame() <em>Taxation Frame</em>}' reference.
173 * <!-- begin-user-doc -->
174 * <!-- end-user-doc -->
175 * @see #getTaxation_Frame()
176 * @generated
177 * @ordered
178 */
179 protected Tax_Card taxation_Frame;
180
181 /**
182 * <!-- begin-user-doc -->
183 * <!-- end-user-doc -->
184 * @generated
185 */
186 protected Income_Tax_CreditImpl() {
187 super();
188 }
189
190 /**
191 * <!-- begin-user-doc -->
192 * <!-- end-user-doc -->
193 * @generated
194 */
195 @Override
196 protected EClass eStaticClass() {
197 return TaxationWithRootPackage.Literals.INCOME_TAX_CREDIT;
198 }
199
200 /**
201 * <!-- begin-user-doc -->
202 * <!-- end-user-doc -->
203 * @generated
204 */
205 @Override
206 public Grantor getGrantedBy() {
207 return grantedBy;
208 }
209
210 /**
211 * <!-- begin-user-doc -->
212 * <!-- end-user-doc -->
213 * @generated
214 */
215 @Override
216 public void setGrantedBy(Grantor newGrantedBy) {
217 Grantor oldGrantedBy = grantedBy;
218 grantedBy = newGrantedBy == null ? GRANTED_BY_EDEFAULT : newGrantedBy;
219 if (eNotificationRequired())
220 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX_CREDIT__GRANTED_BY, oldGrantedBy, grantedBy));
221 }
222
223 /**
224 * <!-- begin-user-doc -->
225 * <!-- end-user-doc -->
226 * @generated
227 */
228 @Override
229 public Tax_Payer getTaxPayer() {
230 if (taxPayer != null && taxPayer.eIsProxy()) {
231 InternalEObject oldTaxPayer = (InternalEObject)taxPayer;
232 taxPayer = (Tax_Payer)eResolveProxy(oldTaxPayer);
233 if (taxPayer != oldTaxPayer) {
234 if (eNotificationRequired())
235 eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_PAYER, oldTaxPayer, taxPayer));
236 }
237 }
238 return taxPayer;
239 }
240
241 /**
242 * <!-- begin-user-doc -->
243 * <!-- end-user-doc -->
244 * @generated
245 */
246 public Tax_Payer basicGetTaxPayer() {
247 return taxPayer;
248 }
249
250 /**
251 * <!-- begin-user-doc -->
252 * <!-- end-user-doc -->
253 * @generated
254 */
255 @Override
256 public void setTaxPayer(Tax_Payer newTaxPayer) {
257 Tax_Payer oldTaxPayer = taxPayer;
258 taxPayer = newTaxPayer;
259 if (eNotificationRequired())
260 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_PAYER, oldTaxPayer, taxPayer));
261 }
262
263 /**
264 * <!-- begin-user-doc -->
265 * <!-- end-user-doc -->
266 * @generated
267 */
268 @Override
269 public int getTax_year() {
270 return tax_year;
271 }
272
273 /**
274 * <!-- begin-user-doc -->
275 * <!-- end-user-doc -->
276 * @generated
277 */
278 @Override
279 public void setTax_year(int newTax_year) {
280 int oldTax_year = tax_year;
281 tax_year = newTax_year;
282 if (eNotificationRequired())
283 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_YEAR, oldTax_year, tax_year));
284 }
285
286 /**
287 * <!-- begin-user-doc -->
288 * <!-- end-user-doc -->
289 * @generated
290 */
291 @Override
292 public double getYearly() {
293 return yearly;
294 }
295
296 /**
297 * <!-- begin-user-doc -->
298 * <!-- end-user-doc -->
299 * @generated
300 */
301 @Override
302 public void setYearly(double newYearly) {
303 double oldYearly = yearly;
304 yearly = newYearly;
305 if (eNotificationRequired())
306 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX_CREDIT__YEARLY, oldYearly, yearly));
307 }
308
309 /**
310 * <!-- begin-user-doc -->
311 * <!-- end-user-doc -->
312 * @generated
313 */
314 @Override
315 public double getMonthly() {
316 return monthly;
317 }
318
319 /**
320 * <!-- begin-user-doc -->
321 * <!-- end-user-doc -->
322 * @generated
323 */
324 @Override
325 public void setMonthly(double newMonthly) {
326 double oldMonthly = monthly;
327 monthly = newMonthly;
328 if (eNotificationRequired())
329 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX_CREDIT__MONTHLY, oldMonthly, monthly));
330 }
331
332 /**
333 * <!-- begin-user-doc -->
334 * <!-- end-user-doc -->
335 * @generated
336 */
337 @Override
338 public double getDaily() {
339 return daily;
340 }
341
342 /**
343 * <!-- begin-user-doc -->
344 * <!-- end-user-doc -->
345 * @generated
346 */
347 @Override
348 public void setDaily(double newDaily) {
349 double oldDaily = daily;
350 daily = newDaily;
351 if (eNotificationRequired())
352 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX_CREDIT__DAILY, oldDaily, daily));
353 }
354
355 /**
356 * <!-- begin-user-doc -->
357 * <!-- end-user-doc -->
358 * @generated
359 */
360 @Override
361 public String getId7() {
362 return id7;
363 }
364
365 /**
366 * <!-- begin-user-doc -->
367 * <!-- end-user-doc -->
368 * @generated
369 */
370 @Override
371 public void setId7(String newId7) {
372 String oldId7 = id7;
373 id7 = newId7;
374 if (eNotificationRequired())
375 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX_CREDIT__ID7, oldId7, id7));
376 }
377
378 /**
379 * <!-- begin-user-doc -->
380 * <!-- end-user-doc -->
381 * @generated
382 */
383 @Override
384 public Tax_Card getTaxation_Frame() {
385 if (taxation_Frame != null && taxation_Frame.eIsProxy()) {
386 InternalEObject oldTaxation_Frame = (InternalEObject)taxation_Frame;
387 taxation_Frame = (Tax_Card)eResolveProxy(oldTaxation_Frame);
388 if (taxation_Frame != oldTaxation_Frame) {
389 if (eNotificationRequired())
390 eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationWithRootPackage.INCOME_TAX_CREDIT__TAXATION_FRAME, oldTaxation_Frame, taxation_Frame));
391 }
392 }
393 return taxation_Frame;
394 }
395
396 /**
397 * <!-- begin-user-doc -->
398 * <!-- end-user-doc -->
399 * @generated
400 */
401 public Tax_Card basicGetTaxation_Frame() {
402 return taxation_Frame;
403 }
404
405 /**
406 * <!-- begin-user-doc -->
407 * <!-- end-user-doc -->
408 * @generated
409 */
410 public NotificationChain basicSetTaxation_Frame(Tax_Card newTaxation_Frame, NotificationChain msgs) {
411 Tax_Card oldTaxation_Frame = taxation_Frame;
412 taxation_Frame = newTaxation_Frame;
413 if (eNotificationRequired()) {
414 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX_CREDIT__TAXATION_FRAME, oldTaxation_Frame, newTaxation_Frame);
415 if (msgs == null) msgs = notification; else msgs.add(notification);
416 }
417 return msgs;
418 }
419
420 /**
421 * <!-- begin-user-doc -->
422 * <!-- end-user-doc -->
423 * @generated
424 */
425 @Override
426 public void setTaxation_Frame(Tax_Card newTaxation_Frame) {
427 if (newTaxation_Frame != taxation_Frame) {
428 NotificationChain msgs = null;
429 if (taxation_Frame != null)
430 msgs = ((InternalEObject)taxation_Frame).eInverseRemove(this, TaxationWithRootPackage.TAX_CARD__INCOME_TAX_CREDIT, Tax_Card.class, msgs);
431 if (newTaxation_Frame != null)
432 msgs = ((InternalEObject)newTaxation_Frame).eInverseAdd(this, TaxationWithRootPackage.TAX_CARD__INCOME_TAX_CREDIT, Tax_Card.class, msgs);
433 msgs = basicSetTaxation_Frame(newTaxation_Frame, msgs);
434 if (msgs != null) msgs.dispatch();
435 }
436 else if (eNotificationRequired())
437 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX_CREDIT__TAXATION_FRAME, newTaxation_Frame, newTaxation_Frame));
438 }
439
440 /**
441 * <!-- begin-user-doc -->
442 * <!-- end-user-doc -->
443 * @generated
444 */
445 @Override
446 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
447 switch (featureID) {
448 case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAXATION_FRAME:
449 if (taxation_Frame != null)
450 msgs = ((InternalEObject)taxation_Frame).eInverseRemove(this, TaxationWithRootPackage.TAX_CARD__INCOME_TAX_CREDIT, Tax_Card.class, msgs);
451 return basicSetTaxation_Frame((Tax_Card)otherEnd, msgs);
452 }
453 return super.eInverseAdd(otherEnd, featureID, msgs);
454 }
455
456 /**
457 * <!-- begin-user-doc -->
458 * <!-- end-user-doc -->
459 * @generated
460 */
461 @Override
462 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
463 switch (featureID) {
464 case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAXATION_FRAME:
465 return basicSetTaxation_Frame(null, msgs);
466 }
467 return super.eInverseRemove(otherEnd, featureID, msgs);
468 }
469
470 /**
471 * <!-- begin-user-doc -->
472 * <!-- end-user-doc -->
473 * @generated
474 */
475 @Override
476 public Object eGet(int featureID, boolean resolve, boolean coreType) {
477 switch (featureID) {
478 case TaxationWithRootPackage.INCOME_TAX_CREDIT__GRANTED_BY:
479 return getGrantedBy();
480 case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_PAYER:
481 if (resolve) return getTaxPayer();
482 return basicGetTaxPayer();
483 case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_YEAR:
484 return getTax_year();
485 case TaxationWithRootPackage.INCOME_TAX_CREDIT__YEARLY:
486 return getYearly();
487 case TaxationWithRootPackage.INCOME_TAX_CREDIT__MONTHLY:
488 return getMonthly();
489 case TaxationWithRootPackage.INCOME_TAX_CREDIT__DAILY:
490 return getDaily();
491 case TaxationWithRootPackage.INCOME_TAX_CREDIT__ID7:
492 return getId7();
493 case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAXATION_FRAME:
494 if (resolve) return getTaxation_Frame();
495 return basicGetTaxation_Frame();
496 }
497 return super.eGet(featureID, resolve, coreType);
498 }
499
500 /**
501 * <!-- begin-user-doc -->
502 * <!-- end-user-doc -->
503 * @generated
504 */
505 @Override
506 public void eSet(int featureID, Object newValue) {
507 switch (featureID) {
508 case TaxationWithRootPackage.INCOME_TAX_CREDIT__GRANTED_BY:
509 setGrantedBy((Grantor)newValue);
510 return;
511 case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_PAYER:
512 setTaxPayer((Tax_Payer)newValue);
513 return;
514 case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_YEAR:
515 setTax_year((Integer)newValue);
516 return;
517 case TaxationWithRootPackage.INCOME_TAX_CREDIT__YEARLY:
518 setYearly((Double)newValue);
519 return;
520 case TaxationWithRootPackage.INCOME_TAX_CREDIT__MONTHLY:
521 setMonthly((Double)newValue);
522 return;
523 case TaxationWithRootPackage.INCOME_TAX_CREDIT__DAILY:
524 setDaily((Double)newValue);
525 return;
526 case TaxationWithRootPackage.INCOME_TAX_CREDIT__ID7:
527 setId7((String)newValue);
528 return;
529 case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAXATION_FRAME:
530 setTaxation_Frame((Tax_Card)newValue);
531 return;
532 }
533 super.eSet(featureID, newValue);
534 }
535
536 /**
537 * <!-- begin-user-doc -->
538 * <!-- end-user-doc -->
539 * @generated
540 */
541 @Override
542 public void eUnset(int featureID) {
543 switch (featureID) {
544 case TaxationWithRootPackage.INCOME_TAX_CREDIT__GRANTED_BY:
545 setGrantedBy(GRANTED_BY_EDEFAULT);
546 return;
547 case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_PAYER:
548 setTaxPayer((Tax_Payer)null);
549 return;
550 case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_YEAR:
551 setTax_year(TAX_YEAR_EDEFAULT);
552 return;
553 case TaxationWithRootPackage.INCOME_TAX_CREDIT__YEARLY:
554 setYearly(YEARLY_EDEFAULT);
555 return;
556 case TaxationWithRootPackage.INCOME_TAX_CREDIT__MONTHLY:
557 setMonthly(MONTHLY_EDEFAULT);
558 return;
559 case TaxationWithRootPackage.INCOME_TAX_CREDIT__DAILY:
560 setDaily(DAILY_EDEFAULT);
561 return;
562 case TaxationWithRootPackage.INCOME_TAX_CREDIT__ID7:
563 setId7(ID7_EDEFAULT);
564 return;
565 case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAXATION_FRAME:
566 setTaxation_Frame((Tax_Card)null);
567 return;
568 }
569 super.eUnset(featureID);
570 }
571
572 /**
573 * <!-- begin-user-doc -->
574 * <!-- end-user-doc -->
575 * @generated
576 */
577 @Override
578 public boolean eIsSet(int featureID) {
579 switch (featureID) {
580 case TaxationWithRootPackage.INCOME_TAX_CREDIT__GRANTED_BY:
581 return grantedBy != GRANTED_BY_EDEFAULT;
582 case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_PAYER:
583 return taxPayer != null;
584 case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_YEAR:
585 return tax_year != TAX_YEAR_EDEFAULT;
586 case TaxationWithRootPackage.INCOME_TAX_CREDIT__YEARLY:
587 return yearly != YEARLY_EDEFAULT;
588 case TaxationWithRootPackage.INCOME_TAX_CREDIT__MONTHLY:
589 return monthly != MONTHLY_EDEFAULT;
590 case TaxationWithRootPackage.INCOME_TAX_CREDIT__DAILY:
591 return daily != DAILY_EDEFAULT;
592 case TaxationWithRootPackage.INCOME_TAX_CREDIT__ID7:
593 return ID7_EDEFAULT == null ? id7 != null : !ID7_EDEFAULT.equals(id7);
594 case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAXATION_FRAME:
595 return taxation_Frame != null;
596 }
597 return super.eIsSet(featureID);
598 }
599
600 /**
601 * <!-- begin-user-doc -->
602 * <!-- end-user-doc -->
603 * @generated
604 */
605 @Override
606 public String toString() {
607 if (eIsProxy()) return super.toString();
608
609 StringBuilder result = new StringBuilder(super.toString());
610 result.append(" (grantedBy: ");
611 result.append(grantedBy);
612 result.append(", tax_year: ");
613 result.append(tax_year);
614 result.append(", yearly: ");
615 result.append(yearly);
616 result.append(", monthly: ");
617 result.append(monthly);
618 result.append(", daily: ");
619 result.append(daily);
620 result.append(", id7: ");
621 result.append(id7);
622 result.append(')');
623 return result.toString();
624 }
625
626} //Income_Tax_CreditImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_TypeImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_TypeImpl.java
new file mode 100644
index 00000000..c3411b34
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_TypeImpl.java
@@ -0,0 +1,268 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Income;
6import TaxationWithRoot.Income_Type;
7import TaxationWithRoot.TaxationWithRootPackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
17
18import org.eclipse.emf.ecore.util.EcoreUtil;
19
20/**
21 * <!-- begin-user-doc -->
22 * An implementation of the model object '<em><b>Income Type</b></em>'.
23 * <!-- end-user-doc -->
24 * <p>
25 * The following features are implemented:
26 * </p>
27 * <ul>
28 * <li>{@link TaxationWithRoot.impl.Income_TypeImpl#getId8 <em>Id8</em>}</li>
29 * <li>{@link TaxationWithRoot.impl.Income_TypeImpl#getIncome <em>Income</em>}</li>
30 * </ul>
31 *
32 * @generated
33 */
34public abstract class Income_TypeImpl extends MinimalEObjectImpl.Container implements Income_Type {
35 /**
36 * The default value of the '{@link #getId8() <em>Id8</em>}' attribute.
37 * <!-- begin-user-doc -->
38 * <!-- end-user-doc -->
39 * @see #getId8()
40 * @generated
41 * @ordered
42 */
43 protected static final String ID8_EDEFAULT = null;
44
45 /**
46 * The cached value of the '{@link #getId8() <em>Id8</em>}' attribute.
47 * <!-- begin-user-doc -->
48 * <!-- end-user-doc -->
49 * @see #getId8()
50 * @generated
51 * @ordered
52 */
53 protected String id8 = ID8_EDEFAULT;
54
55 /**
56 * <!-- begin-user-doc -->
57 * <!-- end-user-doc -->
58 * @generated
59 */
60 protected Income_TypeImpl() {
61 super();
62 }
63
64 /**
65 * <!-- begin-user-doc -->
66 * <!-- end-user-doc -->
67 * @generated
68 */
69 @Override
70 protected EClass eStaticClass() {
71 return TaxationWithRootPackage.Literals.INCOME_TYPE;
72 }
73
74 /**
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @generated
78 */
79 @Override
80 public String getId8() {
81 return id8;
82 }
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 @Override
90 public void setId8(String newId8) {
91 String oldId8 = id8;
92 id8 = newId8;
93 if (eNotificationRequired())
94 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TYPE__ID8, oldId8, id8));
95 }
96
97 /**
98 * <!-- begin-user-doc -->
99 * <!-- end-user-doc -->
100 * @generated
101 */
102 @Override
103 public Income getIncome() {
104 if (eContainerFeatureID() != TaxationWithRootPackage.INCOME_TYPE__INCOME) return null;
105 return (Income)eInternalContainer();
106 }
107
108 /**
109 * <!-- begin-user-doc -->
110 * <!-- end-user-doc -->
111 * @generated
112 */
113 public NotificationChain basicSetIncome(Income newIncome, NotificationChain msgs) {
114 msgs = eBasicSetContainer((InternalEObject)newIncome, TaxationWithRootPackage.INCOME_TYPE__INCOME, msgs);
115 return msgs;
116 }
117
118 /**
119 * <!-- begin-user-doc -->
120 * <!-- end-user-doc -->
121 * @generated
122 */
123 @Override
124 public void setIncome(Income newIncome) {
125 if (newIncome != eInternalContainer() || (eContainerFeatureID() != TaxationWithRootPackage.INCOME_TYPE__INCOME && newIncome != null)) {
126 if (EcoreUtil.isAncestor(this, newIncome))
127 throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
128 NotificationChain msgs = null;
129 if (eInternalContainer() != null)
130 msgs = eBasicRemoveFromContainer(msgs);
131 if (newIncome != null)
132 msgs = ((InternalEObject)newIncome).eInverseAdd(this, TaxationWithRootPackage.INCOME__INCOME_TYPE, Income.class, msgs);
133 msgs = basicSetIncome(newIncome, msgs);
134 if (msgs != null) msgs.dispatch();
135 }
136 else if (eNotificationRequired())
137 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TYPE__INCOME, newIncome, newIncome));
138 }
139
140 /**
141 * <!-- begin-user-doc -->
142 * <!-- end-user-doc -->
143 * @generated
144 */
145 @Override
146 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
147 switch (featureID) {
148 case TaxationWithRootPackage.INCOME_TYPE__INCOME:
149 if (eInternalContainer() != null)
150 msgs = eBasicRemoveFromContainer(msgs);
151 return basicSetIncome((Income)otherEnd, msgs);
152 }
153 return super.eInverseAdd(otherEnd, featureID, msgs);
154 }
155
156 /**
157 * <!-- begin-user-doc -->
158 * <!-- end-user-doc -->
159 * @generated
160 */
161 @Override
162 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
163 switch (featureID) {
164 case TaxationWithRootPackage.INCOME_TYPE__INCOME:
165 return basicSetIncome(null, msgs);
166 }
167 return super.eInverseRemove(otherEnd, featureID, msgs);
168 }
169
170 /**
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @generated
174 */
175 @Override
176 public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
177 switch (eContainerFeatureID()) {
178 case TaxationWithRootPackage.INCOME_TYPE__INCOME:
179 return eInternalContainer().eInverseRemove(this, TaxationWithRootPackage.INCOME__INCOME_TYPE, Income.class, msgs);
180 }
181 return super.eBasicRemoveFromContainerFeature(msgs);
182 }
183
184 /**
185 * <!-- begin-user-doc -->
186 * <!-- end-user-doc -->
187 * @generated
188 */
189 @Override
190 public Object eGet(int featureID, boolean resolve, boolean coreType) {
191 switch (featureID) {
192 case TaxationWithRootPackage.INCOME_TYPE__ID8:
193 return getId8();
194 case TaxationWithRootPackage.INCOME_TYPE__INCOME:
195 return getIncome();
196 }
197 return super.eGet(featureID, resolve, coreType);
198 }
199
200 /**
201 * <!-- begin-user-doc -->
202 * <!-- end-user-doc -->
203 * @generated
204 */
205 @Override
206 public void eSet(int featureID, Object newValue) {
207 switch (featureID) {
208 case TaxationWithRootPackage.INCOME_TYPE__ID8:
209 setId8((String)newValue);
210 return;
211 case TaxationWithRootPackage.INCOME_TYPE__INCOME:
212 setIncome((Income)newValue);
213 return;
214 }
215 super.eSet(featureID, newValue);
216 }
217
218 /**
219 * <!-- begin-user-doc -->
220 * <!-- end-user-doc -->
221 * @generated
222 */
223 @Override
224 public void eUnset(int featureID) {
225 switch (featureID) {
226 case TaxationWithRootPackage.INCOME_TYPE__ID8:
227 setId8(ID8_EDEFAULT);
228 return;
229 case TaxationWithRootPackage.INCOME_TYPE__INCOME:
230 setIncome((Income)null);
231 return;
232 }
233 super.eUnset(featureID);
234 }
235
236 /**
237 * <!-- begin-user-doc -->
238 * <!-- end-user-doc -->
239 * @generated
240 */
241 @Override
242 public boolean eIsSet(int featureID) {
243 switch (featureID) {
244 case TaxationWithRootPackage.INCOME_TYPE__ID8:
245 return ID8_EDEFAULT == null ? id8 != null : !ID8_EDEFAULT.equals(id8);
246 case TaxationWithRootPackage.INCOME_TYPE__INCOME:
247 return getIncome() != null;
248 }
249 return super.eIsSet(featureID);
250 }
251
252 /**
253 * <!-- begin-user-doc -->
254 * <!-- end-user-doc -->
255 * @generated
256 */
257 @Override
258 public String toString() {
259 if (eIsProxy()) return super.toString();
260
261 StringBuilder result = new StringBuilder(super.toString());
262 result.append(" (id8: ");
263 result.append(id8);
264 result.append(')');
265 return result.toString();
266 }
267
268} //Income_TypeImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Interest_ExpenseImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Interest_ExpenseImpl.java
new file mode 100644
index 00000000..cc5df875
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Interest_ExpenseImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Interest_Expense;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Interest Expense</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class Interest_ExpenseImpl extends Special_Expense_DSImpl implements Interest_Expense {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected Interest_ExpenseImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.INTEREST_EXPENSE;
35 }
36
37} //Interest_ExpenseImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Legal_Union_RecordImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Legal_Union_RecordImpl.java
new file mode 100644
index 00000000..90d04c90
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Legal_Union_RecordImpl.java
@@ -0,0 +1,648 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Household;
6import TaxationWithRoot.Legal_Union_Record;
7import TaxationWithRoot.Physical_Person;
8import TaxationWithRoot.Separation_Causes;
9import TaxationWithRoot.Tax_Property;
10import TaxationWithRoot.TaxationWithRootPackage;
11
12import java.util.Collection;
13
14import org.eclipse.emf.common.notify.Notification;
15import org.eclipse.emf.common.notify.NotificationChain;
16
17import org.eclipse.emf.common.util.EList;
18
19import org.eclipse.emf.ecore.EClass;
20import org.eclipse.emf.ecore.InternalEObject;
21
22import org.eclipse.emf.ecore.impl.ENotificationImpl;
23import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
24
25import org.eclipse.emf.ecore.util.EObjectContainmentEList;
26import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
27import org.eclipse.emf.ecore.util.EcoreUtil;
28import org.eclipse.emf.ecore.util.InternalEList;
29
30/**
31 * <!-- begin-user-doc -->
32 * An implementation of the model object '<em><b>Legal Union Record</b></em>'.
33 * <!-- end-user-doc -->
34 * <p>
35 * The following features are implemented:
36 * </p>
37 * <ul>
38 * <li>{@link TaxationWithRoot.impl.Legal_Union_RecordImpl#getStart_year <em>Start year</em>}</li>
39 * <li>{@link TaxationWithRoot.impl.Legal_Union_RecordImpl#getEnd_year <em>End year</em>}</li>
40 * <li>{@link TaxationWithRoot.impl.Legal_Union_RecordImpl#getSeparation_cause <em>Separation cause</em>}</li>
41 * <li>{@link TaxationWithRoot.impl.Legal_Union_RecordImpl#getIndividual_A <em>Individual A</em>}</li>
42 * <li>{@link TaxationWithRoot.impl.Legal_Union_RecordImpl#getIndividual_B <em>Individual B</em>}</li>
43 * <li>{@link TaxationWithRoot.impl.Legal_Union_RecordImpl#getProperties <em>Properties</em>}</li>
44 * <li>{@link TaxationWithRoot.impl.Legal_Union_RecordImpl#isMutual_agreement <em>Mutual agreement</em>}</li>
45 * <li>{@link TaxationWithRoot.impl.Legal_Union_RecordImpl#getId9 <em>Id9</em>}</li>
46 * <li>{@link TaxationWithRoot.impl.Legal_Union_RecordImpl#getHousehold <em>Household</em>}</li>
47 * </ul>
48 *
49 * @generated
50 */
51public abstract class Legal_Union_RecordImpl extends MinimalEObjectImpl.Container implements Legal_Union_Record {
52 /**
53 * The default value of the '{@link #getStart_year() <em>Start year</em>}' attribute.
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @see #getStart_year()
57 * @generated
58 * @ordered
59 */
60 protected static final int START_YEAR_EDEFAULT = 0;
61
62 /**
63 * The cached value of the '{@link #getStart_year() <em>Start year</em>}' attribute.
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @see #getStart_year()
67 * @generated
68 * @ordered
69 */
70 protected int start_year = START_YEAR_EDEFAULT;
71
72 /**
73 * The default value of the '{@link #getEnd_year() <em>End year</em>}' attribute.
74 * <!-- begin-user-doc -->
75 * <!-- end-user-doc -->
76 * @see #getEnd_year()
77 * @generated
78 * @ordered
79 */
80 protected static final int END_YEAR_EDEFAULT = 0;
81
82 /**
83 * The cached value of the '{@link #getEnd_year() <em>End year</em>}' attribute.
84 * <!-- begin-user-doc -->
85 * <!-- end-user-doc -->
86 * @see #getEnd_year()
87 * @generated
88 * @ordered
89 */
90 protected int end_year = END_YEAR_EDEFAULT;
91
92 /**
93 * The default value of the '{@link #getSeparation_cause() <em>Separation cause</em>}' attribute.
94 * <!-- begin-user-doc -->
95 * <!-- end-user-doc -->
96 * @see #getSeparation_cause()
97 * @generated
98 * @ordered
99 */
100 protected static final Separation_Causes SEPARATION_CAUSE_EDEFAULT = Separation_Causes.NONE;
101
102 /**
103 * The cached value of the '{@link #getSeparation_cause() <em>Separation cause</em>}' attribute.
104 * <!-- begin-user-doc -->
105 * <!-- end-user-doc -->
106 * @see #getSeparation_cause()
107 * @generated
108 * @ordered
109 */
110 protected Separation_Causes separation_cause = SEPARATION_CAUSE_EDEFAULT;
111
112 /**
113 * The cached value of the '{@link #getIndividual_A() <em>Individual A</em>}' containment reference.
114 * <!-- begin-user-doc -->
115 * <!-- end-user-doc -->
116 * @see #getIndividual_A()
117 * @generated
118 * @ordered
119 */
120 protected Physical_Person individual_A;
121
122 /**
123 * The cached value of the '{@link #getIndividual_B() <em>Individual B</em>}' containment reference list.
124 * <!-- begin-user-doc -->
125 * <!-- end-user-doc -->
126 * @see #getIndividual_B()
127 * @generated
128 * @ordered
129 */
130 protected EList<Physical_Person> individual_B;
131
132 /**
133 * The cached value of the '{@link #getProperties() <em>Properties</em>}' containment reference list.
134 * <!-- begin-user-doc -->
135 * <!-- end-user-doc -->
136 * @see #getProperties()
137 * @generated
138 * @ordered
139 */
140 protected EList<Tax_Property> properties;
141
142 /**
143 * The default value of the '{@link #isMutual_agreement() <em>Mutual agreement</em>}' attribute.
144 * <!-- begin-user-doc -->
145 * <!-- end-user-doc -->
146 * @see #isMutual_agreement()
147 * @generated
148 * @ordered
149 */
150 protected static final boolean MUTUAL_AGREEMENT_EDEFAULT = false;
151
152 /**
153 * The cached value of the '{@link #isMutual_agreement() <em>Mutual agreement</em>}' attribute.
154 * <!-- begin-user-doc -->
155 * <!-- end-user-doc -->
156 * @see #isMutual_agreement()
157 * @generated
158 * @ordered
159 */
160 protected boolean mutual_agreement = MUTUAL_AGREEMENT_EDEFAULT;
161
162 /**
163 * The default value of the '{@link #getId9() <em>Id9</em>}' attribute.
164 * <!-- begin-user-doc -->
165 * <!-- end-user-doc -->
166 * @see #getId9()
167 * @generated
168 * @ordered
169 */
170 protected static final String ID9_EDEFAULT = null;
171
172 /**
173 * The cached value of the '{@link #getId9() <em>Id9</em>}' attribute.
174 * <!-- begin-user-doc -->
175 * <!-- end-user-doc -->
176 * @see #getId9()
177 * @generated
178 * @ordered
179 */
180 protected String id9 = ID9_EDEFAULT;
181
182 /**
183 * <!-- begin-user-doc -->
184 * <!-- end-user-doc -->
185 * @generated
186 */
187 protected Legal_Union_RecordImpl() {
188 super();
189 }
190
191 /**
192 * <!-- begin-user-doc -->
193 * <!-- end-user-doc -->
194 * @generated
195 */
196 @Override
197 protected EClass eStaticClass() {
198 return TaxationWithRootPackage.Literals.LEGAL_UNION_RECORD;
199 }
200
201 /**
202 * <!-- begin-user-doc -->
203 * <!-- end-user-doc -->
204 * @generated
205 */
206 @Override
207 public int getStart_year() {
208 return start_year;
209 }
210
211 /**
212 * <!-- begin-user-doc -->
213 * <!-- end-user-doc -->
214 * @generated
215 */
216 @Override
217 public void setStart_year(int newStart_year) {
218 int oldStart_year = start_year;
219 start_year = newStart_year;
220 if (eNotificationRequired())
221 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.LEGAL_UNION_RECORD__START_YEAR, oldStart_year, start_year));
222 }
223
224 /**
225 * <!-- begin-user-doc -->
226 * <!-- end-user-doc -->
227 * @generated
228 */
229 @Override
230 public int getEnd_year() {
231 return end_year;
232 }
233
234 /**
235 * <!-- begin-user-doc -->
236 * <!-- end-user-doc -->
237 * @generated
238 */
239 @Override
240 public void setEnd_year(int newEnd_year) {
241 int oldEnd_year = end_year;
242 end_year = newEnd_year;
243 if (eNotificationRequired())
244 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.LEGAL_UNION_RECORD__END_YEAR, oldEnd_year, end_year));
245 }
246
247 /**
248 * <!-- begin-user-doc -->
249 * <!-- end-user-doc -->
250 * @generated
251 */
252 @Override
253 public Separation_Causes getSeparation_cause() {
254 return separation_cause;
255 }
256
257 /**
258 * <!-- begin-user-doc -->
259 * <!-- end-user-doc -->
260 * @generated
261 */
262 @Override
263 public void setSeparation_cause(Separation_Causes newSeparation_cause) {
264 Separation_Causes oldSeparation_cause = separation_cause;
265 separation_cause = newSeparation_cause == null ? SEPARATION_CAUSE_EDEFAULT : newSeparation_cause;
266 if (eNotificationRequired())
267 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.LEGAL_UNION_RECORD__SEPARATION_CAUSE, oldSeparation_cause, separation_cause));
268 }
269
270 /**
271 * <!-- begin-user-doc -->
272 * <!-- end-user-doc -->
273 * @generated
274 */
275 @Override
276 public Physical_Person getIndividual_A() {
277 return individual_A;
278 }
279
280 /**
281 * <!-- begin-user-doc -->
282 * <!-- end-user-doc -->
283 * @generated
284 */
285 public NotificationChain basicSetIndividual_A(Physical_Person newIndividual_A, NotificationChain msgs) {
286 Physical_Person oldIndividual_A = individual_A;
287 individual_A = newIndividual_A;
288 if (eNotificationRequired()) {
289 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A, oldIndividual_A, newIndividual_A);
290 if (msgs == null) msgs = notification; else msgs.add(notification);
291 }
292 return msgs;
293 }
294
295 /**
296 * <!-- begin-user-doc -->
297 * <!-- end-user-doc -->
298 * @generated
299 */
300 @Override
301 public void setIndividual_A(Physical_Person newIndividual_A) {
302 if (newIndividual_A != individual_A) {
303 NotificationChain msgs = null;
304 if (individual_A != null)
305 msgs = ((InternalEObject)individual_A).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TaxationWithRootPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A, null, msgs);
306 if (newIndividual_A != null)
307 msgs = ((InternalEObject)newIndividual_A).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - TaxationWithRootPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A, null, msgs);
308 msgs = basicSetIndividual_A(newIndividual_A, msgs);
309 if (msgs != null) msgs.dispatch();
310 }
311 else if (eNotificationRequired())
312 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A, newIndividual_A, newIndividual_A));
313 }
314
315 /**
316 * <!-- begin-user-doc -->
317 * <!-- end-user-doc -->
318 * @generated
319 */
320 @Override
321 public EList<Physical_Person> getIndividual_B() {
322 if (individual_B == null) {
323 individual_B = new EObjectContainmentEList<Physical_Person>(Physical_Person.class, this, TaxationWithRootPackage.LEGAL_UNION_RECORD__INDIVIDUAL_B);
324 }
325 return individual_B;
326 }
327
328 /**
329 * <!-- begin-user-doc -->
330 * <!-- end-user-doc -->
331 * @generated
332 */
333 @Override
334 public EList<Tax_Property> getProperties() {
335 if (properties == null) {
336 properties = new EObjectContainmentWithInverseEList<Tax_Property>(Tax_Property.class, this, TaxationWithRootPackage.LEGAL_UNION_RECORD__PROPERTIES, TaxationWithRootPackage.TAX_PROPERTY__UNION_RECORD);
337 }
338 return properties;
339 }
340
341 /**
342 * <!-- begin-user-doc -->
343 * <!-- end-user-doc -->
344 * @generated
345 */
346 @Override
347 public boolean isMutual_agreement() {
348 return mutual_agreement;
349 }
350
351 /**
352 * <!-- begin-user-doc -->
353 * <!-- end-user-doc -->
354 * @generated
355 */
356 @Override
357 public void setMutual_agreement(boolean newMutual_agreement) {
358 boolean oldMutual_agreement = mutual_agreement;
359 mutual_agreement = newMutual_agreement;
360 if (eNotificationRequired())
361 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.LEGAL_UNION_RECORD__MUTUAL_AGREEMENT, oldMutual_agreement, mutual_agreement));
362 }
363
364 /**
365 * <!-- begin-user-doc -->
366 * <!-- end-user-doc -->
367 * @generated
368 */
369 @Override
370 public String getId9() {
371 return id9;
372 }
373
374 /**
375 * <!-- begin-user-doc -->
376 * <!-- end-user-doc -->
377 * @generated
378 */
379 @Override
380 public void setId9(String newId9) {
381 String oldId9 = id9;
382 id9 = newId9;
383 if (eNotificationRequired())
384 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.LEGAL_UNION_RECORD__ID9, oldId9, id9));
385 }
386
387 /**
388 * <!-- begin-user-doc -->
389 * <!-- end-user-doc -->
390 * @generated
391 */
392 @Override
393 public Household getHousehold() {
394 if (eContainerFeatureID() != TaxationWithRootPackage.LEGAL_UNION_RECORD__HOUSEHOLD) return null;
395 return (Household)eInternalContainer();
396 }
397
398 /**
399 * <!-- begin-user-doc -->
400 * <!-- end-user-doc -->
401 * @generated
402 */
403 public NotificationChain basicSetHousehold(Household newHousehold, NotificationChain msgs) {
404 msgs = eBasicSetContainer((InternalEObject)newHousehold, TaxationWithRootPackage.LEGAL_UNION_RECORD__HOUSEHOLD, msgs);
405 return msgs;
406 }
407
408 /**
409 * <!-- begin-user-doc -->
410 * <!-- end-user-doc -->
411 * @generated
412 */
413 @Override
414 public void setHousehold(Household newHousehold) {
415 if (newHousehold != eInternalContainer() || (eContainerFeatureID() != TaxationWithRootPackage.LEGAL_UNION_RECORD__HOUSEHOLD && newHousehold != null)) {
416 if (EcoreUtil.isAncestor(this, newHousehold))
417 throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
418 NotificationChain msgs = null;
419 if (eInternalContainer() != null)
420 msgs = eBasicRemoveFromContainer(msgs);
421 if (newHousehold != null)
422 msgs = ((InternalEObject)newHousehold).eInverseAdd(this, TaxationWithRootPackage.HOUSEHOLD__PARENTS, Household.class, msgs);
423 msgs = basicSetHousehold(newHousehold, msgs);
424 if (msgs != null) msgs.dispatch();
425 }
426 else if (eNotificationRequired())
427 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.LEGAL_UNION_RECORD__HOUSEHOLD, newHousehold, newHousehold));
428 }
429
430 /**
431 * <!-- begin-user-doc -->
432 * <!-- end-user-doc -->
433 * @generated
434 */
435 @SuppressWarnings("unchecked")
436 @Override
437 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
438 switch (featureID) {
439 case TaxationWithRootPackage.LEGAL_UNION_RECORD__PROPERTIES:
440 return ((InternalEList<InternalEObject>)(InternalEList<?>)getProperties()).basicAdd(otherEnd, msgs);
441 case TaxationWithRootPackage.LEGAL_UNION_RECORD__HOUSEHOLD:
442 if (eInternalContainer() != null)
443 msgs = eBasicRemoveFromContainer(msgs);
444 return basicSetHousehold((Household)otherEnd, msgs);
445 }
446 return super.eInverseAdd(otherEnd, featureID, msgs);
447 }
448
449 /**
450 * <!-- begin-user-doc -->
451 * <!-- end-user-doc -->
452 * @generated
453 */
454 @Override
455 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
456 switch (featureID) {
457 case TaxationWithRootPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A:
458 return basicSetIndividual_A(null, msgs);
459 case TaxationWithRootPackage.LEGAL_UNION_RECORD__INDIVIDUAL_B:
460 return ((InternalEList<?>)getIndividual_B()).basicRemove(otherEnd, msgs);
461 case TaxationWithRootPackage.LEGAL_UNION_RECORD__PROPERTIES:
462 return ((InternalEList<?>)getProperties()).basicRemove(otherEnd, msgs);
463 case TaxationWithRootPackage.LEGAL_UNION_RECORD__HOUSEHOLD:
464 return basicSetHousehold(null, msgs);
465 }
466 return super.eInverseRemove(otherEnd, featureID, msgs);
467 }
468
469 /**
470 * <!-- begin-user-doc -->
471 * <!-- end-user-doc -->
472 * @generated
473 */
474 @Override
475 public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
476 switch (eContainerFeatureID()) {
477 case TaxationWithRootPackage.LEGAL_UNION_RECORD__HOUSEHOLD:
478 return eInternalContainer().eInverseRemove(this, TaxationWithRootPackage.HOUSEHOLD__PARENTS, Household.class, msgs);
479 }
480 return super.eBasicRemoveFromContainerFeature(msgs);
481 }
482
483 /**
484 * <!-- begin-user-doc -->
485 * <!-- end-user-doc -->
486 * @generated
487 */
488 @Override
489 public Object eGet(int featureID, boolean resolve, boolean coreType) {
490 switch (featureID) {
491 case TaxationWithRootPackage.LEGAL_UNION_RECORD__START_YEAR:
492 return getStart_year();
493 case TaxationWithRootPackage.LEGAL_UNION_RECORD__END_YEAR:
494 return getEnd_year();
495 case TaxationWithRootPackage.LEGAL_UNION_RECORD__SEPARATION_CAUSE:
496 return getSeparation_cause();
497 case TaxationWithRootPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A:
498 return getIndividual_A();
499 case TaxationWithRootPackage.LEGAL_UNION_RECORD__INDIVIDUAL_B:
500 return getIndividual_B();
501 case TaxationWithRootPackage.LEGAL_UNION_RECORD__PROPERTIES:
502 return getProperties();
503 case TaxationWithRootPackage.LEGAL_UNION_RECORD__MUTUAL_AGREEMENT:
504 return isMutual_agreement();
505 case TaxationWithRootPackage.LEGAL_UNION_RECORD__ID9:
506 return getId9();
507 case TaxationWithRootPackage.LEGAL_UNION_RECORD__HOUSEHOLD:
508 return getHousehold();
509 }
510 return super.eGet(featureID, resolve, coreType);
511 }
512
513 /**
514 * <!-- begin-user-doc -->
515 * <!-- end-user-doc -->
516 * @generated
517 */
518 @SuppressWarnings("unchecked")
519 @Override
520 public void eSet(int featureID, Object newValue) {
521 switch (featureID) {
522 case TaxationWithRootPackage.LEGAL_UNION_RECORD__START_YEAR:
523 setStart_year((Integer)newValue);
524 return;
525 case TaxationWithRootPackage.LEGAL_UNION_RECORD__END_YEAR:
526 setEnd_year((Integer)newValue);
527 return;
528 case TaxationWithRootPackage.LEGAL_UNION_RECORD__SEPARATION_CAUSE:
529 setSeparation_cause((Separation_Causes)newValue);
530 return;
531 case TaxationWithRootPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A:
532 setIndividual_A((Physical_Person)newValue);
533 return;
534 case TaxationWithRootPackage.LEGAL_UNION_RECORD__INDIVIDUAL_B:
535 getIndividual_B().clear();
536 getIndividual_B().addAll((Collection<? extends Physical_Person>)newValue);
537 return;
538 case TaxationWithRootPackage.LEGAL_UNION_RECORD__PROPERTIES:
539 getProperties().clear();
540 getProperties().addAll((Collection<? extends Tax_Property>)newValue);
541 return;
542 case TaxationWithRootPackage.LEGAL_UNION_RECORD__MUTUAL_AGREEMENT:
543 setMutual_agreement((Boolean)newValue);
544 return;
545 case TaxationWithRootPackage.LEGAL_UNION_RECORD__ID9:
546 setId9((String)newValue);
547 return;
548 case TaxationWithRootPackage.LEGAL_UNION_RECORD__HOUSEHOLD:
549 setHousehold((Household)newValue);
550 return;
551 }
552 super.eSet(featureID, newValue);
553 }
554
555 /**
556 * <!-- begin-user-doc -->
557 * <!-- end-user-doc -->
558 * @generated
559 */
560 @Override
561 public void eUnset(int featureID) {
562 switch (featureID) {
563 case TaxationWithRootPackage.LEGAL_UNION_RECORD__START_YEAR:
564 setStart_year(START_YEAR_EDEFAULT);
565 return;
566 case TaxationWithRootPackage.LEGAL_UNION_RECORD__END_YEAR:
567 setEnd_year(END_YEAR_EDEFAULT);
568 return;
569 case TaxationWithRootPackage.LEGAL_UNION_RECORD__SEPARATION_CAUSE:
570 setSeparation_cause(SEPARATION_CAUSE_EDEFAULT);
571 return;
572 case TaxationWithRootPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A:
573 setIndividual_A((Physical_Person)null);
574 return;
575 case TaxationWithRootPackage.LEGAL_UNION_RECORD__INDIVIDUAL_B:
576 getIndividual_B().clear();
577 return;
578 case TaxationWithRootPackage.LEGAL_UNION_RECORD__PROPERTIES:
579 getProperties().clear();
580 return;
581 case TaxationWithRootPackage.LEGAL_UNION_RECORD__MUTUAL_AGREEMENT:
582 setMutual_agreement(MUTUAL_AGREEMENT_EDEFAULT);
583 return;
584 case TaxationWithRootPackage.LEGAL_UNION_RECORD__ID9:
585 setId9(ID9_EDEFAULT);
586 return;
587 case TaxationWithRootPackage.LEGAL_UNION_RECORD__HOUSEHOLD:
588 setHousehold((Household)null);
589 return;
590 }
591 super.eUnset(featureID);
592 }
593
594 /**
595 * <!-- begin-user-doc -->
596 * <!-- end-user-doc -->
597 * @generated
598 */
599 @Override
600 public boolean eIsSet(int featureID) {
601 switch (featureID) {
602 case TaxationWithRootPackage.LEGAL_UNION_RECORD__START_YEAR:
603 return start_year != START_YEAR_EDEFAULT;
604 case TaxationWithRootPackage.LEGAL_UNION_RECORD__END_YEAR:
605 return end_year != END_YEAR_EDEFAULT;
606 case TaxationWithRootPackage.LEGAL_UNION_RECORD__SEPARATION_CAUSE:
607 return separation_cause != SEPARATION_CAUSE_EDEFAULT;
608 case TaxationWithRootPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A:
609 return individual_A != null;
610 case TaxationWithRootPackage.LEGAL_UNION_RECORD__INDIVIDUAL_B:
611 return individual_B != null && !individual_B.isEmpty();
612 case TaxationWithRootPackage.LEGAL_UNION_RECORD__PROPERTIES:
613 return properties != null && !properties.isEmpty();
614 case TaxationWithRootPackage.LEGAL_UNION_RECORD__MUTUAL_AGREEMENT:
615 return mutual_agreement != MUTUAL_AGREEMENT_EDEFAULT;
616 case TaxationWithRootPackage.LEGAL_UNION_RECORD__ID9:
617 return ID9_EDEFAULT == null ? id9 != null : !ID9_EDEFAULT.equals(id9);
618 case TaxationWithRootPackage.LEGAL_UNION_RECORD__HOUSEHOLD:
619 return getHousehold() != null;
620 }
621 return super.eIsSet(featureID);
622 }
623
624 /**
625 * <!-- begin-user-doc -->
626 * <!-- end-user-doc -->
627 * @generated
628 */
629 @Override
630 public String toString() {
631 if (eIsProxy()) return super.toString();
632
633 StringBuilder result = new StringBuilder(super.toString());
634 result.append(" (start_year: ");
635 result.append(start_year);
636 result.append(", end_year: ");
637 result.append(end_year);
638 result.append(", separation_cause: ");
639 result.append(separation_cause);
640 result.append(", mutual_agreement: ");
641 result.append(mutual_agreement);
642 result.append(", id9: ");
643 result.append(id9);
644 result.append(')');
645 return result.toString();
646 }
647
648} //Legal_Union_RecordImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Local_IncomeImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Local_IncomeImpl.java
new file mode 100644
index 00000000..1e7bcf81
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Local_IncomeImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Local_Income;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Local Income</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class Local_IncomeImpl extends IncomeImpl implements Local_Income {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected Local_IncomeImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.LOCAL_INCOME;
35 }
36
37} //Local_IncomeImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Loss_CarryforwardImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Loss_CarryforwardImpl.java
new file mode 100644
index 00000000..32cb3507
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Loss_CarryforwardImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Loss_Carryforward;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Loss Carryforward</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class Loss_CarryforwardImpl extends Special_Expense_DSImpl implements Loss_Carryforward {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected Loss_CarryforwardImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.LOSS_CARRYFORWARD;
35 }
36
37} //Loss_CarryforwardImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Marriage_RecordImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Marriage_RecordImpl.java
new file mode 100644
index 00000000..39f7966a
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Marriage_RecordImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Marriage_Record;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Marriage Record</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class Marriage_RecordImpl extends Legal_Union_RecordImpl implements Marriage_Record {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected Marriage_RecordImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.MARRIAGE_RECORD;
35 }
36
37} //Marriage_RecordImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Miscellaneous_Expense_FOImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Miscellaneous_Expense_FOImpl.java
new file mode 100644
index 00000000..f3b824e7
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Miscellaneous_Expense_FOImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Miscellaneous_Expense_FO;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Miscellaneous Expense FO</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class Miscellaneous_Expense_FOImpl extends Professional_ExpenseImpl implements Miscellaneous_Expense_FO {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected Miscellaneous_Expense_FOImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.MISCELLANEOUS_EXPENSE_FO;
35 }
36
37} //Miscellaneous_Expense_FOImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Non_Resident_Tax_PayerImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Non_Resident_Tax_PayerImpl.java
new file mode 100644
index 00000000..253c1097
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Non_Resident_Tax_PayerImpl.java
@@ -0,0 +1,164 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Non_Resident_Tax_Payer;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.common.notify.Notification;
9
10import org.eclipse.emf.ecore.EClass;
11
12import org.eclipse.emf.ecore.impl.ENotificationImpl;
13
14/**
15 * <!-- begin-user-doc -->
16 * An implementation of the model object '<em><b>Non Resident Tax Payer</b></em>'.
17 * <!-- end-user-doc -->
18 * <p>
19 * The following features are implemented:
20 * </p>
21 * <ul>
22 * <li>{@link TaxationWithRoot.impl.Non_Resident_Tax_PayerImpl#isIs_assimilated_to_resident <em>Is assimilated to resident</em>}</li>
23 * </ul>
24 *
25 * @generated
26 */
27public class Non_Resident_Tax_PayerImpl extends Tax_PayerImpl implements Non_Resident_Tax_Payer {
28 /**
29 * The default value of the '{@link #isIs_assimilated_to_resident() <em>Is assimilated to resident</em>}' attribute.
30 * <!-- begin-user-doc -->
31 * <!-- end-user-doc -->
32 * @see #isIs_assimilated_to_resident()
33 * @generated
34 * @ordered
35 */
36 protected static final boolean IS_ASSIMILATED_TO_RESIDENT_EDEFAULT = false;
37
38 /**
39 * The cached value of the '{@link #isIs_assimilated_to_resident() <em>Is assimilated to resident</em>}' attribute.
40 * <!-- begin-user-doc -->
41 * <!-- end-user-doc -->
42 * @see #isIs_assimilated_to_resident()
43 * @generated
44 * @ordered
45 */
46 protected boolean is_assimilated_to_resident = IS_ASSIMILATED_TO_RESIDENT_EDEFAULT;
47
48 /**
49 * <!-- begin-user-doc -->
50 * <!-- end-user-doc -->
51 * @generated
52 */
53 protected Non_Resident_Tax_PayerImpl() {
54 super();
55 }
56
57 /**
58 * <!-- begin-user-doc -->
59 * <!-- end-user-doc -->
60 * @generated
61 */
62 @Override
63 protected EClass eStaticClass() {
64 return TaxationWithRootPackage.Literals.NON_RESIDENT_TAX_PAYER;
65 }
66
67 /**
68 * <!-- begin-user-doc -->
69 * <!-- end-user-doc -->
70 * @generated
71 */
72 @Override
73 public boolean isIs_assimilated_to_resident() {
74 return is_assimilated_to_resident;
75 }
76
77 /**
78 * <!-- begin-user-doc -->
79 * <!-- end-user-doc -->
80 * @generated
81 */
82 @Override
83 public void setIs_assimilated_to_resident(boolean newIs_assimilated_to_resident) {
84 boolean oldIs_assimilated_to_resident = is_assimilated_to_resident;
85 is_assimilated_to_resident = newIs_assimilated_to_resident;
86 if (eNotificationRequired())
87 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.NON_RESIDENT_TAX_PAYER__IS_ASSIMILATED_TO_RESIDENT, oldIs_assimilated_to_resident, is_assimilated_to_resident));
88 }
89
90 /**
91 * <!-- begin-user-doc -->
92 * <!-- end-user-doc -->
93 * @generated
94 */
95 @Override
96 public Object eGet(int featureID, boolean resolve, boolean coreType) {
97 switch (featureID) {
98 case TaxationWithRootPackage.NON_RESIDENT_TAX_PAYER__IS_ASSIMILATED_TO_RESIDENT:
99 return isIs_assimilated_to_resident();
100 }
101 return super.eGet(featureID, resolve, coreType);
102 }
103
104 /**
105 * <!-- begin-user-doc -->
106 * <!-- end-user-doc -->
107 * @generated
108 */
109 @Override
110 public void eSet(int featureID, Object newValue) {
111 switch (featureID) {
112 case TaxationWithRootPackage.NON_RESIDENT_TAX_PAYER__IS_ASSIMILATED_TO_RESIDENT:
113 setIs_assimilated_to_resident((Boolean)newValue);
114 return;
115 }
116 super.eSet(featureID, newValue);
117 }
118
119 /**
120 * <!-- begin-user-doc -->
121 * <!-- end-user-doc -->
122 * @generated
123 */
124 @Override
125 public void eUnset(int featureID) {
126 switch (featureID) {
127 case TaxationWithRootPackage.NON_RESIDENT_TAX_PAYER__IS_ASSIMILATED_TO_RESIDENT:
128 setIs_assimilated_to_resident(IS_ASSIMILATED_TO_RESIDENT_EDEFAULT);
129 return;
130 }
131 super.eUnset(featureID);
132 }
133
134 /**
135 * <!-- begin-user-doc -->
136 * <!-- end-user-doc -->
137 * @generated
138 */
139 @Override
140 public boolean eIsSet(int featureID) {
141 switch (featureID) {
142 case TaxationWithRootPackage.NON_RESIDENT_TAX_PAYER__IS_ASSIMILATED_TO_RESIDENT:
143 return is_assimilated_to_resident != IS_ASSIMILATED_TO_RESIDENT_EDEFAULT;
144 }
145 return super.eIsSet(featureID);
146 }
147
148 /**
149 * <!-- begin-user-doc -->
150 * <!-- end-user-doc -->
151 * @generated
152 */
153 @Override
154 public String toString() {
155 if (eIsProxy()) return super.toString();
156
157 StringBuilder result = new StringBuilder(super.toString());
158 result.append(" (is_assimilated_to_resident: ");
159 result.append(is_assimilated_to_resident);
160 result.append(')');
161 return result.toString();
162 }
163
164} //Non_Resident_Tax_PayerImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Partnership_RecordImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Partnership_RecordImpl.java
new file mode 100644
index 00000000..fd4dc513
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Partnership_RecordImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Partnership_Record;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Partnership Record</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class Partnership_RecordImpl extends Legal_Union_RecordImpl implements Partnership_Record {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected Partnership_RecordImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.PARTNERSHIP_RECORD;
35 }
36
37} //Partnership_RecordImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Pensions_and_Annuities_IncomeImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Pensions_and_Annuities_IncomeImpl.java
new file mode 100644
index 00000000..e58f5005
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Pensions_and_Annuities_IncomeImpl.java
@@ -0,0 +1,164 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Pensions_and_Annuities_Income;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.common.notify.Notification;
9
10import org.eclipse.emf.ecore.EClass;
11
12import org.eclipse.emf.ecore.impl.ENotificationImpl;
13
14/**
15 * <!-- begin-user-doc -->
16 * An implementation of the model object '<em><b>Pensions and Annuities Income</b></em>'.
17 * <!-- end-user-doc -->
18 * <p>
19 * The following features are implemented:
20 * </p>
21 * <ul>
22 * <li>{@link TaxationWithRoot.impl.Pensions_and_Annuities_IncomeImpl#isOccasional_payement <em>Occasional payement</em>}</li>
23 * </ul>
24 *
25 * @generated
26 */
27public class Pensions_and_Annuities_IncomeImpl extends Income_TypeImpl implements Pensions_and_Annuities_Income {
28 /**
29 * The default value of the '{@link #isOccasional_payement() <em>Occasional payement</em>}' attribute.
30 * <!-- begin-user-doc -->
31 * <!-- end-user-doc -->
32 * @see #isOccasional_payement()
33 * @generated
34 * @ordered
35 */
36 protected static final boolean OCCASIONAL_PAYEMENT_EDEFAULT = false;
37
38 /**
39 * The cached value of the '{@link #isOccasional_payement() <em>Occasional payement</em>}' attribute.
40 * <!-- begin-user-doc -->
41 * <!-- end-user-doc -->
42 * @see #isOccasional_payement()
43 * @generated
44 * @ordered
45 */
46 protected boolean occasional_payement = OCCASIONAL_PAYEMENT_EDEFAULT;
47
48 /**
49 * <!-- begin-user-doc -->
50 * <!-- end-user-doc -->
51 * @generated
52 */
53 protected Pensions_and_Annuities_IncomeImpl() {
54 super();
55 }
56
57 /**
58 * <!-- begin-user-doc -->
59 * <!-- end-user-doc -->
60 * @generated
61 */
62 @Override
63 protected EClass eStaticClass() {
64 return TaxationWithRootPackage.Literals.PENSIONS_AND_ANNUITIES_INCOME;
65 }
66
67 /**
68 * <!-- begin-user-doc -->
69 * <!-- end-user-doc -->
70 * @generated
71 */
72 @Override
73 public boolean isOccasional_payement() {
74 return occasional_payement;
75 }
76
77 /**
78 * <!-- begin-user-doc -->
79 * <!-- end-user-doc -->
80 * @generated
81 */
82 @Override
83 public void setOccasional_payement(boolean newOccasional_payement) {
84 boolean oldOccasional_payement = occasional_payement;
85 occasional_payement = newOccasional_payement;
86 if (eNotificationRequired())
87 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.PENSIONS_AND_ANNUITIES_INCOME__OCCASIONAL_PAYEMENT, oldOccasional_payement, occasional_payement));
88 }
89
90 /**
91 * <!-- begin-user-doc -->
92 * <!-- end-user-doc -->
93 * @generated
94 */
95 @Override
96 public Object eGet(int featureID, boolean resolve, boolean coreType) {
97 switch (featureID) {
98 case TaxationWithRootPackage.PENSIONS_AND_ANNUITIES_INCOME__OCCASIONAL_PAYEMENT:
99 return isOccasional_payement();
100 }
101 return super.eGet(featureID, resolve, coreType);
102 }
103
104 /**
105 * <!-- begin-user-doc -->
106 * <!-- end-user-doc -->
107 * @generated
108 */
109 @Override
110 public void eSet(int featureID, Object newValue) {
111 switch (featureID) {
112 case TaxationWithRootPackage.PENSIONS_AND_ANNUITIES_INCOME__OCCASIONAL_PAYEMENT:
113 setOccasional_payement((Boolean)newValue);
114 return;
115 }
116 super.eSet(featureID, newValue);
117 }
118
119 /**
120 * <!-- begin-user-doc -->
121 * <!-- end-user-doc -->
122 * @generated
123 */
124 @Override
125 public void eUnset(int featureID) {
126 switch (featureID) {
127 case TaxationWithRootPackage.PENSIONS_AND_ANNUITIES_INCOME__OCCASIONAL_PAYEMENT:
128 setOccasional_payement(OCCASIONAL_PAYEMENT_EDEFAULT);
129 return;
130 }
131 super.eUnset(featureID);
132 }
133
134 /**
135 * <!-- begin-user-doc -->
136 * <!-- end-user-doc -->
137 * @generated
138 */
139 @Override
140 public boolean eIsSet(int featureID) {
141 switch (featureID) {
142 case TaxationWithRootPackage.PENSIONS_AND_ANNUITIES_INCOME__OCCASIONAL_PAYEMENT:
143 return occasional_payement != OCCASIONAL_PAYEMENT_EDEFAULT;
144 }
145 return super.eIsSet(featureID);
146 }
147
148 /**
149 * <!-- begin-user-doc -->
150 * <!-- end-user-doc -->
151 * @generated
152 */
153 @Override
154 public String toString() {
155 if (eIsProxy()) return super.toString();
156
157 StringBuilder result = new StringBuilder(super.toString());
158 result.append(" (occasional_payement: ");
159 result.append(occasional_payement);
160 result.append(')');
161 return result.toString();
162 }
163
164} //Pensions_and_Annuities_IncomeImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Permanent_ExpenseImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Permanent_ExpenseImpl.java
new file mode 100644
index 00000000..c6735595
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Permanent_ExpenseImpl.java
@@ -0,0 +1,165 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Category_of_Permanent_Expense;
6import TaxationWithRoot.Permanent_Expense;
7import TaxationWithRoot.TaxationWithRootPackage;
8
9import org.eclipse.emf.common.notify.Notification;
10
11import org.eclipse.emf.ecore.EClass;
12
13import org.eclipse.emf.ecore.impl.ENotificationImpl;
14
15/**
16 * <!-- begin-user-doc -->
17 * An implementation of the model object '<em><b>Permanent Expense</b></em>'.
18 * <!-- end-user-doc -->
19 * <p>
20 * The following features are implemented:
21 * </p>
22 * <ul>
23 * <li>{@link TaxationWithRoot.impl.Permanent_ExpenseImpl#getCategory <em>Category</em>}</li>
24 * </ul>
25 *
26 * @generated
27 */
28public class Permanent_ExpenseImpl extends Special_Expense_DSImpl implements Permanent_Expense {
29 /**
30 * The default value of the '{@link #getCategory() <em>Category</em>}' attribute.
31 * <!-- begin-user-doc -->
32 * <!-- end-user-doc -->
33 * @see #getCategory()
34 * @generated
35 * @ordered
36 */
37 protected static final Category_of_Permanent_Expense CATEGORY_EDEFAULT = Category_of_Permanent_Expense.MISCELLANEOUS_DEBT;
38
39 /**
40 * The cached value of the '{@link #getCategory() <em>Category</em>}' attribute.
41 * <!-- begin-user-doc -->
42 * <!-- end-user-doc -->
43 * @see #getCategory()
44 * @generated
45 * @ordered
46 */
47 protected Category_of_Permanent_Expense category = CATEGORY_EDEFAULT;
48
49 /**
50 * <!-- begin-user-doc -->
51 * <!-- end-user-doc -->
52 * @generated
53 */
54 protected Permanent_ExpenseImpl() {
55 super();
56 }
57
58 /**
59 * <!-- begin-user-doc -->
60 * <!-- end-user-doc -->
61 * @generated
62 */
63 @Override
64 protected EClass eStaticClass() {
65 return TaxationWithRootPackage.Literals.PERMANENT_EXPENSE;
66 }
67
68 /**
69 * <!-- begin-user-doc -->
70 * <!-- end-user-doc -->
71 * @generated
72 */
73 @Override
74 public Category_of_Permanent_Expense getCategory() {
75 return category;
76 }
77
78 /**
79 * <!-- begin-user-doc -->
80 * <!-- end-user-doc -->
81 * @generated
82 */
83 @Override
84 public void setCategory(Category_of_Permanent_Expense newCategory) {
85 Category_of_Permanent_Expense oldCategory = category;
86 category = newCategory == null ? CATEGORY_EDEFAULT : newCategory;
87 if (eNotificationRequired())
88 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.PERMANENT_EXPENSE__CATEGORY, oldCategory, category));
89 }
90
91 /**
92 * <!-- begin-user-doc -->
93 * <!-- end-user-doc -->
94 * @generated
95 */
96 @Override
97 public Object eGet(int featureID, boolean resolve, boolean coreType) {
98 switch (featureID) {
99 case TaxationWithRootPackage.PERMANENT_EXPENSE__CATEGORY:
100 return getCategory();
101 }
102 return super.eGet(featureID, resolve, coreType);
103 }
104
105 /**
106 * <!-- begin-user-doc -->
107 * <!-- end-user-doc -->
108 * @generated
109 */
110 @Override
111 public void eSet(int featureID, Object newValue) {
112 switch (featureID) {
113 case TaxationWithRootPackage.PERMANENT_EXPENSE__CATEGORY:
114 setCategory((Category_of_Permanent_Expense)newValue);
115 return;
116 }
117 super.eSet(featureID, newValue);
118 }
119
120 /**
121 * <!-- begin-user-doc -->
122 * <!-- end-user-doc -->
123 * @generated
124 */
125 @Override
126 public void eUnset(int featureID) {
127 switch (featureID) {
128 case TaxationWithRootPackage.PERMANENT_EXPENSE__CATEGORY:
129 setCategory(CATEGORY_EDEFAULT);
130 return;
131 }
132 super.eUnset(featureID);
133 }
134
135 /**
136 * <!-- begin-user-doc -->
137 * <!-- end-user-doc -->
138 * @generated
139 */
140 @Override
141 public boolean eIsSet(int featureID) {
142 switch (featureID) {
143 case TaxationWithRootPackage.PERMANENT_EXPENSE__CATEGORY:
144 return category != CATEGORY_EDEFAULT;
145 }
146 return super.eIsSet(featureID);
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 @Override
155 public String toString() {
156 if (eIsProxy()) return super.toString();
157
158 StringBuilder result = new StringBuilder(super.toString());
159 result.append(" (category: ");
160 result.append(category);
161 result.append(')');
162 return result.toString();
163 }
164
165} //Permanent_ExpenseImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Physical_PersonImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Physical_PersonImpl.java
new file mode 100644
index 00000000..408ee362
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Physical_PersonImpl.java
@@ -0,0 +1,617 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Address;
6import TaxationWithRoot.Disability_Types;
7import TaxationWithRoot.Expense;
8import TaxationWithRoot.Physical_Person;
9import TaxationWithRoot.TaxationWithRootPackage;
10
11import java.util.Collection;
12
13import org.eclipse.emf.common.notify.Notification;
14import org.eclipse.emf.common.notify.NotificationChain;
15
16import org.eclipse.emf.common.util.EList;
17
18import org.eclipse.emf.ecore.EClass;
19import org.eclipse.emf.ecore.InternalEObject;
20
21import org.eclipse.emf.ecore.impl.ENotificationImpl;
22import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
23
24import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList;
25import org.eclipse.emf.ecore.util.InternalEList;
26
27/**
28 * <!-- begin-user-doc -->
29 * An implementation of the model object '<em><b>Physical Person</b></em>'.
30 * <!-- end-user-doc -->
31 * <p>
32 * The following features are implemented:
33 * </p>
34 * <ul>
35 * <li>{@link TaxationWithRoot.impl.Physical_PersonImpl#getSSNo <em>SS No</em>}</li>
36 * <li>{@link TaxationWithRoot.impl.Physical_PersonImpl#getAddresses <em>Addresses</em>}</li>
37 * <li>{@link TaxationWithRoot.impl.Physical_PersonImpl#getBirth_year <em>Birth year</em>}</li>
38 * <li>{@link TaxationWithRoot.impl.Physical_PersonImpl#getDisability_percentage <em>Disability percentage</em>}</li>
39 * <li>{@link TaxationWithRoot.impl.Physical_PersonImpl#getDisability_type <em>Disability type</em>}</li>
40 * <li>{@link TaxationWithRoot.impl.Physical_PersonImpl#getBirth_month <em>Birth month</em>}</li>
41 * <li>{@link TaxationWithRoot.impl.Physical_PersonImpl#getBirth_day <em>Birth day</em>}</li>
42 * <li>{@link TaxationWithRoot.impl.Physical_PersonImpl#getExpenses <em>Expenses</em>}</li>
43 * <li>{@link TaxationWithRoot.impl.Physical_PersonImpl#isIs_widower <em>Is widower</em>}</li>
44 * </ul>
45 *
46 * @generated
47 */
48public class Physical_PersonImpl extends MinimalEObjectImpl.Container implements Physical_Person {
49 /**
50 * The default value of the '{@link #getSSNo() <em>SS No</em>}' attribute.
51 * <!-- begin-user-doc -->
52 * <!-- end-user-doc -->
53 * @see #getSSNo()
54 * @generated
55 * @ordered
56 */
57 protected static final String SS_NO_EDEFAULT = null;
58
59 /**
60 * The cached value of the '{@link #getSSNo() <em>SS No</em>}' attribute.
61 * <!-- begin-user-doc -->
62 * <!-- end-user-doc -->
63 * @see #getSSNo()
64 * @generated
65 * @ordered
66 */
67 protected String ssNo = SS_NO_EDEFAULT;
68
69 /**
70 * The cached value of the '{@link #getAddresses() <em>Addresses</em>}' reference list.
71 * <!-- begin-user-doc -->
72 * <!-- end-user-doc -->
73 * @see #getAddresses()
74 * @generated
75 * @ordered
76 */
77 protected EList<Address> addresses;
78
79 /**
80 * The default value of the '{@link #getBirth_year() <em>Birth year</em>}' attribute.
81 * <!-- begin-user-doc -->
82 * <!-- end-user-doc -->
83 * @see #getBirth_year()
84 * @generated
85 * @ordered
86 */
87 protected static final int BIRTH_YEAR_EDEFAULT = 0;
88
89 /**
90 * The cached value of the '{@link #getBirth_year() <em>Birth year</em>}' attribute.
91 * <!-- begin-user-doc -->
92 * <!-- end-user-doc -->
93 * @see #getBirth_year()
94 * @generated
95 * @ordered
96 */
97 protected int birth_year = BIRTH_YEAR_EDEFAULT;
98
99 /**
100 * The default value of the '{@link #getDisability_percentage() <em>Disability percentage</em>}' attribute.
101 * <!-- begin-user-doc -->
102 * <!-- end-user-doc -->
103 * @see #getDisability_percentage()
104 * @generated
105 * @ordered
106 */
107 protected static final double DISABILITY_PERCENTAGE_EDEFAULT = 0.0;
108
109 /**
110 * The cached value of the '{@link #getDisability_percentage() <em>Disability percentage</em>}' attribute.
111 * <!-- begin-user-doc -->
112 * <!-- end-user-doc -->
113 * @see #getDisability_percentage()
114 * @generated
115 * @ordered
116 */
117 protected double disability_percentage = DISABILITY_PERCENTAGE_EDEFAULT;
118
119 /**
120 * The default value of the '{@link #getDisability_type() <em>Disability type</em>}' attribute.
121 * <!-- begin-user-doc -->
122 * <!-- end-user-doc -->
123 * @see #getDisability_type()
124 * @generated
125 * @ordered
126 */
127 protected static final Disability_Types DISABILITY_TYPE_EDEFAULT = Disability_Types.BEUG;
128
129 /**
130 * The cached value of the '{@link #getDisability_type() <em>Disability type</em>}' attribute.
131 * <!-- begin-user-doc -->
132 * <!-- end-user-doc -->
133 * @see #getDisability_type()
134 * @generated
135 * @ordered
136 */
137 protected Disability_Types disability_type = DISABILITY_TYPE_EDEFAULT;
138
139 /**
140 * The default value of the '{@link #getBirth_month() <em>Birth month</em>}' attribute.
141 * <!-- begin-user-doc -->
142 * <!-- end-user-doc -->
143 * @see #getBirth_month()
144 * @generated
145 * @ordered
146 */
147 protected static final int BIRTH_MONTH_EDEFAULT = 0;
148
149 /**
150 * The cached value of the '{@link #getBirth_month() <em>Birth month</em>}' attribute.
151 * <!-- begin-user-doc -->
152 * <!-- end-user-doc -->
153 * @see #getBirth_month()
154 * @generated
155 * @ordered
156 */
157 protected int birth_month = BIRTH_MONTH_EDEFAULT;
158
159 /**
160 * The default value of the '{@link #getBirth_day() <em>Birth day</em>}' attribute.
161 * <!-- begin-user-doc -->
162 * <!-- end-user-doc -->
163 * @see #getBirth_day()
164 * @generated
165 * @ordered
166 */
167 protected static final int BIRTH_DAY_EDEFAULT = 0;
168
169 /**
170 * The cached value of the '{@link #getBirth_day() <em>Birth day</em>}' attribute.
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @see #getBirth_day()
174 * @generated
175 * @ordered
176 */
177 protected int birth_day = BIRTH_DAY_EDEFAULT;
178
179 /**
180 * The cached value of the '{@link #getExpenses() <em>Expenses</em>}' reference list.
181 * <!-- begin-user-doc -->
182 * <!-- end-user-doc -->
183 * @see #getExpenses()
184 * @generated
185 * @ordered
186 */
187 protected EList<Expense> expenses;
188
189 /**
190 * The default value of the '{@link #isIs_widower() <em>Is widower</em>}' attribute.
191 * <!-- begin-user-doc -->
192 * <!-- end-user-doc -->
193 * @see #isIs_widower()
194 * @generated
195 * @ordered
196 */
197 protected static final boolean IS_WIDOWER_EDEFAULT = false;
198
199 /**
200 * The cached value of the '{@link #isIs_widower() <em>Is widower</em>}' attribute.
201 * <!-- begin-user-doc -->
202 * <!-- end-user-doc -->
203 * @see #isIs_widower()
204 * @generated
205 * @ordered
206 */
207 protected boolean is_widower = IS_WIDOWER_EDEFAULT;
208
209 /**
210 * <!-- begin-user-doc -->
211 * <!-- end-user-doc -->
212 * @generated
213 */
214 protected Physical_PersonImpl() {
215 super();
216 }
217
218 /**
219 * <!-- begin-user-doc -->
220 * <!-- end-user-doc -->
221 * @generated
222 */
223 @Override
224 protected EClass eStaticClass() {
225 return TaxationWithRootPackage.Literals.PHYSICAL_PERSON;
226 }
227
228 /**
229 * <!-- begin-user-doc -->
230 * <!-- end-user-doc -->
231 * @generated
232 */
233 @Override
234 public String getSSNo() {
235 return ssNo;
236 }
237
238 /**
239 * <!-- begin-user-doc -->
240 * <!-- end-user-doc -->
241 * @generated
242 */
243 @Override
244 public void setSSNo(String newSSNo) {
245 String oldSSNo = ssNo;
246 ssNo = newSSNo;
247 if (eNotificationRequired())
248 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.PHYSICAL_PERSON__SS_NO, oldSSNo, ssNo));
249 }
250
251 /**
252 * <!-- begin-user-doc -->
253 * <!-- end-user-doc -->
254 * @generated
255 */
256 @Override
257 public EList<Address> getAddresses() {
258 if (addresses == null) {
259 addresses = new EObjectWithInverseResolvingEList.ManyInverse<Address>(Address.class, this, TaxationWithRootPackage.PHYSICAL_PERSON__ADDRESSES, TaxationWithRootPackage.ADDRESS__TAX_PAYER);
260 }
261 return addresses;
262 }
263
264 /**
265 * <!-- begin-user-doc -->
266 * <!-- end-user-doc -->
267 * @generated
268 */
269 @Override
270 public int getBirth_year() {
271 return birth_year;
272 }
273
274 /**
275 * <!-- begin-user-doc -->
276 * <!-- end-user-doc -->
277 * @generated
278 */
279 @Override
280 public void setBirth_year(int newBirth_year) {
281 int oldBirth_year = birth_year;
282 birth_year = newBirth_year;
283 if (eNotificationRequired())
284 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.PHYSICAL_PERSON__BIRTH_YEAR, oldBirth_year, birth_year));
285 }
286
287 /**
288 * <!-- begin-user-doc -->
289 * <!-- end-user-doc -->
290 * @generated
291 */
292 @Override
293 public double getDisability_percentage() {
294 return disability_percentage;
295 }
296
297 /**
298 * <!-- begin-user-doc -->
299 * <!-- end-user-doc -->
300 * @generated
301 */
302 @Override
303 public void setDisability_percentage(double newDisability_percentage) {
304 double oldDisability_percentage = disability_percentage;
305 disability_percentage = newDisability_percentage;
306 if (eNotificationRequired())
307 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.PHYSICAL_PERSON__DISABILITY_PERCENTAGE, oldDisability_percentage, disability_percentage));
308 }
309
310 /**
311 * <!-- begin-user-doc -->
312 * <!-- end-user-doc -->
313 * @generated
314 */
315 @Override
316 public Disability_Types getDisability_type() {
317 return disability_type;
318 }
319
320 /**
321 * <!-- begin-user-doc -->
322 * <!-- end-user-doc -->
323 * @generated
324 */
325 @Override
326 public void setDisability_type(Disability_Types newDisability_type) {
327 Disability_Types oldDisability_type = disability_type;
328 disability_type = newDisability_type == null ? DISABILITY_TYPE_EDEFAULT : newDisability_type;
329 if (eNotificationRequired())
330 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.PHYSICAL_PERSON__DISABILITY_TYPE, oldDisability_type, disability_type));
331 }
332
333 /**
334 * <!-- begin-user-doc -->
335 * <!-- end-user-doc -->
336 * @generated
337 */
338 @Override
339 public int getBirth_month() {
340 return birth_month;
341 }
342
343 /**
344 * <!-- begin-user-doc -->
345 * <!-- end-user-doc -->
346 * @generated
347 */
348 @Override
349 public void setBirth_month(int newBirth_month) {
350 int oldBirth_month = birth_month;
351 birth_month = newBirth_month;
352 if (eNotificationRequired())
353 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.PHYSICAL_PERSON__BIRTH_MONTH, oldBirth_month, birth_month));
354 }
355
356 /**
357 * <!-- begin-user-doc -->
358 * <!-- end-user-doc -->
359 * @generated
360 */
361 @Override
362 public int getBirth_day() {
363 return birth_day;
364 }
365
366 /**
367 * <!-- begin-user-doc -->
368 * <!-- end-user-doc -->
369 * @generated
370 */
371 @Override
372 public void setBirth_day(int newBirth_day) {
373 int oldBirth_day = birth_day;
374 birth_day = newBirth_day;
375 if (eNotificationRequired())
376 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.PHYSICAL_PERSON__BIRTH_DAY, oldBirth_day, birth_day));
377 }
378
379 /**
380 * <!-- begin-user-doc -->
381 * <!-- end-user-doc -->
382 * @generated
383 */
384 @Override
385 public EList<Expense> getExpenses() {
386 if (expenses == null) {
387 expenses = new EObjectWithInverseResolvingEList<Expense>(Expense.class, this, TaxationWithRootPackage.PHYSICAL_PERSON__EXPENSES, TaxationWithRootPackage.EXPENSE__BENEFICIARY);
388 }
389 return expenses;
390 }
391
392 /**
393 * <!-- begin-user-doc -->
394 * <!-- end-user-doc -->
395 * @generated
396 */
397 @Override
398 public boolean isIs_widower() {
399 return is_widower;
400 }
401
402 /**
403 * <!-- begin-user-doc -->
404 * <!-- end-user-doc -->
405 * @generated
406 */
407 @Override
408 public void setIs_widower(boolean newIs_widower) {
409 boolean oldIs_widower = is_widower;
410 is_widower = newIs_widower;
411 if (eNotificationRequired())
412 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.PHYSICAL_PERSON__IS_WIDOWER, oldIs_widower, is_widower));
413 }
414
415 /**
416 * <!-- begin-user-doc -->
417 * <!-- end-user-doc -->
418 * @generated
419 */
420 @SuppressWarnings("unchecked")
421 @Override
422 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
423 switch (featureID) {
424 case TaxationWithRootPackage.PHYSICAL_PERSON__ADDRESSES:
425 return ((InternalEList<InternalEObject>)(InternalEList<?>)getAddresses()).basicAdd(otherEnd, msgs);
426 case TaxationWithRootPackage.PHYSICAL_PERSON__EXPENSES:
427 return ((InternalEList<InternalEObject>)(InternalEList<?>)getExpenses()).basicAdd(otherEnd, msgs);
428 }
429 return super.eInverseAdd(otherEnd, featureID, msgs);
430 }
431
432 /**
433 * <!-- begin-user-doc -->
434 * <!-- end-user-doc -->
435 * @generated
436 */
437 @Override
438 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
439 switch (featureID) {
440 case TaxationWithRootPackage.PHYSICAL_PERSON__ADDRESSES:
441 return ((InternalEList<?>)getAddresses()).basicRemove(otherEnd, msgs);
442 case TaxationWithRootPackage.PHYSICAL_PERSON__EXPENSES:
443 return ((InternalEList<?>)getExpenses()).basicRemove(otherEnd, msgs);
444 }
445 return super.eInverseRemove(otherEnd, featureID, msgs);
446 }
447
448 /**
449 * <!-- begin-user-doc -->
450 * <!-- end-user-doc -->
451 * @generated
452 */
453 @Override
454 public Object eGet(int featureID, boolean resolve, boolean coreType) {
455 switch (featureID) {
456 case TaxationWithRootPackage.PHYSICAL_PERSON__SS_NO:
457 return getSSNo();
458 case TaxationWithRootPackage.PHYSICAL_PERSON__ADDRESSES:
459 return getAddresses();
460 case TaxationWithRootPackage.PHYSICAL_PERSON__BIRTH_YEAR:
461 return getBirth_year();
462 case TaxationWithRootPackage.PHYSICAL_PERSON__DISABILITY_PERCENTAGE:
463 return getDisability_percentage();
464 case TaxationWithRootPackage.PHYSICAL_PERSON__DISABILITY_TYPE:
465 return getDisability_type();
466 case TaxationWithRootPackage.PHYSICAL_PERSON__BIRTH_MONTH:
467 return getBirth_month();
468 case TaxationWithRootPackage.PHYSICAL_PERSON__BIRTH_DAY:
469 return getBirth_day();
470 case TaxationWithRootPackage.PHYSICAL_PERSON__EXPENSES:
471 return getExpenses();
472 case TaxationWithRootPackage.PHYSICAL_PERSON__IS_WIDOWER:
473 return isIs_widower();
474 }
475 return super.eGet(featureID, resolve, coreType);
476 }
477
478 /**
479 * <!-- begin-user-doc -->
480 * <!-- end-user-doc -->
481 * @generated
482 */
483 @SuppressWarnings("unchecked")
484 @Override
485 public void eSet(int featureID, Object newValue) {
486 switch (featureID) {
487 case TaxationWithRootPackage.PHYSICAL_PERSON__SS_NO:
488 setSSNo((String)newValue);
489 return;
490 case TaxationWithRootPackage.PHYSICAL_PERSON__ADDRESSES:
491 getAddresses().clear();
492 getAddresses().addAll((Collection<? extends Address>)newValue);
493 return;
494 case TaxationWithRootPackage.PHYSICAL_PERSON__BIRTH_YEAR:
495 setBirth_year((Integer)newValue);
496 return;
497 case TaxationWithRootPackage.PHYSICAL_PERSON__DISABILITY_PERCENTAGE:
498 setDisability_percentage((Double)newValue);
499 return;
500 case TaxationWithRootPackage.PHYSICAL_PERSON__DISABILITY_TYPE:
501 setDisability_type((Disability_Types)newValue);
502 return;
503 case TaxationWithRootPackage.PHYSICAL_PERSON__BIRTH_MONTH:
504 setBirth_month((Integer)newValue);
505 return;
506 case TaxationWithRootPackage.PHYSICAL_PERSON__BIRTH_DAY:
507 setBirth_day((Integer)newValue);
508 return;
509 case TaxationWithRootPackage.PHYSICAL_PERSON__EXPENSES:
510 getExpenses().clear();
511 getExpenses().addAll((Collection<? extends Expense>)newValue);
512 return;
513 case TaxationWithRootPackage.PHYSICAL_PERSON__IS_WIDOWER:
514 setIs_widower((Boolean)newValue);
515 return;
516 }
517 super.eSet(featureID, newValue);
518 }
519
520 /**
521 * <!-- begin-user-doc -->
522 * <!-- end-user-doc -->
523 * @generated
524 */
525 @Override
526 public void eUnset(int featureID) {
527 switch (featureID) {
528 case TaxationWithRootPackage.PHYSICAL_PERSON__SS_NO:
529 setSSNo(SS_NO_EDEFAULT);
530 return;
531 case TaxationWithRootPackage.PHYSICAL_PERSON__ADDRESSES:
532 getAddresses().clear();
533 return;
534 case TaxationWithRootPackage.PHYSICAL_PERSON__BIRTH_YEAR:
535 setBirth_year(BIRTH_YEAR_EDEFAULT);
536 return;
537 case TaxationWithRootPackage.PHYSICAL_PERSON__DISABILITY_PERCENTAGE:
538 setDisability_percentage(DISABILITY_PERCENTAGE_EDEFAULT);
539 return;
540 case TaxationWithRootPackage.PHYSICAL_PERSON__DISABILITY_TYPE:
541 setDisability_type(DISABILITY_TYPE_EDEFAULT);
542 return;
543 case TaxationWithRootPackage.PHYSICAL_PERSON__BIRTH_MONTH:
544 setBirth_month(BIRTH_MONTH_EDEFAULT);
545 return;
546 case TaxationWithRootPackage.PHYSICAL_PERSON__BIRTH_DAY:
547 setBirth_day(BIRTH_DAY_EDEFAULT);
548 return;
549 case TaxationWithRootPackage.PHYSICAL_PERSON__EXPENSES:
550 getExpenses().clear();
551 return;
552 case TaxationWithRootPackage.PHYSICAL_PERSON__IS_WIDOWER:
553 setIs_widower(IS_WIDOWER_EDEFAULT);
554 return;
555 }
556 super.eUnset(featureID);
557 }
558
559 /**
560 * <!-- begin-user-doc -->
561 * <!-- end-user-doc -->
562 * @generated
563 */
564 @Override
565 public boolean eIsSet(int featureID) {
566 switch (featureID) {
567 case TaxationWithRootPackage.PHYSICAL_PERSON__SS_NO:
568 return SS_NO_EDEFAULT == null ? ssNo != null : !SS_NO_EDEFAULT.equals(ssNo);
569 case TaxationWithRootPackage.PHYSICAL_PERSON__ADDRESSES:
570 return addresses != null && !addresses.isEmpty();
571 case TaxationWithRootPackage.PHYSICAL_PERSON__BIRTH_YEAR:
572 return birth_year != BIRTH_YEAR_EDEFAULT;
573 case TaxationWithRootPackage.PHYSICAL_PERSON__DISABILITY_PERCENTAGE:
574 return disability_percentage != DISABILITY_PERCENTAGE_EDEFAULT;
575 case TaxationWithRootPackage.PHYSICAL_PERSON__DISABILITY_TYPE:
576 return disability_type != DISABILITY_TYPE_EDEFAULT;
577 case TaxationWithRootPackage.PHYSICAL_PERSON__BIRTH_MONTH:
578 return birth_month != BIRTH_MONTH_EDEFAULT;
579 case TaxationWithRootPackage.PHYSICAL_PERSON__BIRTH_DAY:
580 return birth_day != BIRTH_DAY_EDEFAULT;
581 case TaxationWithRootPackage.PHYSICAL_PERSON__EXPENSES:
582 return expenses != null && !expenses.isEmpty();
583 case TaxationWithRootPackage.PHYSICAL_PERSON__IS_WIDOWER:
584 return is_widower != IS_WIDOWER_EDEFAULT;
585 }
586 return super.eIsSet(featureID);
587 }
588
589 /**
590 * <!-- begin-user-doc -->
591 * <!-- end-user-doc -->
592 * @generated
593 */
594 @Override
595 public String toString() {
596 if (eIsProxy()) return super.toString();
597
598 StringBuilder result = new StringBuilder(super.toString());
599 result.append(" (SSNo: ");
600 result.append(ssNo);
601 result.append(", birth_year: ");
602 result.append(birth_year);
603 result.append(", disability_percentage: ");
604 result.append(disability_percentage);
605 result.append(", disability_type: ");
606 result.append(disability_type);
607 result.append(", birth_month: ");
608 result.append(birth_month);
609 result.append(", birth_day: ");
610 result.append(birth_day);
611 result.append(", is_widower: ");
612 result.append(is_widower);
613 result.append(')');
614 return result.toString();
615 }
616
617} //Physical_PersonImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Private_Insurance_and_PlanImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Private_Insurance_and_PlanImpl.java
new file mode 100644
index 00000000..a2881b29
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Private_Insurance_and_PlanImpl.java
@@ -0,0 +1,221 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Category_of_Private_Insurance_and_Plan;
6import TaxationWithRoot.Private_Insurance_and_Plan;
7import TaxationWithRoot.TaxationWithRootPackage;
8
9import org.eclipse.emf.common.notify.Notification;
10
11import org.eclipse.emf.ecore.EClass;
12
13import org.eclipse.emf.ecore.impl.ENotificationImpl;
14
15/**
16 * <!-- begin-user-doc -->
17 * An implementation of the model object '<em><b>Private Insurance and Plan</b></em>'.
18 * <!-- end-user-doc -->
19 * <p>
20 * The following features are implemented:
21 * </p>
22 * <ul>
23 * <li>{@link TaxationWithRoot.impl.Private_Insurance_and_PlanImpl#getCategory <em>Category</em>}</li>
24 * <li>{@link TaxationWithRoot.impl.Private_Insurance_and_PlanImpl#getDuration_of_contract <em>Duration of contract</em>}</li>
25 * </ul>
26 *
27 * @generated
28 */
29public class Private_Insurance_and_PlanImpl extends Special_Expense_DSImpl implements Private_Insurance_and_Plan {
30 /**
31 * The default value of the '{@link #getCategory() <em>Category</em>}' attribute.
32 * <!-- begin-user-doc -->
33 * <!-- end-user-doc -->
34 * @see #getCategory()
35 * @generated
36 * @ordered
37 */
38 protected static final Category_of_Private_Insurance_and_Plan CATEGORY_EDEFAULT = Category_of_Private_Insurance_and_Plan.PRIVATE_INSURANCE;
39
40 /**
41 * The cached value of the '{@link #getCategory() <em>Category</em>}' attribute.
42 * <!-- begin-user-doc -->
43 * <!-- end-user-doc -->
44 * @see #getCategory()
45 * @generated
46 * @ordered
47 */
48 protected Category_of_Private_Insurance_and_Plan category = CATEGORY_EDEFAULT;
49
50 /**
51 * The default value of the '{@link #getDuration_of_contract() <em>Duration of contract</em>}' attribute.
52 * <!-- begin-user-doc -->
53 * <!-- end-user-doc -->
54 * @see #getDuration_of_contract()
55 * @generated
56 * @ordered
57 */
58 protected static final int DURATION_OF_CONTRACT_EDEFAULT = 0;
59
60 /**
61 * The cached value of the '{@link #getDuration_of_contract() <em>Duration of contract</em>}' attribute.
62 * <!-- begin-user-doc -->
63 * <!-- end-user-doc -->
64 * @see #getDuration_of_contract()
65 * @generated
66 * @ordered
67 */
68 protected int duration_of_contract = DURATION_OF_CONTRACT_EDEFAULT;
69
70 /**
71 * <!-- begin-user-doc -->
72 * <!-- end-user-doc -->
73 * @generated
74 */
75 protected Private_Insurance_and_PlanImpl() {
76 super();
77 }
78
79 /**
80 * <!-- begin-user-doc -->
81 * <!-- end-user-doc -->
82 * @generated
83 */
84 @Override
85 protected EClass eStaticClass() {
86 return TaxationWithRootPackage.Literals.PRIVATE_INSURANCE_AND_PLAN;
87 }
88
89 /**
90 * <!-- begin-user-doc -->
91 * <!-- end-user-doc -->
92 * @generated
93 */
94 @Override
95 public Category_of_Private_Insurance_and_Plan getCategory() {
96 return category;
97 }
98
99 /**
100 * <!-- begin-user-doc -->
101 * <!-- end-user-doc -->
102 * @generated
103 */
104 @Override
105 public void setCategory(Category_of_Private_Insurance_and_Plan newCategory) {
106 Category_of_Private_Insurance_and_Plan oldCategory = category;
107 category = newCategory == null ? CATEGORY_EDEFAULT : newCategory;
108 if (eNotificationRequired())
109 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.PRIVATE_INSURANCE_AND_PLAN__CATEGORY, oldCategory, category));
110 }
111
112 /**
113 * <!-- begin-user-doc -->
114 * <!-- end-user-doc -->
115 * @generated
116 */
117 @Override
118 public int getDuration_of_contract() {
119 return duration_of_contract;
120 }
121
122 /**
123 * <!-- begin-user-doc -->
124 * <!-- end-user-doc -->
125 * @generated
126 */
127 @Override
128 public void setDuration_of_contract(int newDuration_of_contract) {
129 int oldDuration_of_contract = duration_of_contract;
130 duration_of_contract = newDuration_of_contract;
131 if (eNotificationRequired())
132 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.PRIVATE_INSURANCE_AND_PLAN__DURATION_OF_CONTRACT, oldDuration_of_contract, duration_of_contract));
133 }
134
135 /**
136 * <!-- begin-user-doc -->
137 * <!-- end-user-doc -->
138 * @generated
139 */
140 @Override
141 public Object eGet(int featureID, boolean resolve, boolean coreType) {
142 switch (featureID) {
143 case TaxationWithRootPackage.PRIVATE_INSURANCE_AND_PLAN__CATEGORY:
144 return getCategory();
145 case TaxationWithRootPackage.PRIVATE_INSURANCE_AND_PLAN__DURATION_OF_CONTRACT:
146 return getDuration_of_contract();
147 }
148 return super.eGet(featureID, resolve, coreType);
149 }
150
151 /**
152 * <!-- begin-user-doc -->
153 * <!-- end-user-doc -->
154 * @generated
155 */
156 @Override
157 public void eSet(int featureID, Object newValue) {
158 switch (featureID) {
159 case TaxationWithRootPackage.PRIVATE_INSURANCE_AND_PLAN__CATEGORY:
160 setCategory((Category_of_Private_Insurance_and_Plan)newValue);
161 return;
162 case TaxationWithRootPackage.PRIVATE_INSURANCE_AND_PLAN__DURATION_OF_CONTRACT:
163 setDuration_of_contract((Integer)newValue);
164 return;
165 }
166 super.eSet(featureID, newValue);
167 }
168
169 /**
170 * <!-- begin-user-doc -->
171 * <!-- end-user-doc -->
172 * @generated
173 */
174 @Override
175 public void eUnset(int featureID) {
176 switch (featureID) {
177 case TaxationWithRootPackage.PRIVATE_INSURANCE_AND_PLAN__CATEGORY:
178 setCategory(CATEGORY_EDEFAULT);
179 return;
180 case TaxationWithRootPackage.PRIVATE_INSURANCE_AND_PLAN__DURATION_OF_CONTRACT:
181 setDuration_of_contract(DURATION_OF_CONTRACT_EDEFAULT);
182 return;
183 }
184 super.eUnset(featureID);
185 }
186
187 /**
188 * <!-- begin-user-doc -->
189 * <!-- end-user-doc -->
190 * @generated
191 */
192 @Override
193 public boolean eIsSet(int featureID) {
194 switch (featureID) {
195 case TaxationWithRootPackage.PRIVATE_INSURANCE_AND_PLAN__CATEGORY:
196 return category != CATEGORY_EDEFAULT;
197 case TaxationWithRootPackage.PRIVATE_INSURANCE_AND_PLAN__DURATION_OF_CONTRACT:
198 return duration_of_contract != DURATION_OF_CONTRACT_EDEFAULT;
199 }
200 return super.eIsSet(featureID);
201 }
202
203 /**
204 * <!-- begin-user-doc -->
205 * <!-- end-user-doc -->
206 * @generated
207 */
208 @Override
209 public String toString() {
210 if (eIsProxy()) return super.toString();
211
212 StringBuilder result = new StringBuilder(super.toString());
213 result.append(" (category: ");
214 result.append(category);
215 result.append(", duration_of_contract: ");
216 result.append(duration_of_contract);
217 result.append(')');
218 return result.toString();
219 }
220
221} //Private_Insurance_and_PlanImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Professional_ExpenseImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Professional_ExpenseImpl.java
new file mode 100644
index 00000000..3dc4a3ab
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Professional_ExpenseImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Professional_Expense;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Professional Expense</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class Professional_ExpenseImpl extends ExpenseImpl implements Professional_Expense {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected Professional_ExpenseImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.PROFESSIONAL_EXPENSE;
35 }
36
37} //Professional_ExpenseImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Rentals_and_Leases_IncomeImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Rentals_and_Leases_IncomeImpl.java
new file mode 100644
index 00000000..ac9af840
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Rentals_and_Leases_IncomeImpl.java
@@ -0,0 +1,164 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Rentals_and_Leases_Income;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.common.notify.Notification;
9
10import org.eclipse.emf.ecore.EClass;
11
12import org.eclipse.emf.ecore.impl.ENotificationImpl;
13
14/**
15 * <!-- begin-user-doc -->
16 * An implementation of the model object '<em><b>Rentals and Leases Income</b></em>'.
17 * <!-- end-user-doc -->
18 * <p>
19 * The following features are implemented:
20 * </p>
21 * <ul>
22 * <li>{@link TaxationWithRoot.impl.Rentals_and_Leases_IncomeImpl#isIs_periodic <em>Is periodic</em>}</li>
23 * </ul>
24 *
25 * @generated
26 */
27public class Rentals_and_Leases_IncomeImpl extends Income_TypeImpl implements Rentals_and_Leases_Income {
28 /**
29 * The default value of the '{@link #isIs_periodic() <em>Is periodic</em>}' attribute.
30 * <!-- begin-user-doc -->
31 * <!-- end-user-doc -->
32 * @see #isIs_periodic()
33 * @generated
34 * @ordered
35 */
36 protected static final boolean IS_PERIODIC_EDEFAULT = true;
37
38 /**
39 * The cached value of the '{@link #isIs_periodic() <em>Is periodic</em>}' attribute.
40 * <!-- begin-user-doc -->
41 * <!-- end-user-doc -->
42 * @see #isIs_periodic()
43 * @generated
44 * @ordered
45 */
46 protected boolean is_periodic = IS_PERIODIC_EDEFAULT;
47
48 /**
49 * <!-- begin-user-doc -->
50 * <!-- end-user-doc -->
51 * @generated
52 */
53 protected Rentals_and_Leases_IncomeImpl() {
54 super();
55 }
56
57 /**
58 * <!-- begin-user-doc -->
59 * <!-- end-user-doc -->
60 * @generated
61 */
62 @Override
63 protected EClass eStaticClass() {
64 return TaxationWithRootPackage.Literals.RENTALS_AND_LEASES_INCOME;
65 }
66
67 /**
68 * <!-- begin-user-doc -->
69 * <!-- end-user-doc -->
70 * @generated
71 */
72 @Override
73 public boolean isIs_periodic() {
74 return is_periodic;
75 }
76
77 /**
78 * <!-- begin-user-doc -->
79 * <!-- end-user-doc -->
80 * @generated
81 */
82 @Override
83 public void setIs_periodic(boolean newIs_periodic) {
84 boolean oldIs_periodic = is_periodic;
85 is_periodic = newIs_periodic;
86 if (eNotificationRequired())
87 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.RENTALS_AND_LEASES_INCOME__IS_PERIODIC, oldIs_periodic, is_periodic));
88 }
89
90 /**
91 * <!-- begin-user-doc -->
92 * <!-- end-user-doc -->
93 * @generated
94 */
95 @Override
96 public Object eGet(int featureID, boolean resolve, boolean coreType) {
97 switch (featureID) {
98 case TaxationWithRootPackage.RENTALS_AND_LEASES_INCOME__IS_PERIODIC:
99 return isIs_periodic();
100 }
101 return super.eGet(featureID, resolve, coreType);
102 }
103
104 /**
105 * <!-- begin-user-doc -->
106 * <!-- end-user-doc -->
107 * @generated
108 */
109 @Override
110 public void eSet(int featureID, Object newValue) {
111 switch (featureID) {
112 case TaxationWithRootPackage.RENTALS_AND_LEASES_INCOME__IS_PERIODIC:
113 setIs_periodic((Boolean)newValue);
114 return;
115 }
116 super.eSet(featureID, newValue);
117 }
118
119 /**
120 * <!-- begin-user-doc -->
121 * <!-- end-user-doc -->
122 * @generated
123 */
124 @Override
125 public void eUnset(int featureID) {
126 switch (featureID) {
127 case TaxationWithRootPackage.RENTALS_AND_LEASES_INCOME__IS_PERIODIC:
128 setIs_periodic(IS_PERIODIC_EDEFAULT);
129 return;
130 }
131 super.eUnset(featureID);
132 }
133
134 /**
135 * <!-- begin-user-doc -->
136 * <!-- end-user-doc -->
137 * @generated
138 */
139 @Override
140 public boolean eIsSet(int featureID) {
141 switch (featureID) {
142 case TaxationWithRootPackage.RENTALS_AND_LEASES_INCOME__IS_PERIODIC:
143 return is_periodic != IS_PERIODIC_EDEFAULT;
144 }
145 return super.eIsSet(featureID);
146 }
147
148 /**
149 * <!-- begin-user-doc -->
150 * <!-- end-user-doc -->
151 * @generated
152 */
153 @Override
154 public String toString() {
155 if (eIsProxy()) return super.toString();
156
157 StringBuilder result = new StringBuilder(super.toString());
158 result.append(" (is_periodic: ");
159 result.append(is_periodic);
160 result.append(')');
161 return result.toString();
162 }
163
164} //Rentals_and_Leases_IncomeImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Resident_Tax_PayerImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Resident_Tax_PayerImpl.java
new file mode 100644
index 00000000..e18a3490
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Resident_Tax_PayerImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Resident_Tax_Payer;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Resident Tax Payer</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class Resident_Tax_PayerImpl extends Tax_PayerImpl implements Resident_Tax_Payer {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected Resident_Tax_PayerImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.RESIDENT_TAX_PAYER;
35 }
36
37} //Resident_Tax_PayerImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/ResourceImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/ResourceImpl.java
new file mode 100644
index 00000000..27e76c61
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/ResourceImpl.java
@@ -0,0 +1,153 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Household;
6import TaxationWithRoot.Resource;
7import TaxationWithRoot.TaxationWithRootPackage;
8
9import java.util.Collection;
10
11import org.eclipse.emf.common.notify.NotificationChain;
12
13import org.eclipse.emf.common.util.EList;
14
15import org.eclipse.emf.ecore.EClass;
16import org.eclipse.emf.ecore.InternalEObject;
17
18import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
19
20import org.eclipse.emf.ecore.util.EObjectContainmentEList;
21import org.eclipse.emf.ecore.util.InternalEList;
22
23/**
24 * <!-- begin-user-doc -->
25 * An implementation of the model object '<em><b>Resource</b></em>'.
26 * <!-- end-user-doc -->
27 * <p>
28 * The following features are implemented:
29 * </p>
30 * <ul>
31 * <li>{@link TaxationWithRoot.impl.ResourceImpl#getContains <em>Contains</em>}</li>
32 * </ul>
33 *
34 * @generated
35 */
36public class ResourceImpl extends MinimalEObjectImpl.Container implements Resource {
37 /**
38 * The cached value of the '{@link #getContains() <em>Contains</em>}' containment reference list.
39 * <!-- begin-user-doc -->
40 * <!-- end-user-doc -->
41 * @see #getContains()
42 * @generated
43 * @ordered
44 */
45 protected EList<Household> contains;
46
47 /**
48 * <!-- begin-user-doc -->
49 * <!-- end-user-doc -->
50 * @generated
51 */
52 protected ResourceImpl() {
53 super();
54 }
55
56 /**
57 * <!-- begin-user-doc -->
58 * <!-- end-user-doc -->
59 * @generated
60 */
61 @Override
62 protected EClass eStaticClass() {
63 return TaxationWithRootPackage.Literals.RESOURCE;
64 }
65
66 /**
67 * <!-- begin-user-doc -->
68 * <!-- end-user-doc -->
69 * @generated
70 */
71 @Override
72 public EList<Household> getContains() {
73 if (contains == null) {
74 contains = new EObjectContainmentEList<Household>(Household.class, this, TaxationWithRootPackage.RESOURCE__CONTAINS);
75 }
76 return contains;
77 }
78
79 /**
80 * <!-- begin-user-doc -->
81 * <!-- end-user-doc -->
82 * @generated
83 */
84 @Override
85 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
86 switch (featureID) {
87 case TaxationWithRootPackage.RESOURCE__CONTAINS:
88 return ((InternalEList<?>)getContains()).basicRemove(otherEnd, msgs);
89 }
90 return super.eInverseRemove(otherEnd, featureID, msgs);
91 }
92
93 /**
94 * <!-- begin-user-doc -->
95 * <!-- end-user-doc -->
96 * @generated
97 */
98 @Override
99 public Object eGet(int featureID, boolean resolve, boolean coreType) {
100 switch (featureID) {
101 case TaxationWithRootPackage.RESOURCE__CONTAINS:
102 return getContains();
103 }
104 return super.eGet(featureID, resolve, coreType);
105 }
106
107 /**
108 * <!-- begin-user-doc -->
109 * <!-- end-user-doc -->
110 * @generated
111 */
112 @SuppressWarnings("unchecked")
113 @Override
114 public void eSet(int featureID, Object newValue) {
115 switch (featureID) {
116 case TaxationWithRootPackage.RESOURCE__CONTAINS:
117 getContains().clear();
118 getContains().addAll((Collection<? extends Household>)newValue);
119 return;
120 }
121 super.eSet(featureID, newValue);
122 }
123
124 /**
125 * <!-- begin-user-doc -->
126 * <!-- end-user-doc -->
127 * @generated
128 */
129 @Override
130 public void eUnset(int featureID) {
131 switch (featureID) {
132 case TaxationWithRootPackage.RESOURCE__CONTAINS:
133 getContains().clear();
134 return;
135 }
136 super.eUnset(featureID);
137 }
138
139 /**
140 * <!-- begin-user-doc -->
141 * <!-- end-user-doc -->
142 * @generated
143 */
144 @Override
145 public boolean eIsSet(int featureID) {
146 switch (featureID) {
147 case TaxationWithRootPackage.RESOURCE__CONTAINS:
148 return contains != null && !contains.isEmpty();
149 }
150 return super.eIsSet(featureID);
151 }
152
153} //ResourceImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Special_Expense_DSImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Special_Expense_DSImpl.java
new file mode 100644
index 00000000..c2dcf8e5
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Special_Expense_DSImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Special_Expense_DS;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Special Expense DS</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class Special_Expense_DSImpl extends ExpenseImpl implements Special_Expense_DS {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected Special_Expense_DSImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.SPECIAL_EXPENSE_DS;
35 }
36
37} //Special_Expense_DSImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Spousal_Expense_ACImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Spousal_Expense_ACImpl.java
new file mode 100644
index 00000000..2fc910e3
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Spousal_Expense_ACImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Spousal_Expense_AC;
6import TaxationWithRoot.TaxationWithRootPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Spousal Expense AC</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class Spousal_Expense_ACImpl extends ExpenseImpl implements Spousal_Expense_AC {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected Spousal_Expense_ACImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.SPOUSAL_EXPENSE_AC;
35 }
36
37} //Spousal_Expense_ACImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Tax_CardImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Tax_CardImpl.java
new file mode 100644
index 00000000..9f457341
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Tax_CardImpl.java
@@ -0,0 +1,2093 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Address;
6import TaxationWithRoot.Income;
7import TaxationWithRoot.Income_Tax_Credit;
8import TaxationWithRoot.Job_Activity;
9import TaxationWithRoot.Tax_Card;
10import TaxationWithRoot.Tax_Office;
11import TaxationWithRoot.TaxationWithRootPackage;
12import TaxationWithRoot.Town;
13
14import java.util.Collection;
15
16import org.eclipse.emf.common.notify.Notification;
17import org.eclipse.emf.common.notify.NotificationChain;
18
19import org.eclipse.emf.common.util.EList;
20
21import org.eclipse.emf.ecore.EClass;
22import org.eclipse.emf.ecore.InternalEObject;
23
24import org.eclipse.emf.ecore.impl.ENotificationImpl;
25import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
26
27import org.eclipse.emf.ecore.util.EDataTypeUniqueEList;
28import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList;
29import org.eclipse.emf.ecore.util.EcoreUtil;
30import org.eclipse.emf.ecore.util.InternalEList;
31
32/**
33 * <!-- begin-user-doc -->
34 * An implementation of the model object '<em><b>Tax Card</b></em>'.
35 * <!-- end-user-doc -->
36 * <p>
37 * The following features are implemented:
38 * </p>
39 * <ul>
40 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getCard_identifier <em>Card identifier</em>}</li>
41 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getTax_office <em>Tax office</em>}</li>
42 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getPercentage_of_witholding <em>Percentage of witholding</em>}</li>
43 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getTax_payers_name_surname <em>Tax payers name surname</em>}</li>
44 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getTax_payers_partner_name_surname <em>Tax payers partner name surname</em>}</li>
45 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getTax_payers_address <em>Tax payers address</em>}</li>
46 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getJobs_Employer_SSNo <em>Jobs Employer SS No</em>}</li>
47 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getJobs_employers_name <em>Jobs employers name</em>}</li>
48 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getJobs_activity_type <em>Jobs activity type</em>}</li>
49 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getJobs_place_of_work <em>Jobs place of work</em>}</li>
50 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getDeduction_FD_daily <em>Deduction FD daily</em>}</li>
51 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getDeduction_FD_monthly <em>Deduction FD monthly</em>}</li>
52 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getDeduction_AC_daily <em>Deduction AC daily</em>}</li>
53 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getDeduction_AC_monthly <em>Deduction AC monthly</em>}</li>
54 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getDeduction_AC_yearly <em>Deduction AC yearly</em>}</li>
55 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getDeduction_CE_daily <em>Deduction CE daily</em>}</li>
56 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getDeduction_CE_monthly <em>Deduction CE monthly</em>}</li>
57 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getDeduction_CE_yearly <em>Deduction CE yearly</em>}</li>
58 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getDeduction_DS_daily <em>Deduction DS daily</em>}</li>
59 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getDeduction_DS_monthly <em>Deduction DS monthly</em>}</li>
60 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getDeduction_FO_daily <em>Deduction FO daily</em>}</li>
61 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getDeduction_FO_monthly <em>Deduction FO monthly</em>}</li>
62 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getDeduction_FO_yearly <em>Deduction FO yearly</em>}</li>
63 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getCredit_CIS_daily <em>Credit CIS daily</em>}</li>
64 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getCredit_CIS_monthly <em>Credit CIS monthly</em>}</li>
65 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getCredit_CIM_daily <em>Credit CIM daily</em>}</li>
66 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#isValidity <em>Validity</em>}</li>
67 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getIncome_Tax_Credit <em>Income Tax Credit</em>}</li>
68 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getPrevious <em>Previous</em>}</li>
69 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getCurrent_tax_card <em>Current tax card</em>}</li>
70 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getCredit_CIM_yearly <em>Credit CIM yearly</em>}</li>
71 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getDeduction_DS_Alimony_yearly <em>Deduction DS Alimony yearly</em>}</li>
72 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getDeduction_DS_Debt_yearly <em>Deduction DS Debt yearly</em>}</li>
73 * <li>{@link TaxationWithRoot.impl.Tax_CardImpl#getIncome <em>Income</em>}</li>
74 * </ul>
75 *
76 * @generated
77 */
78public class Tax_CardImpl extends MinimalEObjectImpl.Container implements Tax_Card {
79 /**
80 * The default value of the '{@link #getCard_identifier() <em>Card identifier</em>}' attribute.
81 * <!-- begin-user-doc -->
82 * <!-- end-user-doc -->
83 * @see #getCard_identifier()
84 * @generated
85 * @ordered
86 */
87 protected static final String CARD_IDENTIFIER_EDEFAULT = null;
88
89 /**
90 * The cached value of the '{@link #getCard_identifier() <em>Card identifier</em>}' attribute.
91 * <!-- begin-user-doc -->
92 * <!-- end-user-doc -->
93 * @see #getCard_identifier()
94 * @generated
95 * @ordered
96 */
97 protected String card_identifier = CARD_IDENTIFIER_EDEFAULT;
98
99 /**
100 * The default value of the '{@link #getTax_office() <em>Tax office</em>}' attribute.
101 * <!-- begin-user-doc -->
102 * <!-- end-user-doc -->
103 * @see #getTax_office()
104 * @generated
105 * @ordered
106 */
107 protected static final Tax_Office TAX_OFFICE_EDEFAULT = Tax_Office.RTS_2;
108
109 /**
110 * The cached value of the '{@link #getTax_office() <em>Tax office</em>}' attribute.
111 * <!-- begin-user-doc -->
112 * <!-- end-user-doc -->
113 * @see #getTax_office()
114 * @generated
115 * @ordered
116 */
117 protected Tax_Office tax_office = TAX_OFFICE_EDEFAULT;
118
119 /**
120 * The default value of the '{@link #getPercentage_of_witholding() <em>Percentage of witholding</em>}' attribute.
121 * <!-- begin-user-doc -->
122 * <!-- end-user-doc -->
123 * @see #getPercentage_of_witholding()
124 * @generated
125 * @ordered
126 */
127 protected static final double PERCENTAGE_OF_WITHOLDING_EDEFAULT = 0.0;
128
129 /**
130 * The cached value of the '{@link #getPercentage_of_witholding() <em>Percentage of witholding</em>}' attribute.
131 * <!-- begin-user-doc -->
132 * <!-- end-user-doc -->
133 * @see #getPercentage_of_witholding()
134 * @generated
135 * @ordered
136 */
137 protected double percentage_of_witholding = PERCENTAGE_OF_WITHOLDING_EDEFAULT;
138
139 /**
140 * The cached value of the '{@link #getTax_payers_name_surname() <em>Tax payers name surname</em>}' attribute list.
141 * <!-- begin-user-doc -->
142 * <!-- end-user-doc -->
143 * @see #getTax_payers_name_surname()
144 * @generated
145 * @ordered
146 */
147 protected EList<String> tax_payers_name_surname;
148
149 /**
150 * The cached value of the '{@link #getTax_payers_partner_name_surname() <em>Tax payers partner name surname</em>}' attribute list.
151 * <!-- begin-user-doc -->
152 * <!-- end-user-doc -->
153 * @see #getTax_payers_partner_name_surname()
154 * @generated
155 * @ordered
156 */
157 protected EList<String> tax_payers_partner_name_surname;
158
159 /**
160 * The cached value of the '{@link #getTax_payers_address() <em>Tax payers address</em>}' reference.
161 * <!-- begin-user-doc -->
162 * <!-- end-user-doc -->
163 * @see #getTax_payers_address()
164 * @generated
165 * @ordered
166 */
167 protected Address tax_payers_address;
168
169 /**
170 * The default value of the '{@link #getJobs_Employer_SSNo() <em>Jobs Employer SS No</em>}' attribute.
171 * <!-- begin-user-doc -->
172 * <!-- end-user-doc -->
173 * @see #getJobs_Employer_SSNo()
174 * @generated
175 * @ordered
176 */
177 protected static final String JOBS_EMPLOYER_SS_NO_EDEFAULT = null;
178
179 /**
180 * The cached value of the '{@link #getJobs_Employer_SSNo() <em>Jobs Employer SS No</em>}' attribute.
181 * <!-- begin-user-doc -->
182 * <!-- end-user-doc -->
183 * @see #getJobs_Employer_SSNo()
184 * @generated
185 * @ordered
186 */
187 protected String jobs_Employer_SSNo = JOBS_EMPLOYER_SS_NO_EDEFAULT;
188
189 /**
190 * The default value of the '{@link #getJobs_employers_name() <em>Jobs employers name</em>}' attribute.
191 * <!-- begin-user-doc -->
192 * <!-- end-user-doc -->
193 * @see #getJobs_employers_name()
194 * @generated
195 * @ordered
196 */
197 protected static final String JOBS_EMPLOYERS_NAME_EDEFAULT = null;
198
199 /**
200 * The cached value of the '{@link #getJobs_employers_name() <em>Jobs employers name</em>}' attribute.
201 * <!-- begin-user-doc -->
202 * <!-- end-user-doc -->
203 * @see #getJobs_employers_name()
204 * @generated
205 * @ordered
206 */
207 protected String jobs_employers_name = JOBS_EMPLOYERS_NAME_EDEFAULT;
208
209 /**
210 * The default value of the '{@link #getJobs_activity_type() <em>Jobs activity type</em>}' attribute.
211 * <!-- begin-user-doc -->
212 * <!-- end-user-doc -->
213 * @see #getJobs_activity_type()
214 * @generated
215 * @ordered
216 */
217 protected static final Job_Activity JOBS_ACTIVITY_TYPE_EDEFAULT = Job_Activity.SALARY;
218
219 /**
220 * The cached value of the '{@link #getJobs_activity_type() <em>Jobs activity type</em>}' attribute.
221 * <!-- begin-user-doc -->
222 * <!-- end-user-doc -->
223 * @see #getJobs_activity_type()
224 * @generated
225 * @ordered
226 */
227 protected Job_Activity jobs_activity_type = JOBS_ACTIVITY_TYPE_EDEFAULT;
228
229 /**
230 * The default value of the '{@link #getJobs_place_of_work() <em>Jobs place of work</em>}' attribute.
231 * <!-- begin-user-doc -->
232 * <!-- end-user-doc -->
233 * @see #getJobs_place_of_work()
234 * @generated
235 * @ordered
236 */
237 protected static final Town JOBS_PLACE_OF_WORK_EDEFAULT = Town.LL;
238
239 /**
240 * The cached value of the '{@link #getJobs_place_of_work() <em>Jobs place of work</em>}' attribute.
241 * <!-- begin-user-doc -->
242 * <!-- end-user-doc -->
243 * @see #getJobs_place_of_work()
244 * @generated
245 * @ordered
246 */
247 protected Town jobs_place_of_work = JOBS_PLACE_OF_WORK_EDEFAULT;
248
249 /**
250 * The default value of the '{@link #getDeduction_FD_daily() <em>Deduction FD daily</em>}' attribute.
251 * <!-- begin-user-doc -->
252 * <!-- end-user-doc -->
253 * @see #getDeduction_FD_daily()
254 * @generated
255 * @ordered
256 */
257 protected static final double DEDUCTION_FD_DAILY_EDEFAULT = 0.0;
258
259 /**
260 * The cached value of the '{@link #getDeduction_FD_daily() <em>Deduction FD daily</em>}' attribute.
261 * <!-- begin-user-doc -->
262 * <!-- end-user-doc -->
263 * @see #getDeduction_FD_daily()
264 * @generated
265 * @ordered
266 */
267 protected double deduction_FD_daily = DEDUCTION_FD_DAILY_EDEFAULT;
268
269 /**
270 * The default value of the '{@link #getDeduction_FD_monthly() <em>Deduction FD monthly</em>}' attribute.
271 * <!-- begin-user-doc -->
272 * <!-- end-user-doc -->
273 * @see #getDeduction_FD_monthly()
274 * @generated
275 * @ordered
276 */
277 protected static final double DEDUCTION_FD_MONTHLY_EDEFAULT = 0.0;
278
279 /**
280 * The cached value of the '{@link #getDeduction_FD_monthly() <em>Deduction FD monthly</em>}' attribute.
281 * <!-- begin-user-doc -->
282 * <!-- end-user-doc -->
283 * @see #getDeduction_FD_monthly()
284 * @generated
285 * @ordered
286 */
287 protected double deduction_FD_monthly = DEDUCTION_FD_MONTHLY_EDEFAULT;
288
289 /**
290 * The default value of the '{@link #getDeduction_AC_daily() <em>Deduction AC daily</em>}' attribute.
291 * <!-- begin-user-doc -->
292 * <!-- end-user-doc -->
293 * @see #getDeduction_AC_daily()
294 * @generated
295 * @ordered
296 */
297 protected static final double DEDUCTION_AC_DAILY_EDEFAULT = 0.0;
298
299 /**
300 * The cached value of the '{@link #getDeduction_AC_daily() <em>Deduction AC daily</em>}' attribute.
301 * <!-- begin-user-doc -->
302 * <!-- end-user-doc -->
303 * @see #getDeduction_AC_daily()
304 * @generated
305 * @ordered
306 */
307 protected double deduction_AC_daily = DEDUCTION_AC_DAILY_EDEFAULT;
308
309 /**
310 * The default value of the '{@link #getDeduction_AC_monthly() <em>Deduction AC monthly</em>}' attribute.
311 * <!-- begin-user-doc -->
312 * <!-- end-user-doc -->
313 * @see #getDeduction_AC_monthly()
314 * @generated
315 * @ordered
316 */
317 protected static final double DEDUCTION_AC_MONTHLY_EDEFAULT = 0.0;
318
319 /**
320 * The cached value of the '{@link #getDeduction_AC_monthly() <em>Deduction AC monthly</em>}' attribute.
321 * <!-- begin-user-doc -->
322 * <!-- end-user-doc -->
323 * @see #getDeduction_AC_monthly()
324 * @generated
325 * @ordered
326 */
327 protected double deduction_AC_monthly = DEDUCTION_AC_MONTHLY_EDEFAULT;
328
329 /**
330 * The default value of the '{@link #getDeduction_AC_yearly() <em>Deduction AC yearly</em>}' attribute.
331 * <!-- begin-user-doc -->
332 * <!-- end-user-doc -->
333 * @see #getDeduction_AC_yearly()
334 * @generated
335 * @ordered
336 */
337 protected static final double DEDUCTION_AC_YEARLY_EDEFAULT = 0.0;
338
339 /**
340 * The cached value of the '{@link #getDeduction_AC_yearly() <em>Deduction AC yearly</em>}' attribute.
341 * <!-- begin-user-doc -->
342 * <!-- end-user-doc -->
343 * @see #getDeduction_AC_yearly()
344 * @generated
345 * @ordered
346 */
347 protected double deduction_AC_yearly = DEDUCTION_AC_YEARLY_EDEFAULT;
348
349 /**
350 * The default value of the '{@link #getDeduction_CE_daily() <em>Deduction CE daily</em>}' attribute.
351 * <!-- begin-user-doc -->
352 * <!-- end-user-doc -->
353 * @see #getDeduction_CE_daily()
354 * @generated
355 * @ordered
356 */
357 protected static final double DEDUCTION_CE_DAILY_EDEFAULT = 0.0;
358
359 /**
360 * The cached value of the '{@link #getDeduction_CE_daily() <em>Deduction CE daily</em>}' attribute.
361 * <!-- begin-user-doc -->
362 * <!-- end-user-doc -->
363 * @see #getDeduction_CE_daily()
364 * @generated
365 * @ordered
366 */
367 protected double deduction_CE_daily = DEDUCTION_CE_DAILY_EDEFAULT;
368
369 /**
370 * The default value of the '{@link #getDeduction_CE_monthly() <em>Deduction CE monthly</em>}' attribute.
371 * <!-- begin-user-doc -->
372 * <!-- end-user-doc -->
373 * @see #getDeduction_CE_monthly()
374 * @generated
375 * @ordered
376 */
377 protected static final double DEDUCTION_CE_MONTHLY_EDEFAULT = 0.0;
378
379 /**
380 * The cached value of the '{@link #getDeduction_CE_monthly() <em>Deduction CE monthly</em>}' attribute.
381 * <!-- begin-user-doc -->
382 * <!-- end-user-doc -->
383 * @see #getDeduction_CE_monthly()
384 * @generated
385 * @ordered
386 */
387 protected double deduction_CE_monthly = DEDUCTION_CE_MONTHLY_EDEFAULT;
388
389 /**
390 * The default value of the '{@link #getDeduction_CE_yearly() <em>Deduction CE yearly</em>}' attribute.
391 * <!-- begin-user-doc -->
392 * <!-- end-user-doc -->
393 * @see #getDeduction_CE_yearly()
394 * @generated
395 * @ordered
396 */
397 protected static final double DEDUCTION_CE_YEARLY_EDEFAULT = 0.0;
398
399 /**
400 * The cached value of the '{@link #getDeduction_CE_yearly() <em>Deduction CE yearly</em>}' attribute.
401 * <!-- begin-user-doc -->
402 * <!-- end-user-doc -->
403 * @see #getDeduction_CE_yearly()
404 * @generated
405 * @ordered
406 */
407 protected double deduction_CE_yearly = DEDUCTION_CE_YEARLY_EDEFAULT;
408
409 /**
410 * The default value of the '{@link #getDeduction_DS_daily() <em>Deduction DS daily</em>}' attribute.
411 * <!-- begin-user-doc -->
412 * <!-- end-user-doc -->
413 * @see #getDeduction_DS_daily()
414 * @generated
415 * @ordered
416 */
417 protected static final double DEDUCTION_DS_DAILY_EDEFAULT = 0.0;
418
419 /**
420 * The cached value of the '{@link #getDeduction_DS_daily() <em>Deduction DS daily</em>}' attribute.
421 * <!-- begin-user-doc -->
422 * <!-- end-user-doc -->
423 * @see #getDeduction_DS_daily()
424 * @generated
425 * @ordered
426 */
427 protected double deduction_DS_daily = DEDUCTION_DS_DAILY_EDEFAULT;
428
429 /**
430 * The default value of the '{@link #getDeduction_DS_monthly() <em>Deduction DS monthly</em>}' attribute.
431 * <!-- begin-user-doc -->
432 * <!-- end-user-doc -->
433 * @see #getDeduction_DS_monthly()
434 * @generated
435 * @ordered
436 */
437 protected static final double DEDUCTION_DS_MONTHLY_EDEFAULT = 0.0;
438
439 /**
440 * The cached value of the '{@link #getDeduction_DS_monthly() <em>Deduction DS monthly</em>}' attribute.
441 * <!-- begin-user-doc -->
442 * <!-- end-user-doc -->
443 * @see #getDeduction_DS_monthly()
444 * @generated
445 * @ordered
446 */
447 protected double deduction_DS_monthly = DEDUCTION_DS_MONTHLY_EDEFAULT;
448
449 /**
450 * The default value of the '{@link #getDeduction_FO_daily() <em>Deduction FO daily</em>}' attribute.
451 * <!-- begin-user-doc -->
452 * <!-- end-user-doc -->
453 * @see #getDeduction_FO_daily()
454 * @generated
455 * @ordered
456 */
457 protected static final double DEDUCTION_FO_DAILY_EDEFAULT = 0.0;
458
459 /**
460 * The cached value of the '{@link #getDeduction_FO_daily() <em>Deduction FO daily</em>}' attribute.
461 * <!-- begin-user-doc -->
462 * <!-- end-user-doc -->
463 * @see #getDeduction_FO_daily()
464 * @generated
465 * @ordered
466 */
467 protected double deduction_FO_daily = DEDUCTION_FO_DAILY_EDEFAULT;
468
469 /**
470 * The default value of the '{@link #getDeduction_FO_monthly() <em>Deduction FO monthly</em>}' attribute.
471 * <!-- begin-user-doc -->
472 * <!-- end-user-doc -->
473 * @see #getDeduction_FO_monthly()
474 * @generated
475 * @ordered
476 */
477 protected static final double DEDUCTION_FO_MONTHLY_EDEFAULT = 0.0;
478
479 /**
480 * The cached value of the '{@link #getDeduction_FO_monthly() <em>Deduction FO monthly</em>}' attribute.
481 * <!-- begin-user-doc -->
482 * <!-- end-user-doc -->
483 * @see #getDeduction_FO_monthly()
484 * @generated
485 * @ordered
486 */
487 protected double deduction_FO_monthly = DEDUCTION_FO_MONTHLY_EDEFAULT;
488
489 /**
490 * The default value of the '{@link #getDeduction_FO_yearly() <em>Deduction FO yearly</em>}' attribute.
491 * <!-- begin-user-doc -->
492 * <!-- end-user-doc -->
493 * @see #getDeduction_FO_yearly()
494 * @generated
495 * @ordered
496 */
497 protected static final double DEDUCTION_FO_YEARLY_EDEFAULT = 0.0;
498
499 /**
500 * The cached value of the '{@link #getDeduction_FO_yearly() <em>Deduction FO yearly</em>}' attribute.
501 * <!-- begin-user-doc -->
502 * <!-- end-user-doc -->
503 * @see #getDeduction_FO_yearly()
504 * @generated
505 * @ordered
506 */
507 protected double deduction_FO_yearly = DEDUCTION_FO_YEARLY_EDEFAULT;
508
509 /**
510 * The default value of the '{@link #getCredit_CIS_daily() <em>Credit CIS daily</em>}' attribute.
511 * <!-- begin-user-doc -->
512 * <!-- end-user-doc -->
513 * @see #getCredit_CIS_daily()
514 * @generated
515 * @ordered
516 */
517 protected static final double CREDIT_CIS_DAILY_EDEFAULT = 0.0;
518
519 /**
520 * The cached value of the '{@link #getCredit_CIS_daily() <em>Credit CIS daily</em>}' attribute.
521 * <!-- begin-user-doc -->
522 * <!-- end-user-doc -->
523 * @see #getCredit_CIS_daily()
524 * @generated
525 * @ordered
526 */
527 protected double credit_CIS_daily = CREDIT_CIS_DAILY_EDEFAULT;
528
529 /**
530 * The default value of the '{@link #getCredit_CIS_monthly() <em>Credit CIS monthly</em>}' attribute.
531 * <!-- begin-user-doc -->
532 * <!-- end-user-doc -->
533 * @see #getCredit_CIS_monthly()
534 * @generated
535 * @ordered
536 */
537 protected static final double CREDIT_CIS_MONTHLY_EDEFAULT = 0.0;
538
539 /**
540 * The cached value of the '{@link #getCredit_CIS_monthly() <em>Credit CIS monthly</em>}' attribute.
541 * <!-- begin-user-doc -->
542 * <!-- end-user-doc -->
543 * @see #getCredit_CIS_monthly()
544 * @generated
545 * @ordered
546 */
547 protected double credit_CIS_monthly = CREDIT_CIS_MONTHLY_EDEFAULT;
548
549 /**
550 * The default value of the '{@link #getCredit_CIM_daily() <em>Credit CIM daily</em>}' attribute.
551 * <!-- begin-user-doc -->
552 * <!-- end-user-doc -->
553 * @see #getCredit_CIM_daily()
554 * @generated
555 * @ordered
556 */
557 protected static final double CREDIT_CIM_DAILY_EDEFAULT = 0.0;
558
559 /**
560 * The cached value of the '{@link #getCredit_CIM_daily() <em>Credit CIM daily</em>}' attribute.
561 * <!-- begin-user-doc -->
562 * <!-- end-user-doc -->
563 * @see #getCredit_CIM_daily()
564 * @generated
565 * @ordered
566 */
567 protected double credit_CIM_daily = CREDIT_CIM_DAILY_EDEFAULT;
568
569 /**
570 * The default value of the '{@link #isValidity() <em>Validity</em>}' attribute.
571 * <!-- begin-user-doc -->
572 * <!-- end-user-doc -->
573 * @see #isValidity()
574 * @generated
575 * @ordered
576 */
577 protected static final boolean VALIDITY_EDEFAULT = false;
578
579 /**
580 * The cached value of the '{@link #isValidity() <em>Validity</em>}' attribute.
581 * <!-- begin-user-doc -->
582 * <!-- end-user-doc -->
583 * @see #isValidity()
584 * @generated
585 * @ordered
586 */
587 protected boolean validity = VALIDITY_EDEFAULT;
588
589 /**
590 * The cached value of the '{@link #getIncome_Tax_Credit() <em>Income Tax Credit</em>}' reference list.
591 * <!-- begin-user-doc -->
592 * <!-- end-user-doc -->
593 * @see #getIncome_Tax_Credit()
594 * @generated
595 * @ordered
596 */
597 protected EList<Income_Tax_Credit> income_Tax_Credit;
598
599 /**
600 * The cached value of the '{@link #getPrevious() <em>Previous</em>}' reference.
601 * <!-- begin-user-doc -->
602 * <!-- end-user-doc -->
603 * @see #getPrevious()
604 * @generated
605 * @ordered
606 */
607 protected Tax_Card previous;
608
609 /**
610 * The cached value of the '{@link #getCurrent_tax_card() <em>Current tax card</em>}' reference.
611 * <!-- begin-user-doc -->
612 * <!-- end-user-doc -->
613 * @see #getCurrent_tax_card()
614 * @generated
615 * @ordered
616 */
617 protected Tax_Card current_tax_card;
618
619 /**
620 * The default value of the '{@link #getCredit_CIM_yearly() <em>Credit CIM yearly</em>}' attribute.
621 * <!-- begin-user-doc -->
622 * <!-- end-user-doc -->
623 * @see #getCredit_CIM_yearly()
624 * @generated
625 * @ordered
626 */
627 protected static final double CREDIT_CIM_YEARLY_EDEFAULT = 0.0;
628
629 /**
630 * The cached value of the '{@link #getCredit_CIM_yearly() <em>Credit CIM yearly</em>}' attribute.
631 * <!-- begin-user-doc -->
632 * <!-- end-user-doc -->
633 * @see #getCredit_CIM_yearly()
634 * @generated
635 * @ordered
636 */
637 protected double credit_CIM_yearly = CREDIT_CIM_YEARLY_EDEFAULT;
638
639 /**
640 * The default value of the '{@link #getDeduction_DS_Alimony_yearly() <em>Deduction DS Alimony yearly</em>}' attribute.
641 * <!-- begin-user-doc -->
642 * <!-- end-user-doc -->
643 * @see #getDeduction_DS_Alimony_yearly()
644 * @generated
645 * @ordered
646 */
647 protected static final double DEDUCTION_DS_ALIMONY_YEARLY_EDEFAULT = 0.0;
648
649 /**
650 * The cached value of the '{@link #getDeduction_DS_Alimony_yearly() <em>Deduction DS Alimony yearly</em>}' attribute.
651 * <!-- begin-user-doc -->
652 * <!-- end-user-doc -->
653 * @see #getDeduction_DS_Alimony_yearly()
654 * @generated
655 * @ordered
656 */
657 protected double deduction_DS_Alimony_yearly = DEDUCTION_DS_ALIMONY_YEARLY_EDEFAULT;
658
659 /**
660 * The default value of the '{@link #getDeduction_DS_Debt_yearly() <em>Deduction DS Debt yearly</em>}' attribute.
661 * <!-- begin-user-doc -->
662 * <!-- end-user-doc -->
663 * @see #getDeduction_DS_Debt_yearly()
664 * @generated
665 * @ordered
666 */
667 protected static final double DEDUCTION_DS_DEBT_YEARLY_EDEFAULT = 0.0;
668
669 /**
670 * The cached value of the '{@link #getDeduction_DS_Debt_yearly() <em>Deduction DS Debt yearly</em>}' attribute.
671 * <!-- begin-user-doc -->
672 * <!-- end-user-doc -->
673 * @see #getDeduction_DS_Debt_yearly()
674 * @generated
675 * @ordered
676 */
677 protected double deduction_DS_Debt_yearly = DEDUCTION_DS_DEBT_YEARLY_EDEFAULT;
678
679 /**
680 * <!-- begin-user-doc -->
681 * <!-- end-user-doc -->
682 * @generated
683 */
684 protected Tax_CardImpl() {
685 super();
686 }
687
688 /**
689 * <!-- begin-user-doc -->
690 * <!-- end-user-doc -->
691 * @generated
692 */
693 @Override
694 protected EClass eStaticClass() {
695 return TaxationWithRootPackage.Literals.TAX_CARD;
696 }
697
698 /**
699 * <!-- begin-user-doc -->
700 * <!-- end-user-doc -->
701 * @generated
702 */
703 @Override
704 public String getCard_identifier() {
705 return card_identifier;
706 }
707
708 /**
709 * <!-- begin-user-doc -->
710 * <!-- end-user-doc -->
711 * @generated
712 */
713 @Override
714 public void setCard_identifier(String newCard_identifier) {
715 String oldCard_identifier = card_identifier;
716 card_identifier = newCard_identifier;
717 if (eNotificationRequired())
718 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__CARD_IDENTIFIER, oldCard_identifier, card_identifier));
719 }
720
721 /**
722 * <!-- begin-user-doc -->
723 * <!-- end-user-doc -->
724 * @generated
725 */
726 @Override
727 public Tax_Office getTax_office() {
728 return tax_office;
729 }
730
731 /**
732 * <!-- begin-user-doc -->
733 * <!-- end-user-doc -->
734 * @generated
735 */
736 @Override
737 public void setTax_office(Tax_Office newTax_office) {
738 Tax_Office oldTax_office = tax_office;
739 tax_office = newTax_office == null ? TAX_OFFICE_EDEFAULT : newTax_office;
740 if (eNotificationRequired())
741 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__TAX_OFFICE, oldTax_office, tax_office));
742 }
743
744 /**
745 * <!-- begin-user-doc -->
746 * <!-- end-user-doc -->
747 * @generated
748 */
749 @Override
750 public double getPercentage_of_witholding() {
751 return percentage_of_witholding;
752 }
753
754 /**
755 * <!-- begin-user-doc -->
756 * <!-- end-user-doc -->
757 * @generated
758 */
759 @Override
760 public void setPercentage_of_witholding(double newPercentage_of_witholding) {
761 double oldPercentage_of_witholding = percentage_of_witholding;
762 percentage_of_witholding = newPercentage_of_witholding;
763 if (eNotificationRequired())
764 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__PERCENTAGE_OF_WITHOLDING, oldPercentage_of_witholding, percentage_of_witholding));
765 }
766
767 /**
768 * <!-- begin-user-doc -->
769 * <!-- end-user-doc -->
770 * @generated
771 */
772 @Override
773 public EList<String> getTax_payers_name_surname() {
774 if (tax_payers_name_surname == null) {
775 tax_payers_name_surname = new EDataTypeUniqueEList<String>(String.class, this, TaxationWithRootPackage.TAX_CARD__TAX_PAYERS_NAME_SURNAME);
776 }
777 return tax_payers_name_surname;
778 }
779
780 /**
781 * <!-- begin-user-doc -->
782 * <!-- end-user-doc -->
783 * @generated
784 */
785 @Override
786 public EList<String> getTax_payers_partner_name_surname() {
787 if (tax_payers_partner_name_surname == null) {
788 tax_payers_partner_name_surname = new EDataTypeUniqueEList<String>(String.class, this, TaxationWithRootPackage.TAX_CARD__TAX_PAYERS_PARTNER_NAME_SURNAME);
789 }
790 return tax_payers_partner_name_surname;
791 }
792
793 /**
794 * <!-- begin-user-doc -->
795 * <!-- end-user-doc -->
796 * @generated
797 */
798 @Override
799 public Address getTax_payers_address() {
800 if (tax_payers_address != null && tax_payers_address.eIsProxy()) {
801 InternalEObject oldTax_payers_address = (InternalEObject)tax_payers_address;
802 tax_payers_address = (Address)eResolveProxy(oldTax_payers_address);
803 if (tax_payers_address != oldTax_payers_address) {
804 if (eNotificationRequired())
805 eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationWithRootPackage.TAX_CARD__TAX_PAYERS_ADDRESS, oldTax_payers_address, tax_payers_address));
806 }
807 }
808 return tax_payers_address;
809 }
810
811 /**
812 * <!-- begin-user-doc -->
813 * <!-- end-user-doc -->
814 * @generated
815 */
816 public Address basicGetTax_payers_address() {
817 return tax_payers_address;
818 }
819
820 /**
821 * <!-- begin-user-doc -->
822 * <!-- end-user-doc -->
823 * @generated
824 */
825 @Override
826 public void setTax_payers_address(Address newTax_payers_address) {
827 Address oldTax_payers_address = tax_payers_address;
828 tax_payers_address = newTax_payers_address;
829 if (eNotificationRequired())
830 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__TAX_PAYERS_ADDRESS, oldTax_payers_address, tax_payers_address));
831 }
832
833 /**
834 * <!-- begin-user-doc -->
835 * <!-- end-user-doc -->
836 * @generated
837 */
838 @Override
839 public String getJobs_Employer_SSNo() {
840 return jobs_Employer_SSNo;
841 }
842
843 /**
844 * <!-- begin-user-doc -->
845 * <!-- end-user-doc -->
846 * @generated
847 */
848 @Override
849 public void setJobs_Employer_SSNo(String newJobs_Employer_SSNo) {
850 String oldJobs_Employer_SSNo = jobs_Employer_SSNo;
851 jobs_Employer_SSNo = newJobs_Employer_SSNo;
852 if (eNotificationRequired())
853 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__JOBS_EMPLOYER_SS_NO, oldJobs_Employer_SSNo, jobs_Employer_SSNo));
854 }
855
856 /**
857 * <!-- begin-user-doc -->
858 * <!-- end-user-doc -->
859 * @generated
860 */
861 @Override
862 public String getJobs_employers_name() {
863 return jobs_employers_name;
864 }
865
866 /**
867 * <!-- begin-user-doc -->
868 * <!-- end-user-doc -->
869 * @generated
870 */
871 @Override
872 public void setJobs_employers_name(String newJobs_employers_name) {
873 String oldJobs_employers_name = jobs_employers_name;
874 jobs_employers_name = newJobs_employers_name;
875 if (eNotificationRequired())
876 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__JOBS_EMPLOYERS_NAME, oldJobs_employers_name, jobs_employers_name));
877 }
878
879 /**
880 * <!-- begin-user-doc -->
881 * <!-- end-user-doc -->
882 * @generated
883 */
884 @Override
885 public Job_Activity getJobs_activity_type() {
886 return jobs_activity_type;
887 }
888
889 /**
890 * <!-- begin-user-doc -->
891 * <!-- end-user-doc -->
892 * @generated
893 */
894 @Override
895 public void setJobs_activity_type(Job_Activity newJobs_activity_type) {
896 Job_Activity oldJobs_activity_type = jobs_activity_type;
897 jobs_activity_type = newJobs_activity_type == null ? JOBS_ACTIVITY_TYPE_EDEFAULT : newJobs_activity_type;
898 if (eNotificationRequired())
899 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__JOBS_ACTIVITY_TYPE, oldJobs_activity_type, jobs_activity_type));
900 }
901
902 /**
903 * <!-- begin-user-doc -->
904 * <!-- end-user-doc -->
905 * @generated
906 */
907 @Override
908 public Town getJobs_place_of_work() {
909 return jobs_place_of_work;
910 }
911
912 /**
913 * <!-- begin-user-doc -->
914 * <!-- end-user-doc -->
915 * @generated
916 */
917 @Override
918 public void setJobs_place_of_work(Town newJobs_place_of_work) {
919 Town oldJobs_place_of_work = jobs_place_of_work;
920 jobs_place_of_work = newJobs_place_of_work == null ? JOBS_PLACE_OF_WORK_EDEFAULT : newJobs_place_of_work;
921 if (eNotificationRequired())
922 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__JOBS_PLACE_OF_WORK, oldJobs_place_of_work, jobs_place_of_work));
923 }
924
925 /**
926 * <!-- begin-user-doc -->
927 * <!-- end-user-doc -->
928 * @generated
929 */
930 @Override
931 public double getDeduction_FD_daily() {
932 return deduction_FD_daily;
933 }
934
935 /**
936 * <!-- begin-user-doc -->
937 * <!-- end-user-doc -->
938 * @generated
939 */
940 @Override
941 public void setDeduction_FD_daily(double newDeduction_FD_daily) {
942 double oldDeduction_FD_daily = deduction_FD_daily;
943 deduction_FD_daily = newDeduction_FD_daily;
944 if (eNotificationRequired())
945 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__DEDUCTION_FD_DAILY, oldDeduction_FD_daily, deduction_FD_daily));
946 }
947
948 /**
949 * <!-- begin-user-doc -->
950 * <!-- end-user-doc -->
951 * @generated
952 */
953 @Override
954 public double getDeduction_FD_monthly() {
955 return deduction_FD_monthly;
956 }
957
958 /**
959 * <!-- begin-user-doc -->
960 * <!-- end-user-doc -->
961 * @generated
962 */
963 @Override
964 public void setDeduction_FD_monthly(double newDeduction_FD_monthly) {
965 double oldDeduction_FD_monthly = deduction_FD_monthly;
966 deduction_FD_monthly = newDeduction_FD_monthly;
967 if (eNotificationRequired())
968 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__DEDUCTION_FD_MONTHLY, oldDeduction_FD_monthly, deduction_FD_monthly));
969 }
970
971 /**
972 * <!-- begin-user-doc -->
973 * <!-- end-user-doc -->
974 * @generated
975 */
976 @Override
977 public double getDeduction_AC_daily() {
978 return deduction_AC_daily;
979 }
980
981 /**
982 * <!-- begin-user-doc -->
983 * <!-- end-user-doc -->
984 * @generated
985 */
986 @Override
987 public void setDeduction_AC_daily(double newDeduction_AC_daily) {
988 double oldDeduction_AC_daily = deduction_AC_daily;
989 deduction_AC_daily = newDeduction_AC_daily;
990 if (eNotificationRequired())
991 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__DEDUCTION_AC_DAILY, oldDeduction_AC_daily, deduction_AC_daily));
992 }
993
994 /**
995 * <!-- begin-user-doc -->
996 * <!-- end-user-doc -->
997 * @generated
998 */
999 @Override
1000 public double getDeduction_AC_monthly() {
1001 return deduction_AC_monthly;
1002 }
1003
1004 /**
1005 * <!-- begin-user-doc -->
1006 * <!-- end-user-doc -->
1007 * @generated
1008 */
1009 @Override
1010 public void setDeduction_AC_monthly(double newDeduction_AC_monthly) {
1011 double oldDeduction_AC_monthly = deduction_AC_monthly;
1012 deduction_AC_monthly = newDeduction_AC_monthly;
1013 if (eNotificationRequired())
1014 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__DEDUCTION_AC_MONTHLY, oldDeduction_AC_monthly, deduction_AC_monthly));
1015 }
1016
1017 /**
1018 * <!-- begin-user-doc -->
1019 * <!-- end-user-doc -->
1020 * @generated
1021 */
1022 @Override
1023 public double getDeduction_AC_yearly() {
1024 return deduction_AC_yearly;
1025 }
1026
1027 /**
1028 * <!-- begin-user-doc -->
1029 * <!-- end-user-doc -->
1030 * @generated
1031 */
1032 @Override
1033 public void setDeduction_AC_yearly(double newDeduction_AC_yearly) {
1034 double oldDeduction_AC_yearly = deduction_AC_yearly;
1035 deduction_AC_yearly = newDeduction_AC_yearly;
1036 if (eNotificationRequired())
1037 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__DEDUCTION_AC_YEARLY, oldDeduction_AC_yearly, deduction_AC_yearly));
1038 }
1039
1040 /**
1041 * <!-- begin-user-doc -->
1042 * <!-- end-user-doc -->
1043 * @generated
1044 */
1045 @Override
1046 public double getDeduction_CE_daily() {
1047 return deduction_CE_daily;
1048 }
1049
1050 /**
1051 * <!-- begin-user-doc -->
1052 * <!-- end-user-doc -->
1053 * @generated
1054 */
1055 @Override
1056 public void setDeduction_CE_daily(double newDeduction_CE_daily) {
1057 double oldDeduction_CE_daily = deduction_CE_daily;
1058 deduction_CE_daily = newDeduction_CE_daily;
1059 if (eNotificationRequired())
1060 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__DEDUCTION_CE_DAILY, oldDeduction_CE_daily, deduction_CE_daily));
1061 }
1062
1063 /**
1064 * <!-- begin-user-doc -->
1065 * <!-- end-user-doc -->
1066 * @generated
1067 */
1068 @Override
1069 public double getDeduction_CE_monthly() {
1070 return deduction_CE_monthly;
1071 }
1072
1073 /**
1074 * <!-- begin-user-doc -->
1075 * <!-- end-user-doc -->
1076 * @generated
1077 */
1078 @Override
1079 public void setDeduction_CE_monthly(double newDeduction_CE_monthly) {
1080 double oldDeduction_CE_monthly = deduction_CE_monthly;
1081 deduction_CE_monthly = newDeduction_CE_monthly;
1082 if (eNotificationRequired())
1083 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__DEDUCTION_CE_MONTHLY, oldDeduction_CE_monthly, deduction_CE_monthly));
1084 }
1085
1086 /**
1087 * <!-- begin-user-doc -->
1088 * <!-- end-user-doc -->
1089 * @generated
1090 */
1091 @Override
1092 public double getDeduction_CE_yearly() {
1093 return deduction_CE_yearly;
1094 }
1095
1096 /**
1097 * <!-- begin-user-doc -->
1098 * <!-- end-user-doc -->
1099 * @generated
1100 */
1101 @Override
1102 public void setDeduction_CE_yearly(double newDeduction_CE_yearly) {
1103 double oldDeduction_CE_yearly = deduction_CE_yearly;
1104 deduction_CE_yearly = newDeduction_CE_yearly;
1105 if (eNotificationRequired())
1106 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__DEDUCTION_CE_YEARLY, oldDeduction_CE_yearly, deduction_CE_yearly));
1107 }
1108
1109 /**
1110 * <!-- begin-user-doc -->
1111 * <!-- end-user-doc -->
1112 * @generated
1113 */
1114 @Override
1115 public double getDeduction_DS_daily() {
1116 return deduction_DS_daily;
1117 }
1118
1119 /**
1120 * <!-- begin-user-doc -->
1121 * <!-- end-user-doc -->
1122 * @generated
1123 */
1124 @Override
1125 public void setDeduction_DS_daily(double newDeduction_DS_daily) {
1126 double oldDeduction_DS_daily = deduction_DS_daily;
1127 deduction_DS_daily = newDeduction_DS_daily;
1128 if (eNotificationRequired())
1129 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__DEDUCTION_DS_DAILY, oldDeduction_DS_daily, deduction_DS_daily));
1130 }
1131
1132 /**
1133 * <!-- begin-user-doc -->
1134 * <!-- end-user-doc -->
1135 * @generated
1136 */
1137 @Override
1138 public double getDeduction_DS_monthly() {
1139 return deduction_DS_monthly;
1140 }
1141
1142 /**
1143 * <!-- begin-user-doc -->
1144 * <!-- end-user-doc -->
1145 * @generated
1146 */
1147 @Override
1148 public void setDeduction_DS_monthly(double newDeduction_DS_monthly) {
1149 double oldDeduction_DS_monthly = deduction_DS_monthly;
1150 deduction_DS_monthly = newDeduction_DS_monthly;
1151 if (eNotificationRequired())
1152 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__DEDUCTION_DS_MONTHLY, oldDeduction_DS_monthly, deduction_DS_monthly));
1153 }
1154
1155 /**
1156 * <!-- begin-user-doc -->
1157 * <!-- end-user-doc -->
1158 * @generated
1159 */
1160 @Override
1161 public double getDeduction_FO_daily() {
1162 return deduction_FO_daily;
1163 }
1164
1165 /**
1166 * <!-- begin-user-doc -->
1167 * <!-- end-user-doc -->
1168 * @generated
1169 */
1170 @Override
1171 public void setDeduction_FO_daily(double newDeduction_FO_daily) {
1172 double oldDeduction_FO_daily = deduction_FO_daily;
1173 deduction_FO_daily = newDeduction_FO_daily;
1174 if (eNotificationRequired())
1175 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__DEDUCTION_FO_DAILY, oldDeduction_FO_daily, deduction_FO_daily));
1176 }
1177
1178 /**
1179 * <!-- begin-user-doc -->
1180 * <!-- end-user-doc -->
1181 * @generated
1182 */
1183 @Override
1184 public double getDeduction_FO_monthly() {
1185 return deduction_FO_monthly;
1186 }
1187
1188 /**
1189 * <!-- begin-user-doc -->
1190 * <!-- end-user-doc -->
1191 * @generated
1192 */
1193 @Override
1194 public void setDeduction_FO_monthly(double newDeduction_FO_monthly) {
1195 double oldDeduction_FO_monthly = deduction_FO_monthly;
1196 deduction_FO_monthly = newDeduction_FO_monthly;
1197 if (eNotificationRequired())
1198 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__DEDUCTION_FO_MONTHLY, oldDeduction_FO_monthly, deduction_FO_monthly));
1199 }
1200
1201 /**
1202 * <!-- begin-user-doc -->
1203 * <!-- end-user-doc -->
1204 * @generated
1205 */
1206 @Override
1207 public double getDeduction_FO_yearly() {
1208 return deduction_FO_yearly;
1209 }
1210
1211 /**
1212 * <!-- begin-user-doc -->
1213 * <!-- end-user-doc -->
1214 * @generated
1215 */
1216 @Override
1217 public void setDeduction_FO_yearly(double newDeduction_FO_yearly) {
1218 double oldDeduction_FO_yearly = deduction_FO_yearly;
1219 deduction_FO_yearly = newDeduction_FO_yearly;
1220 if (eNotificationRequired())
1221 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__DEDUCTION_FO_YEARLY, oldDeduction_FO_yearly, deduction_FO_yearly));
1222 }
1223
1224 /**
1225 * <!-- begin-user-doc -->
1226 * <!-- end-user-doc -->
1227 * @generated
1228 */
1229 @Override
1230 public double getCredit_CIS_daily() {
1231 return credit_CIS_daily;
1232 }
1233
1234 /**
1235 * <!-- begin-user-doc -->
1236 * <!-- end-user-doc -->
1237 * @generated
1238 */
1239 @Override
1240 public void setCredit_CIS_daily(double newCredit_CIS_daily) {
1241 double oldCredit_CIS_daily = credit_CIS_daily;
1242 credit_CIS_daily = newCredit_CIS_daily;
1243 if (eNotificationRequired())
1244 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__CREDIT_CIS_DAILY, oldCredit_CIS_daily, credit_CIS_daily));
1245 }
1246
1247 /**
1248 * <!-- begin-user-doc -->
1249 * <!-- end-user-doc -->
1250 * @generated
1251 */
1252 @Override
1253 public double getCredit_CIS_monthly() {
1254 return credit_CIS_monthly;
1255 }
1256
1257 /**
1258 * <!-- begin-user-doc -->
1259 * <!-- end-user-doc -->
1260 * @generated
1261 */
1262 @Override
1263 public void setCredit_CIS_monthly(double newCredit_CIS_monthly) {
1264 double oldCredit_CIS_monthly = credit_CIS_monthly;
1265 credit_CIS_monthly = newCredit_CIS_monthly;
1266 if (eNotificationRequired())
1267 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__CREDIT_CIS_MONTHLY, oldCredit_CIS_monthly, credit_CIS_monthly));
1268 }
1269
1270 /**
1271 * <!-- begin-user-doc -->
1272 * <!-- end-user-doc -->
1273 * @generated
1274 */
1275 @Override
1276 public double getCredit_CIM_daily() {
1277 return credit_CIM_daily;
1278 }
1279
1280 /**
1281 * <!-- begin-user-doc -->
1282 * <!-- end-user-doc -->
1283 * @generated
1284 */
1285 @Override
1286 public void setCredit_CIM_daily(double newCredit_CIM_daily) {
1287 double oldCredit_CIM_daily = credit_CIM_daily;
1288 credit_CIM_daily = newCredit_CIM_daily;
1289 if (eNotificationRequired())
1290 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__CREDIT_CIM_DAILY, oldCredit_CIM_daily, credit_CIM_daily));
1291 }
1292
1293 /**
1294 * <!-- begin-user-doc -->
1295 * <!-- end-user-doc -->
1296 * @generated
1297 */
1298 @Override
1299 public boolean isValidity() {
1300 return validity;
1301 }
1302
1303 /**
1304 * <!-- begin-user-doc -->
1305 * <!-- end-user-doc -->
1306 * @generated
1307 */
1308 @Override
1309 public void setValidity(boolean newValidity) {
1310 boolean oldValidity = validity;
1311 validity = newValidity;
1312 if (eNotificationRequired())
1313 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__VALIDITY, oldValidity, validity));
1314 }
1315
1316 /**
1317 * <!-- begin-user-doc -->
1318 * <!-- end-user-doc -->
1319 * @generated
1320 */
1321 @Override
1322 public EList<Income_Tax_Credit> getIncome_Tax_Credit() {
1323 if (income_Tax_Credit == null) {
1324 income_Tax_Credit = new EObjectWithInverseResolvingEList<Income_Tax_Credit>(Income_Tax_Credit.class, this, TaxationWithRootPackage.TAX_CARD__INCOME_TAX_CREDIT, TaxationWithRootPackage.INCOME_TAX_CREDIT__TAXATION_FRAME);
1325 }
1326 return income_Tax_Credit;
1327 }
1328
1329 /**
1330 * <!-- begin-user-doc -->
1331 * <!-- end-user-doc -->
1332 * @generated
1333 */
1334 @Override
1335 public Tax_Card getPrevious() {
1336 if (previous != null && previous.eIsProxy()) {
1337 InternalEObject oldPrevious = (InternalEObject)previous;
1338 previous = (Tax_Card)eResolveProxy(oldPrevious);
1339 if (previous != oldPrevious) {
1340 if (eNotificationRequired())
1341 eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationWithRootPackage.TAX_CARD__PREVIOUS, oldPrevious, previous));
1342 }
1343 }
1344 return previous;
1345 }
1346
1347 /**
1348 * <!-- begin-user-doc -->
1349 * <!-- end-user-doc -->
1350 * @generated
1351 */
1352 public Tax_Card basicGetPrevious() {
1353 return previous;
1354 }
1355
1356 /**
1357 * <!-- begin-user-doc -->
1358 * <!-- end-user-doc -->
1359 * @generated
1360 */
1361 public NotificationChain basicSetPrevious(Tax_Card newPrevious, NotificationChain msgs) {
1362 Tax_Card oldPrevious = previous;
1363 previous = newPrevious;
1364 if (eNotificationRequired()) {
1365 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__PREVIOUS, oldPrevious, newPrevious);
1366 if (msgs == null) msgs = notification; else msgs.add(notification);
1367 }
1368 return msgs;
1369 }
1370
1371 /**
1372 * <!-- begin-user-doc -->
1373 * <!-- end-user-doc -->
1374 * @generated
1375 */
1376 @Override
1377 public void setPrevious(Tax_Card newPrevious) {
1378 if (newPrevious != previous) {
1379 NotificationChain msgs = null;
1380 if (previous != null)
1381 msgs = ((InternalEObject)previous).eInverseRemove(this, TaxationWithRootPackage.TAX_CARD__CURRENT_TAX_CARD, Tax_Card.class, msgs);
1382 if (newPrevious != null)
1383 msgs = ((InternalEObject)newPrevious).eInverseAdd(this, TaxationWithRootPackage.TAX_CARD__CURRENT_TAX_CARD, Tax_Card.class, msgs);
1384 msgs = basicSetPrevious(newPrevious, msgs);
1385 if (msgs != null) msgs.dispatch();
1386 }
1387 else if (eNotificationRequired())
1388 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__PREVIOUS, newPrevious, newPrevious));
1389 }
1390
1391 /**
1392 * <!-- begin-user-doc -->
1393 * <!-- end-user-doc -->
1394 * @generated
1395 */
1396 @Override
1397 public Tax_Card getCurrent_tax_card() {
1398 if (current_tax_card != null && current_tax_card.eIsProxy()) {
1399 InternalEObject oldCurrent_tax_card = (InternalEObject)current_tax_card;
1400 current_tax_card = (Tax_Card)eResolveProxy(oldCurrent_tax_card);
1401 if (current_tax_card != oldCurrent_tax_card) {
1402 if (eNotificationRequired())
1403 eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationWithRootPackage.TAX_CARD__CURRENT_TAX_CARD, oldCurrent_tax_card, current_tax_card));
1404 }
1405 }
1406 return current_tax_card;
1407 }
1408
1409 /**
1410 * <!-- begin-user-doc -->
1411 * <!-- end-user-doc -->
1412 * @generated
1413 */
1414 public Tax_Card basicGetCurrent_tax_card() {
1415 return current_tax_card;
1416 }
1417
1418 /**
1419 * <!-- begin-user-doc -->
1420 * <!-- end-user-doc -->
1421 * @generated
1422 */
1423 public NotificationChain basicSetCurrent_tax_card(Tax_Card newCurrent_tax_card, NotificationChain msgs) {
1424 Tax_Card oldCurrent_tax_card = current_tax_card;
1425 current_tax_card = newCurrent_tax_card;
1426 if (eNotificationRequired()) {
1427 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__CURRENT_TAX_CARD, oldCurrent_tax_card, newCurrent_tax_card);
1428 if (msgs == null) msgs = notification; else msgs.add(notification);
1429 }
1430 return msgs;
1431 }
1432
1433 /**
1434 * <!-- begin-user-doc -->
1435 * <!-- end-user-doc -->
1436 * @generated
1437 */
1438 @Override
1439 public void setCurrent_tax_card(Tax_Card newCurrent_tax_card) {
1440 if (newCurrent_tax_card != current_tax_card) {
1441 NotificationChain msgs = null;
1442 if (current_tax_card != null)
1443 msgs = ((InternalEObject)current_tax_card).eInverseRemove(this, TaxationWithRootPackage.TAX_CARD__PREVIOUS, Tax_Card.class, msgs);
1444 if (newCurrent_tax_card != null)
1445 msgs = ((InternalEObject)newCurrent_tax_card).eInverseAdd(this, TaxationWithRootPackage.TAX_CARD__PREVIOUS, Tax_Card.class, msgs);
1446 msgs = basicSetCurrent_tax_card(newCurrent_tax_card, msgs);
1447 if (msgs != null) msgs.dispatch();
1448 }
1449 else if (eNotificationRequired())
1450 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__CURRENT_TAX_CARD, newCurrent_tax_card, newCurrent_tax_card));
1451 }
1452
1453 /**
1454 * <!-- begin-user-doc -->
1455 * <!-- end-user-doc -->
1456 * @generated
1457 */
1458 @Override
1459 public double getCredit_CIM_yearly() {
1460 return credit_CIM_yearly;
1461 }
1462
1463 /**
1464 * <!-- begin-user-doc -->
1465 * <!-- end-user-doc -->
1466 * @generated
1467 */
1468 @Override
1469 public void setCredit_CIM_yearly(double newCredit_CIM_yearly) {
1470 double oldCredit_CIM_yearly = credit_CIM_yearly;
1471 credit_CIM_yearly = newCredit_CIM_yearly;
1472 if (eNotificationRequired())
1473 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__CREDIT_CIM_YEARLY, oldCredit_CIM_yearly, credit_CIM_yearly));
1474 }
1475
1476 /**
1477 * <!-- begin-user-doc -->
1478 * <!-- end-user-doc -->
1479 * @generated
1480 */
1481 @Override
1482 public double getDeduction_DS_Alimony_yearly() {
1483 return deduction_DS_Alimony_yearly;
1484 }
1485
1486 /**
1487 * <!-- begin-user-doc -->
1488 * <!-- end-user-doc -->
1489 * @generated
1490 */
1491 @Override
1492 public void setDeduction_DS_Alimony_yearly(double newDeduction_DS_Alimony_yearly) {
1493 double oldDeduction_DS_Alimony_yearly = deduction_DS_Alimony_yearly;
1494 deduction_DS_Alimony_yearly = newDeduction_DS_Alimony_yearly;
1495 if (eNotificationRequired())
1496 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__DEDUCTION_DS_ALIMONY_YEARLY, oldDeduction_DS_Alimony_yearly, deduction_DS_Alimony_yearly));
1497 }
1498
1499 /**
1500 * <!-- begin-user-doc -->
1501 * <!-- end-user-doc -->
1502 * @generated
1503 */
1504 @Override
1505 public double getDeduction_DS_Debt_yearly() {
1506 return deduction_DS_Debt_yearly;
1507 }
1508
1509 /**
1510 * <!-- begin-user-doc -->
1511 * <!-- end-user-doc -->
1512 * @generated
1513 */
1514 @Override
1515 public void setDeduction_DS_Debt_yearly(double newDeduction_DS_Debt_yearly) {
1516 double oldDeduction_DS_Debt_yearly = deduction_DS_Debt_yearly;
1517 deduction_DS_Debt_yearly = newDeduction_DS_Debt_yearly;
1518 if (eNotificationRequired())
1519 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__DEDUCTION_DS_DEBT_YEARLY, oldDeduction_DS_Debt_yearly, deduction_DS_Debt_yearly));
1520 }
1521
1522 /**
1523 * <!-- begin-user-doc -->
1524 * <!-- end-user-doc -->
1525 * @generated
1526 */
1527 @Override
1528 public Income getIncome() {
1529 if (eContainerFeatureID() != TaxationWithRootPackage.TAX_CARD__INCOME) return null;
1530 return (Income)eInternalContainer();
1531 }
1532
1533 /**
1534 * <!-- begin-user-doc -->
1535 * <!-- end-user-doc -->
1536 * @generated
1537 */
1538 public NotificationChain basicSetIncome(Income newIncome, NotificationChain msgs) {
1539 msgs = eBasicSetContainer((InternalEObject)newIncome, TaxationWithRootPackage.TAX_CARD__INCOME, msgs);
1540 return msgs;
1541 }
1542
1543 /**
1544 * <!-- begin-user-doc -->
1545 * <!-- end-user-doc -->
1546 * @generated
1547 */
1548 @Override
1549 public void setIncome(Income newIncome) {
1550 if (newIncome != eInternalContainer() || (eContainerFeatureID() != TaxationWithRootPackage.TAX_CARD__INCOME && newIncome != null)) {
1551 if (EcoreUtil.isAncestor(this, newIncome))
1552 throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
1553 NotificationChain msgs = null;
1554 if (eInternalContainer() != null)
1555 msgs = eBasicRemoveFromContainer(msgs);
1556 if (newIncome != null)
1557 msgs = ((InternalEObject)newIncome).eInverseAdd(this, TaxationWithRootPackage.INCOME__TAX_CARD, Income.class, msgs);
1558 msgs = basicSetIncome(newIncome, msgs);
1559 if (msgs != null) msgs.dispatch();
1560 }
1561 else if (eNotificationRequired())
1562 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_CARD__INCOME, newIncome, newIncome));
1563 }
1564
1565 /**
1566 * <!-- begin-user-doc -->
1567 * <!-- end-user-doc -->
1568 * @generated
1569 */
1570 @SuppressWarnings("unchecked")
1571 @Override
1572 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
1573 switch (featureID) {
1574 case TaxationWithRootPackage.TAX_CARD__INCOME_TAX_CREDIT:
1575 return ((InternalEList<InternalEObject>)(InternalEList<?>)getIncome_Tax_Credit()).basicAdd(otherEnd, msgs);
1576 case TaxationWithRootPackage.TAX_CARD__PREVIOUS:
1577 if (previous != null)
1578 msgs = ((InternalEObject)previous).eInverseRemove(this, TaxationWithRootPackage.TAX_CARD__CURRENT_TAX_CARD, Tax_Card.class, msgs);
1579 return basicSetPrevious((Tax_Card)otherEnd, msgs);
1580 case TaxationWithRootPackage.TAX_CARD__CURRENT_TAX_CARD:
1581 if (current_tax_card != null)
1582 msgs = ((InternalEObject)current_tax_card).eInverseRemove(this, TaxationWithRootPackage.TAX_CARD__PREVIOUS, Tax_Card.class, msgs);
1583 return basicSetCurrent_tax_card((Tax_Card)otherEnd, msgs);
1584 case TaxationWithRootPackage.TAX_CARD__INCOME:
1585 if (eInternalContainer() != null)
1586 msgs = eBasicRemoveFromContainer(msgs);
1587 return basicSetIncome((Income)otherEnd, msgs);
1588 }
1589 return super.eInverseAdd(otherEnd, featureID, msgs);
1590 }
1591
1592 /**
1593 * <!-- begin-user-doc -->
1594 * <!-- end-user-doc -->
1595 * @generated
1596 */
1597 @Override
1598 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
1599 switch (featureID) {
1600 case TaxationWithRootPackage.TAX_CARD__INCOME_TAX_CREDIT:
1601 return ((InternalEList<?>)getIncome_Tax_Credit()).basicRemove(otherEnd, msgs);
1602 case TaxationWithRootPackage.TAX_CARD__PREVIOUS:
1603 return basicSetPrevious(null, msgs);
1604 case TaxationWithRootPackage.TAX_CARD__CURRENT_TAX_CARD:
1605 return basicSetCurrent_tax_card(null, msgs);
1606 case TaxationWithRootPackage.TAX_CARD__INCOME:
1607 return basicSetIncome(null, msgs);
1608 }
1609 return super.eInverseRemove(otherEnd, featureID, msgs);
1610 }
1611
1612 /**
1613 * <!-- begin-user-doc -->
1614 * <!-- end-user-doc -->
1615 * @generated
1616 */
1617 @Override
1618 public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
1619 switch (eContainerFeatureID()) {
1620 case TaxationWithRootPackage.TAX_CARD__INCOME:
1621 return eInternalContainer().eInverseRemove(this, TaxationWithRootPackage.INCOME__TAX_CARD, Income.class, msgs);
1622 }
1623 return super.eBasicRemoveFromContainerFeature(msgs);
1624 }
1625
1626 /**
1627 * <!-- begin-user-doc -->
1628 * <!-- end-user-doc -->
1629 * @generated
1630 */
1631 @Override
1632 public Object eGet(int featureID, boolean resolve, boolean coreType) {
1633 switch (featureID) {
1634 case TaxationWithRootPackage.TAX_CARD__CARD_IDENTIFIER:
1635 return getCard_identifier();
1636 case TaxationWithRootPackage.TAX_CARD__TAX_OFFICE:
1637 return getTax_office();
1638 case TaxationWithRootPackage.TAX_CARD__PERCENTAGE_OF_WITHOLDING:
1639 return getPercentage_of_witholding();
1640 case TaxationWithRootPackage.TAX_CARD__TAX_PAYERS_NAME_SURNAME:
1641 return getTax_payers_name_surname();
1642 case TaxationWithRootPackage.TAX_CARD__TAX_PAYERS_PARTNER_NAME_SURNAME:
1643 return getTax_payers_partner_name_surname();
1644 case TaxationWithRootPackage.TAX_CARD__TAX_PAYERS_ADDRESS:
1645 if (resolve) return getTax_payers_address();
1646 return basicGetTax_payers_address();
1647 case TaxationWithRootPackage.TAX_CARD__JOBS_EMPLOYER_SS_NO:
1648 return getJobs_Employer_SSNo();
1649 case TaxationWithRootPackage.TAX_CARD__JOBS_EMPLOYERS_NAME:
1650 return getJobs_employers_name();
1651 case TaxationWithRootPackage.TAX_CARD__JOBS_ACTIVITY_TYPE:
1652 return getJobs_activity_type();
1653 case TaxationWithRootPackage.TAX_CARD__JOBS_PLACE_OF_WORK:
1654 return getJobs_place_of_work();
1655 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_FD_DAILY:
1656 return getDeduction_FD_daily();
1657 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_FD_MONTHLY:
1658 return getDeduction_FD_monthly();
1659 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_AC_DAILY:
1660 return getDeduction_AC_daily();
1661 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_AC_MONTHLY:
1662 return getDeduction_AC_monthly();
1663 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_AC_YEARLY:
1664 return getDeduction_AC_yearly();
1665 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_CE_DAILY:
1666 return getDeduction_CE_daily();
1667 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_CE_MONTHLY:
1668 return getDeduction_CE_monthly();
1669 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_CE_YEARLY:
1670 return getDeduction_CE_yearly();
1671 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_DS_DAILY:
1672 return getDeduction_DS_daily();
1673 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_DS_MONTHLY:
1674 return getDeduction_DS_monthly();
1675 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_FO_DAILY:
1676 return getDeduction_FO_daily();
1677 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_FO_MONTHLY:
1678 return getDeduction_FO_monthly();
1679 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_FO_YEARLY:
1680 return getDeduction_FO_yearly();
1681 case TaxationWithRootPackage.TAX_CARD__CREDIT_CIS_DAILY:
1682 return getCredit_CIS_daily();
1683 case TaxationWithRootPackage.TAX_CARD__CREDIT_CIS_MONTHLY:
1684 return getCredit_CIS_monthly();
1685 case TaxationWithRootPackage.TAX_CARD__CREDIT_CIM_DAILY:
1686 return getCredit_CIM_daily();
1687 case TaxationWithRootPackage.TAX_CARD__VALIDITY:
1688 return isValidity();
1689 case TaxationWithRootPackage.TAX_CARD__INCOME_TAX_CREDIT:
1690 return getIncome_Tax_Credit();
1691 case TaxationWithRootPackage.TAX_CARD__PREVIOUS:
1692 if (resolve) return getPrevious();
1693 return basicGetPrevious();
1694 case TaxationWithRootPackage.TAX_CARD__CURRENT_TAX_CARD:
1695 if (resolve) return getCurrent_tax_card();
1696 return basicGetCurrent_tax_card();
1697 case TaxationWithRootPackage.TAX_CARD__CREDIT_CIM_YEARLY:
1698 return getCredit_CIM_yearly();
1699 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_DS_ALIMONY_YEARLY:
1700 return getDeduction_DS_Alimony_yearly();
1701 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_DS_DEBT_YEARLY:
1702 return getDeduction_DS_Debt_yearly();
1703 case TaxationWithRootPackage.TAX_CARD__INCOME:
1704 return getIncome();
1705 }
1706 return super.eGet(featureID, resolve, coreType);
1707 }
1708
1709 /**
1710 * <!-- begin-user-doc -->
1711 * <!-- end-user-doc -->
1712 * @generated
1713 */
1714 @SuppressWarnings("unchecked")
1715 @Override
1716 public void eSet(int featureID, Object newValue) {
1717 switch (featureID) {
1718 case TaxationWithRootPackage.TAX_CARD__CARD_IDENTIFIER:
1719 setCard_identifier((String)newValue);
1720 return;
1721 case TaxationWithRootPackage.TAX_CARD__TAX_OFFICE:
1722 setTax_office((Tax_Office)newValue);
1723 return;
1724 case TaxationWithRootPackage.TAX_CARD__PERCENTAGE_OF_WITHOLDING:
1725 setPercentage_of_witholding((Double)newValue);
1726 return;
1727 case TaxationWithRootPackage.TAX_CARD__TAX_PAYERS_NAME_SURNAME:
1728 getTax_payers_name_surname().clear();
1729 getTax_payers_name_surname().addAll((Collection<? extends String>)newValue);
1730 return;
1731 case TaxationWithRootPackage.TAX_CARD__TAX_PAYERS_PARTNER_NAME_SURNAME:
1732 getTax_payers_partner_name_surname().clear();
1733 getTax_payers_partner_name_surname().addAll((Collection<? extends String>)newValue);
1734 return;
1735 case TaxationWithRootPackage.TAX_CARD__TAX_PAYERS_ADDRESS:
1736 setTax_payers_address((Address)newValue);
1737 return;
1738 case TaxationWithRootPackage.TAX_CARD__JOBS_EMPLOYER_SS_NO:
1739 setJobs_Employer_SSNo((String)newValue);
1740 return;
1741 case TaxationWithRootPackage.TAX_CARD__JOBS_EMPLOYERS_NAME:
1742 setJobs_employers_name((String)newValue);
1743 return;
1744 case TaxationWithRootPackage.TAX_CARD__JOBS_ACTIVITY_TYPE:
1745 setJobs_activity_type((Job_Activity)newValue);
1746 return;
1747 case TaxationWithRootPackage.TAX_CARD__JOBS_PLACE_OF_WORK:
1748 setJobs_place_of_work((Town)newValue);
1749 return;
1750 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_FD_DAILY:
1751 setDeduction_FD_daily((Double)newValue);
1752 return;
1753 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_FD_MONTHLY:
1754 setDeduction_FD_monthly((Double)newValue);
1755 return;
1756 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_AC_DAILY:
1757 setDeduction_AC_daily((Double)newValue);
1758 return;
1759 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_AC_MONTHLY:
1760 setDeduction_AC_monthly((Double)newValue);
1761 return;
1762 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_AC_YEARLY:
1763 setDeduction_AC_yearly((Double)newValue);
1764 return;
1765 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_CE_DAILY:
1766 setDeduction_CE_daily((Double)newValue);
1767 return;
1768 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_CE_MONTHLY:
1769 setDeduction_CE_monthly((Double)newValue);
1770 return;
1771 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_CE_YEARLY:
1772 setDeduction_CE_yearly((Double)newValue);
1773 return;
1774 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_DS_DAILY:
1775 setDeduction_DS_daily((Double)newValue);
1776 return;
1777 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_DS_MONTHLY:
1778 setDeduction_DS_monthly((Double)newValue);
1779 return;
1780 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_FO_DAILY:
1781 setDeduction_FO_daily((Double)newValue);
1782 return;
1783 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_FO_MONTHLY:
1784 setDeduction_FO_monthly((Double)newValue);
1785 return;
1786 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_FO_YEARLY:
1787 setDeduction_FO_yearly((Double)newValue);
1788 return;
1789 case TaxationWithRootPackage.TAX_CARD__CREDIT_CIS_DAILY:
1790 setCredit_CIS_daily((Double)newValue);
1791 return;
1792 case TaxationWithRootPackage.TAX_CARD__CREDIT_CIS_MONTHLY:
1793 setCredit_CIS_monthly((Double)newValue);
1794 return;
1795 case TaxationWithRootPackage.TAX_CARD__CREDIT_CIM_DAILY:
1796 setCredit_CIM_daily((Double)newValue);
1797 return;
1798 case TaxationWithRootPackage.TAX_CARD__VALIDITY:
1799 setValidity((Boolean)newValue);
1800 return;
1801 case TaxationWithRootPackage.TAX_CARD__INCOME_TAX_CREDIT:
1802 getIncome_Tax_Credit().clear();
1803 getIncome_Tax_Credit().addAll((Collection<? extends Income_Tax_Credit>)newValue);
1804 return;
1805 case TaxationWithRootPackage.TAX_CARD__PREVIOUS:
1806 setPrevious((Tax_Card)newValue);
1807 return;
1808 case TaxationWithRootPackage.TAX_CARD__CURRENT_TAX_CARD:
1809 setCurrent_tax_card((Tax_Card)newValue);
1810 return;
1811 case TaxationWithRootPackage.TAX_CARD__CREDIT_CIM_YEARLY:
1812 setCredit_CIM_yearly((Double)newValue);
1813 return;
1814 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_DS_ALIMONY_YEARLY:
1815 setDeduction_DS_Alimony_yearly((Double)newValue);
1816 return;
1817 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_DS_DEBT_YEARLY:
1818 setDeduction_DS_Debt_yearly((Double)newValue);
1819 return;
1820 case TaxationWithRootPackage.TAX_CARD__INCOME:
1821 setIncome((Income)newValue);
1822 return;
1823 }
1824 super.eSet(featureID, newValue);
1825 }
1826
1827 /**
1828 * <!-- begin-user-doc -->
1829 * <!-- end-user-doc -->
1830 * @generated
1831 */
1832 @Override
1833 public void eUnset(int featureID) {
1834 switch (featureID) {
1835 case TaxationWithRootPackage.TAX_CARD__CARD_IDENTIFIER:
1836 setCard_identifier(CARD_IDENTIFIER_EDEFAULT);
1837 return;
1838 case TaxationWithRootPackage.TAX_CARD__TAX_OFFICE:
1839 setTax_office(TAX_OFFICE_EDEFAULT);
1840 return;
1841 case TaxationWithRootPackage.TAX_CARD__PERCENTAGE_OF_WITHOLDING:
1842 setPercentage_of_witholding(PERCENTAGE_OF_WITHOLDING_EDEFAULT);
1843 return;
1844 case TaxationWithRootPackage.TAX_CARD__TAX_PAYERS_NAME_SURNAME:
1845 getTax_payers_name_surname().clear();
1846 return;
1847 case TaxationWithRootPackage.TAX_CARD__TAX_PAYERS_PARTNER_NAME_SURNAME:
1848 getTax_payers_partner_name_surname().clear();
1849 return;
1850 case TaxationWithRootPackage.TAX_CARD__TAX_PAYERS_ADDRESS:
1851 setTax_payers_address((Address)null);
1852 return;
1853 case TaxationWithRootPackage.TAX_CARD__JOBS_EMPLOYER_SS_NO:
1854 setJobs_Employer_SSNo(JOBS_EMPLOYER_SS_NO_EDEFAULT);
1855 return;
1856 case TaxationWithRootPackage.TAX_CARD__JOBS_EMPLOYERS_NAME:
1857 setJobs_employers_name(JOBS_EMPLOYERS_NAME_EDEFAULT);
1858 return;
1859 case TaxationWithRootPackage.TAX_CARD__JOBS_ACTIVITY_TYPE:
1860 setJobs_activity_type(JOBS_ACTIVITY_TYPE_EDEFAULT);
1861 return;
1862 case TaxationWithRootPackage.TAX_CARD__JOBS_PLACE_OF_WORK:
1863 setJobs_place_of_work(JOBS_PLACE_OF_WORK_EDEFAULT);
1864 return;
1865 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_FD_DAILY:
1866 setDeduction_FD_daily(DEDUCTION_FD_DAILY_EDEFAULT);
1867 return;
1868 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_FD_MONTHLY:
1869 setDeduction_FD_monthly(DEDUCTION_FD_MONTHLY_EDEFAULT);
1870 return;
1871 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_AC_DAILY:
1872 setDeduction_AC_daily(DEDUCTION_AC_DAILY_EDEFAULT);
1873 return;
1874 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_AC_MONTHLY:
1875 setDeduction_AC_monthly(DEDUCTION_AC_MONTHLY_EDEFAULT);
1876 return;
1877 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_AC_YEARLY:
1878 setDeduction_AC_yearly(DEDUCTION_AC_YEARLY_EDEFAULT);
1879 return;
1880 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_CE_DAILY:
1881 setDeduction_CE_daily(DEDUCTION_CE_DAILY_EDEFAULT);
1882 return;
1883 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_CE_MONTHLY:
1884 setDeduction_CE_monthly(DEDUCTION_CE_MONTHLY_EDEFAULT);
1885 return;
1886 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_CE_YEARLY:
1887 setDeduction_CE_yearly(DEDUCTION_CE_YEARLY_EDEFAULT);
1888 return;
1889 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_DS_DAILY:
1890 setDeduction_DS_daily(DEDUCTION_DS_DAILY_EDEFAULT);
1891 return;
1892 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_DS_MONTHLY:
1893 setDeduction_DS_monthly(DEDUCTION_DS_MONTHLY_EDEFAULT);
1894 return;
1895 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_FO_DAILY:
1896 setDeduction_FO_daily(DEDUCTION_FO_DAILY_EDEFAULT);
1897 return;
1898 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_FO_MONTHLY:
1899 setDeduction_FO_monthly(DEDUCTION_FO_MONTHLY_EDEFAULT);
1900 return;
1901 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_FO_YEARLY:
1902 setDeduction_FO_yearly(DEDUCTION_FO_YEARLY_EDEFAULT);
1903 return;
1904 case TaxationWithRootPackage.TAX_CARD__CREDIT_CIS_DAILY:
1905 setCredit_CIS_daily(CREDIT_CIS_DAILY_EDEFAULT);
1906 return;
1907 case TaxationWithRootPackage.TAX_CARD__CREDIT_CIS_MONTHLY:
1908 setCredit_CIS_monthly(CREDIT_CIS_MONTHLY_EDEFAULT);
1909 return;
1910 case TaxationWithRootPackage.TAX_CARD__CREDIT_CIM_DAILY:
1911 setCredit_CIM_daily(CREDIT_CIM_DAILY_EDEFAULT);
1912 return;
1913 case TaxationWithRootPackage.TAX_CARD__VALIDITY:
1914 setValidity(VALIDITY_EDEFAULT);
1915 return;
1916 case TaxationWithRootPackage.TAX_CARD__INCOME_TAX_CREDIT:
1917 getIncome_Tax_Credit().clear();
1918 return;
1919 case TaxationWithRootPackage.TAX_CARD__PREVIOUS:
1920 setPrevious((Tax_Card)null);
1921 return;
1922 case TaxationWithRootPackage.TAX_CARD__CURRENT_TAX_CARD:
1923 setCurrent_tax_card((Tax_Card)null);
1924 return;
1925 case TaxationWithRootPackage.TAX_CARD__CREDIT_CIM_YEARLY:
1926 setCredit_CIM_yearly(CREDIT_CIM_YEARLY_EDEFAULT);
1927 return;
1928 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_DS_ALIMONY_YEARLY:
1929 setDeduction_DS_Alimony_yearly(DEDUCTION_DS_ALIMONY_YEARLY_EDEFAULT);
1930 return;
1931 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_DS_DEBT_YEARLY:
1932 setDeduction_DS_Debt_yearly(DEDUCTION_DS_DEBT_YEARLY_EDEFAULT);
1933 return;
1934 case TaxationWithRootPackage.TAX_CARD__INCOME:
1935 setIncome((Income)null);
1936 return;
1937 }
1938 super.eUnset(featureID);
1939 }
1940
1941 /**
1942 * <!-- begin-user-doc -->
1943 * <!-- end-user-doc -->
1944 * @generated
1945 */
1946 @Override
1947 public boolean eIsSet(int featureID) {
1948 switch (featureID) {
1949 case TaxationWithRootPackage.TAX_CARD__CARD_IDENTIFIER:
1950 return CARD_IDENTIFIER_EDEFAULT == null ? card_identifier != null : !CARD_IDENTIFIER_EDEFAULT.equals(card_identifier);
1951 case TaxationWithRootPackage.TAX_CARD__TAX_OFFICE:
1952 return tax_office != TAX_OFFICE_EDEFAULT;
1953 case TaxationWithRootPackage.TAX_CARD__PERCENTAGE_OF_WITHOLDING:
1954 return percentage_of_witholding != PERCENTAGE_OF_WITHOLDING_EDEFAULT;
1955 case TaxationWithRootPackage.TAX_CARD__TAX_PAYERS_NAME_SURNAME:
1956 return tax_payers_name_surname != null && !tax_payers_name_surname.isEmpty();
1957 case TaxationWithRootPackage.TAX_CARD__TAX_PAYERS_PARTNER_NAME_SURNAME:
1958 return tax_payers_partner_name_surname != null && !tax_payers_partner_name_surname.isEmpty();
1959 case TaxationWithRootPackage.TAX_CARD__TAX_PAYERS_ADDRESS:
1960 return tax_payers_address != null;
1961 case TaxationWithRootPackage.TAX_CARD__JOBS_EMPLOYER_SS_NO:
1962 return JOBS_EMPLOYER_SS_NO_EDEFAULT == null ? jobs_Employer_SSNo != null : !JOBS_EMPLOYER_SS_NO_EDEFAULT.equals(jobs_Employer_SSNo);
1963 case TaxationWithRootPackage.TAX_CARD__JOBS_EMPLOYERS_NAME:
1964 return JOBS_EMPLOYERS_NAME_EDEFAULT == null ? jobs_employers_name != null : !JOBS_EMPLOYERS_NAME_EDEFAULT.equals(jobs_employers_name);
1965 case TaxationWithRootPackage.TAX_CARD__JOBS_ACTIVITY_TYPE:
1966 return jobs_activity_type != JOBS_ACTIVITY_TYPE_EDEFAULT;
1967 case TaxationWithRootPackage.TAX_CARD__JOBS_PLACE_OF_WORK:
1968 return jobs_place_of_work != JOBS_PLACE_OF_WORK_EDEFAULT;
1969 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_FD_DAILY:
1970 return deduction_FD_daily != DEDUCTION_FD_DAILY_EDEFAULT;
1971 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_FD_MONTHLY:
1972 return deduction_FD_monthly != DEDUCTION_FD_MONTHLY_EDEFAULT;
1973 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_AC_DAILY:
1974 return deduction_AC_daily != DEDUCTION_AC_DAILY_EDEFAULT;
1975 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_AC_MONTHLY:
1976 return deduction_AC_monthly != DEDUCTION_AC_MONTHLY_EDEFAULT;
1977 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_AC_YEARLY:
1978 return deduction_AC_yearly != DEDUCTION_AC_YEARLY_EDEFAULT;
1979 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_CE_DAILY:
1980 return deduction_CE_daily != DEDUCTION_CE_DAILY_EDEFAULT;
1981 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_CE_MONTHLY:
1982 return deduction_CE_monthly != DEDUCTION_CE_MONTHLY_EDEFAULT;
1983 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_CE_YEARLY:
1984 return deduction_CE_yearly != DEDUCTION_CE_YEARLY_EDEFAULT;
1985 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_DS_DAILY:
1986 return deduction_DS_daily != DEDUCTION_DS_DAILY_EDEFAULT;
1987 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_DS_MONTHLY:
1988 return deduction_DS_monthly != DEDUCTION_DS_MONTHLY_EDEFAULT;
1989 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_FO_DAILY:
1990 return deduction_FO_daily != DEDUCTION_FO_DAILY_EDEFAULT;
1991 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_FO_MONTHLY:
1992 return deduction_FO_monthly != DEDUCTION_FO_MONTHLY_EDEFAULT;
1993 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_FO_YEARLY:
1994 return deduction_FO_yearly != DEDUCTION_FO_YEARLY_EDEFAULT;
1995 case TaxationWithRootPackage.TAX_CARD__CREDIT_CIS_DAILY:
1996 return credit_CIS_daily != CREDIT_CIS_DAILY_EDEFAULT;
1997 case TaxationWithRootPackage.TAX_CARD__CREDIT_CIS_MONTHLY:
1998 return credit_CIS_monthly != CREDIT_CIS_MONTHLY_EDEFAULT;
1999 case TaxationWithRootPackage.TAX_CARD__CREDIT_CIM_DAILY:
2000 return credit_CIM_daily != CREDIT_CIM_DAILY_EDEFAULT;
2001 case TaxationWithRootPackage.TAX_CARD__VALIDITY:
2002 return validity != VALIDITY_EDEFAULT;
2003 case TaxationWithRootPackage.TAX_CARD__INCOME_TAX_CREDIT:
2004 return income_Tax_Credit != null && !income_Tax_Credit.isEmpty();
2005 case TaxationWithRootPackage.TAX_CARD__PREVIOUS:
2006 return previous != null;
2007 case TaxationWithRootPackage.TAX_CARD__CURRENT_TAX_CARD:
2008 return current_tax_card != null;
2009 case TaxationWithRootPackage.TAX_CARD__CREDIT_CIM_YEARLY:
2010 return credit_CIM_yearly != CREDIT_CIM_YEARLY_EDEFAULT;
2011 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_DS_ALIMONY_YEARLY:
2012 return deduction_DS_Alimony_yearly != DEDUCTION_DS_ALIMONY_YEARLY_EDEFAULT;
2013 case TaxationWithRootPackage.TAX_CARD__DEDUCTION_DS_DEBT_YEARLY:
2014 return deduction_DS_Debt_yearly != DEDUCTION_DS_DEBT_YEARLY_EDEFAULT;
2015 case TaxationWithRootPackage.TAX_CARD__INCOME:
2016 return getIncome() != null;
2017 }
2018 return super.eIsSet(featureID);
2019 }
2020
2021 /**
2022 * <!-- begin-user-doc -->
2023 * <!-- end-user-doc -->
2024 * @generated
2025 */
2026 @Override
2027 public String toString() {
2028 if (eIsProxy()) return super.toString();
2029
2030 StringBuilder result = new StringBuilder(super.toString());
2031 result.append(" (card_identifier: ");
2032 result.append(card_identifier);
2033 result.append(", tax_office: ");
2034 result.append(tax_office);
2035 result.append(", percentage_of_witholding: ");
2036 result.append(percentage_of_witholding);
2037 result.append(", tax_payers_name_surname: ");
2038 result.append(tax_payers_name_surname);
2039 result.append(", tax_payers_partner_name_surname: ");
2040 result.append(tax_payers_partner_name_surname);
2041 result.append(", jobs_Employer_SSNo: ");
2042 result.append(jobs_Employer_SSNo);
2043 result.append(", jobs_employers_name: ");
2044 result.append(jobs_employers_name);
2045 result.append(", jobs_activity_type: ");
2046 result.append(jobs_activity_type);
2047 result.append(", jobs_place_of_work: ");
2048 result.append(jobs_place_of_work);
2049 result.append(", deduction_FD_daily: ");
2050 result.append(deduction_FD_daily);
2051 result.append(", deduction_FD_monthly: ");
2052 result.append(deduction_FD_monthly);
2053 result.append(", deduction_AC_daily: ");
2054 result.append(deduction_AC_daily);
2055 result.append(", deduction_AC_monthly: ");
2056 result.append(deduction_AC_monthly);
2057 result.append(", deduction_AC_yearly: ");
2058 result.append(deduction_AC_yearly);
2059 result.append(", deduction_CE_daily: ");
2060 result.append(deduction_CE_daily);
2061 result.append(", deduction_CE_monthly: ");
2062 result.append(deduction_CE_monthly);
2063 result.append(", deduction_CE_yearly: ");
2064 result.append(deduction_CE_yearly);
2065 result.append(", deduction_DS_daily: ");
2066 result.append(deduction_DS_daily);
2067 result.append(", deduction_DS_monthly: ");
2068 result.append(deduction_DS_monthly);
2069 result.append(", deduction_FO_daily: ");
2070 result.append(deduction_FO_daily);
2071 result.append(", deduction_FO_monthly: ");
2072 result.append(deduction_FO_monthly);
2073 result.append(", deduction_FO_yearly: ");
2074 result.append(deduction_FO_yearly);
2075 result.append(", credit_CIS_daily: ");
2076 result.append(credit_CIS_daily);
2077 result.append(", credit_CIS_monthly: ");
2078 result.append(credit_CIS_monthly);
2079 result.append(", credit_CIM_daily: ");
2080 result.append(credit_CIM_daily);
2081 result.append(", validity: ");
2082 result.append(validity);
2083 result.append(", credit_CIM_yearly: ");
2084 result.append(credit_CIM_yearly);
2085 result.append(", deduction_DS_Alimony_yearly: ");
2086 result.append(deduction_DS_Alimony_yearly);
2087 result.append(", deduction_DS_Debt_yearly: ");
2088 result.append(deduction_DS_Debt_yearly);
2089 result.append(')');
2090 return result.toString();
2091 }
2092
2093} //Tax_CardImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Tax_PayerImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Tax_PayerImpl.java
new file mode 100644
index 00000000..3783701a
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Tax_PayerImpl.java
@@ -0,0 +1,355 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Dependent;
6import TaxationWithRoot.FromAgent;
7import TaxationWithRoot.FromLaw;
8import TaxationWithRoot.Income;
9import TaxationWithRoot.Tax_Payer;
10import TaxationWithRoot.TaxationWithRootPackage;
11
12import java.util.Collection;
13
14import org.eclipse.emf.common.notify.Notification;
15import org.eclipse.emf.common.notify.NotificationChain;
16
17import org.eclipse.emf.common.util.EList;
18
19import org.eclipse.emf.ecore.EClass;
20import org.eclipse.emf.ecore.InternalEObject;
21
22import org.eclipse.emf.ecore.impl.ENotificationImpl;
23
24import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
25import org.eclipse.emf.ecore.util.InternalEList;
26
27/**
28 * <!-- begin-user-doc -->
29 * An implementation of the model object '<em><b>Tax Payer</b></em>'.
30 * <!-- end-user-doc -->
31 * <p>
32 * The following features are implemented:
33 * </p>
34 * <ul>
35 * <li>{@link TaxationWithRoot.impl.Tax_PayerImpl#getDependents <em>Dependents</em>}</li>
36 * <li>{@link TaxationWithRoot.impl.Tax_PayerImpl#getFrom_agent <em>From agent</em>}</li>
37 * <li>{@link TaxationWithRoot.impl.Tax_PayerImpl#getIncomes <em>Incomes</em>}</li>
38 * <li>{@link TaxationWithRoot.impl.Tax_PayerImpl#getFrom_law <em>From law</em>}</li>
39 * </ul>
40 *
41 * @generated
42 */
43public abstract class Tax_PayerImpl extends Physical_PersonImpl implements Tax_Payer {
44 /**
45 * The cached value of the '{@link #getDependents() <em>Dependents</em>}' containment reference list.
46 * <!-- begin-user-doc -->
47 * <!-- end-user-doc -->
48 * @see #getDependents()
49 * @generated
50 * @ordered
51 */
52 protected EList<Dependent> dependents;
53
54 /**
55 * The cached value of the '{@link #getFrom_agent() <em>From agent</em>}' containment reference.
56 * <!-- begin-user-doc -->
57 * <!-- end-user-doc -->
58 * @see #getFrom_agent()
59 * @generated
60 * @ordered
61 */
62 protected FromAgent from_agent;
63
64 /**
65 * The cached value of the '{@link #getIncomes() <em>Incomes</em>}' containment reference list.
66 * <!-- begin-user-doc -->
67 * <!-- end-user-doc -->
68 * @see #getIncomes()
69 * @generated
70 * @ordered
71 */
72 protected EList<Income> incomes;
73
74 /**
75 * The cached value of the '{@link #getFrom_law() <em>From law</em>}' containment reference.
76 * <!-- begin-user-doc -->
77 * <!-- end-user-doc -->
78 * @see #getFrom_law()
79 * @generated
80 * @ordered
81 */
82 protected FromLaw from_law;
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 protected Tax_PayerImpl() {
90 super();
91 }
92
93 /**
94 * <!-- begin-user-doc -->
95 * <!-- end-user-doc -->
96 * @generated
97 */
98 @Override
99 protected EClass eStaticClass() {
100 return TaxationWithRootPackage.Literals.TAX_PAYER;
101 }
102
103 /**
104 * <!-- begin-user-doc -->
105 * <!-- end-user-doc -->
106 * @generated
107 */
108 @Override
109 public EList<Dependent> getDependents() {
110 if (dependents == null) {
111 dependents = new EObjectContainmentWithInverseEList<Dependent>(Dependent.class, this, TaxationWithRootPackage.TAX_PAYER__DEPENDENTS, TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON);
112 }
113 return dependents;
114 }
115
116 /**
117 * <!-- begin-user-doc -->
118 * <!-- end-user-doc -->
119 * @generated
120 */
121 @Override
122 public FromAgent getFrom_agent() {
123 return from_agent;
124 }
125
126 /**
127 * <!-- begin-user-doc -->
128 * <!-- end-user-doc -->
129 * @generated
130 */
131 public NotificationChain basicSetFrom_agent(FromAgent newFrom_agent, NotificationChain msgs) {
132 FromAgent oldFrom_agent = from_agent;
133 from_agent = newFrom_agent;
134 if (eNotificationRequired()) {
135 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_PAYER__FROM_AGENT, oldFrom_agent, newFrom_agent);
136 if (msgs == null) msgs = notification; else msgs.add(notification);
137 }
138 return msgs;
139 }
140
141 /**
142 * <!-- begin-user-doc -->
143 * <!-- end-user-doc -->
144 * @generated
145 */
146 @Override
147 public void setFrom_agent(FromAgent newFrom_agent) {
148 if (newFrom_agent != from_agent) {
149 NotificationChain msgs = null;
150 if (from_agent != null)
151 msgs = ((InternalEObject)from_agent).eInverseRemove(this, TaxationWithRootPackage.FROM_AGENT__TAX_PAYER, FromAgent.class, msgs);
152 if (newFrom_agent != null)
153 msgs = ((InternalEObject)newFrom_agent).eInverseAdd(this, TaxationWithRootPackage.FROM_AGENT__TAX_PAYER, FromAgent.class, msgs);
154 msgs = basicSetFrom_agent(newFrom_agent, msgs);
155 if (msgs != null) msgs.dispatch();
156 }
157 else if (eNotificationRequired())
158 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_PAYER__FROM_AGENT, newFrom_agent, newFrom_agent));
159 }
160
161 /**
162 * <!-- begin-user-doc -->
163 * <!-- end-user-doc -->
164 * @generated
165 */
166 @Override
167 public EList<Income> getIncomes() {
168 if (incomes == null) {
169 incomes = new EObjectContainmentWithInverseEList<Income>(Income.class, this, TaxationWithRootPackage.TAX_PAYER__INCOMES, TaxationWithRootPackage.INCOME__TAX_PAYER);
170 }
171 return incomes;
172 }
173
174 /**
175 * <!-- begin-user-doc -->
176 * <!-- end-user-doc -->
177 * @generated
178 */
179 @Override
180 public FromLaw getFrom_law() {
181 return from_law;
182 }
183
184 /**
185 * <!-- begin-user-doc -->
186 * <!-- end-user-doc -->
187 * @generated
188 */
189 public NotificationChain basicSetFrom_law(FromLaw newFrom_law, NotificationChain msgs) {
190 FromLaw oldFrom_law = from_law;
191 from_law = newFrom_law;
192 if (eNotificationRequired()) {
193 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_PAYER__FROM_LAW, oldFrom_law, newFrom_law);
194 if (msgs == null) msgs = notification; else msgs.add(notification);
195 }
196 return msgs;
197 }
198
199 /**
200 * <!-- begin-user-doc -->
201 * <!-- end-user-doc -->
202 * @generated
203 */
204 @Override
205 public void setFrom_law(FromLaw newFrom_law) {
206 if (newFrom_law != from_law) {
207 NotificationChain msgs = null;
208 if (from_law != null)
209 msgs = ((InternalEObject)from_law).eInverseRemove(this, TaxationWithRootPackage.FROM_LAW__TAX_PAYER, FromLaw.class, msgs);
210 if (newFrom_law != null)
211 msgs = ((InternalEObject)newFrom_law).eInverseAdd(this, TaxationWithRootPackage.FROM_LAW__TAX_PAYER, FromLaw.class, msgs);
212 msgs = basicSetFrom_law(newFrom_law, msgs);
213 if (msgs != null) msgs.dispatch();
214 }
215 else if (eNotificationRequired())
216 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_PAYER__FROM_LAW, newFrom_law, newFrom_law));
217 }
218
219 /**
220 * <!-- begin-user-doc -->
221 * <!-- end-user-doc -->
222 * @generated
223 */
224 @SuppressWarnings("unchecked")
225 @Override
226 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
227 switch (featureID) {
228 case TaxationWithRootPackage.TAX_PAYER__DEPENDENTS:
229 return ((InternalEList<InternalEObject>)(InternalEList<?>)getDependents()).basicAdd(otherEnd, msgs);
230 case TaxationWithRootPackage.TAX_PAYER__FROM_AGENT:
231 if (from_agent != null)
232 msgs = ((InternalEObject)from_agent).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TaxationWithRootPackage.TAX_PAYER__FROM_AGENT, null, msgs);
233 return basicSetFrom_agent((FromAgent)otherEnd, msgs);
234 case TaxationWithRootPackage.TAX_PAYER__INCOMES:
235 return ((InternalEList<InternalEObject>)(InternalEList<?>)getIncomes()).basicAdd(otherEnd, msgs);
236 case TaxationWithRootPackage.TAX_PAYER__FROM_LAW:
237 if (from_law != null)
238 msgs = ((InternalEObject)from_law).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TaxationWithRootPackage.TAX_PAYER__FROM_LAW, null, msgs);
239 return basicSetFrom_law((FromLaw)otherEnd, msgs);
240 }
241 return super.eInverseAdd(otherEnd, featureID, msgs);
242 }
243
244 /**
245 * <!-- begin-user-doc -->
246 * <!-- end-user-doc -->
247 * @generated
248 */
249 @Override
250 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
251 switch (featureID) {
252 case TaxationWithRootPackage.TAX_PAYER__DEPENDENTS:
253 return ((InternalEList<?>)getDependents()).basicRemove(otherEnd, msgs);
254 case TaxationWithRootPackage.TAX_PAYER__FROM_AGENT:
255 return basicSetFrom_agent(null, msgs);
256 case TaxationWithRootPackage.TAX_PAYER__INCOMES:
257 return ((InternalEList<?>)getIncomes()).basicRemove(otherEnd, msgs);
258 case TaxationWithRootPackage.TAX_PAYER__FROM_LAW:
259 return basicSetFrom_law(null, msgs);
260 }
261 return super.eInverseRemove(otherEnd, featureID, msgs);
262 }
263
264 /**
265 * <!-- begin-user-doc -->
266 * <!-- end-user-doc -->
267 * @generated
268 */
269 @Override
270 public Object eGet(int featureID, boolean resolve, boolean coreType) {
271 switch (featureID) {
272 case TaxationWithRootPackage.TAX_PAYER__DEPENDENTS:
273 return getDependents();
274 case TaxationWithRootPackage.TAX_PAYER__FROM_AGENT:
275 return getFrom_agent();
276 case TaxationWithRootPackage.TAX_PAYER__INCOMES:
277 return getIncomes();
278 case TaxationWithRootPackage.TAX_PAYER__FROM_LAW:
279 return getFrom_law();
280 }
281 return super.eGet(featureID, resolve, coreType);
282 }
283
284 /**
285 * <!-- begin-user-doc -->
286 * <!-- end-user-doc -->
287 * @generated
288 */
289 @SuppressWarnings("unchecked")
290 @Override
291 public void eSet(int featureID, Object newValue) {
292 switch (featureID) {
293 case TaxationWithRootPackage.TAX_PAYER__DEPENDENTS:
294 getDependents().clear();
295 getDependents().addAll((Collection<? extends Dependent>)newValue);
296 return;
297 case TaxationWithRootPackage.TAX_PAYER__FROM_AGENT:
298 setFrom_agent((FromAgent)newValue);
299 return;
300 case TaxationWithRootPackage.TAX_PAYER__INCOMES:
301 getIncomes().clear();
302 getIncomes().addAll((Collection<? extends Income>)newValue);
303 return;
304 case TaxationWithRootPackage.TAX_PAYER__FROM_LAW:
305 setFrom_law((FromLaw)newValue);
306 return;
307 }
308 super.eSet(featureID, newValue);
309 }
310
311 /**
312 * <!-- begin-user-doc -->
313 * <!-- end-user-doc -->
314 * @generated
315 */
316 @Override
317 public void eUnset(int featureID) {
318 switch (featureID) {
319 case TaxationWithRootPackage.TAX_PAYER__DEPENDENTS:
320 getDependents().clear();
321 return;
322 case TaxationWithRootPackage.TAX_PAYER__FROM_AGENT:
323 setFrom_agent((FromAgent)null);
324 return;
325 case TaxationWithRootPackage.TAX_PAYER__INCOMES:
326 getIncomes().clear();
327 return;
328 case TaxationWithRootPackage.TAX_PAYER__FROM_LAW:
329 setFrom_law((FromLaw)null);
330 return;
331 }
332 super.eUnset(featureID);
333 }
334
335 /**
336 * <!-- begin-user-doc -->
337 * <!-- end-user-doc -->
338 * @generated
339 */
340 @Override
341 public boolean eIsSet(int featureID) {
342 switch (featureID) {
343 case TaxationWithRootPackage.TAX_PAYER__DEPENDENTS:
344 return dependents != null && !dependents.isEmpty();
345 case TaxationWithRootPackage.TAX_PAYER__FROM_AGENT:
346 return from_agent != null;
347 case TaxationWithRootPackage.TAX_PAYER__INCOMES:
348 return incomes != null && !incomes.isEmpty();
349 case TaxationWithRootPackage.TAX_PAYER__FROM_LAW:
350 return from_law != null;
351 }
352 return super.eIsSet(featureID);
353 }
354
355} //Tax_PayerImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Tax_PropertyImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Tax_PropertyImpl.java
new file mode 100644
index 00000000..8b5e4683
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Tax_PropertyImpl.java
@@ -0,0 +1,324 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Legal_Union_Record;
6import TaxationWithRoot.Tax_Property;
7import TaxationWithRoot.TaxationWithRootPackage;
8
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain;
11
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14
15import org.eclipse.emf.ecore.impl.ENotificationImpl;
16import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
17
18import org.eclipse.emf.ecore.util.EcoreUtil;
19
20/**
21 * <!-- begin-user-doc -->
22 * An implementation of the model object '<em><b>Tax Property</b></em>'.
23 * <!-- end-user-doc -->
24 * <p>
25 * The following features are implemented:
26 * </p>
27 * <ul>
28 * <li>{@link TaxationWithRoot.impl.Tax_PropertyImpl#getStarting_year <em>Starting year</em>}</li>
29 * <li>{@link TaxationWithRoot.impl.Tax_PropertyImpl#getId10 <em>Id10</em>}</li>
30 * <li>{@link TaxationWithRoot.impl.Tax_PropertyImpl#getUnion_record <em>Union record</em>}</li>
31 * </ul>
32 *
33 * @generated
34 */
35public class Tax_PropertyImpl extends MinimalEObjectImpl.Container implements Tax_Property {
36 /**
37 * The default value of the '{@link #getStarting_year() <em>Starting year</em>}' attribute.
38 * <!-- begin-user-doc -->
39 * <!-- end-user-doc -->
40 * @see #getStarting_year()
41 * @generated
42 * @ordered
43 */
44 protected static final int STARTING_YEAR_EDEFAULT = 0;
45
46 /**
47 * The cached value of the '{@link #getStarting_year() <em>Starting year</em>}' attribute.
48 * <!-- begin-user-doc -->
49 * <!-- end-user-doc -->
50 * @see #getStarting_year()
51 * @generated
52 * @ordered
53 */
54 protected int starting_year = STARTING_YEAR_EDEFAULT;
55
56 /**
57 * The default value of the '{@link #getId10() <em>Id10</em>}' attribute.
58 * <!-- begin-user-doc -->
59 * <!-- end-user-doc -->
60 * @see #getId10()
61 * @generated
62 * @ordered
63 */
64 protected static final String ID10_EDEFAULT = null;
65
66 /**
67 * The cached value of the '{@link #getId10() <em>Id10</em>}' attribute.
68 * <!-- begin-user-doc -->
69 * <!-- end-user-doc -->
70 * @see #getId10()
71 * @generated
72 * @ordered
73 */
74 protected String id10 = ID10_EDEFAULT;
75
76 /**
77 * <!-- begin-user-doc -->
78 * <!-- end-user-doc -->
79 * @generated
80 */
81 protected Tax_PropertyImpl() {
82 super();
83 }
84
85 /**
86 * <!-- begin-user-doc -->
87 * <!-- end-user-doc -->
88 * @generated
89 */
90 @Override
91 protected EClass eStaticClass() {
92 return TaxationWithRootPackage.Literals.TAX_PROPERTY;
93 }
94
95 /**
96 * <!-- begin-user-doc -->
97 * <!-- end-user-doc -->
98 * @generated
99 */
100 @Override
101 public int getStarting_year() {
102 return starting_year;
103 }
104
105 /**
106 * <!-- begin-user-doc -->
107 * <!-- end-user-doc -->
108 * @generated
109 */
110 @Override
111 public void setStarting_year(int newStarting_year) {
112 int oldStarting_year = starting_year;
113 starting_year = newStarting_year;
114 if (eNotificationRequired())
115 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_PROPERTY__STARTING_YEAR, oldStarting_year, starting_year));
116 }
117
118 /**
119 * <!-- begin-user-doc -->
120 * <!-- end-user-doc -->
121 * @generated
122 */
123 @Override
124 public String getId10() {
125 return id10;
126 }
127
128 /**
129 * <!-- begin-user-doc -->
130 * <!-- end-user-doc -->
131 * @generated
132 */
133 @Override
134 public void setId10(String newId10) {
135 String oldId10 = id10;
136 id10 = newId10;
137 if (eNotificationRequired())
138 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_PROPERTY__ID10, oldId10, id10));
139 }
140
141 /**
142 * <!-- begin-user-doc -->
143 * <!-- end-user-doc -->
144 * @generated
145 */
146 @Override
147 public Legal_Union_Record getUnion_record() {
148 if (eContainerFeatureID() != TaxationWithRootPackage.TAX_PROPERTY__UNION_RECORD) return null;
149 return (Legal_Union_Record)eInternalContainer();
150 }
151
152 /**
153 * <!-- begin-user-doc -->
154 * <!-- end-user-doc -->
155 * @generated
156 */
157 public NotificationChain basicSetUnion_record(Legal_Union_Record newUnion_record, NotificationChain msgs) {
158 msgs = eBasicSetContainer((InternalEObject)newUnion_record, TaxationWithRootPackage.TAX_PROPERTY__UNION_RECORD, msgs);
159 return msgs;
160 }
161
162 /**
163 * <!-- begin-user-doc -->
164 * <!-- end-user-doc -->
165 * @generated
166 */
167 @Override
168 public void setUnion_record(Legal_Union_Record newUnion_record) {
169 if (newUnion_record != eInternalContainer() || (eContainerFeatureID() != TaxationWithRootPackage.TAX_PROPERTY__UNION_RECORD && newUnion_record != null)) {
170 if (EcoreUtil.isAncestor(this, newUnion_record))
171 throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
172 NotificationChain msgs = null;
173 if (eInternalContainer() != null)
174 msgs = eBasicRemoveFromContainer(msgs);
175 if (newUnion_record != null)
176 msgs = ((InternalEObject)newUnion_record).eInverseAdd(this, TaxationWithRootPackage.LEGAL_UNION_RECORD__PROPERTIES, Legal_Union_Record.class, msgs);
177 msgs = basicSetUnion_record(newUnion_record, msgs);
178 if (msgs != null) msgs.dispatch();
179 }
180 else if (eNotificationRequired())
181 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.TAX_PROPERTY__UNION_RECORD, newUnion_record, newUnion_record));
182 }
183
184 /**
185 * <!-- begin-user-doc -->
186 * <!-- end-user-doc -->
187 * @generated
188 */
189 @Override
190 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
191 switch (featureID) {
192 case TaxationWithRootPackage.TAX_PROPERTY__UNION_RECORD:
193 if (eInternalContainer() != null)
194 msgs = eBasicRemoveFromContainer(msgs);
195 return basicSetUnion_record((Legal_Union_Record)otherEnd, msgs);
196 }
197 return super.eInverseAdd(otherEnd, featureID, msgs);
198 }
199
200 /**
201 * <!-- begin-user-doc -->
202 * <!-- end-user-doc -->
203 * @generated
204 */
205 @Override
206 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
207 switch (featureID) {
208 case TaxationWithRootPackage.TAX_PROPERTY__UNION_RECORD:
209 return basicSetUnion_record(null, msgs);
210 }
211 return super.eInverseRemove(otherEnd, featureID, msgs);
212 }
213
214 /**
215 * <!-- begin-user-doc -->
216 * <!-- end-user-doc -->
217 * @generated
218 */
219 @Override
220 public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
221 switch (eContainerFeatureID()) {
222 case TaxationWithRootPackage.TAX_PROPERTY__UNION_RECORD:
223 return eInternalContainer().eInverseRemove(this, TaxationWithRootPackage.LEGAL_UNION_RECORD__PROPERTIES, Legal_Union_Record.class, msgs);
224 }
225 return super.eBasicRemoveFromContainerFeature(msgs);
226 }
227
228 /**
229 * <!-- begin-user-doc -->
230 * <!-- end-user-doc -->
231 * @generated
232 */
233 @Override
234 public Object eGet(int featureID, boolean resolve, boolean coreType) {
235 switch (featureID) {
236 case TaxationWithRootPackage.TAX_PROPERTY__STARTING_YEAR:
237 return getStarting_year();
238 case TaxationWithRootPackage.TAX_PROPERTY__ID10:
239 return getId10();
240 case TaxationWithRootPackage.TAX_PROPERTY__UNION_RECORD:
241 return getUnion_record();
242 }
243 return super.eGet(featureID, resolve, coreType);
244 }
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 @Override
252 public void eSet(int featureID, Object newValue) {
253 switch (featureID) {
254 case TaxationWithRootPackage.TAX_PROPERTY__STARTING_YEAR:
255 setStarting_year((Integer)newValue);
256 return;
257 case TaxationWithRootPackage.TAX_PROPERTY__ID10:
258 setId10((String)newValue);
259 return;
260 case TaxationWithRootPackage.TAX_PROPERTY__UNION_RECORD:
261 setUnion_record((Legal_Union_Record)newValue);
262 return;
263 }
264 super.eSet(featureID, newValue);
265 }
266
267 /**
268 * <!-- begin-user-doc -->
269 * <!-- end-user-doc -->
270 * @generated
271 */
272 @Override
273 public void eUnset(int featureID) {
274 switch (featureID) {
275 case TaxationWithRootPackage.TAX_PROPERTY__STARTING_YEAR:
276 setStarting_year(STARTING_YEAR_EDEFAULT);
277 return;
278 case TaxationWithRootPackage.TAX_PROPERTY__ID10:
279 setId10(ID10_EDEFAULT);
280 return;
281 case TaxationWithRootPackage.TAX_PROPERTY__UNION_RECORD:
282 setUnion_record((Legal_Union_Record)null);
283 return;
284 }
285 super.eUnset(featureID);
286 }
287
288 /**
289 * <!-- begin-user-doc -->
290 * <!-- end-user-doc -->
291 * @generated
292 */
293 @Override
294 public boolean eIsSet(int featureID) {
295 switch (featureID) {
296 case TaxationWithRootPackage.TAX_PROPERTY__STARTING_YEAR:
297 return starting_year != STARTING_YEAR_EDEFAULT;
298 case TaxationWithRootPackage.TAX_PROPERTY__ID10:
299 return ID10_EDEFAULT == null ? id10 != null : !ID10_EDEFAULT.equals(id10);
300 case TaxationWithRootPackage.TAX_PROPERTY__UNION_RECORD:
301 return getUnion_record() != null;
302 }
303 return super.eIsSet(featureID);
304 }
305
306 /**
307 * <!-- begin-user-doc -->
308 * <!-- end-user-doc -->
309 * @generated
310 */
311 @Override
312 public String toString() {
313 if (eIsProxy()) return super.toString();
314
315 StringBuilder result = new StringBuilder(super.toString());
316 result.append(" (starting_year: ");
317 result.append(starting_year);
318 result.append(", id10: ");
319 result.append(id10);
320 result.append(')');
321 return result.toString();
322 }
323
324} //Tax_PropertyImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/TaxationWithRootFactoryImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/TaxationWithRootFactoryImpl.java
new file mode 100644
index 00000000..876fa851
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/TaxationWithRootFactoryImpl.java
@@ -0,0 +1,988 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.*;
6
7import org.eclipse.emf.ecore.EClass;
8import org.eclipse.emf.ecore.EDataType;
9import org.eclipse.emf.ecore.EObject;
10import org.eclipse.emf.ecore.EPackage;
11
12import org.eclipse.emf.ecore.impl.EFactoryImpl;
13
14import org.eclipse.emf.ecore.plugin.EcorePlugin;
15
16/**
17 * <!-- begin-user-doc -->
18 * An implementation of the model <b>Factory</b>.
19 * <!-- end-user-doc -->
20 * @generated
21 */
22public class TaxationWithRootFactoryImpl extends EFactoryImpl implements TaxationWithRootFactory {
23 /**
24 * Creates the default factory implementation.
25 * <!-- begin-user-doc -->
26 * <!-- end-user-doc -->
27 * @generated
28 */
29 public static TaxationWithRootFactory init() {
30 try {
31 TaxationWithRootFactory theTaxationWithRootFactory = (TaxationWithRootFactory)EPackage.Registry.INSTANCE.getEFactory(TaxationWithRootPackage.eNS_URI);
32 if (theTaxationWithRootFactory != null) {
33 return theTaxationWithRootFactory;
34 }
35 }
36 catch (Exception exception) {
37 EcorePlugin.INSTANCE.log(exception);
38 }
39 return new TaxationWithRootFactoryImpl();
40 }
41
42 /**
43 * Creates an instance of the factory.
44 * <!-- begin-user-doc -->
45 * <!-- end-user-doc -->
46 * @generated
47 */
48 public TaxationWithRootFactoryImpl() {
49 super();
50 }
51
52 /**
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @generated
56 */
57 @Override
58 public EObject create(EClass eClass) {
59 switch (eClass.getClassifierID()) {
60 case TaxationWithRootPackage.INCOME_TAX: return createIncome_Tax();
61 case TaxationWithRootPackage.PHYSICAL_PERSON: return createPhysical_Person();
62 case TaxationWithRootPackage.ADDRESS: return createAddress();
63 case TaxationWithRootPackage.EXPENSE: return createExpense();
64 case TaxationWithRootPackage.DEPENDENT: return createDependent();
65 case TaxationWithRootPackage.EXTERNAL_ALLOWANCE: return createExternal_Allowance();
66 case TaxationWithRootPackage.HOUSEHOLD: return createHousehold();
67 case TaxationWithRootPackage.TAX_PROPERTY: return createTax_Property();
68 case TaxationWithRootPackage.FROM_AGENT: return createFromAgent();
69 case TaxationWithRootPackage.TAX_CARD: return createTax_Card();
70 case TaxationWithRootPackage.INCOME_TAX_CREDIT: return createIncome_Tax_Credit();
71 case TaxationWithRootPackage.INCOME_DETAIL: return createIncome_Detail();
72 case TaxationWithRootPackage.FROM_LAW: return createFromLaw();
73 case TaxationWithRootPackage.FISCAL_ADDRESS: return createFiscal_Address();
74 case TaxationWithRootPackage.HABITUAL_ADDRESS: return createHabitual_Address();
75 case TaxationWithRootPackage.MARRIAGE_RECORD: return createMarriage_Record();
76 case TaxationWithRootPackage.NON_RESIDENT_TAX_PAYER: return createNon_Resident_Tax_Payer();
77 case TaxationWithRootPackage.PARTNERSHIP_RECORD: return createPartnership_Record();
78 case TaxationWithRootPackage.RESIDENT_TAX_PAYER: return createResident_Tax_Payer();
79 case TaxationWithRootPackage.TRADE_AND_BUSINESS_INCOME: return createTrade_and_Business_Income();
80 case TaxationWithRootPackage.AGRICULTURE_AND_FORESTRY_INCOME: return createAgriculture_and_Forestry_Income();
81 case TaxationWithRootPackage.PENSIONS_AND_ANNUITIES_INCOME: return createPensions_and_Annuities_Income();
82 case TaxationWithRootPackage.CAPITAL_AND_INVESTMENTS_INCOME: return createCapital_and_Investments_Income();
83 case TaxationWithRootPackage.EMPLOYMENT_INCOME: return createEmployment_Income();
84 case TaxationWithRootPackage.RENTALS_AND_LEASES_INCOME: return createRentals_and_Leases_Income();
85 case TaxationWithRootPackage.FOREIGN_INCOME: return createForeign_Income();
86 case TaxationWithRootPackage.LOCAL_INCOME: return createLocal_Income();
87 case TaxationWithRootPackage.CIM: return createCIM();
88 case TaxationWithRootPackage.CIP: return createCIP();
89 case TaxationWithRootPackage.CIS: return createCIS();
90 case TaxationWithRootPackage.PERMANENT_EXPENSE: return createPermanent_Expense();
91 case TaxationWithRootPackage.SPECIAL_EXPENSE_DS: return createSpecial_Expense_DS();
92 case TaxationWithRootPackage.INTEREST_EXPENSE: return createInterest_Expense();
93 case TaxationWithRootPackage.PRIVATE_INSURANCE_AND_PLAN: return createPrivate_Insurance_and_Plan();
94 case TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE: return createHealth_and_Pension_Insurance();
95 case TaxationWithRootPackage.DONATION: return createDonation();
96 case TaxationWithRootPackage.LOSS_CARRYFORWARD: return createLoss_Carryforward();
97 case TaxationWithRootPackage.SPOUSAL_EXPENSE_AC: return createSpousal_Expense_AC();
98 case TaxationWithRootPackage.EXTRAORDINARY_EXPENSE_CE: return createExtraordinary_Expense_CE();
99 case TaxationWithRootPackage.TRAVEL_EXPENSE_FD: return createTravel_Expense_FD();
100 case TaxationWithRootPackage.PROFESSIONAL_EXPENSE: return createProfessional_Expense();
101 case TaxationWithRootPackage.MISCELLANEOUS_EXPENSE_FO: return createMiscellaneous_Expense_FO();
102 case TaxationWithRootPackage.RESOURCE: return createResource();
103 default:
104 throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
105 }
106 }
107
108 /**
109 * <!-- begin-user-doc -->
110 * <!-- end-user-doc -->
111 * @generated
112 */
113 @Override
114 public Object createFromString(EDataType eDataType, String initialValue) {
115 switch (eDataType.getClassifierID()) {
116 case TaxationWithRootPackage.GRANTOR:
117 return createGrantorFromString(eDataType, initialValue);
118 case TaxationWithRootPackage.DISABILITY_TYPES:
119 return createDisability_TypesFromString(eDataType, initialValue);
120 case TaxationWithRootPackage.COUNTRY:
121 return createCountryFromString(eDataType, initialValue);
122 case TaxationWithRootPackage.TAX_OFFICE:
123 return createTax_OfficeFromString(eDataType, initialValue);
124 case TaxationWithRootPackage.TAX_CLASS_CATEGORY:
125 return createTax_Class_CategoryFromString(eDataType, initialValue);
126 case TaxationWithRootPackage.JOB_ACTIVITY:
127 return createJob_ActivityFromString(eDataType, initialValue);
128 case TaxationWithRootPackage.TOWN:
129 return createTownFromString(eDataType, initialValue);
130 case TaxationWithRootPackage.CE_TYPE:
131 return createCE_TypeFromString(eDataType, initialValue);
132 case TaxationWithRootPackage.EXPENSE_PURPOSE:
133 return createExpense_PurposeFromString(eDataType, initialValue);
134 case TaxationWithRootPackage.DEPENDENT_TYPE:
135 return createDependent_TypeFromString(eDataType, initialValue);
136 case TaxationWithRootPackage.SEPARATION_CAUSES:
137 return createSeparation_CausesFromString(eDataType, initialValue);
138 case TaxationWithRootPackage.CATEGORY_OF_PERMANENT_EXPENSE:
139 return createCategory_of_Permanent_ExpenseFromString(eDataType, initialValue);
140 case TaxationWithRootPackage.CATEGORY_OF_HEALTH_AND_PENSION_INSURANCES:
141 return createCategory_of_Health_and_Pension_InsurancesFromString(eDataType, initialValue);
142 case TaxationWithRootPackage.CATEGORY_OF_PRIVATE_INSURANCE_AND_PLAN:
143 return createCategory_of_Private_Insurance_and_PlanFromString(eDataType, initialValue);
144 case TaxationWithRootPackage.LEGAL_UNION_TYPES:
145 return createLegal_Union_TypesFromString(eDataType, initialValue);
146 default:
147 throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
148 }
149 }
150
151 /**
152 * <!-- begin-user-doc -->
153 * <!-- end-user-doc -->
154 * @generated
155 */
156 @Override
157 public String convertToString(EDataType eDataType, Object instanceValue) {
158 switch (eDataType.getClassifierID()) {
159 case TaxationWithRootPackage.GRANTOR:
160 return convertGrantorToString(eDataType, instanceValue);
161 case TaxationWithRootPackage.DISABILITY_TYPES:
162 return convertDisability_TypesToString(eDataType, instanceValue);
163 case TaxationWithRootPackage.COUNTRY:
164 return convertCountryToString(eDataType, instanceValue);
165 case TaxationWithRootPackage.TAX_OFFICE:
166 return convertTax_OfficeToString(eDataType, instanceValue);
167 case TaxationWithRootPackage.TAX_CLASS_CATEGORY:
168 return convertTax_Class_CategoryToString(eDataType, instanceValue);
169 case TaxationWithRootPackage.JOB_ACTIVITY:
170 return convertJob_ActivityToString(eDataType, instanceValue);
171 case TaxationWithRootPackage.TOWN:
172 return convertTownToString(eDataType, instanceValue);
173 case TaxationWithRootPackage.CE_TYPE:
174 return convertCE_TypeToString(eDataType, instanceValue);
175 case TaxationWithRootPackage.EXPENSE_PURPOSE:
176 return convertExpense_PurposeToString(eDataType, instanceValue);
177 case TaxationWithRootPackage.DEPENDENT_TYPE:
178 return convertDependent_TypeToString(eDataType, instanceValue);
179 case TaxationWithRootPackage.SEPARATION_CAUSES:
180 return convertSeparation_CausesToString(eDataType, instanceValue);
181 case TaxationWithRootPackage.CATEGORY_OF_PERMANENT_EXPENSE:
182 return convertCategory_of_Permanent_ExpenseToString(eDataType, instanceValue);
183 case TaxationWithRootPackage.CATEGORY_OF_HEALTH_AND_PENSION_INSURANCES:
184 return convertCategory_of_Health_and_Pension_InsurancesToString(eDataType, instanceValue);
185 case TaxationWithRootPackage.CATEGORY_OF_PRIVATE_INSURANCE_AND_PLAN:
186 return convertCategory_of_Private_Insurance_and_PlanToString(eDataType, instanceValue);
187 case TaxationWithRootPackage.LEGAL_UNION_TYPES:
188 return convertLegal_Union_TypesToString(eDataType, instanceValue);
189 default:
190 throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
191 }
192 }
193
194 /**
195 * <!-- begin-user-doc -->
196 * <!-- end-user-doc -->
197 * @generated
198 */
199 @Override
200 public Income_Tax createIncome_Tax() {
201 Income_TaxImpl income_Tax = new Income_TaxImpl();
202 return income_Tax;
203 }
204
205 /**
206 * <!-- begin-user-doc -->
207 * <!-- end-user-doc -->
208 * @generated
209 */
210 @Override
211 public Physical_Person createPhysical_Person() {
212 Physical_PersonImpl physical_Person = new Physical_PersonImpl();
213 return physical_Person;
214 }
215
216 /**
217 * <!-- begin-user-doc -->
218 * <!-- end-user-doc -->
219 * @generated
220 */
221 @Override
222 public Address createAddress() {
223 AddressImpl address = new AddressImpl();
224 return address;
225 }
226
227 /**
228 * <!-- begin-user-doc -->
229 * <!-- end-user-doc -->
230 * @generated
231 */
232 @Override
233 public Expense createExpense() {
234 ExpenseImpl expense = new ExpenseImpl();
235 return expense;
236 }
237
238 /**
239 * <!-- begin-user-doc -->
240 * <!-- end-user-doc -->
241 * @generated
242 */
243 @Override
244 public Dependent createDependent() {
245 DependentImpl dependent = new DependentImpl();
246 return dependent;
247 }
248
249 /**
250 * <!-- begin-user-doc -->
251 * <!-- end-user-doc -->
252 * @generated
253 */
254 @Override
255 public External_Allowance createExternal_Allowance() {
256 External_AllowanceImpl external_Allowance = new External_AllowanceImpl();
257 return external_Allowance;
258 }
259
260 /**
261 * <!-- begin-user-doc -->
262 * <!-- end-user-doc -->
263 * @generated
264 */
265 @Override
266 public Household createHousehold() {
267 HouseholdImpl household = new HouseholdImpl();
268 return household;
269 }
270
271 /**
272 * <!-- begin-user-doc -->
273 * <!-- end-user-doc -->
274 * @generated
275 */
276 @Override
277 public Tax_Property createTax_Property() {
278 Tax_PropertyImpl tax_Property = new Tax_PropertyImpl();
279 return tax_Property;
280 }
281
282 /**
283 * <!-- begin-user-doc -->
284 * <!-- end-user-doc -->
285 * @generated
286 */
287 @Override
288 public FromAgent createFromAgent() {
289 FromAgentImpl fromAgent = new FromAgentImpl();
290 return fromAgent;
291 }
292
293 /**
294 * <!-- begin-user-doc -->
295 * <!-- end-user-doc -->
296 * @generated
297 */
298 @Override
299 public Tax_Card createTax_Card() {
300 Tax_CardImpl tax_Card = new Tax_CardImpl();
301 return tax_Card;
302 }
303
304 /**
305 * <!-- begin-user-doc -->
306 * <!-- end-user-doc -->
307 * @generated
308 */
309 @Override
310 public Income_Tax_Credit createIncome_Tax_Credit() {
311 Income_Tax_CreditImpl income_Tax_Credit = new Income_Tax_CreditImpl();
312 return income_Tax_Credit;
313 }
314
315 /**
316 * <!-- begin-user-doc -->
317 * <!-- end-user-doc -->
318 * @generated
319 */
320 @Override
321 public Income_Detail createIncome_Detail() {
322 Income_DetailImpl income_Detail = new Income_DetailImpl();
323 return income_Detail;
324 }
325
326 /**
327 * <!-- begin-user-doc -->
328 * <!-- end-user-doc -->
329 * @generated
330 */
331 @Override
332 public FromLaw createFromLaw() {
333 FromLawImpl fromLaw = new FromLawImpl();
334 return fromLaw;
335 }
336
337 /**
338 * <!-- begin-user-doc -->
339 * <!-- end-user-doc -->
340 * @generated
341 */
342 @Override
343 public Fiscal_Address createFiscal_Address() {
344 Fiscal_AddressImpl fiscal_Address = new Fiscal_AddressImpl();
345 return fiscal_Address;
346 }
347
348 /**
349 * <!-- begin-user-doc -->
350 * <!-- end-user-doc -->
351 * @generated
352 */
353 @Override
354 public Habitual_Address createHabitual_Address() {
355 Habitual_AddressImpl habitual_Address = new Habitual_AddressImpl();
356 return habitual_Address;
357 }
358
359 /**
360 * <!-- begin-user-doc -->
361 * <!-- end-user-doc -->
362 * @generated
363 */
364 @Override
365 public Marriage_Record createMarriage_Record() {
366 Marriage_RecordImpl marriage_Record = new Marriage_RecordImpl();
367 return marriage_Record;
368 }
369
370 /**
371 * <!-- begin-user-doc -->
372 * <!-- end-user-doc -->
373 * @generated
374 */
375 @Override
376 public Non_Resident_Tax_Payer createNon_Resident_Tax_Payer() {
377 Non_Resident_Tax_PayerImpl non_Resident_Tax_Payer = new Non_Resident_Tax_PayerImpl();
378 return non_Resident_Tax_Payer;
379 }
380
381 /**
382 * <!-- begin-user-doc -->
383 * <!-- end-user-doc -->
384 * @generated
385 */
386 @Override
387 public Partnership_Record createPartnership_Record() {
388 Partnership_RecordImpl partnership_Record = new Partnership_RecordImpl();
389 return partnership_Record;
390 }
391
392 /**
393 * <!-- begin-user-doc -->
394 * <!-- end-user-doc -->
395 * @generated
396 */
397 @Override
398 public Resident_Tax_Payer createResident_Tax_Payer() {
399 Resident_Tax_PayerImpl resident_Tax_Payer = new Resident_Tax_PayerImpl();
400 return resident_Tax_Payer;
401 }
402
403 /**
404 * <!-- begin-user-doc -->
405 * <!-- end-user-doc -->
406 * @generated
407 */
408 @Override
409 public Trade_and_Business_Income createTrade_and_Business_Income() {
410 Trade_and_Business_IncomeImpl trade_and_Business_Income = new Trade_and_Business_IncomeImpl();
411 return trade_and_Business_Income;
412 }
413
414 /**
415 * <!-- begin-user-doc -->
416 * <!-- end-user-doc -->
417 * @generated
418 */
419 @Override
420 public Agriculture_and_Forestry_Income createAgriculture_and_Forestry_Income() {
421 Agriculture_and_Forestry_IncomeImpl agriculture_and_Forestry_Income = new Agriculture_and_Forestry_IncomeImpl();
422 return agriculture_and_Forestry_Income;
423 }
424
425 /**
426 * <!-- begin-user-doc -->
427 * <!-- end-user-doc -->
428 * @generated
429 */
430 @Override
431 public Pensions_and_Annuities_Income createPensions_and_Annuities_Income() {
432 Pensions_and_Annuities_IncomeImpl pensions_and_Annuities_Income = new Pensions_and_Annuities_IncomeImpl();
433 return pensions_and_Annuities_Income;
434 }
435
436 /**
437 * <!-- begin-user-doc -->
438 * <!-- end-user-doc -->
439 * @generated
440 */
441 @Override
442 public Capital_and_Investments_Income createCapital_and_Investments_Income() {
443 Capital_and_Investments_IncomeImpl capital_and_Investments_Income = new Capital_and_Investments_IncomeImpl();
444 return capital_and_Investments_Income;
445 }
446
447 /**
448 * <!-- begin-user-doc -->
449 * <!-- end-user-doc -->
450 * @generated
451 */
452 @Override
453 public Employment_Income createEmployment_Income() {
454 Employment_IncomeImpl employment_Income = new Employment_IncomeImpl();
455 return employment_Income;
456 }
457
458 /**
459 * <!-- begin-user-doc -->
460 * <!-- end-user-doc -->
461 * @generated
462 */
463 @Override
464 public Rentals_and_Leases_Income createRentals_and_Leases_Income() {
465 Rentals_and_Leases_IncomeImpl rentals_and_Leases_Income = new Rentals_and_Leases_IncomeImpl();
466 return rentals_and_Leases_Income;
467 }
468
469 /**
470 * <!-- begin-user-doc -->
471 * <!-- end-user-doc -->
472 * @generated
473 */
474 @Override
475 public Foreign_Income createForeign_Income() {
476 Foreign_IncomeImpl foreign_Income = new Foreign_IncomeImpl();
477 return foreign_Income;
478 }
479
480 /**
481 * <!-- begin-user-doc -->
482 * <!-- end-user-doc -->
483 * @generated
484 */
485 @Override
486 public Local_Income createLocal_Income() {
487 Local_IncomeImpl local_Income = new Local_IncomeImpl();
488 return local_Income;
489 }
490
491 /**
492 * <!-- begin-user-doc -->
493 * <!-- end-user-doc -->
494 * @generated
495 */
496 @Override
497 public CIM createCIM() {
498 CIMImpl cim = new CIMImpl();
499 return cim;
500 }
501
502 /**
503 * <!-- begin-user-doc -->
504 * <!-- end-user-doc -->
505 * @generated
506 */
507 @Override
508 public CIP createCIP() {
509 CIPImpl cip = new CIPImpl();
510 return cip;
511 }
512
513 /**
514 * <!-- begin-user-doc -->
515 * <!-- end-user-doc -->
516 * @generated
517 */
518 @Override
519 public CIS createCIS() {
520 CISImpl cis = new CISImpl();
521 return cis;
522 }
523
524 /**
525 * <!-- begin-user-doc -->
526 * <!-- end-user-doc -->
527 * @generated
528 */
529 @Override
530 public Permanent_Expense createPermanent_Expense() {
531 Permanent_ExpenseImpl permanent_Expense = new Permanent_ExpenseImpl();
532 return permanent_Expense;
533 }
534
535 /**
536 * <!-- begin-user-doc -->
537 * <!-- end-user-doc -->
538 * @generated
539 */
540 @Override
541 public Special_Expense_DS createSpecial_Expense_DS() {
542 Special_Expense_DSImpl special_Expense_DS = new Special_Expense_DSImpl();
543 return special_Expense_DS;
544 }
545
546 /**
547 * <!-- begin-user-doc -->
548 * <!-- end-user-doc -->
549 * @generated
550 */
551 @Override
552 public Interest_Expense createInterest_Expense() {
553 Interest_ExpenseImpl interest_Expense = new Interest_ExpenseImpl();
554 return interest_Expense;
555 }
556
557 /**
558 * <!-- begin-user-doc -->
559 * <!-- end-user-doc -->
560 * @generated
561 */
562 @Override
563 public Private_Insurance_and_Plan createPrivate_Insurance_and_Plan() {
564 Private_Insurance_and_PlanImpl private_Insurance_and_Plan = new Private_Insurance_and_PlanImpl();
565 return private_Insurance_and_Plan;
566 }
567
568 /**
569 * <!-- begin-user-doc -->
570 * <!-- end-user-doc -->
571 * @generated
572 */
573 @Override
574 public Health_and_Pension_Insurance createHealth_and_Pension_Insurance() {
575 Health_and_Pension_InsuranceImpl health_and_Pension_Insurance = new Health_and_Pension_InsuranceImpl();
576 return health_and_Pension_Insurance;
577 }
578
579 /**
580 * <!-- begin-user-doc -->
581 * <!-- end-user-doc -->
582 * @generated
583 */
584 @Override
585 public Donation createDonation() {
586 DonationImpl donation = new DonationImpl();
587 return donation;
588 }
589
590 /**
591 * <!-- begin-user-doc -->
592 * <!-- end-user-doc -->
593 * @generated
594 */
595 @Override
596 public Loss_Carryforward createLoss_Carryforward() {
597 Loss_CarryforwardImpl loss_Carryforward = new Loss_CarryforwardImpl();
598 return loss_Carryforward;
599 }
600
601 /**
602 * <!-- begin-user-doc -->
603 * <!-- end-user-doc -->
604 * @generated
605 */
606 @Override
607 public Spousal_Expense_AC createSpousal_Expense_AC() {
608 Spousal_Expense_ACImpl spousal_Expense_AC = new Spousal_Expense_ACImpl();
609 return spousal_Expense_AC;
610 }
611
612 /**
613 * <!-- begin-user-doc -->
614 * <!-- end-user-doc -->
615 * @generated
616 */
617 @Override
618 public Extraordinary_Expense_CE createExtraordinary_Expense_CE() {
619 Extraordinary_Expense_CEImpl extraordinary_Expense_CE = new Extraordinary_Expense_CEImpl();
620 return extraordinary_Expense_CE;
621 }
622
623 /**
624 * <!-- begin-user-doc -->
625 * <!-- end-user-doc -->
626 * @generated
627 */
628 @Override
629 public Travel_Expense_FD createTravel_Expense_FD() {
630 Travel_Expense_FDImpl travel_Expense_FD = new Travel_Expense_FDImpl();
631 return travel_Expense_FD;
632 }
633
634 /**
635 * <!-- begin-user-doc -->
636 * <!-- end-user-doc -->
637 * @generated
638 */
639 @Override
640 public Professional_Expense createProfessional_Expense() {
641 Professional_ExpenseImpl professional_Expense = new Professional_ExpenseImpl();
642 return professional_Expense;
643 }
644
645 /**
646 * <!-- begin-user-doc -->
647 * <!-- end-user-doc -->
648 * @generated
649 */
650 @Override
651 public Miscellaneous_Expense_FO createMiscellaneous_Expense_FO() {
652 Miscellaneous_Expense_FOImpl miscellaneous_Expense_FO = new Miscellaneous_Expense_FOImpl();
653 return miscellaneous_Expense_FO;
654 }
655
656 /**
657 * <!-- begin-user-doc -->
658 * <!-- end-user-doc -->
659 * @generated
660 */
661 @Override
662 public Resource createResource() {
663 ResourceImpl resource = new ResourceImpl();
664 return resource;
665 }
666
667 /**
668 * <!-- begin-user-doc -->
669 * <!-- end-user-doc -->
670 * @generated
671 */
672 public Grantor createGrantorFromString(EDataType eDataType, String initialValue) {
673 Grantor result = Grantor.get(initialValue);
674 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
675 return result;
676 }
677
678 /**
679 * <!-- begin-user-doc -->
680 * <!-- end-user-doc -->
681 * @generated
682 */
683 public String convertGrantorToString(EDataType eDataType, Object instanceValue) {
684 return instanceValue == null ? null : instanceValue.toString();
685 }
686
687 /**
688 * <!-- begin-user-doc -->
689 * <!-- end-user-doc -->
690 * @generated
691 */
692 public Disability_Types createDisability_TypesFromString(EDataType eDataType, String initialValue) {
693 Disability_Types result = Disability_Types.get(initialValue);
694 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
695 return result;
696 }
697
698 /**
699 * <!-- begin-user-doc -->
700 * <!-- end-user-doc -->
701 * @generated
702 */
703 public String convertDisability_TypesToString(EDataType eDataType, Object instanceValue) {
704 return instanceValue == null ? null : instanceValue.toString();
705 }
706
707 /**
708 * <!-- begin-user-doc -->
709 * <!-- end-user-doc -->
710 * @generated
711 */
712 public Country createCountryFromString(EDataType eDataType, String initialValue) {
713 Country result = Country.get(initialValue);
714 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
715 return result;
716 }
717
718 /**
719 * <!-- begin-user-doc -->
720 * <!-- end-user-doc -->
721 * @generated
722 */
723 public String convertCountryToString(EDataType eDataType, Object instanceValue) {
724 return instanceValue == null ? null : instanceValue.toString();
725 }
726
727 /**
728 * <!-- begin-user-doc -->
729 * <!-- end-user-doc -->
730 * @generated
731 */
732 public Tax_Office createTax_OfficeFromString(EDataType eDataType, String initialValue) {
733 Tax_Office result = Tax_Office.get(initialValue);
734 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
735 return result;
736 }
737
738 /**
739 * <!-- begin-user-doc -->
740 * <!-- end-user-doc -->
741 * @generated
742 */
743 public String convertTax_OfficeToString(EDataType eDataType, Object instanceValue) {
744 return instanceValue == null ? null : instanceValue.toString();
745 }
746
747 /**
748 * <!-- begin-user-doc -->
749 * <!-- end-user-doc -->
750 * @generated
751 */
752 public Tax_Class_Category createTax_Class_CategoryFromString(EDataType eDataType, String initialValue) {
753 Tax_Class_Category result = Tax_Class_Category.get(initialValue);
754 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
755 return result;
756 }
757
758 /**
759 * <!-- begin-user-doc -->
760 * <!-- end-user-doc -->
761 * @generated
762 */
763 public String convertTax_Class_CategoryToString(EDataType eDataType, Object instanceValue) {
764 return instanceValue == null ? null : instanceValue.toString();
765 }
766
767 /**
768 * <!-- begin-user-doc -->
769 * <!-- end-user-doc -->
770 * @generated
771 */
772 public Job_Activity createJob_ActivityFromString(EDataType eDataType, String initialValue) {
773 Job_Activity result = Job_Activity.get(initialValue);
774 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
775 return result;
776 }
777
778 /**
779 * <!-- begin-user-doc -->
780 * <!-- end-user-doc -->
781 * @generated
782 */
783 public String convertJob_ActivityToString(EDataType eDataType, Object instanceValue) {
784 return instanceValue == null ? null : instanceValue.toString();
785 }
786
787 /**
788 * <!-- begin-user-doc -->
789 * <!-- end-user-doc -->
790 * @generated
791 */
792 public Town createTownFromString(EDataType eDataType, String initialValue) {
793 Town result = Town.get(initialValue);
794 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
795 return result;
796 }
797
798 /**
799 * <!-- begin-user-doc -->
800 * <!-- end-user-doc -->
801 * @generated
802 */
803 public String convertTownToString(EDataType eDataType, Object instanceValue) {
804 return instanceValue == null ? null : instanceValue.toString();
805 }
806
807 /**
808 * <!-- begin-user-doc -->
809 * <!-- end-user-doc -->
810 * @generated
811 */
812 public CE_Type createCE_TypeFromString(EDataType eDataType, String initialValue) {
813 CE_Type result = CE_Type.get(initialValue);
814 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
815 return result;
816 }
817
818 /**
819 * <!-- begin-user-doc -->
820 * <!-- end-user-doc -->
821 * @generated
822 */
823 public String convertCE_TypeToString(EDataType eDataType, Object instanceValue) {
824 return instanceValue == null ? null : instanceValue.toString();
825 }
826
827 /**
828 * <!-- begin-user-doc -->
829 * <!-- end-user-doc -->
830 * @generated
831 */
832 public Expense_Purpose createExpense_PurposeFromString(EDataType eDataType, String initialValue) {
833 Expense_Purpose result = Expense_Purpose.get(initialValue);
834 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
835 return result;
836 }
837
838 /**
839 * <!-- begin-user-doc -->
840 * <!-- end-user-doc -->
841 * @generated
842 */
843 public String convertExpense_PurposeToString(EDataType eDataType, Object instanceValue) {
844 return instanceValue == null ? null : instanceValue.toString();
845 }
846
847 /**
848 * <!-- begin-user-doc -->
849 * <!-- end-user-doc -->
850 * @generated
851 */
852 public Dependent_Type createDependent_TypeFromString(EDataType eDataType, String initialValue) {
853 Dependent_Type result = Dependent_Type.get(initialValue);
854 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
855 return result;
856 }
857
858 /**
859 * <!-- begin-user-doc -->
860 * <!-- end-user-doc -->
861 * @generated
862 */
863 public String convertDependent_TypeToString(EDataType eDataType, Object instanceValue) {
864 return instanceValue == null ? null : instanceValue.toString();
865 }
866
867 /**
868 * <!-- begin-user-doc -->
869 * <!-- end-user-doc -->
870 * @generated
871 */
872 public Separation_Causes createSeparation_CausesFromString(EDataType eDataType, String initialValue) {
873 Separation_Causes result = Separation_Causes.get(initialValue);
874 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
875 return result;
876 }
877
878 /**
879 * <!-- begin-user-doc -->
880 * <!-- end-user-doc -->
881 * @generated
882 */
883 public String convertSeparation_CausesToString(EDataType eDataType, Object instanceValue) {
884 return instanceValue == null ? null : instanceValue.toString();
885 }
886
887 /**
888 * <!-- begin-user-doc -->
889 * <!-- end-user-doc -->
890 * @generated
891 */
892 public Category_of_Permanent_Expense createCategory_of_Permanent_ExpenseFromString(EDataType eDataType, String initialValue) {
893 Category_of_Permanent_Expense result = Category_of_Permanent_Expense.get(initialValue);
894 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
895 return result;
896 }
897
898 /**
899 * <!-- begin-user-doc -->
900 * <!-- end-user-doc -->
901 * @generated
902 */
903 public String convertCategory_of_Permanent_ExpenseToString(EDataType eDataType, Object instanceValue) {
904 return instanceValue == null ? null : instanceValue.toString();
905 }
906
907 /**
908 * <!-- begin-user-doc -->
909 * <!-- end-user-doc -->
910 * @generated
911 */
912 public Category_of_Health_and_Pension_Insurances createCategory_of_Health_and_Pension_InsurancesFromString(EDataType eDataType, String initialValue) {
913 Category_of_Health_and_Pension_Insurances result = Category_of_Health_and_Pension_Insurances.get(initialValue);
914 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
915 return result;
916 }
917
918 /**
919 * <!-- begin-user-doc -->
920 * <!-- end-user-doc -->
921 * @generated
922 */
923 public String convertCategory_of_Health_and_Pension_InsurancesToString(EDataType eDataType, Object instanceValue) {
924 return instanceValue == null ? null : instanceValue.toString();
925 }
926
927 /**
928 * <!-- begin-user-doc -->
929 * <!-- end-user-doc -->
930 * @generated
931 */
932 public Category_of_Private_Insurance_and_Plan createCategory_of_Private_Insurance_and_PlanFromString(EDataType eDataType, String initialValue) {
933 Category_of_Private_Insurance_and_Plan result = Category_of_Private_Insurance_and_Plan.get(initialValue);
934 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
935 return result;
936 }
937
938 /**
939 * <!-- begin-user-doc -->
940 * <!-- end-user-doc -->
941 * @generated
942 */
943 public String convertCategory_of_Private_Insurance_and_PlanToString(EDataType eDataType, Object instanceValue) {
944 return instanceValue == null ? null : instanceValue.toString();
945 }
946
947 /**
948 * <!-- begin-user-doc -->
949 * <!-- end-user-doc -->
950 * @generated
951 */
952 public Legal_Union_Types createLegal_Union_TypesFromString(EDataType eDataType, String initialValue) {
953 Legal_Union_Types result = Legal_Union_Types.get(initialValue);
954 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
955 return result;
956 }
957
958 /**
959 * <!-- begin-user-doc -->
960 * <!-- end-user-doc -->
961 * @generated
962 */
963 public String convertLegal_Union_TypesToString(EDataType eDataType, Object instanceValue) {
964 return instanceValue == null ? null : instanceValue.toString();
965 }
966
967 /**
968 * <!-- begin-user-doc -->
969 * <!-- end-user-doc -->
970 * @generated
971 */
972 @Override
973 public TaxationWithRootPackage getTaxationWithRootPackage() {
974 return (TaxationWithRootPackage)getEPackage();
975 }
976
977 /**
978 * <!-- begin-user-doc -->
979 * <!-- end-user-doc -->
980 * @deprecated
981 * @generated
982 */
983 @Deprecated
984 public static TaxationWithRootPackage getPackage() {
985 return TaxationWithRootPackage.eINSTANCE;
986 }
987
988} //TaxationWithRootFactoryImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/TaxationWithRootPackageImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/TaxationWithRootPackageImpl.java
new file mode 100644
index 00000000..acf4425a
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/TaxationWithRootPackageImpl.java
@@ -0,0 +1,3663 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Address;
6import TaxationWithRoot.Agriculture_and_Forestry_Income;
7import TaxationWithRoot.CE_Type;
8import TaxationWithRoot.Capital_and_Investments_Income;
9import TaxationWithRoot.Category_of_Health_and_Pension_Insurances;
10import TaxationWithRoot.Category_of_Permanent_Expense;
11import TaxationWithRoot.Category_of_Private_Insurance_and_Plan;
12import TaxationWithRoot.Constants;
13import TaxationWithRoot.Country;
14import TaxationWithRoot.Dependent;
15import TaxationWithRoot.Dependent_Type;
16import TaxationWithRoot.Disability_Types;
17import TaxationWithRoot.Donation;
18import TaxationWithRoot.Employment_Income;
19import TaxationWithRoot.Expense;
20import TaxationWithRoot.Expense_Purpose;
21import TaxationWithRoot.External_Allowance;
22import TaxationWithRoot.Extraordinary_Expense_CE;
23import TaxationWithRoot.Fiscal_Address;
24import TaxationWithRoot.Foreign_Income;
25import TaxationWithRoot.FromAgent;
26import TaxationWithRoot.FromLaw;
27import TaxationWithRoot.Grantor;
28import TaxationWithRoot.Habitual_Address;
29import TaxationWithRoot.Health_and_Pension_Insurance;
30import TaxationWithRoot.Household;
31import TaxationWithRoot.Income;
32import TaxationWithRoot.Income_Detail;
33import TaxationWithRoot.Income_Tax;
34import TaxationWithRoot.Income_Tax_Credit;
35import TaxationWithRoot.Income_Type;
36import TaxationWithRoot.Interest_Expense;
37import TaxationWithRoot.Job_Activity;
38import TaxationWithRoot.Legal_Union_Record;
39import TaxationWithRoot.Legal_Union_Types;
40import TaxationWithRoot.Local_Income;
41import TaxationWithRoot.Loss_Carryforward;
42import TaxationWithRoot.Marriage_Record;
43import TaxationWithRoot.Miscellaneous_Expense_FO;
44import TaxationWithRoot.Non_Resident_Tax_Payer;
45import TaxationWithRoot.Partnership_Record;
46import TaxationWithRoot.Pensions_and_Annuities_Income;
47import TaxationWithRoot.Permanent_Expense;
48import TaxationWithRoot.Physical_Person;
49import TaxationWithRoot.Private_Insurance_and_Plan;
50import TaxationWithRoot.Professional_Expense;
51import TaxationWithRoot.Rentals_and_Leases_Income;
52import TaxationWithRoot.Resident_Tax_Payer;
53import TaxationWithRoot.Resource;
54import TaxationWithRoot.Separation_Causes;
55import TaxationWithRoot.Special_Expense_DS;
56import TaxationWithRoot.Spousal_Expense_AC;
57import TaxationWithRoot.Tax_Card;
58import TaxationWithRoot.Tax_Case;
59import TaxationWithRoot.Tax_Class_Category;
60import TaxationWithRoot.Tax_Office;
61import TaxationWithRoot.Tax_Payer;
62import TaxationWithRoot.Tax_Property;
63import TaxationWithRoot.TaxationWithRootFactory;
64import TaxationWithRoot.TaxationWithRootPackage;
65import TaxationWithRoot.Town;
66import TaxationWithRoot.Trade_and_Business_Income;
67import TaxationWithRoot.Travel_Expense_FD;
68
69import org.eclipse.emf.ecore.EAttribute;
70import org.eclipse.emf.ecore.EClass;
71import org.eclipse.emf.ecore.EEnum;
72import org.eclipse.emf.ecore.EPackage;
73import org.eclipse.emf.ecore.EReference;
74
75import org.eclipse.emf.ecore.impl.EPackageImpl;
76
77/**
78 * <!-- begin-user-doc -->
79 * An implementation of the model <b>Package</b>.
80 * <!-- end-user-doc -->
81 * @generated
82 */
83public class TaxationWithRootPackageImpl extends EPackageImpl implements TaxationWithRootPackage {
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 private EClass constantsEClass = null;
90
91 /**
92 * <!-- begin-user-doc -->
93 * <!-- end-user-doc -->
94 * @generated
95 */
96 private EClass income_TaxEClass = null;
97
98 /**
99 * <!-- begin-user-doc -->
100 * <!-- end-user-doc -->
101 * @generated
102 */
103 private EClass tax_PayerEClass = null;
104
105 /**
106 * <!-- begin-user-doc -->
107 * <!-- end-user-doc -->
108 * @generated
109 */
110 private EClass physical_PersonEClass = null;
111
112 /**
113 * <!-- begin-user-doc -->
114 * <!-- end-user-doc -->
115 * @generated
116 */
117 private EClass addressEClass = null;
118
119 /**
120 * <!-- begin-user-doc -->
121 * <!-- end-user-doc -->
122 * @generated
123 */
124 private EClass expenseEClass = null;
125
126 /**
127 * <!-- begin-user-doc -->
128 * <!-- end-user-doc -->
129 * @generated
130 */
131 private EClass dependentEClass = null;
132
133 /**
134 * <!-- begin-user-doc -->
135 * <!-- end-user-doc -->
136 * @generated
137 */
138 private EClass external_AllowanceEClass = null;
139
140 /**
141 * <!-- begin-user-doc -->
142 * <!-- end-user-doc -->
143 * @generated
144 */
145 private EClass householdEClass = null;
146
147 /**
148 * <!-- begin-user-doc -->
149 * <!-- end-user-doc -->
150 * @generated
151 */
152 private EClass legal_Union_RecordEClass = null;
153
154 /**
155 * <!-- begin-user-doc -->
156 * <!-- end-user-doc -->
157 * @generated
158 */
159 private EClass tax_PropertyEClass = null;
160
161 /**
162 * <!-- begin-user-doc -->
163 * <!-- end-user-doc -->
164 * @generated
165 */
166 private EClass tax_CaseEClass = null;
167
168 /**
169 * <!-- begin-user-doc -->
170 * <!-- end-user-doc -->
171 * @generated
172 */
173 private EClass fromAgentEClass = null;
174
175 /**
176 * <!-- begin-user-doc -->
177 * <!-- end-user-doc -->
178 * @generated
179 */
180 private EClass incomeEClass = null;
181
182 /**
183 * <!-- begin-user-doc -->
184 * <!-- end-user-doc -->
185 * @generated
186 */
187 private EClass income_TypeEClass = null;
188
189 /**
190 * <!-- begin-user-doc -->
191 * <!-- end-user-doc -->
192 * @generated
193 */
194 private EClass tax_CardEClass = null;
195
196 /**
197 * <!-- begin-user-doc -->
198 * <!-- end-user-doc -->
199 * @generated
200 */
201 private EClass income_Tax_CreditEClass = null;
202
203 /**
204 * <!-- begin-user-doc -->
205 * <!-- end-user-doc -->
206 * @generated
207 */
208 private EClass income_DetailEClass = null;
209
210 /**
211 * <!-- begin-user-doc -->
212 * <!-- end-user-doc -->
213 * @generated
214 */
215 private EClass fromLawEClass = null;
216
217 /**
218 * <!-- begin-user-doc -->
219 * <!-- end-user-doc -->
220 * @generated
221 */
222 private EClass fiscal_AddressEClass = null;
223
224 /**
225 * <!-- begin-user-doc -->
226 * <!-- end-user-doc -->
227 * @generated
228 */
229 private EClass habitual_AddressEClass = null;
230
231 /**
232 * <!-- begin-user-doc -->
233 * <!-- end-user-doc -->
234 * @generated
235 */
236 private EClass marriage_RecordEClass = null;
237
238 /**
239 * <!-- begin-user-doc -->
240 * <!-- end-user-doc -->
241 * @generated
242 */
243 private EClass non_Resident_Tax_PayerEClass = null;
244
245 /**
246 * <!-- begin-user-doc -->
247 * <!-- end-user-doc -->
248 * @generated
249 */
250 private EClass partnership_RecordEClass = null;
251
252 /**
253 * <!-- begin-user-doc -->
254 * <!-- end-user-doc -->
255 * @generated
256 */
257 private EClass resident_Tax_PayerEClass = null;
258
259 /**
260 * <!-- begin-user-doc -->
261 * <!-- end-user-doc -->
262 * @generated
263 */
264 private EClass trade_and_Business_IncomeEClass = null;
265
266 /**
267 * <!-- begin-user-doc -->
268 * <!-- end-user-doc -->
269 * @generated
270 */
271 private EClass agriculture_and_Forestry_IncomeEClass = null;
272
273 /**
274 * <!-- begin-user-doc -->
275 * <!-- end-user-doc -->
276 * @generated
277 */
278 private EClass pensions_and_Annuities_IncomeEClass = null;
279
280 /**
281 * <!-- begin-user-doc -->
282 * <!-- end-user-doc -->
283 * @generated
284 */
285 private EClass capital_and_Investments_IncomeEClass = null;
286
287 /**
288 * <!-- begin-user-doc -->
289 * <!-- end-user-doc -->
290 * @generated
291 */
292 private EClass employment_IncomeEClass = null;
293
294 /**
295 * <!-- begin-user-doc -->
296 * <!-- end-user-doc -->
297 * @generated
298 */
299 private EClass rentals_and_Leases_IncomeEClass = null;
300
301 /**
302 * <!-- begin-user-doc -->
303 * <!-- end-user-doc -->
304 * @generated
305 */
306 private EClass foreign_IncomeEClass = null;
307
308 /**
309 * <!-- begin-user-doc -->
310 * <!-- end-user-doc -->
311 * @generated
312 */
313 private EClass local_IncomeEClass = null;
314
315 /**
316 * <!-- begin-user-doc -->
317 * <!-- end-user-doc -->
318 * @generated
319 */
320 private EClass cimEClass = null;
321
322 /**
323 * <!-- begin-user-doc -->
324 * <!-- end-user-doc -->
325 * @generated
326 */
327 private EClass cipEClass = null;
328
329 /**
330 * <!-- begin-user-doc -->
331 * <!-- end-user-doc -->
332 * @generated
333 */
334 private EClass cisEClass = null;
335
336 /**
337 * <!-- begin-user-doc -->
338 * <!-- end-user-doc -->
339 * @generated
340 */
341 private EClass permanent_ExpenseEClass = null;
342
343 /**
344 * <!-- begin-user-doc -->
345 * <!-- end-user-doc -->
346 * @generated
347 */
348 private EClass special_Expense_DSEClass = null;
349
350 /**
351 * <!-- begin-user-doc -->
352 * <!-- end-user-doc -->
353 * @generated
354 */
355 private EClass interest_ExpenseEClass = null;
356
357 /**
358 * <!-- begin-user-doc -->
359 * <!-- end-user-doc -->
360 * @generated
361 */
362 private EClass private_Insurance_and_PlanEClass = null;
363
364 /**
365 * <!-- begin-user-doc -->
366 * <!-- end-user-doc -->
367 * @generated
368 */
369 private EClass health_and_Pension_InsuranceEClass = null;
370
371 /**
372 * <!-- begin-user-doc -->
373 * <!-- end-user-doc -->
374 * @generated
375 */
376 private EClass donationEClass = null;
377
378 /**
379 * <!-- begin-user-doc -->
380 * <!-- end-user-doc -->
381 * @generated
382 */
383 private EClass loss_CarryforwardEClass = null;
384
385 /**
386 * <!-- begin-user-doc -->
387 * <!-- end-user-doc -->
388 * @generated
389 */
390 private EClass spousal_Expense_ACEClass = null;
391
392 /**
393 * <!-- begin-user-doc -->
394 * <!-- end-user-doc -->
395 * @generated
396 */
397 private EClass extraordinary_Expense_CEEClass = null;
398
399 /**
400 * <!-- begin-user-doc -->
401 * <!-- end-user-doc -->
402 * @generated
403 */
404 private EClass travel_Expense_FDEClass = null;
405
406 /**
407 * <!-- begin-user-doc -->
408 * <!-- end-user-doc -->
409 * @generated
410 */
411 private EClass professional_ExpenseEClass = null;
412
413 /**
414 * <!-- begin-user-doc -->
415 * <!-- end-user-doc -->
416 * @generated
417 */
418 private EClass miscellaneous_Expense_FOEClass = null;
419
420 /**
421 * <!-- begin-user-doc -->
422 * <!-- end-user-doc -->
423 * @generated
424 */
425 private EClass resourceEClass = null;
426
427 /**
428 * <!-- begin-user-doc -->
429 * <!-- end-user-doc -->
430 * @generated
431 */
432 private EEnum grantorEEnum = null;
433
434 /**
435 * <!-- begin-user-doc -->
436 * <!-- end-user-doc -->
437 * @generated
438 */
439 private EEnum disability_TypesEEnum = null;
440
441 /**
442 * <!-- begin-user-doc -->
443 * <!-- end-user-doc -->
444 * @generated
445 */
446 private EEnum countryEEnum = null;
447
448 /**
449 * <!-- begin-user-doc -->
450 * <!-- end-user-doc -->
451 * @generated
452 */
453 private EEnum tax_OfficeEEnum = null;
454
455 /**
456 * <!-- begin-user-doc -->
457 * <!-- end-user-doc -->
458 * @generated
459 */
460 private EEnum tax_Class_CategoryEEnum = null;
461
462 /**
463 * <!-- begin-user-doc -->
464 * <!-- end-user-doc -->
465 * @generated
466 */
467 private EEnum job_ActivityEEnum = null;
468
469 /**
470 * <!-- begin-user-doc -->
471 * <!-- end-user-doc -->
472 * @generated
473 */
474 private EEnum townEEnum = null;
475
476 /**
477 * <!-- begin-user-doc -->
478 * <!-- end-user-doc -->
479 * @generated
480 */
481 private EEnum cE_TypeEEnum = null;
482
483 /**
484 * <!-- begin-user-doc -->
485 * <!-- end-user-doc -->
486 * @generated
487 */
488 private EEnum expense_PurposeEEnum = null;
489
490 /**
491 * <!-- begin-user-doc -->
492 * <!-- end-user-doc -->
493 * @generated
494 */
495 private EEnum dependent_TypeEEnum = null;
496
497 /**
498 * <!-- begin-user-doc -->
499 * <!-- end-user-doc -->
500 * @generated
501 */
502 private EEnum separation_CausesEEnum = null;
503
504 /**
505 * <!-- begin-user-doc -->
506 * <!-- end-user-doc -->
507 * @generated
508 */
509 private EEnum category_of_Permanent_ExpenseEEnum = null;
510
511 /**
512 * <!-- begin-user-doc -->
513 * <!-- end-user-doc -->
514 * @generated
515 */
516 private EEnum category_of_Health_and_Pension_InsurancesEEnum = null;
517
518 /**
519 * <!-- begin-user-doc -->
520 * <!-- end-user-doc -->
521 * @generated
522 */
523 private EEnum category_of_Private_Insurance_and_PlanEEnum = null;
524
525 /**
526 * <!-- begin-user-doc -->
527 * <!-- end-user-doc -->
528 * @generated
529 */
530 private EEnum legal_Union_TypesEEnum = null;
531
532 /**
533 * Creates an instance of the model <b>Package</b>, registered with
534 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
535 * package URI value.
536 * <p>Note: the correct way to create the package is via the static
537 * factory method {@link #init init()}, which also performs
538 * initialization of the package, or returns the registered package,
539 * if one already exists.
540 * <!-- begin-user-doc -->
541 * <!-- end-user-doc -->
542 * @see org.eclipse.emf.ecore.EPackage.Registry
543 * @see TaxationWithRoot.TaxationWithRootPackage#eNS_URI
544 * @see #init()
545 * @generated
546 */
547 private TaxationWithRootPackageImpl() {
548 super(eNS_URI, TaxationWithRootFactory.eINSTANCE);
549 }
550
551 /**
552 * <!-- begin-user-doc -->
553 * <!-- end-user-doc -->
554 * @generated
555 */
556 private static boolean isInited = false;
557
558 /**
559 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
560 *
561 * <p>This method is used to initialize {@link TaxationWithRootPackage#eINSTANCE} when that field is accessed.
562 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
563 * <!-- begin-user-doc -->
564 * <!-- end-user-doc -->
565 * @see #eNS_URI
566 * @see #createPackageContents()
567 * @see #initializePackageContents()
568 * @generated
569 */
570 public static TaxationWithRootPackage init() {
571 if (isInited) return (TaxationWithRootPackage)EPackage.Registry.INSTANCE.getEPackage(TaxationWithRootPackage.eNS_URI);
572
573 // Obtain or create and register package
574 Object registeredTaxationWithRootPackage = EPackage.Registry.INSTANCE.get(eNS_URI);
575 TaxationWithRootPackageImpl theTaxationWithRootPackage = registeredTaxationWithRootPackage instanceof TaxationWithRootPackageImpl ? (TaxationWithRootPackageImpl)registeredTaxationWithRootPackage : new TaxationWithRootPackageImpl();
576
577 isInited = true;
578
579 // Create package meta-data objects
580 theTaxationWithRootPackage.createPackageContents();
581
582 // Initialize created meta-data
583 theTaxationWithRootPackage.initializePackageContents();
584
585 // Mark meta-data to indicate it can't be changed
586 theTaxationWithRootPackage.freeze();
587
588 // Update the registry and return the package
589 EPackage.Registry.INSTANCE.put(TaxationWithRootPackage.eNS_URI, theTaxationWithRootPackage);
590 return theTaxationWithRootPackage;
591 }
592
593 /**
594 * <!-- begin-user-doc -->
595 * <!-- end-user-doc -->
596 * @generated
597 */
598 @Override
599 public EClass getConstants() {
600 return constantsEClass;
601 }
602
603 /**
604 * <!-- begin-user-doc -->
605 * <!-- end-user-doc -->
606 * @generated
607 */
608 @Override
609 public EAttribute getConstants_MAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD() {
610 return (EAttribute)constantsEClass.getEStructuralFeatures().get(0);
611 }
612
613 /**
614 * <!-- begin-user-doc -->
615 * <!-- end-user-doc -->
616 * @generated
617 */
618 @Override
619 public EAttribute getConstants_MAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE() {
620 return (EAttribute)constantsEClass.getEStructuralFeatures().get(1);
621 }
622
623 /**
624 * <!-- begin-user-doc -->
625 * <!-- end-user-doc -->
626 * @generated
627 */
628 @Override
629 public EAttribute getConstants_MINIMUM_SALARY() {
630 return (EAttribute)constantsEClass.getEStructuralFeatures().get(2);
631 }
632
633 /**
634 * <!-- begin-user-doc -->
635 * <!-- end-user-doc -->
636 * @generated
637 */
638 @Override
639 public EAttribute getConstants_FLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION() {
640 return (EAttribute)constantsEClass.getEStructuralFeatures().get(3);
641 }
642
643 /**
644 * <!-- begin-user-doc -->
645 * <!-- end-user-doc -->
646 * @generated
647 */
648 @Override
649 public EAttribute getConstants_MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS() {
650 return (EAttribute)constantsEClass.getEStructuralFeatures().get(4);
651 }
652
653 /**
654 * <!-- begin-user-doc -->
655 * <!-- end-user-doc -->
656 * @generated
657 */
658 @Override
659 public EAttribute getConstants_MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS() {
660 return (EAttribute)constantsEClass.getEStructuralFeatures().get(5);
661 }
662
663 /**
664 * <!-- begin-user-doc -->
665 * <!-- end-user-doc -->
666 * @generated
667 */
668 @Override
669 public EAttribute getConstants_MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC() {
670 return (EAttribute)constantsEClass.getEStructuralFeatures().get(6);
671 }
672
673 /**
674 * <!-- begin-user-doc -->
675 * <!-- end-user-doc -->
676 * @generated
677 */
678 @Override
679 public EAttribute getConstants_MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE() {
680 return (EAttribute)constantsEClass.getEStructuralFeatures().get(7);
681 }
682
683 /**
684 * <!-- begin-user-doc -->
685 * <!-- end-user-doc -->
686 * @generated
687 */
688 @Override
689 public EAttribute getConstants_MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION() {
690 return (EAttribute)constantsEClass.getEStructuralFeatures().get(8);
691 }
692
693 /**
694 * <!-- begin-user-doc -->
695 * <!-- end-user-doc -->
696 * @generated
697 */
698 @Override
699 public EAttribute getConstants_MAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION() {
700 return (EAttribute)constantsEClass.getEStructuralFeatures().get(9);
701 }
702
703 /**
704 * <!-- begin-user-doc -->
705 * <!-- end-user-doc -->
706 * @generated
707 */
708 @Override
709 public EAttribute getConstants_MINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION() {
710 return (EAttribute)constantsEClass.getEStructuralFeatures().get(10);
711 }
712
713 /**
714 * <!-- begin-user-doc -->
715 * <!-- end-user-doc -->
716 * @generated
717 */
718 @Override
719 public EAttribute getConstants_FLAT_RATE_CIM_DAILY() {
720 return (EAttribute)constantsEClass.getEStructuralFeatures().get(11);
721 }
722
723 /**
724 * <!-- begin-user-doc -->
725 * <!-- end-user-doc -->
726 * @generated
727 */
728 @Override
729 public EAttribute getConstants_FLAT_RATE_CIM_MONTHLY() {
730 return (EAttribute)constantsEClass.getEStructuralFeatures().get(12);
731 }
732
733 /**
734 * <!-- begin-user-doc -->
735 * <!-- end-user-doc -->
736 * @generated
737 */
738 @Override
739 public EAttribute getConstants_FLAT_RATE_CIM_YEARLY() {
740 return (EAttribute)constantsEClass.getEStructuralFeatures().get(13);
741 }
742
743 /**
744 * <!-- begin-user-doc -->
745 * <!-- end-user-doc -->
746 * @generated
747 */
748 @Override
749 public EAttribute getConstants_FLAT_RATE_CIP_DAILY() {
750 return (EAttribute)constantsEClass.getEStructuralFeatures().get(14);
751 }
752
753 /**
754 * <!-- begin-user-doc -->
755 * <!-- end-user-doc -->
756 * @generated
757 */
758 @Override
759 public EAttribute getConstants_FLAT_RATE_CIP_MONTHLY() {
760 return (EAttribute)constantsEClass.getEStructuralFeatures().get(15);
761 }
762
763 /**
764 * <!-- begin-user-doc -->
765 * <!-- end-user-doc -->
766 * @generated
767 */
768 @Override
769 public EAttribute getConstants_FLAT_RATE_CIP_YEARLY() {
770 return (EAttribute)constantsEClass.getEStructuralFeatures().get(16);
771 }
772
773 /**
774 * <!-- begin-user-doc -->
775 * <!-- end-user-doc -->
776 * @generated
777 */
778 @Override
779 public EAttribute getConstants_FLAT_RATE_CIS_DAILY() {
780 return (EAttribute)constantsEClass.getEStructuralFeatures().get(17);
781 }
782
783 /**
784 * <!-- begin-user-doc -->
785 * <!-- end-user-doc -->
786 * @generated
787 */
788 @Override
789 public EAttribute getConstants_FLAT_RATE_CIS_MONTHLY() {
790 return (EAttribute)constantsEClass.getEStructuralFeatures().get(18);
791 }
792
793 /**
794 * <!-- begin-user-doc -->
795 * <!-- end-user-doc -->
796 * @generated
797 */
798 @Override
799 public EAttribute getConstants_FLAT_RATE_CIS_YEARLY() {
800 return (EAttribute)constantsEClass.getEStructuralFeatures().get(19);
801 }
802
803 /**
804 * <!-- begin-user-doc -->
805 * <!-- end-user-doc -->
806 * @generated
807 */
808 @Override
809 public EAttribute getConstants_FLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT() {
810 return (EAttribute)constantsEClass.getEStructuralFeatures().get(20);
811 }
812
813 /**
814 * <!-- begin-user-doc -->
815 * <!-- end-user-doc -->
816 * @generated
817 */
818 @Override
819 public EAttribute getConstants_MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS() {
820 return (EAttribute)constantsEClass.getEStructuralFeatures().get(21);
821 }
822
823 /**
824 * <!-- begin-user-doc -->
825 * <!-- end-user-doc -->
826 * @generated
827 */
828 @Override
829 public EAttribute getConstants_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE() {
830 return (EAttribute)constantsEClass.getEStructuralFeatures().get(22);
831 }
832
833 /**
834 * <!-- begin-user-doc -->
835 * <!-- end-user-doc -->
836 * @generated
837 */
838 @Override
839 public EAttribute getConstants_DISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE() {
840 return (EAttribute)constantsEClass.getEStructuralFeatures().get(23);
841 }
842
843 /**
844 * <!-- begin-user-doc -->
845 * <!-- end-user-doc -->
846 * @generated
847 */
848 @Override
849 public EAttribute getConstants_MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE() {
850 return (EAttribute)constantsEClass.getEStructuralFeatures().get(24);
851 }
852
853 /**
854 * <!-- begin-user-doc -->
855 * <!-- end-user-doc -->
856 * @generated
857 */
858 @Override
859 public EClass getIncome_Tax() {
860 return income_TaxEClass;
861 }
862
863 /**
864 * <!-- begin-user-doc -->
865 * <!-- end-user-doc -->
866 * @generated
867 */
868 @Override
869 public EReference getIncome_Tax_TaxPayer() {
870 return (EReference)income_TaxEClass.getEStructuralFeatures().get(0);
871 }
872
873 /**
874 * <!-- begin-user-doc -->
875 * <!-- end-user-doc -->
876 * @generated
877 */
878 @Override
879 public EAttribute getIncome_Tax_Tax_amount() {
880 return (EAttribute)income_TaxEClass.getEStructuralFeatures().get(1);
881 }
882
883 /**
884 * <!-- begin-user-doc -->
885 * <!-- end-user-doc -->
886 * @generated
887 */
888 @Override
889 public EAttribute getIncome_Tax_Tax_year() {
890 return (EAttribute)income_TaxEClass.getEStructuralFeatures().get(2);
891 }
892
893 /**
894 * <!-- begin-user-doc -->
895 * <!-- end-user-doc -->
896 * @generated
897 */
898 @Override
899 public EAttribute getIncome_Tax_Id6() {
900 return (EAttribute)income_TaxEClass.getEStructuralFeatures().get(3);
901 }
902
903 /**
904 * <!-- begin-user-doc -->
905 * <!-- end-user-doc -->
906 * @generated
907 */
908 @Override
909 public EClass getTax_Payer() {
910 return tax_PayerEClass;
911 }
912
913 /**
914 * <!-- begin-user-doc -->
915 * <!-- end-user-doc -->
916 * @generated
917 */
918 @Override
919 public EReference getTax_Payer_Dependents() {
920 return (EReference)tax_PayerEClass.getEStructuralFeatures().get(0);
921 }
922
923 /**
924 * <!-- begin-user-doc -->
925 * <!-- end-user-doc -->
926 * @generated
927 */
928 @Override
929 public EReference getTax_Payer_From_agent() {
930 return (EReference)tax_PayerEClass.getEStructuralFeatures().get(1);
931 }
932
933 /**
934 * <!-- begin-user-doc -->
935 * <!-- end-user-doc -->
936 * @generated
937 */
938 @Override
939 public EReference getTax_Payer_Incomes() {
940 return (EReference)tax_PayerEClass.getEStructuralFeatures().get(2);
941 }
942
943 /**
944 * <!-- begin-user-doc -->
945 * <!-- end-user-doc -->
946 * @generated
947 */
948 @Override
949 public EReference getTax_Payer_From_law() {
950 return (EReference)tax_PayerEClass.getEStructuralFeatures().get(3);
951 }
952
953 /**
954 * <!-- begin-user-doc -->
955 * <!-- end-user-doc -->
956 * @generated
957 */
958 @Override
959 public EClass getPhysical_Person() {
960 return physical_PersonEClass;
961 }
962
963 /**
964 * <!-- begin-user-doc -->
965 * <!-- end-user-doc -->
966 * @generated
967 */
968 @Override
969 public EAttribute getPhysical_Person_SSNo() {
970 return (EAttribute)physical_PersonEClass.getEStructuralFeatures().get(0);
971 }
972
973 /**
974 * <!-- begin-user-doc -->
975 * <!-- end-user-doc -->
976 * @generated
977 */
978 @Override
979 public EReference getPhysical_Person_Addresses() {
980 return (EReference)physical_PersonEClass.getEStructuralFeatures().get(1);
981 }
982
983 /**
984 * <!-- begin-user-doc -->
985 * <!-- end-user-doc -->
986 * @generated
987 */
988 @Override
989 public EAttribute getPhysical_Person_Birth_year() {
990 return (EAttribute)physical_PersonEClass.getEStructuralFeatures().get(2);
991 }
992
993 /**
994 * <!-- begin-user-doc -->
995 * <!-- end-user-doc -->
996 * @generated
997 */
998 @Override
999 public EAttribute getPhysical_Person_Disability_percentage() {
1000 return (EAttribute)physical_PersonEClass.getEStructuralFeatures().get(3);
1001 }
1002
1003 /**
1004 * <!-- begin-user-doc -->
1005 * <!-- end-user-doc -->
1006 * @generated
1007 */
1008 @Override
1009 public EAttribute getPhysical_Person_Disability_type() {
1010 return (EAttribute)physical_PersonEClass.getEStructuralFeatures().get(4);
1011 }
1012
1013 /**
1014 * <!-- begin-user-doc -->
1015 * <!-- end-user-doc -->
1016 * @generated
1017 */
1018 @Override
1019 public EAttribute getPhysical_Person_Birth_month() {
1020 return (EAttribute)physical_PersonEClass.getEStructuralFeatures().get(5);
1021 }
1022
1023 /**
1024 * <!-- begin-user-doc -->
1025 * <!-- end-user-doc -->
1026 * @generated
1027 */
1028 @Override
1029 public EAttribute getPhysical_Person_Birth_day() {
1030 return (EAttribute)physical_PersonEClass.getEStructuralFeatures().get(6);
1031 }
1032
1033 /**
1034 * <!-- begin-user-doc -->
1035 * <!-- end-user-doc -->
1036 * @generated
1037 */
1038 @Override
1039 public EReference getPhysical_Person_Expenses() {
1040 return (EReference)physical_PersonEClass.getEStructuralFeatures().get(7);
1041 }
1042
1043 /**
1044 * <!-- begin-user-doc -->
1045 * <!-- end-user-doc -->
1046 * @generated
1047 */
1048 @Override
1049 public EAttribute getPhysical_Person_Is_widower() {
1050 return (EAttribute)physical_PersonEClass.getEStructuralFeatures().get(8);
1051 }
1052
1053 /**
1054 * <!-- begin-user-doc -->
1055 * <!-- end-user-doc -->
1056 * @generated
1057 */
1058 @Override
1059 public EClass getAddress() {
1060 return addressEClass;
1061 }
1062
1063 /**
1064 * <!-- begin-user-doc -->
1065 * <!-- end-user-doc -->
1066 * @generated
1067 */
1068 @Override
1069 public EAttribute getAddress_Country() {
1070 return (EAttribute)addressEClass.getEStructuralFeatures().get(0);
1071 }
1072
1073 /**
1074 * <!-- begin-user-doc -->
1075 * <!-- end-user-doc -->
1076 * @generated
1077 */
1078 @Override
1079 public EAttribute getAddress_Street() {
1080 return (EAttribute)addressEClass.getEStructuralFeatures().get(1);
1081 }
1082
1083 /**
1084 * <!-- begin-user-doc -->
1085 * <!-- end-user-doc -->
1086 * @generated
1087 */
1088 @Override
1089 public EAttribute getAddress_ZipCode() {
1090 return (EAttribute)addressEClass.getEStructuralFeatures().get(2);
1091 }
1092
1093 /**
1094 * <!-- begin-user-doc -->
1095 * <!-- end-user-doc -->
1096 * @generated
1097 */
1098 @Override
1099 public EAttribute getAddress_City() {
1100 return (EAttribute)addressEClass.getEStructuralFeatures().get(3);
1101 }
1102
1103 /**
1104 * <!-- begin-user-doc -->
1105 * <!-- end-user-doc -->
1106 * @generated
1107 */
1108 @Override
1109 public EAttribute getAddress_Id2() {
1110 return (EAttribute)addressEClass.getEStructuralFeatures().get(4);
1111 }
1112
1113 /**
1114 * <!-- begin-user-doc -->
1115 * <!-- end-user-doc -->
1116 * @generated
1117 */
1118 @Override
1119 public EReference getAddress_TaxPayer() {
1120 return (EReference)addressEClass.getEStructuralFeatures().get(5);
1121 }
1122
1123 /**
1124 * <!-- begin-user-doc -->
1125 * <!-- end-user-doc -->
1126 * @generated
1127 */
1128 @Override
1129 public EClass getExpense() {
1130 return expenseEClass;
1131 }
1132
1133 /**
1134 * <!-- begin-user-doc -->
1135 * <!-- end-user-doc -->
1136 * @generated
1137 */
1138 @Override
1139 public EAttribute getExpense_Declared_amount() {
1140 return (EAttribute)expenseEClass.getEStructuralFeatures().get(0);
1141 }
1142
1143 /**
1144 * <!-- begin-user-doc -->
1145 * <!-- end-user-doc -->
1146 * @generated
1147 */
1148 @Override
1149 public EAttribute getExpense_Expense_purpose() {
1150 return (EAttribute)expenseEClass.getEStructuralFeatures().get(1);
1151 }
1152
1153 /**
1154 * <!-- begin-user-doc -->
1155 * <!-- end-user-doc -->
1156 * @generated
1157 */
1158 @Override
1159 public EReference getExpense_Dependent() {
1160 return (EReference)expenseEClass.getEStructuralFeatures().get(2);
1161 }
1162
1163 /**
1164 * <!-- begin-user-doc -->
1165 * <!-- end-user-doc -->
1166 * @generated
1167 */
1168 @Override
1169 public EReference getExpense_From_agent() {
1170 return (EReference)expenseEClass.getEStructuralFeatures().get(3);
1171 }
1172
1173 /**
1174 * <!-- begin-user-doc -->
1175 * <!-- end-user-doc -->
1176 * @generated
1177 */
1178 @Override
1179 public EReference getExpense_Income() {
1180 return (EReference)expenseEClass.getEStructuralFeatures().get(4);
1181 }
1182
1183 /**
1184 * <!-- begin-user-doc -->
1185 * <!-- end-user-doc -->
1186 * @generated
1187 */
1188 @Override
1189 public EAttribute getExpense_Id4() {
1190 return (EAttribute)expenseEClass.getEStructuralFeatures().get(5);
1191 }
1192
1193 /**
1194 * <!-- begin-user-doc -->
1195 * <!-- end-user-doc -->
1196 * @generated
1197 */
1198 @Override
1199 public EReference getExpense_Beneficiary() {
1200 return (EReference)expenseEClass.getEStructuralFeatures().get(6);
1201 }
1202
1203 /**
1204 * <!-- begin-user-doc -->
1205 * <!-- end-user-doc -->
1206 * @generated
1207 */
1208 @Override
1209 public EClass getDependent() {
1210 return dependentEClass;
1211 }
1212
1213 /**
1214 * <!-- begin-user-doc -->
1215 * <!-- end-user-doc -->
1216 * @generated
1217 */
1218 @Override
1219 public EAttribute getDependent_Dependent_type() {
1220 return (EAttribute)dependentEClass.getEStructuralFeatures().get(0);
1221 }
1222
1223 /**
1224 * <!-- begin-user-doc -->
1225 * <!-- end-user-doc -->
1226 * @generated
1227 */
1228 @Override
1229 public EReference getDependent_Responsible_person() {
1230 return (EReference)dependentEClass.getEStructuralFeatures().get(1);
1231 }
1232
1233 /**
1234 * <!-- begin-user-doc -->
1235 * <!-- end-user-doc -->
1236 * @generated
1237 */
1238 @Override
1239 public EAttribute getDependent_Continued_studies() {
1240 return (EAttribute)dependentEClass.getEStructuralFeatures().get(2);
1241 }
1242
1243 /**
1244 * <!-- begin-user-doc -->
1245 * <!-- end-user-doc -->
1246 * @generated
1247 */
1248 @Override
1249 public EReference getDependent_Allowances() {
1250 return (EReference)dependentEClass.getEStructuralFeatures().get(3);
1251 }
1252
1253 /**
1254 * <!-- begin-user-doc -->
1255 * <!-- end-user-doc -->
1256 * @generated
1257 */
1258 @Override
1259 public EReference getDependent_Household() {
1260 return (EReference)dependentEClass.getEStructuralFeatures().get(4);
1261 }
1262
1263 /**
1264 * <!-- begin-user-doc -->
1265 * <!-- end-user-doc -->
1266 * @generated
1267 */
1268 @Override
1269 public EReference getDependent_From_agent() {
1270 return (EReference)dependentEClass.getEStructuralFeatures().get(5);
1271 }
1272
1273 /**
1274 * <!-- begin-user-doc -->
1275 * <!-- end-user-doc -->
1276 * @generated
1277 */
1278 @Override
1279 public EReference getDependent_Expense() {
1280 return (EReference)dependentEClass.getEStructuralFeatures().get(6);
1281 }
1282
1283 /**
1284 * <!-- begin-user-doc -->
1285 * <!-- end-user-doc -->
1286 * @generated
1287 */
1288 @Override
1289 public EClass getExternal_Allowance() {
1290 return external_AllowanceEClass;
1291 }
1292
1293 /**
1294 * <!-- begin-user-doc -->
1295 * <!-- end-user-doc -->
1296 * @generated
1297 */
1298 @Override
1299 public EAttribute getExternal_Allowance_Grantor() {
1300 return (EAttribute)external_AllowanceEClass.getEStructuralFeatures().get(0);
1301 }
1302
1303 /**
1304 * <!-- begin-user-doc -->
1305 * <!-- end-user-doc -->
1306 * @generated
1307 */
1308 @Override
1309 public EAttribute getExternal_Allowance_Starting_year() {
1310 return (EAttribute)external_AllowanceEClass.getEStructuralFeatures().get(1);
1311 }
1312
1313 /**
1314 * <!-- begin-user-doc -->
1315 * <!-- end-user-doc -->
1316 * @generated
1317 */
1318 @Override
1319 public EAttribute getExternal_Allowance_Ending_year() {
1320 return (EAttribute)external_AllowanceEClass.getEStructuralFeatures().get(2);
1321 }
1322
1323 /**
1324 * <!-- begin-user-doc -->
1325 * <!-- end-user-doc -->
1326 * @generated
1327 */
1328 @Override
1329 public EReference getExternal_Allowance_Reciver() {
1330 return (EReference)external_AllowanceEClass.getEStructuralFeatures().get(3);
1331 }
1332
1333 /**
1334 * <!-- begin-user-doc -->
1335 * <!-- end-user-doc -->
1336 * @generated
1337 */
1338 @Override
1339 public EAttribute getExternal_Allowance_Id5() {
1340 return (EAttribute)external_AllowanceEClass.getEStructuralFeatures().get(4);
1341 }
1342
1343 /**
1344 * <!-- begin-user-doc -->
1345 * <!-- end-user-doc -->
1346 * @generated
1347 */
1348 @Override
1349 public EReference getExternal_Allowance_Person() {
1350 return (EReference)external_AllowanceEClass.getEStructuralFeatures().get(5);
1351 }
1352
1353 /**
1354 * <!-- begin-user-doc -->
1355 * <!-- end-user-doc -->
1356 * @generated
1357 */
1358 @Override
1359 public EClass getHousehold() {
1360 return householdEClass;
1361 }
1362
1363 /**
1364 * <!-- begin-user-doc -->
1365 * <!-- end-user-doc -->
1366 * @generated
1367 */
1368 @Override
1369 public EReference getHousehold_Parents() {
1370 return (EReference)householdEClass.getEStructuralFeatures().get(0);
1371 }
1372
1373 /**
1374 * <!-- begin-user-doc -->
1375 * <!-- end-user-doc -->
1376 * @generated
1377 */
1378 @Override
1379 public EAttribute getHousehold_Id1() {
1380 return (EAttribute)householdEClass.getEStructuralFeatures().get(1);
1381 }
1382
1383 /**
1384 * <!-- begin-user-doc -->
1385 * <!-- end-user-doc -->
1386 * @generated
1387 */
1388 @Override
1389 public EReference getHousehold_Children() {
1390 return (EReference)householdEClass.getEStructuralFeatures().get(2);
1391 }
1392
1393 /**
1394 * <!-- begin-user-doc -->
1395 * <!-- end-user-doc -->
1396 * @generated
1397 */
1398 @Override
1399 public EClass getLegal_Union_Record() {
1400 return legal_Union_RecordEClass;
1401 }
1402
1403 /**
1404 * <!-- begin-user-doc -->
1405 * <!-- end-user-doc -->
1406 * @generated
1407 */
1408 @Override
1409 public EAttribute getLegal_Union_Record_Start_year() {
1410 return (EAttribute)legal_Union_RecordEClass.getEStructuralFeatures().get(0);
1411 }
1412
1413 /**
1414 * <!-- begin-user-doc -->
1415 * <!-- end-user-doc -->
1416 * @generated
1417 */
1418 @Override
1419 public EAttribute getLegal_Union_Record_End_year() {
1420 return (EAttribute)legal_Union_RecordEClass.getEStructuralFeatures().get(1);
1421 }
1422
1423 /**
1424 * <!-- begin-user-doc -->
1425 * <!-- end-user-doc -->
1426 * @generated
1427 */
1428 @Override
1429 public EAttribute getLegal_Union_Record_Separation_cause() {
1430 return (EAttribute)legal_Union_RecordEClass.getEStructuralFeatures().get(2);
1431 }
1432
1433 /**
1434 * <!-- begin-user-doc -->
1435 * <!-- end-user-doc -->
1436 * @generated
1437 */
1438 @Override
1439 public EReference getLegal_Union_Record_Individual_A() {
1440 return (EReference)legal_Union_RecordEClass.getEStructuralFeatures().get(3);
1441 }
1442
1443 /**
1444 * <!-- begin-user-doc -->
1445 * <!-- end-user-doc -->
1446 * @generated
1447 */
1448 @Override
1449 public EReference getLegal_Union_Record_Individual_B() {
1450 return (EReference)legal_Union_RecordEClass.getEStructuralFeatures().get(4);
1451 }
1452
1453 /**
1454 * <!-- begin-user-doc -->
1455 * <!-- end-user-doc -->
1456 * @generated
1457 */
1458 @Override
1459 public EReference getLegal_Union_Record_Properties() {
1460 return (EReference)legal_Union_RecordEClass.getEStructuralFeatures().get(5);
1461 }
1462
1463 /**
1464 * <!-- begin-user-doc -->
1465 * <!-- end-user-doc -->
1466 * @generated
1467 */
1468 @Override
1469 public EAttribute getLegal_Union_Record_Mutual_agreement() {
1470 return (EAttribute)legal_Union_RecordEClass.getEStructuralFeatures().get(6);
1471 }
1472
1473 /**
1474 * <!-- begin-user-doc -->
1475 * <!-- end-user-doc -->
1476 * @generated
1477 */
1478 @Override
1479 public EAttribute getLegal_Union_Record_Id9() {
1480 return (EAttribute)legal_Union_RecordEClass.getEStructuralFeatures().get(7);
1481 }
1482
1483 /**
1484 * <!-- begin-user-doc -->
1485 * <!-- end-user-doc -->
1486 * @generated
1487 */
1488 @Override
1489 public EReference getLegal_Union_Record_Household() {
1490 return (EReference)legal_Union_RecordEClass.getEStructuralFeatures().get(8);
1491 }
1492
1493 /**
1494 * <!-- begin-user-doc -->
1495 * <!-- end-user-doc -->
1496 * @generated
1497 */
1498 @Override
1499 public EClass getTax_Property() {
1500 return tax_PropertyEClass;
1501 }
1502
1503 /**
1504 * <!-- begin-user-doc -->
1505 * <!-- end-user-doc -->
1506 * @generated
1507 */
1508 @Override
1509 public EAttribute getTax_Property_Starting_year() {
1510 return (EAttribute)tax_PropertyEClass.getEStructuralFeatures().get(0);
1511 }
1512
1513 /**
1514 * <!-- begin-user-doc -->
1515 * <!-- end-user-doc -->
1516 * @generated
1517 */
1518 @Override
1519 public EAttribute getTax_Property_Id10() {
1520 return (EAttribute)tax_PropertyEClass.getEStructuralFeatures().get(1);
1521 }
1522
1523 /**
1524 * <!-- begin-user-doc -->
1525 * <!-- end-user-doc -->
1526 * @generated
1527 */
1528 @Override
1529 public EReference getTax_Property_Union_record() {
1530 return (EReference)tax_PropertyEClass.getEStructuralFeatures().get(2);
1531 }
1532
1533 /**
1534 * <!-- begin-user-doc -->
1535 * <!-- end-user-doc -->
1536 * @generated
1537 */
1538 @Override
1539 public EClass getTax_Case() {
1540 return tax_CaseEClass;
1541 }
1542
1543 /**
1544 * <!-- begin-user-doc -->
1545 * <!-- end-user-doc -->
1546 * @generated
1547 */
1548 @Override
1549 public EClass getFromAgent() {
1550 return fromAgentEClass;
1551 }
1552
1553 /**
1554 * <!-- begin-user-doc -->
1555 * <!-- end-user-doc -->
1556 * @generated
1557 */
1558 @Override
1559 public EReference getFromAgent_TaxPayer() {
1560 return (EReference)fromAgentEClass.getEStructuralFeatures().get(0);
1561 }
1562
1563 /**
1564 * <!-- begin-user-doc -->
1565 * <!-- end-user-doc -->
1566 * @generated
1567 */
1568 @Override
1569 public EAttribute getFromAgent_Is_dependent_eligible_for_CE_Not_In_Houshold_Children_Care() {
1570 return (EAttribute)fromAgentEClass.getEStructuralFeatures().get(1);
1571 }
1572
1573 /**
1574 * <!-- begin-user-doc -->
1575 * <!-- end-user-doc -->
1576 * @generated
1577 */
1578 @Override
1579 public EReference getFromAgent_Expense() {
1580 return (EReference)fromAgentEClass.getEStructuralFeatures().get(2);
1581 }
1582
1583 /**
1584 * <!-- begin-user-doc -->
1585 * <!-- end-user-doc -->
1586 * @generated
1587 */
1588 @Override
1589 public EAttribute getFromAgent_Is_eligible_debt() {
1590 return (EAttribute)fromAgentEClass.getEStructuralFeatures().get(3);
1591 }
1592
1593 /**
1594 * <!-- begin-user-doc -->
1595 * <!-- end-user-doc -->
1596 * @generated
1597 */
1598 @Override
1599 public EReference getFromAgent_Dependent() {
1600 return (EReference)fromAgentEClass.getEStructuralFeatures().get(4);
1601 }
1602
1603 /**
1604 * <!-- begin-user-doc -->
1605 * <!-- end-user-doc -->
1606 * @generated
1607 */
1608 @Override
1609 public EClass getIncome() {
1610 return incomeEClass;
1611 }
1612
1613 /**
1614 * <!-- begin-user-doc -->
1615 * <!-- end-user-doc -->
1616 * @generated
1617 */
1618 @Override
1619 public EAttribute getIncome_Income_amount() {
1620 return (EAttribute)incomeEClass.getEStructuralFeatures().get(0);
1621 }
1622
1623 /**
1624 * <!-- begin-user-doc -->
1625 * <!-- end-user-doc -->
1626 * @generated
1627 */
1628 @Override
1629 public EReference getIncome_Income_type() {
1630 return (EReference)incomeEClass.getEStructuralFeatures().get(1);
1631 }
1632
1633 /**
1634 * <!-- begin-user-doc -->
1635 * <!-- end-user-doc -->
1636 * @generated
1637 */
1638 @Override
1639 public EReference getIncome_Tax_card() {
1640 return (EReference)incomeEClass.getEStructuralFeatures().get(2);
1641 }
1642
1643 /**
1644 * <!-- begin-user-doc -->
1645 * <!-- end-user-doc -->
1646 * @generated
1647 */
1648 @Override
1649 public EAttribute getIncome_Tax_liability() {
1650 return (EAttribute)incomeEClass.getEStructuralFeatures().get(3);
1651 }
1652
1653 /**
1654 * <!-- begin-user-doc -->
1655 * <!-- end-user-doc -->
1656 * @generated
1657 */
1658 @Override
1659 public EReference getIncome_TaxPayer() {
1660 return (EReference)incomeEClass.getEStructuralFeatures().get(4);
1661 }
1662
1663 /**
1664 * <!-- begin-user-doc -->
1665 * <!-- end-user-doc -->
1666 * @generated
1667 */
1668 @Override
1669 public EReference getIncome_Details() {
1670 return (EReference)incomeEClass.getEStructuralFeatures().get(5);
1671 }
1672
1673 /**
1674 * <!-- begin-user-doc -->
1675 * <!-- end-user-doc -->
1676 * @generated
1677 */
1678 @Override
1679 public EAttribute getIncome_Num() {
1680 return (EAttribute)incomeEClass.getEStructuralFeatures().get(6);
1681 }
1682
1683 /**
1684 * <!-- begin-user-doc -->
1685 * <!-- end-user-doc -->
1686 * @generated
1687 */
1688 @Override
1689 public EReference getIncome_Expenses() {
1690 return (EReference)incomeEClass.getEStructuralFeatures().get(7);
1691 }
1692
1693 /**
1694 * <!-- begin-user-doc -->
1695 * <!-- end-user-doc -->
1696 * @generated
1697 */
1698 @Override
1699 public EClass getIncome_Type() {
1700 return income_TypeEClass;
1701 }
1702
1703 /**
1704 * <!-- begin-user-doc -->
1705 * <!-- end-user-doc -->
1706 * @generated
1707 */
1708 @Override
1709 public EAttribute getIncome_Type_Id8() {
1710 return (EAttribute)income_TypeEClass.getEStructuralFeatures().get(0);
1711 }
1712
1713 /**
1714 * <!-- begin-user-doc -->
1715 * <!-- end-user-doc -->
1716 * @generated
1717 */
1718 @Override
1719 public EReference getIncome_Type_Income() {
1720 return (EReference)income_TypeEClass.getEStructuralFeatures().get(1);
1721 }
1722
1723 /**
1724 * <!-- begin-user-doc -->
1725 * <!-- end-user-doc -->
1726 * @generated
1727 */
1728 @Override
1729 public EClass getTax_Card() {
1730 return tax_CardEClass;
1731 }
1732
1733 /**
1734 * <!-- begin-user-doc -->
1735 * <!-- end-user-doc -->
1736 * @generated
1737 */
1738 @Override
1739 public EAttribute getTax_Card_Card_identifier() {
1740 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(0);
1741 }
1742
1743 /**
1744 * <!-- begin-user-doc -->
1745 * <!-- end-user-doc -->
1746 * @generated
1747 */
1748 @Override
1749 public EAttribute getTax_Card_Tax_office() {
1750 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(1);
1751 }
1752
1753 /**
1754 * <!-- begin-user-doc -->
1755 * <!-- end-user-doc -->
1756 * @generated
1757 */
1758 @Override
1759 public EAttribute getTax_Card_Percentage_of_witholding() {
1760 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(2);
1761 }
1762
1763 /**
1764 * <!-- begin-user-doc -->
1765 * <!-- end-user-doc -->
1766 * @generated
1767 */
1768 @Override
1769 public EAttribute getTax_Card_Tax_payers_name_surname() {
1770 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(3);
1771 }
1772
1773 /**
1774 * <!-- begin-user-doc -->
1775 * <!-- end-user-doc -->
1776 * @generated
1777 */
1778 @Override
1779 public EAttribute getTax_Card_Tax_payers_partner_name_surname() {
1780 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(4);
1781 }
1782
1783 /**
1784 * <!-- begin-user-doc -->
1785 * <!-- end-user-doc -->
1786 * @generated
1787 */
1788 @Override
1789 public EReference getTax_Card_Tax_payers_address() {
1790 return (EReference)tax_CardEClass.getEStructuralFeatures().get(5);
1791 }
1792
1793 /**
1794 * <!-- begin-user-doc -->
1795 * <!-- end-user-doc -->
1796 * @generated
1797 */
1798 @Override
1799 public EAttribute getTax_Card_Jobs_Employer_SSNo() {
1800 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(6);
1801 }
1802
1803 /**
1804 * <!-- begin-user-doc -->
1805 * <!-- end-user-doc -->
1806 * @generated
1807 */
1808 @Override
1809 public EAttribute getTax_Card_Jobs_employers_name() {
1810 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(7);
1811 }
1812
1813 /**
1814 * <!-- begin-user-doc -->
1815 * <!-- end-user-doc -->
1816 * @generated
1817 */
1818 @Override
1819 public EAttribute getTax_Card_Jobs_activity_type() {
1820 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(8);
1821 }
1822
1823 /**
1824 * <!-- begin-user-doc -->
1825 * <!-- end-user-doc -->
1826 * @generated
1827 */
1828 @Override
1829 public EAttribute getTax_Card_Jobs_place_of_work() {
1830 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(9);
1831 }
1832
1833 /**
1834 * <!-- begin-user-doc -->
1835 * <!-- end-user-doc -->
1836 * @generated
1837 */
1838 @Override
1839 public EAttribute getTax_Card_Deduction_FD_daily() {
1840 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(10);
1841 }
1842
1843 /**
1844 * <!-- begin-user-doc -->
1845 * <!-- end-user-doc -->
1846 * @generated
1847 */
1848 @Override
1849 public EAttribute getTax_Card_Deduction_FD_monthly() {
1850 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(11);
1851 }
1852
1853 /**
1854 * <!-- begin-user-doc -->
1855 * <!-- end-user-doc -->
1856 * @generated
1857 */
1858 @Override
1859 public EAttribute getTax_Card_Deduction_AC_daily() {
1860 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(12);
1861 }
1862
1863 /**
1864 * <!-- begin-user-doc -->
1865 * <!-- end-user-doc -->
1866 * @generated
1867 */
1868 @Override
1869 public EAttribute getTax_Card_Deduction_AC_monthly() {
1870 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(13);
1871 }
1872
1873 /**
1874 * <!-- begin-user-doc -->
1875 * <!-- end-user-doc -->
1876 * @generated
1877 */
1878 @Override
1879 public EAttribute getTax_Card_Deduction_AC_yearly() {
1880 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(14);
1881 }
1882
1883 /**
1884 * <!-- begin-user-doc -->
1885 * <!-- end-user-doc -->
1886 * @generated
1887 */
1888 @Override
1889 public EAttribute getTax_Card_Deduction_CE_daily() {
1890 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(15);
1891 }
1892
1893 /**
1894 * <!-- begin-user-doc -->
1895 * <!-- end-user-doc -->
1896 * @generated
1897 */
1898 @Override
1899 public EAttribute getTax_Card_Deduction_CE_monthly() {
1900 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(16);
1901 }
1902
1903 /**
1904 * <!-- begin-user-doc -->
1905 * <!-- end-user-doc -->
1906 * @generated
1907 */
1908 @Override
1909 public EAttribute getTax_Card_Deduction_CE_yearly() {
1910 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(17);
1911 }
1912
1913 /**
1914 * <!-- begin-user-doc -->
1915 * <!-- end-user-doc -->
1916 * @generated
1917 */
1918 @Override
1919 public EAttribute getTax_Card_Deduction_DS_daily() {
1920 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(18);
1921 }
1922
1923 /**
1924 * <!-- begin-user-doc -->
1925 * <!-- end-user-doc -->
1926 * @generated
1927 */
1928 @Override
1929 public EAttribute getTax_Card_Deduction_DS_monthly() {
1930 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(19);
1931 }
1932
1933 /**
1934 * <!-- begin-user-doc -->
1935 * <!-- end-user-doc -->
1936 * @generated
1937 */
1938 @Override
1939 public EAttribute getTax_Card_Deduction_FO_daily() {
1940 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(20);
1941 }
1942
1943 /**
1944 * <!-- begin-user-doc -->
1945 * <!-- end-user-doc -->
1946 * @generated
1947 */
1948 @Override
1949 public EAttribute getTax_Card_Deduction_FO_monthly() {
1950 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(21);
1951 }
1952
1953 /**
1954 * <!-- begin-user-doc -->
1955 * <!-- end-user-doc -->
1956 * @generated
1957 */
1958 @Override
1959 public EAttribute getTax_Card_Deduction_FO_yearly() {
1960 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(22);
1961 }
1962
1963 /**
1964 * <!-- begin-user-doc -->
1965 * <!-- end-user-doc -->
1966 * @generated
1967 */
1968 @Override
1969 public EAttribute getTax_Card_Credit_CIS_daily() {
1970 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(23);
1971 }
1972
1973 /**
1974 * <!-- begin-user-doc -->
1975 * <!-- end-user-doc -->
1976 * @generated
1977 */
1978 @Override
1979 public EAttribute getTax_Card_Credit_CIS_monthly() {
1980 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(24);
1981 }
1982
1983 /**
1984 * <!-- begin-user-doc -->
1985 * <!-- end-user-doc -->
1986 * @generated
1987 */
1988 @Override
1989 public EAttribute getTax_Card_Credit_CIM_daily() {
1990 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(25);
1991 }
1992
1993 /**
1994 * <!-- begin-user-doc -->
1995 * <!-- end-user-doc -->
1996 * @generated
1997 */
1998 @Override
1999 public EAttribute getTax_Card_Validity() {
2000 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(26);
2001 }
2002
2003 /**
2004 * <!-- begin-user-doc -->
2005 * <!-- end-user-doc -->
2006 * @generated
2007 */
2008 @Override
2009 public EReference getTax_Card_Income_Tax_Credit() {
2010 return (EReference)tax_CardEClass.getEStructuralFeatures().get(27);
2011 }
2012
2013 /**
2014 * <!-- begin-user-doc -->
2015 * <!-- end-user-doc -->
2016 * @generated
2017 */
2018 @Override
2019 public EReference getTax_Card_Previous() {
2020 return (EReference)tax_CardEClass.getEStructuralFeatures().get(28);
2021 }
2022
2023 /**
2024 * <!-- begin-user-doc -->
2025 * <!-- end-user-doc -->
2026 * @generated
2027 */
2028 @Override
2029 public EReference getTax_Card_Current_tax_card() {
2030 return (EReference)tax_CardEClass.getEStructuralFeatures().get(29);
2031 }
2032
2033 /**
2034 * <!-- begin-user-doc -->
2035 * <!-- end-user-doc -->
2036 * @generated
2037 */
2038 @Override
2039 public EAttribute getTax_Card_Credit_CIM_yearly() {
2040 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(30);
2041 }
2042
2043 /**
2044 * <!-- begin-user-doc -->
2045 * <!-- end-user-doc -->
2046 * @generated
2047 */
2048 @Override
2049 public EAttribute getTax_Card_Deduction_DS_Alimony_yearly() {
2050 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(31);
2051 }
2052
2053 /**
2054 * <!-- begin-user-doc -->
2055 * <!-- end-user-doc -->
2056 * @generated
2057 */
2058 @Override
2059 public EAttribute getTax_Card_Deduction_DS_Debt_yearly() {
2060 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(32);
2061 }
2062
2063 /**
2064 * <!-- begin-user-doc -->
2065 * <!-- end-user-doc -->
2066 * @generated
2067 */
2068 @Override
2069 public EReference getTax_Card_Income() {
2070 return (EReference)tax_CardEClass.getEStructuralFeatures().get(33);
2071 }
2072
2073 /**
2074 * <!-- begin-user-doc -->
2075 * <!-- end-user-doc -->
2076 * @generated
2077 */
2078 @Override
2079 public EClass getIncome_Tax_Credit() {
2080 return income_Tax_CreditEClass;
2081 }
2082
2083 /**
2084 * <!-- begin-user-doc -->
2085 * <!-- end-user-doc -->
2086 * @generated
2087 */
2088 @Override
2089 public EAttribute getIncome_Tax_Credit_GrantedBy() {
2090 return (EAttribute)income_Tax_CreditEClass.getEStructuralFeatures().get(0);
2091 }
2092
2093 /**
2094 * <!-- begin-user-doc -->
2095 * <!-- end-user-doc -->
2096 * @generated
2097 */
2098 @Override
2099 public EReference getIncome_Tax_Credit_TaxPayer() {
2100 return (EReference)income_Tax_CreditEClass.getEStructuralFeatures().get(1);
2101 }
2102
2103 /**
2104 * <!-- begin-user-doc -->
2105 * <!-- end-user-doc -->
2106 * @generated
2107 */
2108 @Override
2109 public EAttribute getIncome_Tax_Credit_Tax_year() {
2110 return (EAttribute)income_Tax_CreditEClass.getEStructuralFeatures().get(2);
2111 }
2112
2113 /**
2114 * <!-- begin-user-doc -->
2115 * <!-- end-user-doc -->
2116 * @generated
2117 */
2118 @Override
2119 public EAttribute getIncome_Tax_Credit_Yearly() {
2120 return (EAttribute)income_Tax_CreditEClass.getEStructuralFeatures().get(3);
2121 }
2122
2123 /**
2124 * <!-- begin-user-doc -->
2125 * <!-- end-user-doc -->
2126 * @generated
2127 */
2128 @Override
2129 public EAttribute getIncome_Tax_Credit_Monthly() {
2130 return (EAttribute)income_Tax_CreditEClass.getEStructuralFeatures().get(4);
2131 }
2132
2133 /**
2134 * <!-- begin-user-doc -->
2135 * <!-- end-user-doc -->
2136 * @generated
2137 */
2138 @Override
2139 public EAttribute getIncome_Tax_Credit_Daily() {
2140 return (EAttribute)income_Tax_CreditEClass.getEStructuralFeatures().get(5);
2141 }
2142
2143 /**
2144 * <!-- begin-user-doc -->
2145 * <!-- end-user-doc -->
2146 * @generated
2147 */
2148 @Override
2149 public EAttribute getIncome_Tax_Credit_Id7() {
2150 return (EAttribute)income_Tax_CreditEClass.getEStructuralFeatures().get(6);
2151 }
2152
2153 /**
2154 * <!-- begin-user-doc -->
2155 * <!-- end-user-doc -->
2156 * @generated
2157 */
2158 @Override
2159 public EReference getIncome_Tax_Credit_Taxation_Frame() {
2160 return (EReference)income_Tax_CreditEClass.getEStructuralFeatures().get(7);
2161 }
2162
2163 /**
2164 * <!-- begin-user-doc -->
2165 * <!-- end-user-doc -->
2166 * @generated
2167 */
2168 @Override
2169 public EClass getIncome_Detail() {
2170 return income_DetailEClass;
2171 }
2172
2173 /**
2174 * <!-- begin-user-doc -->
2175 * <!-- end-user-doc -->
2176 * @generated
2177 */
2178 @Override
2179 public EAttribute getIncome_Detail_Amount() {
2180 return (EAttribute)income_DetailEClass.getEStructuralFeatures().get(0);
2181 }
2182
2183 /**
2184 * <!-- begin-user-doc -->
2185 * <!-- end-user-doc -->
2186 * @generated
2187 */
2188 @Override
2189 public EAttribute getIncome_Detail_Is_worked() {
2190 return (EAttribute)income_DetailEClass.getEStructuralFeatures().get(1);
2191 }
2192
2193 /**
2194 * <!-- begin-user-doc -->
2195 * <!-- end-user-doc -->
2196 * @generated
2197 */
2198 @Override
2199 public EAttribute getIncome_Detail_Distance() {
2200 return (EAttribute)income_DetailEClass.getEStructuralFeatures().get(2);
2201 }
2202
2203 /**
2204 * <!-- begin-user-doc -->
2205 * <!-- end-user-doc -->
2206 * @generated
2207 */
2208 @Override
2209 public EAttribute getIncome_Detail_Worked_days() {
2210 return (EAttribute)income_DetailEClass.getEStructuralFeatures().get(3);
2211 }
2212
2213 /**
2214 * <!-- begin-user-doc -->
2215 * <!-- end-user-doc -->
2216 * @generated
2217 */
2218 @Override
2219 public EAttribute getIncome_Detail_Is_contributing_CNS() {
2220 return (EAttribute)income_DetailEClass.getEStructuralFeatures().get(4);
2221 }
2222
2223 /**
2224 * <!-- begin-user-doc -->
2225 * <!-- end-user-doc -->
2226 * @generated
2227 */
2228 @Override
2229 public EAttribute getIncome_Detail_Id5() {
2230 return (EAttribute)income_DetailEClass.getEStructuralFeatures().get(5);
2231 }
2232
2233 /**
2234 * <!-- begin-user-doc -->
2235 * <!-- end-user-doc -->
2236 * @generated
2237 */
2238 @Override
2239 public EReference getIncome_Detail_Income() {
2240 return (EReference)income_DetailEClass.getEStructuralFeatures().get(6);
2241 }
2242
2243 /**
2244 * <!-- begin-user-doc -->
2245 * <!-- end-user-doc -->
2246 * @generated
2247 */
2248 @Override
2249 public EClass getFromLaw() {
2250 return fromLawEClass;
2251 }
2252
2253 /**
2254 * <!-- begin-user-doc -->
2255 * <!-- end-user-doc -->
2256 * @generated
2257 */
2258 @Override
2259 public EAttribute getFromLaw_Id() {
2260 return (EAttribute)fromLawEClass.getEStructuralFeatures().get(0);
2261 }
2262
2263 /**
2264 * <!-- begin-user-doc -->
2265 * <!-- end-user-doc -->
2266 * @generated
2267 */
2268 @Override
2269 public EReference getFromLaw_TaxPayer() {
2270 return (EReference)fromLawEClass.getEStructuralFeatures().get(1);
2271 }
2272
2273 /**
2274 * <!-- begin-user-doc -->
2275 * <!-- end-user-doc -->
2276 * @generated
2277 */
2278 @Override
2279 public EClass getFiscal_Address() {
2280 return fiscal_AddressEClass;
2281 }
2282
2283 /**
2284 * <!-- begin-user-doc -->
2285 * <!-- end-user-doc -->
2286 * @generated
2287 */
2288 @Override
2289 public EClass getHabitual_Address() {
2290 return habitual_AddressEClass;
2291 }
2292
2293 /**
2294 * <!-- begin-user-doc -->
2295 * <!-- end-user-doc -->
2296 * @generated
2297 */
2298 @Override
2299 public EClass getMarriage_Record() {
2300 return marriage_RecordEClass;
2301 }
2302
2303 /**
2304 * <!-- begin-user-doc -->
2305 * <!-- end-user-doc -->
2306 * @generated
2307 */
2308 @Override
2309 public EClass getNon_Resident_Tax_Payer() {
2310 return non_Resident_Tax_PayerEClass;
2311 }
2312
2313 /**
2314 * <!-- begin-user-doc -->
2315 * <!-- end-user-doc -->
2316 * @generated
2317 */
2318 @Override
2319 public EAttribute getNon_Resident_Tax_Payer_Is_assimilated_to_resident() {
2320 return (EAttribute)non_Resident_Tax_PayerEClass.getEStructuralFeatures().get(0);
2321 }
2322
2323 /**
2324 * <!-- begin-user-doc -->
2325 * <!-- end-user-doc -->
2326 * @generated
2327 */
2328 @Override
2329 public EClass getPartnership_Record() {
2330 return partnership_RecordEClass;
2331 }
2332
2333 /**
2334 * <!-- begin-user-doc -->
2335 * <!-- end-user-doc -->
2336 * @generated
2337 */
2338 @Override
2339 public EClass getResident_Tax_Payer() {
2340 return resident_Tax_PayerEClass;
2341 }
2342
2343 /**
2344 * <!-- begin-user-doc -->
2345 * <!-- end-user-doc -->
2346 * @generated
2347 */
2348 @Override
2349 public EClass getTrade_and_Business_Income() {
2350 return trade_and_Business_IncomeEClass;
2351 }
2352
2353 /**
2354 * <!-- begin-user-doc -->
2355 * <!-- end-user-doc -->
2356 * @generated
2357 */
2358 @Override
2359 public EClass getAgriculture_and_Forestry_Income() {
2360 return agriculture_and_Forestry_IncomeEClass;
2361 }
2362
2363 /**
2364 * <!-- begin-user-doc -->
2365 * <!-- end-user-doc -->
2366 * @generated
2367 */
2368 @Override
2369 public EClass getPensions_and_Annuities_Income() {
2370 return pensions_and_Annuities_IncomeEClass;
2371 }
2372
2373 /**
2374 * <!-- begin-user-doc -->
2375 * <!-- end-user-doc -->
2376 * @generated
2377 */
2378 @Override
2379 public EAttribute getPensions_and_Annuities_Income_Occasional_payement() {
2380 return (EAttribute)pensions_and_Annuities_IncomeEClass.getEStructuralFeatures().get(0);
2381 }
2382
2383 /**
2384 * <!-- begin-user-doc -->
2385 * <!-- end-user-doc -->
2386 * @generated
2387 */
2388 @Override
2389 public EClass getCapital_and_Investments_Income() {
2390 return capital_and_Investments_IncomeEClass;
2391 }
2392
2393 /**
2394 * <!-- begin-user-doc -->
2395 * <!-- end-user-doc -->
2396 * @generated
2397 */
2398 @Override
2399 public EClass getEmployment_Income() {
2400 return employment_IncomeEClass;
2401 }
2402
2403 /**
2404 * <!-- begin-user-doc -->
2405 * <!-- end-user-doc -->
2406 * @generated
2407 */
2408 @Override
2409 public EClass getRentals_and_Leases_Income() {
2410 return rentals_and_Leases_IncomeEClass;
2411 }
2412
2413 /**
2414 * <!-- begin-user-doc -->
2415 * <!-- end-user-doc -->
2416 * @generated
2417 */
2418 @Override
2419 public EAttribute getRentals_and_Leases_Income_Is_periodic() {
2420 return (EAttribute)rentals_and_Leases_IncomeEClass.getEStructuralFeatures().get(0);
2421 }
2422
2423 /**
2424 * <!-- begin-user-doc -->
2425 * <!-- end-user-doc -->
2426 * @generated
2427 */
2428 @Override
2429 public EClass getForeign_Income() {
2430 return foreign_IncomeEClass;
2431 }
2432
2433 /**
2434 * <!-- begin-user-doc -->
2435 * <!-- end-user-doc -->
2436 * @generated
2437 */
2438 @Override
2439 public EClass getLocal_Income() {
2440 return local_IncomeEClass;
2441 }
2442
2443 /**
2444 * <!-- begin-user-doc -->
2445 * <!-- end-user-doc -->
2446 * @generated
2447 */
2448 @Override
2449 public EClass getCIM() {
2450 return cimEClass;
2451 }
2452
2453 /**
2454 * <!-- begin-user-doc -->
2455 * <!-- end-user-doc -->
2456 * @generated
2457 */
2458 @Override
2459 public EClass getCIP() {
2460 return cipEClass;
2461 }
2462
2463 /**
2464 * <!-- begin-user-doc -->
2465 * <!-- end-user-doc -->
2466 * @generated
2467 */
2468 @Override
2469 public EClass getCIS() {
2470 return cisEClass;
2471 }
2472
2473 /**
2474 * <!-- begin-user-doc -->
2475 * <!-- end-user-doc -->
2476 * @generated
2477 */
2478 @Override
2479 public EClass getPermanent_Expense() {
2480 return permanent_ExpenseEClass;
2481 }
2482
2483 /**
2484 * <!-- begin-user-doc -->
2485 * <!-- end-user-doc -->
2486 * @generated
2487 */
2488 @Override
2489 public EAttribute getPermanent_Expense_Category() {
2490 return (EAttribute)permanent_ExpenseEClass.getEStructuralFeatures().get(0);
2491 }
2492
2493 /**
2494 * <!-- begin-user-doc -->
2495 * <!-- end-user-doc -->
2496 * @generated
2497 */
2498 @Override
2499 public EClass getSpecial_Expense_DS() {
2500 return special_Expense_DSEClass;
2501 }
2502
2503 /**
2504 * <!-- begin-user-doc -->
2505 * <!-- end-user-doc -->
2506 * @generated
2507 */
2508 @Override
2509 public EClass getInterest_Expense() {
2510 return interest_ExpenseEClass;
2511 }
2512
2513 /**
2514 * <!-- begin-user-doc -->
2515 * <!-- end-user-doc -->
2516 * @generated
2517 */
2518 @Override
2519 public EClass getPrivate_Insurance_and_Plan() {
2520 return private_Insurance_and_PlanEClass;
2521 }
2522
2523 /**
2524 * <!-- begin-user-doc -->
2525 * <!-- end-user-doc -->
2526 * @generated
2527 */
2528 @Override
2529 public EAttribute getPrivate_Insurance_and_Plan_Category() {
2530 return (EAttribute)private_Insurance_and_PlanEClass.getEStructuralFeatures().get(0);
2531 }
2532
2533 /**
2534 * <!-- begin-user-doc -->
2535 * <!-- end-user-doc -->
2536 * @generated
2537 */
2538 @Override
2539 public EAttribute getPrivate_Insurance_and_Plan_Duration_of_contract() {
2540 return (EAttribute)private_Insurance_and_PlanEClass.getEStructuralFeatures().get(1);
2541 }
2542
2543 /**
2544 * <!-- begin-user-doc -->
2545 * <!-- end-user-doc -->
2546 * @generated
2547 */
2548 @Override
2549 public EClass getHealth_and_Pension_Insurance() {
2550 return health_and_Pension_InsuranceEClass;
2551 }
2552
2553 /**
2554 * <!-- begin-user-doc -->
2555 * <!-- end-user-doc -->
2556 * @generated
2557 */
2558 @Override
2559 public EAttribute getHealth_and_Pension_Insurance_Category() {
2560 return (EAttribute)health_and_Pension_InsuranceEClass.getEStructuralFeatures().get(0);
2561 }
2562
2563 /**
2564 * <!-- begin-user-doc -->
2565 * <!-- end-user-doc -->
2566 * @generated
2567 */
2568 @Override
2569 public EAttribute getHealth_and_Pension_Insurance_Is_related_to_additional_salary() {
2570 return (EAttribute)health_and_Pension_InsuranceEClass.getEStructuralFeatures().get(1);
2571 }
2572
2573 /**
2574 * <!-- begin-user-doc -->
2575 * <!-- end-user-doc -->
2576 * @generated
2577 */
2578 @Override
2579 public EClass getDonation() {
2580 return donationEClass;
2581 }
2582
2583 /**
2584 * <!-- begin-user-doc -->
2585 * <!-- end-user-doc -->
2586 * @generated
2587 */
2588 @Override
2589 public EAttribute getDonation_Beneficiary1() {
2590 return (EAttribute)donationEClass.getEStructuralFeatures().get(0);
2591 }
2592
2593 /**
2594 * <!-- begin-user-doc -->
2595 * <!-- end-user-doc -->
2596 * @generated
2597 */
2598 @Override
2599 public EAttribute getDonation_Is_donation_reported() {
2600 return (EAttribute)donationEClass.getEStructuralFeatures().get(1);
2601 }
2602
2603 /**
2604 * <!-- begin-user-doc -->
2605 * <!-- end-user-doc -->
2606 * @generated
2607 */
2608 @Override
2609 public EClass getLoss_Carryforward() {
2610 return loss_CarryforwardEClass;
2611 }
2612
2613 /**
2614 * <!-- begin-user-doc -->
2615 * <!-- end-user-doc -->
2616 * @generated
2617 */
2618 @Override
2619 public EClass getSpousal_Expense_AC() {
2620 return spousal_Expense_ACEClass;
2621 }
2622
2623 /**
2624 * <!-- begin-user-doc -->
2625 * <!-- end-user-doc -->
2626 * @generated
2627 */
2628 @Override
2629 public EClass getExtraordinary_Expense_CE() {
2630 return extraordinary_Expense_CEEClass;
2631 }
2632
2633 /**
2634 * <!-- begin-user-doc -->
2635 * <!-- end-user-doc -->
2636 * @generated
2637 */
2638 @Override
2639 public EAttribute getExtraordinary_Expense_CE_Thresholded_deduction_percentage() {
2640 return (EAttribute)extraordinary_Expense_CEEClass.getEStructuralFeatures().get(0);
2641 }
2642
2643 /**
2644 * <!-- begin-user-doc -->
2645 * <!-- end-user-doc -->
2646 * @generated
2647 */
2648 @Override
2649 public EAttribute getExtraordinary_Expense_CE_Ce_type() {
2650 return (EAttribute)extraordinary_Expense_CEEClass.getEStructuralFeatures().get(1);
2651 }
2652
2653 /**
2654 * <!-- begin-user-doc -->
2655 * <!-- end-user-doc -->
2656 * @generated
2657 */
2658 @Override
2659 public EClass getTravel_Expense_FD() {
2660 return travel_Expense_FDEClass;
2661 }
2662
2663 /**
2664 * <!-- begin-user-doc -->
2665 * <!-- end-user-doc -->
2666 * @generated
2667 */
2668 @Override
2669 public EClass getProfessional_Expense() {
2670 return professional_ExpenseEClass;
2671 }
2672
2673 /**
2674 * <!-- begin-user-doc -->
2675 * <!-- end-user-doc -->
2676 * @generated
2677 */
2678 @Override
2679 public EClass getMiscellaneous_Expense_FO() {
2680 return miscellaneous_Expense_FOEClass;
2681 }
2682
2683 /**
2684 * <!-- begin-user-doc -->
2685 * <!-- end-user-doc -->
2686 * @generated
2687 */
2688 @Override
2689 public EClass getResource() {
2690 return resourceEClass;
2691 }
2692
2693 /**
2694 * <!-- begin-user-doc -->
2695 * <!-- end-user-doc -->
2696 * @generated
2697 */
2698 @Override
2699 public EReference getResource_Contains() {
2700 return (EReference)resourceEClass.getEStructuralFeatures().get(0);
2701 }
2702
2703 /**
2704 * <!-- begin-user-doc -->
2705 * <!-- end-user-doc -->
2706 * @generated
2707 */
2708 @Override
2709 public EEnum getGrantor() {
2710 return grantorEEnum;
2711 }
2712
2713 /**
2714 * <!-- begin-user-doc -->
2715 * <!-- end-user-doc -->
2716 * @generated
2717 */
2718 @Override
2719 public EEnum getDisability_Types() {
2720 return disability_TypesEEnum;
2721 }
2722
2723 /**
2724 * <!-- begin-user-doc -->
2725 * <!-- end-user-doc -->
2726 * @generated
2727 */
2728 @Override
2729 public EEnum getCountry() {
2730 return countryEEnum;
2731 }
2732
2733 /**
2734 * <!-- begin-user-doc -->
2735 * <!-- end-user-doc -->
2736 * @generated
2737 */
2738 @Override
2739 public EEnum getTax_Office() {
2740 return tax_OfficeEEnum;
2741 }
2742
2743 /**
2744 * <!-- begin-user-doc -->
2745 * <!-- end-user-doc -->
2746 * @generated
2747 */
2748 @Override
2749 public EEnum getTax_Class_Category() {
2750 return tax_Class_CategoryEEnum;
2751 }
2752
2753 /**
2754 * <!-- begin-user-doc -->
2755 * <!-- end-user-doc -->
2756 * @generated
2757 */
2758 @Override
2759 public EEnum getJob_Activity() {
2760 return job_ActivityEEnum;
2761 }
2762
2763 /**
2764 * <!-- begin-user-doc -->
2765 * <!-- end-user-doc -->
2766 * @generated
2767 */
2768 @Override
2769 public EEnum getTown() {
2770 return townEEnum;
2771 }
2772
2773 /**
2774 * <!-- begin-user-doc -->
2775 * <!-- end-user-doc -->
2776 * @generated
2777 */
2778 @Override
2779 public EEnum getCE_Type() {
2780 return cE_TypeEEnum;
2781 }
2782
2783 /**
2784 * <!-- begin-user-doc -->
2785 * <!-- end-user-doc -->
2786 * @generated
2787 */
2788 @Override
2789 public EEnum getExpense_Purpose() {
2790 return expense_PurposeEEnum;
2791 }
2792
2793 /**
2794 * <!-- begin-user-doc -->
2795 * <!-- end-user-doc -->
2796 * @generated
2797 */
2798 @Override
2799 public EEnum getDependent_Type() {
2800 return dependent_TypeEEnum;
2801 }
2802
2803 /**
2804 * <!-- begin-user-doc -->
2805 * <!-- end-user-doc -->
2806 * @generated
2807 */
2808 @Override
2809 public EEnum getSeparation_Causes() {
2810 return separation_CausesEEnum;
2811 }
2812
2813 /**
2814 * <!-- begin-user-doc -->
2815 * <!-- end-user-doc -->
2816 * @generated
2817 */
2818 @Override
2819 public EEnum getCategory_of_Permanent_Expense() {
2820 return category_of_Permanent_ExpenseEEnum;
2821 }
2822
2823 /**
2824 * <!-- begin-user-doc -->
2825 * <!-- end-user-doc -->
2826 * @generated
2827 */
2828 @Override
2829 public EEnum getCategory_of_Health_and_Pension_Insurances() {
2830 return category_of_Health_and_Pension_InsurancesEEnum;
2831 }
2832
2833 /**
2834 * <!-- begin-user-doc -->
2835 * <!-- end-user-doc -->
2836 * @generated
2837 */
2838 @Override
2839 public EEnum getCategory_of_Private_Insurance_and_Plan() {
2840 return category_of_Private_Insurance_and_PlanEEnum;
2841 }
2842
2843 /**
2844 * <!-- begin-user-doc -->
2845 * <!-- end-user-doc -->
2846 * @generated
2847 */
2848 @Override
2849 public EEnum getLegal_Union_Types() {
2850 return legal_Union_TypesEEnum;
2851 }
2852
2853 /**
2854 * <!-- begin-user-doc -->
2855 * <!-- end-user-doc -->
2856 * @generated
2857 */
2858 @Override
2859 public TaxationWithRootFactory getTaxationWithRootFactory() {
2860 return (TaxationWithRootFactory)getEFactoryInstance();
2861 }
2862
2863 /**
2864 * <!-- begin-user-doc -->
2865 * <!-- end-user-doc -->
2866 * @generated
2867 */
2868 private boolean isCreated = false;
2869
2870 /**
2871 * Creates the meta-model objects for the package. This method is
2872 * guarded to have no affect on any invocation but its first.
2873 * <!-- begin-user-doc -->
2874 * <!-- end-user-doc -->
2875 * @generated
2876 */
2877 public void createPackageContents() {
2878 if (isCreated) return;
2879 isCreated = true;
2880
2881 // Create classes and their features
2882 constantsEClass = createEClass(CONSTANTS);
2883 createEAttribute(constantsEClass, CONSTANTS__MAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD);
2884 createEAttribute(constantsEClass, CONSTANTS__MAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE);
2885 createEAttribute(constantsEClass, CONSTANTS__MINIMUM_SALARY);
2886 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION);
2887 createEAttribute(constantsEClass, CONSTANTS__MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS);
2888 createEAttribute(constantsEClass, CONSTANTS__MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS);
2889 createEAttribute(constantsEClass, CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC);
2890 createEAttribute(constantsEClass, CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE);
2891 createEAttribute(constantsEClass, CONSTANTS__MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION);
2892 createEAttribute(constantsEClass, CONSTANTS__MAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION);
2893 createEAttribute(constantsEClass, CONSTANTS__MINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION);
2894 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_CIM_DAILY);
2895 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_CIM_MONTHLY);
2896 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_CIM_YEARLY);
2897 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_CIP_DAILY);
2898 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_CIP_MONTHLY);
2899 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_CIP_YEARLY);
2900 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_CIS_DAILY);
2901 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_CIS_MONTHLY);
2902 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_CIS_YEARLY);
2903 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT);
2904 createEAttribute(constantsEClass, CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS);
2905 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE);
2906 createEAttribute(constantsEClass, CONSTANTS__DISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE);
2907 createEAttribute(constantsEClass, CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE);
2908
2909 income_TaxEClass = createEClass(INCOME_TAX);
2910 createEReference(income_TaxEClass, INCOME_TAX__TAX_PAYER);
2911 createEAttribute(income_TaxEClass, INCOME_TAX__TAX_AMOUNT);
2912 createEAttribute(income_TaxEClass, INCOME_TAX__TAX_YEAR);
2913 createEAttribute(income_TaxEClass, INCOME_TAX__ID6);
2914
2915 tax_PayerEClass = createEClass(TAX_PAYER);
2916 createEReference(tax_PayerEClass, TAX_PAYER__DEPENDENTS);
2917 createEReference(tax_PayerEClass, TAX_PAYER__FROM_AGENT);
2918 createEReference(tax_PayerEClass, TAX_PAYER__INCOMES);
2919 createEReference(tax_PayerEClass, TAX_PAYER__FROM_LAW);
2920
2921 physical_PersonEClass = createEClass(PHYSICAL_PERSON);
2922 createEAttribute(physical_PersonEClass, PHYSICAL_PERSON__SS_NO);
2923 createEReference(physical_PersonEClass, PHYSICAL_PERSON__ADDRESSES);
2924 createEAttribute(physical_PersonEClass, PHYSICAL_PERSON__BIRTH_YEAR);
2925 createEAttribute(physical_PersonEClass, PHYSICAL_PERSON__DISABILITY_PERCENTAGE);
2926 createEAttribute(physical_PersonEClass, PHYSICAL_PERSON__DISABILITY_TYPE);
2927 createEAttribute(physical_PersonEClass, PHYSICAL_PERSON__BIRTH_MONTH);
2928 createEAttribute(physical_PersonEClass, PHYSICAL_PERSON__BIRTH_DAY);
2929 createEReference(physical_PersonEClass, PHYSICAL_PERSON__EXPENSES);
2930 createEAttribute(physical_PersonEClass, PHYSICAL_PERSON__IS_WIDOWER);
2931
2932 addressEClass = createEClass(ADDRESS);
2933 createEAttribute(addressEClass, ADDRESS__COUNTRY);
2934 createEAttribute(addressEClass, ADDRESS__STREET);
2935 createEAttribute(addressEClass, ADDRESS__ZIP_CODE);
2936 createEAttribute(addressEClass, ADDRESS__CITY);
2937 createEAttribute(addressEClass, ADDRESS__ID2);
2938 createEReference(addressEClass, ADDRESS__TAX_PAYER);
2939
2940 expenseEClass = createEClass(EXPENSE);
2941 createEAttribute(expenseEClass, EXPENSE__DECLARED_AMOUNT);
2942 createEAttribute(expenseEClass, EXPENSE__EXPENSE_PURPOSE);
2943 createEReference(expenseEClass, EXPENSE__DEPENDENT);
2944 createEReference(expenseEClass, EXPENSE__FROM_AGENT);
2945 createEReference(expenseEClass, EXPENSE__INCOME);
2946 createEAttribute(expenseEClass, EXPENSE__ID4);
2947 createEReference(expenseEClass, EXPENSE__BENEFICIARY);
2948
2949 dependentEClass = createEClass(DEPENDENT);
2950 createEAttribute(dependentEClass, DEPENDENT__DEPENDENT_TYPE);
2951 createEReference(dependentEClass, DEPENDENT__RESPONSIBLE_PERSON);
2952 createEAttribute(dependentEClass, DEPENDENT__CONTINUED_STUDIES);
2953 createEReference(dependentEClass, DEPENDENT__ALLOWANCES);
2954 createEReference(dependentEClass, DEPENDENT__HOUSEHOLD);
2955 createEReference(dependentEClass, DEPENDENT__FROM_AGENT);
2956 createEReference(dependentEClass, DEPENDENT__EXPENSE);
2957
2958 external_AllowanceEClass = createEClass(EXTERNAL_ALLOWANCE);
2959 createEAttribute(external_AllowanceEClass, EXTERNAL_ALLOWANCE__GRANTOR);
2960 createEAttribute(external_AllowanceEClass, EXTERNAL_ALLOWANCE__STARTING_YEAR);
2961 createEAttribute(external_AllowanceEClass, EXTERNAL_ALLOWANCE__ENDING_YEAR);
2962 createEReference(external_AllowanceEClass, EXTERNAL_ALLOWANCE__RECIVER);
2963 createEAttribute(external_AllowanceEClass, EXTERNAL_ALLOWANCE__ID5);
2964 createEReference(external_AllowanceEClass, EXTERNAL_ALLOWANCE__PERSON);
2965
2966 householdEClass = createEClass(HOUSEHOLD);
2967 createEReference(householdEClass, HOUSEHOLD__PARENTS);
2968 createEAttribute(householdEClass, HOUSEHOLD__ID1);
2969 createEReference(householdEClass, HOUSEHOLD__CHILDREN);
2970
2971 legal_Union_RecordEClass = createEClass(LEGAL_UNION_RECORD);
2972 createEAttribute(legal_Union_RecordEClass, LEGAL_UNION_RECORD__START_YEAR);
2973 createEAttribute(legal_Union_RecordEClass, LEGAL_UNION_RECORD__END_YEAR);
2974 createEAttribute(legal_Union_RecordEClass, LEGAL_UNION_RECORD__SEPARATION_CAUSE);
2975 createEReference(legal_Union_RecordEClass, LEGAL_UNION_RECORD__INDIVIDUAL_A);
2976 createEReference(legal_Union_RecordEClass, LEGAL_UNION_RECORD__INDIVIDUAL_B);
2977 createEReference(legal_Union_RecordEClass, LEGAL_UNION_RECORD__PROPERTIES);
2978 createEAttribute(legal_Union_RecordEClass, LEGAL_UNION_RECORD__MUTUAL_AGREEMENT);
2979 createEAttribute(legal_Union_RecordEClass, LEGAL_UNION_RECORD__ID9);
2980 createEReference(legal_Union_RecordEClass, LEGAL_UNION_RECORD__HOUSEHOLD);
2981
2982 tax_PropertyEClass = createEClass(TAX_PROPERTY);
2983 createEAttribute(tax_PropertyEClass, TAX_PROPERTY__STARTING_YEAR);
2984 createEAttribute(tax_PropertyEClass, TAX_PROPERTY__ID10);
2985 createEReference(tax_PropertyEClass, TAX_PROPERTY__UNION_RECORD);
2986
2987 tax_CaseEClass = createEClass(TAX_CASE);
2988
2989 fromAgentEClass = createEClass(FROM_AGENT);
2990 createEReference(fromAgentEClass, FROM_AGENT__TAX_PAYER);
2991 createEAttribute(fromAgentEClass, FROM_AGENT__IS_DEPENDENT_ELIGIBLE_FOR_CE_NOT_IN_HOUSHOLD_CHILDREN_CARE);
2992 createEReference(fromAgentEClass, FROM_AGENT__EXPENSE);
2993 createEAttribute(fromAgentEClass, FROM_AGENT__IS_ELIGIBLE_DEBT);
2994 createEReference(fromAgentEClass, FROM_AGENT__DEPENDENT);
2995
2996 incomeEClass = createEClass(INCOME);
2997 createEAttribute(incomeEClass, INCOME__INCOME_AMOUNT);
2998 createEReference(incomeEClass, INCOME__INCOME_TYPE);
2999 createEReference(incomeEClass, INCOME__TAX_CARD);
3000 createEAttribute(incomeEClass, INCOME__TAX_LIABILITY);
3001 createEReference(incomeEClass, INCOME__TAX_PAYER);
3002 createEReference(incomeEClass, INCOME__DETAILS);
3003 createEAttribute(incomeEClass, INCOME__NUM);
3004 createEReference(incomeEClass, INCOME__EXPENSES);
3005
3006 income_TypeEClass = createEClass(INCOME_TYPE);
3007 createEAttribute(income_TypeEClass, INCOME_TYPE__ID8);
3008 createEReference(income_TypeEClass, INCOME_TYPE__INCOME);
3009
3010 tax_CardEClass = createEClass(TAX_CARD);
3011 createEAttribute(tax_CardEClass, TAX_CARD__CARD_IDENTIFIER);
3012 createEAttribute(tax_CardEClass, TAX_CARD__TAX_OFFICE);
3013 createEAttribute(tax_CardEClass, TAX_CARD__PERCENTAGE_OF_WITHOLDING);
3014 createEAttribute(tax_CardEClass, TAX_CARD__TAX_PAYERS_NAME_SURNAME);
3015 createEAttribute(tax_CardEClass, TAX_CARD__TAX_PAYERS_PARTNER_NAME_SURNAME);
3016 createEReference(tax_CardEClass, TAX_CARD__TAX_PAYERS_ADDRESS);
3017 createEAttribute(tax_CardEClass, TAX_CARD__JOBS_EMPLOYER_SS_NO);
3018 createEAttribute(tax_CardEClass, TAX_CARD__JOBS_EMPLOYERS_NAME);
3019 createEAttribute(tax_CardEClass, TAX_CARD__JOBS_ACTIVITY_TYPE);
3020 createEAttribute(tax_CardEClass, TAX_CARD__JOBS_PLACE_OF_WORK);
3021 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_FD_DAILY);
3022 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_FD_MONTHLY);
3023 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_AC_DAILY);
3024 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_AC_MONTHLY);
3025 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_AC_YEARLY);
3026 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_CE_DAILY);
3027 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_CE_MONTHLY);
3028 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_CE_YEARLY);
3029 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_DS_DAILY);
3030 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_DS_MONTHLY);
3031 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_FO_DAILY);
3032 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_FO_MONTHLY);
3033 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_FO_YEARLY);
3034 createEAttribute(tax_CardEClass, TAX_CARD__CREDIT_CIS_DAILY);
3035 createEAttribute(tax_CardEClass, TAX_CARD__CREDIT_CIS_MONTHLY);
3036 createEAttribute(tax_CardEClass, TAX_CARD__CREDIT_CIM_DAILY);
3037 createEAttribute(tax_CardEClass, TAX_CARD__VALIDITY);
3038 createEReference(tax_CardEClass, TAX_CARD__INCOME_TAX_CREDIT);
3039 createEReference(tax_CardEClass, TAX_CARD__PREVIOUS);
3040 createEReference(tax_CardEClass, TAX_CARD__CURRENT_TAX_CARD);
3041 createEAttribute(tax_CardEClass, TAX_CARD__CREDIT_CIM_YEARLY);
3042 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_DS_ALIMONY_YEARLY);
3043 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_DS_DEBT_YEARLY);
3044 createEReference(tax_CardEClass, TAX_CARD__INCOME);
3045
3046 income_Tax_CreditEClass = createEClass(INCOME_TAX_CREDIT);
3047 createEAttribute(income_Tax_CreditEClass, INCOME_TAX_CREDIT__GRANTED_BY);
3048 createEReference(income_Tax_CreditEClass, INCOME_TAX_CREDIT__TAX_PAYER);
3049 createEAttribute(income_Tax_CreditEClass, INCOME_TAX_CREDIT__TAX_YEAR);
3050 createEAttribute(income_Tax_CreditEClass, INCOME_TAX_CREDIT__YEARLY);
3051 createEAttribute(income_Tax_CreditEClass, INCOME_TAX_CREDIT__MONTHLY);
3052 createEAttribute(income_Tax_CreditEClass, INCOME_TAX_CREDIT__DAILY);
3053 createEAttribute(income_Tax_CreditEClass, INCOME_TAX_CREDIT__ID7);
3054 createEReference(income_Tax_CreditEClass, INCOME_TAX_CREDIT__TAXATION_FRAME);
3055
3056 income_DetailEClass = createEClass(INCOME_DETAIL);
3057 createEAttribute(income_DetailEClass, INCOME_DETAIL__AMOUNT);
3058 createEAttribute(income_DetailEClass, INCOME_DETAIL__IS_WORKED);
3059 createEAttribute(income_DetailEClass, INCOME_DETAIL__DISTANCE);
3060 createEAttribute(income_DetailEClass, INCOME_DETAIL__WORKED_DAYS);
3061 createEAttribute(income_DetailEClass, INCOME_DETAIL__IS_CONTRIBUTING_CNS);
3062 createEAttribute(income_DetailEClass, INCOME_DETAIL__ID5);
3063 createEReference(income_DetailEClass, INCOME_DETAIL__INCOME);
3064
3065 fromLawEClass = createEClass(FROM_LAW);
3066 createEAttribute(fromLawEClass, FROM_LAW__ID);
3067 createEReference(fromLawEClass, FROM_LAW__TAX_PAYER);
3068
3069 fiscal_AddressEClass = createEClass(FISCAL_ADDRESS);
3070
3071 habitual_AddressEClass = createEClass(HABITUAL_ADDRESS);
3072
3073 marriage_RecordEClass = createEClass(MARRIAGE_RECORD);
3074
3075 non_Resident_Tax_PayerEClass = createEClass(NON_RESIDENT_TAX_PAYER);
3076 createEAttribute(non_Resident_Tax_PayerEClass, NON_RESIDENT_TAX_PAYER__IS_ASSIMILATED_TO_RESIDENT);
3077
3078 partnership_RecordEClass = createEClass(PARTNERSHIP_RECORD);
3079
3080 resident_Tax_PayerEClass = createEClass(RESIDENT_TAX_PAYER);
3081
3082 trade_and_Business_IncomeEClass = createEClass(TRADE_AND_BUSINESS_INCOME);
3083
3084 agriculture_and_Forestry_IncomeEClass = createEClass(AGRICULTURE_AND_FORESTRY_INCOME);
3085
3086 pensions_and_Annuities_IncomeEClass = createEClass(PENSIONS_AND_ANNUITIES_INCOME);
3087 createEAttribute(pensions_and_Annuities_IncomeEClass, PENSIONS_AND_ANNUITIES_INCOME__OCCASIONAL_PAYEMENT);
3088
3089 capital_and_Investments_IncomeEClass = createEClass(CAPITAL_AND_INVESTMENTS_INCOME);
3090
3091 employment_IncomeEClass = createEClass(EMPLOYMENT_INCOME);
3092
3093 rentals_and_Leases_IncomeEClass = createEClass(RENTALS_AND_LEASES_INCOME);
3094 createEAttribute(rentals_and_Leases_IncomeEClass, RENTALS_AND_LEASES_INCOME__IS_PERIODIC);
3095
3096 foreign_IncomeEClass = createEClass(FOREIGN_INCOME);
3097
3098 local_IncomeEClass = createEClass(LOCAL_INCOME);
3099
3100 cimEClass = createEClass(CIM);
3101
3102 cipEClass = createEClass(CIP);
3103
3104 cisEClass = createEClass(CIS);
3105
3106 permanent_ExpenseEClass = createEClass(PERMANENT_EXPENSE);
3107 createEAttribute(permanent_ExpenseEClass, PERMANENT_EXPENSE__CATEGORY);
3108
3109 special_Expense_DSEClass = createEClass(SPECIAL_EXPENSE_DS);
3110
3111 interest_ExpenseEClass = createEClass(INTEREST_EXPENSE);
3112
3113 private_Insurance_and_PlanEClass = createEClass(PRIVATE_INSURANCE_AND_PLAN);
3114 createEAttribute(private_Insurance_and_PlanEClass, PRIVATE_INSURANCE_AND_PLAN__CATEGORY);
3115 createEAttribute(private_Insurance_and_PlanEClass, PRIVATE_INSURANCE_AND_PLAN__DURATION_OF_CONTRACT);
3116
3117 health_and_Pension_InsuranceEClass = createEClass(HEALTH_AND_PENSION_INSURANCE);
3118 createEAttribute(health_and_Pension_InsuranceEClass, HEALTH_AND_PENSION_INSURANCE__CATEGORY);
3119 createEAttribute(health_and_Pension_InsuranceEClass, HEALTH_AND_PENSION_INSURANCE__IS_RELATED_TO_ADDITIONAL_SALARY);
3120
3121 donationEClass = createEClass(DONATION);
3122 createEAttribute(donationEClass, DONATION__BENEFICIARY1);
3123 createEAttribute(donationEClass, DONATION__IS_DONATION_REPORTED);
3124
3125 loss_CarryforwardEClass = createEClass(LOSS_CARRYFORWARD);
3126
3127 spousal_Expense_ACEClass = createEClass(SPOUSAL_EXPENSE_AC);
3128
3129 extraordinary_Expense_CEEClass = createEClass(EXTRAORDINARY_EXPENSE_CE);
3130 createEAttribute(extraordinary_Expense_CEEClass, EXTRAORDINARY_EXPENSE_CE__THRESHOLDED_DEDUCTION_PERCENTAGE);
3131 createEAttribute(extraordinary_Expense_CEEClass, EXTRAORDINARY_EXPENSE_CE__CE_TYPE);
3132
3133 travel_Expense_FDEClass = createEClass(TRAVEL_EXPENSE_FD);
3134
3135 professional_ExpenseEClass = createEClass(PROFESSIONAL_EXPENSE);
3136
3137 miscellaneous_Expense_FOEClass = createEClass(MISCELLANEOUS_EXPENSE_FO);
3138
3139 resourceEClass = createEClass(RESOURCE);
3140 createEReference(resourceEClass, RESOURCE__CONTAINS);
3141
3142 // Create enums
3143 grantorEEnum = createEEnum(GRANTOR);
3144 disability_TypesEEnum = createEEnum(DISABILITY_TYPES);
3145 countryEEnum = createEEnum(COUNTRY);
3146 tax_OfficeEEnum = createEEnum(TAX_OFFICE);
3147 tax_Class_CategoryEEnum = createEEnum(TAX_CLASS_CATEGORY);
3148 job_ActivityEEnum = createEEnum(JOB_ACTIVITY);
3149 townEEnum = createEEnum(TOWN);
3150 cE_TypeEEnum = createEEnum(CE_TYPE);
3151 expense_PurposeEEnum = createEEnum(EXPENSE_PURPOSE);
3152 dependent_TypeEEnum = createEEnum(DEPENDENT_TYPE);
3153 separation_CausesEEnum = createEEnum(SEPARATION_CAUSES);
3154 category_of_Permanent_ExpenseEEnum = createEEnum(CATEGORY_OF_PERMANENT_EXPENSE);
3155 category_of_Health_and_Pension_InsurancesEEnum = createEEnum(CATEGORY_OF_HEALTH_AND_PENSION_INSURANCES);
3156 category_of_Private_Insurance_and_PlanEEnum = createEEnum(CATEGORY_OF_PRIVATE_INSURANCE_AND_PLAN);
3157 legal_Union_TypesEEnum = createEEnum(LEGAL_UNION_TYPES);
3158 }
3159
3160 /**
3161 * <!-- begin-user-doc -->
3162 * <!-- end-user-doc -->
3163 * @generated
3164 */
3165 private boolean isInitialized = false;
3166
3167 /**
3168 * Complete the initialization of the package and its meta-model. This
3169 * method is guarded to have no affect on any invocation but its first.
3170 * <!-- begin-user-doc -->
3171 * <!-- end-user-doc -->
3172 * @generated
3173 */
3174 public void initializePackageContents() {
3175 if (isInitialized) return;
3176 isInitialized = true;
3177
3178 // Initialize package
3179 setName(eNAME);
3180 setNsPrefix(eNS_PREFIX);
3181 setNsURI(eNS_URI);
3182
3183 // Create type parameters
3184
3185 // Set bounds for type parameters
3186
3187 // Add supertypes to classes
3188 tax_PayerEClass.getESuperTypes().add(this.getPhysical_Person());
3189 tax_PayerEClass.getESuperTypes().add(this.getTax_Case());
3190 dependentEClass.getESuperTypes().add(this.getPhysical_Person());
3191 householdEClass.getESuperTypes().add(this.getTax_Case());
3192 fiscal_AddressEClass.getESuperTypes().add(this.getAddress());
3193 habitual_AddressEClass.getESuperTypes().add(this.getAddress());
3194 marriage_RecordEClass.getESuperTypes().add(this.getLegal_Union_Record());
3195 non_Resident_Tax_PayerEClass.getESuperTypes().add(this.getTax_Payer());
3196 partnership_RecordEClass.getESuperTypes().add(this.getLegal_Union_Record());
3197 resident_Tax_PayerEClass.getESuperTypes().add(this.getTax_Payer());
3198 trade_and_Business_IncomeEClass.getESuperTypes().add(this.getIncome_Type());
3199 agriculture_and_Forestry_IncomeEClass.getESuperTypes().add(this.getIncome_Type());
3200 pensions_and_Annuities_IncomeEClass.getESuperTypes().add(this.getIncome_Type());
3201 capital_and_Investments_IncomeEClass.getESuperTypes().add(this.getIncome_Type());
3202 employment_IncomeEClass.getESuperTypes().add(this.getIncome_Type());
3203 rentals_and_Leases_IncomeEClass.getESuperTypes().add(this.getIncome_Type());
3204 foreign_IncomeEClass.getESuperTypes().add(this.getIncome());
3205 local_IncomeEClass.getESuperTypes().add(this.getIncome());
3206 cimEClass.getESuperTypes().add(this.getIncome_Tax_Credit());
3207 cipEClass.getESuperTypes().add(this.getIncome_Tax_Credit());
3208 cisEClass.getESuperTypes().add(this.getIncome_Tax_Credit());
3209 permanent_ExpenseEClass.getESuperTypes().add(this.getSpecial_Expense_DS());
3210 special_Expense_DSEClass.getESuperTypes().add(this.getExpense());
3211 interest_ExpenseEClass.getESuperTypes().add(this.getSpecial_Expense_DS());
3212 private_Insurance_and_PlanEClass.getESuperTypes().add(this.getSpecial_Expense_DS());
3213 health_and_Pension_InsuranceEClass.getESuperTypes().add(this.getSpecial_Expense_DS());
3214 donationEClass.getESuperTypes().add(this.getSpecial_Expense_DS());
3215 loss_CarryforwardEClass.getESuperTypes().add(this.getSpecial_Expense_DS());
3216 spousal_Expense_ACEClass.getESuperTypes().add(this.getExpense());
3217 extraordinary_Expense_CEEClass.getESuperTypes().add(this.getExpense());
3218 travel_Expense_FDEClass.getESuperTypes().add(this.getProfessional_Expense());
3219 professional_ExpenseEClass.getESuperTypes().add(this.getExpense());
3220 miscellaneous_Expense_FOEClass.getESuperTypes().add(this.getProfessional_Expense());
3221
3222 // Initialize classes, features, and operations; add parameters
3223 initEClass(constantsEClass, Constants.class, "Constants", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3224 initEAttribute(getConstants_MAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD(), ecorePackage.getEDouble(), "MAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD", "3480.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3225 initEAttribute(getConstants_MAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE(), ecorePackage.getEDouble(), "MAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE", "3600.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3226 initEAttribute(getConstants_MINIMUM_SALARY(), ecorePackage.getEDouble(), "MINIMUM_SALARY", "1500.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3227 initEAttribute(getConstants_FLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION(), ecorePackage.getEDouble(), "FLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION", "4500.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3228 initEAttribute(getConstants_MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS(), ecorePackage.getEDouble(), "MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS", "20.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3229 initEAttribute(getConstants_MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS(), ecorePackage.getEDouble(), "MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS", "120.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3230 initEAttribute(getConstants_MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC(), ecorePackage.getEDouble(), "MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC", "0.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3231 initEAttribute(getConstants_MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE(), ecorePackage.getEDouble(), "MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE", "24000.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3232 initEAttribute(getConstants_MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION(), ecorePackage.getEDouble(), "MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION", "99.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3233 initEAttribute(getConstants_MAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION(), ecorePackage.getEDouble(), "MAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION", "30.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3234 initEAttribute(getConstants_MINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION(), ecorePackage.getEDouble(), "MINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION", "4.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3235 initEAttribute(getConstants_FLAT_RATE_CIM_DAILY(), ecorePackage.getEDouble(), "FLAT_RATE_CIM_DAILY", "2.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3236 initEAttribute(getConstants_FLAT_RATE_CIM_MONTHLY(), ecorePackage.getEDouble(), "FLAT_RATE_CIM_MONTHLY", "62.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3237 initEAttribute(getConstants_FLAT_RATE_CIM_YEARLY(), ecorePackage.getEDouble(), "FLAT_RATE_CIM_YEARLY", "750.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3238 initEAttribute(getConstants_FLAT_RATE_CIP_DAILY(), ecorePackage.getEDouble(), "FLAT_RATE_CIP_DAILY", "1.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3239 initEAttribute(getConstants_FLAT_RATE_CIP_MONTHLY(), ecorePackage.getEDouble(), "FLAT_RATE_CIP_MONTHLY", "25.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3240 initEAttribute(getConstants_FLAT_RATE_CIP_YEARLY(), ecorePackage.getEDouble(), "FLAT_RATE_CIP_YEARLY", "30.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3241 initEAttribute(getConstants_FLAT_RATE_CIS_DAILY(), ecorePackage.getEDouble(), "FLAT_RATE_CIS_DAILY", "1.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3242 initEAttribute(getConstants_FLAT_RATE_CIS_MONTHLY(), ecorePackage.getEDouble(), "FLAT_RATE_CIS_MONTHLY", "25.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3243 initEAttribute(getConstants_FLAT_RATE_CIS_YEARLY(), ecorePackage.getEDouble(), "FLAT_RATE_CIS_YEARLY", "300.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3244 initEAttribute(getConstants_FLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT(), ecorePackage.getEDouble(), "FLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT", "99.0", 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3245 initEAttribute(getConstants_MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS(), ecorePackage.getEDouble(), "MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS", null, 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3246 initEAttribute(getConstants_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE(), ecorePackage.getEDouble(), "FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE", null, 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3247 initEAttribute(getConstants_DISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE(), ecorePackage.getEDouble(), "DISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE", null, 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3248 initEAttribute(getConstants_MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE(), ecorePackage.getEDouble(), "MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE", null, 1, 1, Constants.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3249
3250 initEClass(income_TaxEClass, Income_Tax.class, "Income_Tax", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3251 initEReference(getIncome_Tax_TaxPayer(), this.getTax_Payer(), null, "taxPayer", null, 1, 1, Income_Tax.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3252 initEAttribute(getIncome_Tax_Tax_amount(), ecorePackage.getEDouble(), "tax_amount", null, 1, 1, Income_Tax.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3253 initEAttribute(getIncome_Tax_Tax_year(), ecorePackage.getEInt(), "tax_year", null, 1, 1, Income_Tax.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3254 initEAttribute(getIncome_Tax_Id6(), ecorePackage.getEString(), "id6", null, 1, 1, Income_Tax.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3255
3256 initEClass(tax_PayerEClass, Tax_Payer.class, "Tax_Payer", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3257 initEReference(getTax_Payer_Dependents(), this.getDependent(), this.getDependent_Responsible_person(), "dependents", null, 0, 6, Tax_Payer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3258 initEReference(getTax_Payer_From_agent(), this.getFromAgent(), this.getFromAgent_TaxPayer(), "from_agent", null, 1, 1, Tax_Payer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3259 initEReference(getTax_Payer_Incomes(), this.getIncome(), this.getIncome_TaxPayer(), "incomes", null, 1, -1, Tax_Payer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3260 initEReference(getTax_Payer_From_law(), this.getFromLaw(), this.getFromLaw_TaxPayer(), "from_law", null, 1, 1, Tax_Payer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3261
3262 initEClass(physical_PersonEClass, Physical_Person.class, "Physical_Person", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3263 initEAttribute(getPhysical_Person_SSNo(), ecorePackage.getEString(), "SSNo", null, 1, 1, Physical_Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3264 initEReference(getPhysical_Person_Addresses(), this.getAddress(), this.getAddress_TaxPayer(), "addresses", null, 0, -1, Physical_Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3265 initEAttribute(getPhysical_Person_Birth_year(), ecorePackage.getEInt(), "birth_year", null, 1, 1, Physical_Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3266 initEAttribute(getPhysical_Person_Disability_percentage(), ecorePackage.getEDouble(), "disability_percentage", null, 1, 1, Physical_Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3267 initEAttribute(getPhysical_Person_Disability_type(), this.getDisability_Types(), "disability_type", null, 1, 1, Physical_Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3268 initEAttribute(getPhysical_Person_Birth_month(), ecorePackage.getEInt(), "birth_month", null, 1, 1, Physical_Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3269 initEAttribute(getPhysical_Person_Birth_day(), ecorePackage.getEInt(), "birth_day", null, 1, 1, Physical_Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3270 initEReference(getPhysical_Person_Expenses(), this.getExpense(), this.getExpense_Beneficiary(), "expenses", null, 0, -1, Physical_Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3271 initEAttribute(getPhysical_Person_Is_widower(), ecorePackage.getEBoolean(), "is_widower", null, 1, 1, Physical_Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3272
3273 initEClass(addressEClass, Address.class, "Address", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3274 initEAttribute(getAddress_Country(), this.getCountry(), "country", "ZZ", 1, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3275 initEAttribute(getAddress_Street(), ecorePackage.getEString(), "street", null, 1, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3276 initEAttribute(getAddress_ZipCode(), ecorePackage.getEString(), "zipCode", null, 1, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3277 initEAttribute(getAddress_City(), ecorePackage.getEString(), "city", null, 1, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3278 initEAttribute(getAddress_Id2(), ecorePackage.getEString(), "id2", null, 1, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3279 initEReference(getAddress_TaxPayer(), this.getPhysical_Person(), this.getPhysical_Person_Addresses(), "taxPayer", null, 0, -1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3280
3281 initEClass(expenseEClass, Expense.class, "Expense", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3282 initEAttribute(getExpense_Declared_amount(), ecorePackage.getEDouble(), "declared_amount", null, 1, 1, Expense.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3283 initEAttribute(getExpense_Expense_purpose(), this.getExpense_Purpose(), "expense_purpose", "OTHER", 1, 1, Expense.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3284 initEReference(getExpense_Dependent(), this.getDependent(), this.getDependent_Expense(), "dependent", null, 0, 1, Expense.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3285 initEReference(getExpense_From_agent(), this.getFromAgent(), this.getFromAgent_Expense(), "from_agent", null, 0, 1, Expense.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3286 initEReference(getExpense_Income(), this.getIncome(), this.getIncome_Expenses(), "income", null, 1, 1, Expense.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3287 initEAttribute(getExpense_Id4(), ecorePackage.getEString(), "id4", null, 1, 1, Expense.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3288 initEReference(getExpense_Beneficiary(), this.getPhysical_Person(), this.getPhysical_Person_Expenses(), "beneficiary", null, 0, 1, Expense.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3289
3290 initEClass(dependentEClass, Dependent.class, "Dependent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3291 initEAttribute(getDependent_Dependent_type(), this.getDependent_Type(), "dependent_type", null, 1, 1, Dependent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3292 initEReference(getDependent_Responsible_person(), this.getTax_Payer(), this.getTax_Payer_Dependents(), "responsible_person", null, 0, 1, Dependent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3293 initEAttribute(getDependent_Continued_studies(), ecorePackage.getEBoolean(), "continued_studies", "false", 1, 1, Dependent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3294 initEReference(getDependent_Allowances(), this.getExternal_Allowance(), this.getExternal_Allowance_Person(), "allowances", null, 0, 1, Dependent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3295 initEReference(getDependent_Household(), this.getHousehold(), this.getHousehold_Children(), "household", null, 0, 1, Dependent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3296 initEReference(getDependent_From_agent(), this.getFromAgent(), this.getFromAgent_Dependent(), "from_agent", null, 0, 1, Dependent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3297 initEReference(getDependent_Expense(), this.getExpense(), this.getExpense_Dependent(), "expense", null, 0, -1, Dependent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3298
3299 initEClass(external_AllowanceEClass, External_Allowance.class, "External_Allowance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3300 initEAttribute(getExternal_Allowance_Grantor(), this.getGrantor(), "grantor", null, 1, 1, External_Allowance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3301 initEAttribute(getExternal_Allowance_Starting_year(), ecorePackage.getEInt(), "starting_year", null, 1, 1, External_Allowance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3302 initEAttribute(getExternal_Allowance_Ending_year(), ecorePackage.getEInt(), "ending_year", null, 1, 1, External_Allowance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3303 initEReference(getExternal_Allowance_Reciver(), this.getPhysical_Person(), null, "reciver", null, 1, 1, External_Allowance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3304 initEAttribute(getExternal_Allowance_Id5(), ecorePackage.getEString(), "id5", null, 1, 1, External_Allowance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3305 initEReference(getExternal_Allowance_Person(), this.getDependent(), this.getDependent_Allowances(), "person", null, 1, 1, External_Allowance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3306
3307 initEClass(householdEClass, Household.class, "Household", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3308 initEReference(getHousehold_Parents(), this.getLegal_Union_Record(), this.getLegal_Union_Record_Household(), "parents", null, 1, 1, Household.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3309 initEAttribute(getHousehold_Id1(), ecorePackage.getEString(), "id1", null, 1, 1, Household.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3310 initEReference(getHousehold_Children(), this.getDependent(), this.getDependent_Household(), "children", null, 0, -1, Household.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3311
3312 initEClass(legal_Union_RecordEClass, Legal_Union_Record.class, "Legal_Union_Record", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3313 initEAttribute(getLegal_Union_Record_Start_year(), ecorePackage.getEInt(), "start_year", null, 1, 1, Legal_Union_Record.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3314 initEAttribute(getLegal_Union_Record_End_year(), ecorePackage.getEInt(), "end_year", null, 1, 1, Legal_Union_Record.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3315 initEAttribute(getLegal_Union_Record_Separation_cause(), this.getSeparation_Causes(), "separation_cause", null, 1, 1, Legal_Union_Record.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3316 initEReference(getLegal_Union_Record_Individual_A(), this.getPhysical_Person(), null, "individual_A", null, 1, 1, Legal_Union_Record.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3317 initEReference(getLegal_Union_Record_Individual_B(), this.getPhysical_Person(), null, "individual_B", null, 1, -1, Legal_Union_Record.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3318 initEReference(getLegal_Union_Record_Properties(), this.getTax_Property(), this.getTax_Property_Union_record(), "properties", null, 1, -1, Legal_Union_Record.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3319 initEAttribute(getLegal_Union_Record_Mutual_agreement(), ecorePackage.getEBoolean(), "mutual_agreement", null, 1, 1, Legal_Union_Record.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3320 initEAttribute(getLegal_Union_Record_Id9(), ecorePackage.getEString(), "id9", null, 1, 1, Legal_Union_Record.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3321 initEReference(getLegal_Union_Record_Household(), this.getHousehold(), this.getHousehold_Parents(), "household", null, 1, 1, Legal_Union_Record.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3322
3323 initEClass(tax_PropertyEClass, Tax_Property.class, "Tax_Property", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3324 initEAttribute(getTax_Property_Starting_year(), ecorePackage.getEInt(), "starting_year", null, 1, 1, Tax_Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3325 initEAttribute(getTax_Property_Id10(), ecorePackage.getEString(), "id10", null, 1, 1, Tax_Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3326 initEReference(getTax_Property_Union_record(), this.getLegal_Union_Record(), this.getLegal_Union_Record_Properties(), "union_record", null, 1, 1, Tax_Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3327
3328 initEClass(tax_CaseEClass, Tax_Case.class, "Tax_Case", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3329
3330 initEClass(fromAgentEClass, FromAgent.class, "FromAgent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3331 initEReference(getFromAgent_TaxPayer(), this.getTax_Payer(), this.getTax_Payer_From_agent(), "taxPayer", null, 1, 1, FromAgent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3332 initEAttribute(getFromAgent_Is_dependent_eligible_for_CE_Not_In_Houshold_Children_Care(), ecorePackage.getEBoolean(), "is_dependent_eligible_for_CE_Not_In_Houshold_Children_Care", null, 1, 1, FromAgent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3333 initEReference(getFromAgent_Expense(), this.getExpense(), this.getExpense_From_agent(), "expense", null, 0, 1, FromAgent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3334 initEAttribute(getFromAgent_Is_eligible_debt(), ecorePackage.getEBoolean(), "is_eligible_debt", null, 1, 1, FromAgent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3335 initEReference(getFromAgent_Dependent(), this.getDependent(), this.getDependent_From_agent(), "dependent", null, 0, 1, FromAgent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3336
3337 initEClass(incomeEClass, Income.class, "Income", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3338 initEAttribute(getIncome_Income_amount(), ecorePackage.getEDouble(), "income_amount", null, 1, 1, Income.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3339 initEReference(getIncome_Income_type(), this.getIncome_Type(), this.getIncome_Type_Income(), "income_type", null, 1, 1, Income.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3340 initEReference(getIncome_Tax_card(), this.getTax_Card(), this.getTax_Card_Income(), "tax_card", null, 0, 1, Income.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3341 initEAttribute(getIncome_Tax_liability(), ecorePackage.getEDouble(), "tax_liability", null, 1, 1, Income.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3342 initEReference(getIncome_TaxPayer(), this.getTax_Payer(), this.getTax_Payer_Incomes(), "taxPayer", null, 1, 1, Income.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3343 initEReference(getIncome_Details(), this.getIncome_Detail(), this.getIncome_Detail_Income(), "details", null, 12, 12, Income.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3344 initEAttribute(getIncome_Num(), ecorePackage.getEInt(), "num", null, 1, 1, Income.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3345 initEReference(getIncome_Expenses(), this.getExpense(), this.getExpense_Income(), "expenses", null, 0, -1, Income.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3346
3347 initEClass(income_TypeEClass, Income_Type.class, "Income_Type", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3348 initEAttribute(getIncome_Type_Id8(), ecorePackage.getEString(), "id8", null, 1, 1, Income_Type.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3349 initEReference(getIncome_Type_Income(), this.getIncome(), this.getIncome_Income_type(), "income", null, 1, 1, Income_Type.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3350
3351 initEClass(tax_CardEClass, Tax_Card.class, "Tax_Card", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3352 initEAttribute(getTax_Card_Card_identifier(), ecorePackage.getEString(), "card_identifier", null, 0, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3353 initEAttribute(getTax_Card_Tax_office(), this.getTax_Office(), "tax_office", null, 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3354 initEAttribute(getTax_Card_Percentage_of_witholding(), ecorePackage.getEDouble(), "percentage_of_witholding", null, 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3355 initEAttribute(getTax_Card_Tax_payers_name_surname(), ecorePackage.getEString(), "tax_payers_name_surname", null, 0, -1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3356 initEAttribute(getTax_Card_Tax_payers_partner_name_surname(), ecorePackage.getEString(), "tax_payers_partner_name_surname", null, 0, -1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3357 initEReference(getTax_Card_Tax_payers_address(), this.getAddress(), null, "tax_payers_address", null, 0, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3358 initEAttribute(getTax_Card_Jobs_Employer_SSNo(), ecorePackage.getEString(), "jobs_Employer_SSNo", null, 0, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3359 initEAttribute(getTax_Card_Jobs_employers_name(), ecorePackage.getEString(), "jobs_employers_name", null, 0, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3360 initEAttribute(getTax_Card_Jobs_activity_type(), this.getJob_Activity(), "jobs_activity_type", null, 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3361 initEAttribute(getTax_Card_Jobs_place_of_work(), this.getTown(), "jobs_place_of_work", null, 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3362 initEAttribute(getTax_Card_Deduction_FD_daily(), ecorePackage.getEDouble(), "deduction_FD_daily", "0.0", 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3363 initEAttribute(getTax_Card_Deduction_FD_monthly(), ecorePackage.getEDouble(), "deduction_FD_monthly", "0.0", 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3364 initEAttribute(getTax_Card_Deduction_AC_daily(), ecorePackage.getEDouble(), "deduction_AC_daily", "0.0", 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3365 initEAttribute(getTax_Card_Deduction_AC_monthly(), ecorePackage.getEDouble(), "deduction_AC_monthly", "0.0", 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3366 initEAttribute(getTax_Card_Deduction_AC_yearly(), ecorePackage.getEDouble(), "deduction_AC_yearly", "0.0", 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3367 initEAttribute(getTax_Card_Deduction_CE_daily(), ecorePackage.getEDouble(), "deduction_CE_daily", "0.0", 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3368 initEAttribute(getTax_Card_Deduction_CE_monthly(), ecorePackage.getEDouble(), "deduction_CE_monthly", "0.0", 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3369 initEAttribute(getTax_Card_Deduction_CE_yearly(), ecorePackage.getEDouble(), "deduction_CE_yearly", "0.0", 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3370 initEAttribute(getTax_Card_Deduction_DS_daily(), ecorePackage.getEDouble(), "deduction_DS_daily", "0.0", 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3371 initEAttribute(getTax_Card_Deduction_DS_monthly(), ecorePackage.getEDouble(), "deduction_DS_monthly", "0.0", 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3372 initEAttribute(getTax_Card_Deduction_FO_daily(), ecorePackage.getEDouble(), "deduction_FO_daily", "0.0", 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3373 initEAttribute(getTax_Card_Deduction_FO_monthly(), ecorePackage.getEDouble(), "deduction_FO_monthly", "0.0", 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3374 initEAttribute(getTax_Card_Deduction_FO_yearly(), ecorePackage.getEDouble(), "deduction_FO_yearly", "0.0", 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3375 initEAttribute(getTax_Card_Credit_CIS_daily(), ecorePackage.getEDouble(), "credit_CIS_daily", "0.0", 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3376 initEAttribute(getTax_Card_Credit_CIS_monthly(), ecorePackage.getEDouble(), "credit_CIS_monthly", "0.0", 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3377 initEAttribute(getTax_Card_Credit_CIM_daily(), ecorePackage.getEDouble(), "credit_CIM_daily", "0.0", 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3378 initEAttribute(getTax_Card_Validity(), ecorePackage.getEBoolean(), "validity", null, 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3379 initEReference(getTax_Card_Income_Tax_Credit(), this.getIncome_Tax_Credit(), this.getIncome_Tax_Credit_Taxation_Frame(), "income_Tax_Credit", null, 0, -1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3380 initEReference(getTax_Card_Previous(), this.getTax_Card(), this.getTax_Card_Current_tax_card(), "previous", null, 0, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3381 initEReference(getTax_Card_Current_tax_card(), this.getTax_Card(), this.getTax_Card_Previous(), "current_tax_card", null, 0, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3382 initEAttribute(getTax_Card_Credit_CIM_yearly(), ecorePackage.getEDouble(), "credit_CIM_yearly", null, 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3383 initEAttribute(getTax_Card_Deduction_DS_Alimony_yearly(), ecorePackage.getEDouble(), "deduction_DS_Alimony_yearly", null, 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3384 initEAttribute(getTax_Card_Deduction_DS_Debt_yearly(), ecorePackage.getEDouble(), "deduction_DS_Debt_yearly", null, 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3385 initEReference(getTax_Card_Income(), this.getIncome(), this.getIncome_Tax_card(), "income", null, 1, 1, Tax_Card.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3386
3387 initEClass(income_Tax_CreditEClass, Income_Tax_Credit.class, "Income_Tax_Credit", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3388 initEAttribute(getIncome_Tax_Credit_GrantedBy(), this.getGrantor(), "grantedBy", null, 1, 1, Income_Tax_Credit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3389 initEReference(getIncome_Tax_Credit_TaxPayer(), this.getTax_Payer(), null, "taxPayer", null, 0, 1, Income_Tax_Credit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3390 initEAttribute(getIncome_Tax_Credit_Tax_year(), ecorePackage.getEInt(), "tax_year", null, 1, 1, Income_Tax_Credit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3391 initEAttribute(getIncome_Tax_Credit_Yearly(), ecorePackage.getEDouble(), "yearly", "300.0", 1, 1, Income_Tax_Credit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3392 initEAttribute(getIncome_Tax_Credit_Monthly(), ecorePackage.getEDouble(), "monthly", "25.0", 1, 1, Income_Tax_Credit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3393 initEAttribute(getIncome_Tax_Credit_Daily(), ecorePackage.getEDouble(), "daily", "1.0", 1, 1, Income_Tax_Credit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3394 initEAttribute(getIncome_Tax_Credit_Id7(), ecorePackage.getEString(), "id7", null, 1, 1, Income_Tax_Credit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3395 initEReference(getIncome_Tax_Credit_Taxation_Frame(), this.getTax_Card(), this.getTax_Card_Income_Tax_Credit(), "taxation_Frame", null, 0, 1, Income_Tax_Credit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3396
3397 initEClass(income_DetailEClass, Income_Detail.class, "Income_Detail", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3398 initEAttribute(getIncome_Detail_Amount(), ecorePackage.getEDouble(), "amount", null, 1, 1, Income_Detail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3399 initEAttribute(getIncome_Detail_Is_worked(), ecorePackage.getEBoolean(), "is_worked", null, 1, 1, Income_Detail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3400 initEAttribute(getIncome_Detail_Distance(), ecorePackage.getEDouble(), "distance", null, 1, 1, Income_Detail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3401 initEAttribute(getIncome_Detail_Worked_days(), ecorePackage.getEInt(), "worked_days", null, 1, 1, Income_Detail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3402 initEAttribute(getIncome_Detail_Is_contributing_CNS(), ecorePackage.getEBoolean(), "is_contributing_CNS", null, 1, 1, Income_Detail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3403 initEAttribute(getIncome_Detail_Id5(), ecorePackage.getEString(), "id5", null, 1, 1, Income_Detail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3404 initEReference(getIncome_Detail_Income(), this.getIncome(), this.getIncome_Details(), "income", null, 1, 1, Income_Detail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3405
3406 initEClass(fromLawEClass, FromLaw.class, "FromLaw", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3407 initEAttribute(getFromLaw_Id(), ecorePackage.getEString(), "id", null, 1, 1, FromLaw.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3408 initEReference(getFromLaw_TaxPayer(), this.getTax_Payer(), this.getTax_Payer_From_law(), "taxPayer", null, 1, 1, FromLaw.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3409
3410 initEClass(fiscal_AddressEClass, Fiscal_Address.class, "Fiscal_Address", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3411
3412 initEClass(habitual_AddressEClass, Habitual_Address.class, "Habitual_Address", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3413
3414 initEClass(marriage_RecordEClass, Marriage_Record.class, "Marriage_Record", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3415
3416 initEClass(non_Resident_Tax_PayerEClass, Non_Resident_Tax_Payer.class, "Non_Resident_Tax_Payer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3417 initEAttribute(getNon_Resident_Tax_Payer_Is_assimilated_to_resident(), ecorePackage.getEBoolean(), "is_assimilated_to_resident", "false", 1, 1, Non_Resident_Tax_Payer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3418
3419 initEClass(partnership_RecordEClass, Partnership_Record.class, "Partnership_Record", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3420
3421 initEClass(resident_Tax_PayerEClass, Resident_Tax_Payer.class, "Resident_Tax_Payer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3422
3423 initEClass(trade_and_Business_IncomeEClass, Trade_and_Business_Income.class, "Trade_and_Business_Income", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3424
3425 initEClass(agriculture_and_Forestry_IncomeEClass, Agriculture_and_Forestry_Income.class, "Agriculture_and_Forestry_Income", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3426
3427 initEClass(pensions_and_Annuities_IncomeEClass, Pensions_and_Annuities_Income.class, "Pensions_and_Annuities_Income", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3428 initEAttribute(getPensions_and_Annuities_Income_Occasional_payement(), ecorePackage.getEBoolean(), "occasional_payement", "false", 0, 1, Pensions_and_Annuities_Income.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3429
3430 initEClass(capital_and_Investments_IncomeEClass, Capital_and_Investments_Income.class, "Capital_and_Investments_Income", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3431
3432 initEClass(employment_IncomeEClass, Employment_Income.class, "Employment_Income", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3433
3434 initEClass(rentals_and_Leases_IncomeEClass, Rentals_and_Leases_Income.class, "Rentals_and_Leases_Income", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3435 initEAttribute(getRentals_and_Leases_Income_Is_periodic(), ecorePackage.getEBoolean(), "is_periodic", "true", 1, 1, Rentals_and_Leases_Income.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3436
3437 initEClass(foreign_IncomeEClass, Foreign_Income.class, "Foreign_Income", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3438
3439 initEClass(local_IncomeEClass, Local_Income.class, "Local_Income", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3440
3441 initEClass(cimEClass, TaxationWithRoot.CIM.class, "CIM", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3442
3443 initEClass(cipEClass, TaxationWithRoot.CIP.class, "CIP", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3444
3445 initEClass(cisEClass, TaxationWithRoot.CIS.class, "CIS", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3446
3447 initEClass(permanent_ExpenseEClass, Permanent_Expense.class, "Permanent_Expense", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3448 initEAttribute(getPermanent_Expense_Category(), this.getCategory_of_Permanent_Expense(), "category", null, 1, 1, Permanent_Expense.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3449
3450 initEClass(special_Expense_DSEClass, Special_Expense_DS.class, "Special_Expense_DS", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3451
3452 initEClass(interest_ExpenseEClass, Interest_Expense.class, "Interest_Expense", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3453
3454 initEClass(private_Insurance_and_PlanEClass, Private_Insurance_and_Plan.class, "Private_Insurance_and_Plan", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3455 initEAttribute(getPrivate_Insurance_and_Plan_Category(), this.getCategory_of_Private_Insurance_and_Plan(), "category", null, 1, 1, Private_Insurance_and_Plan.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3456 initEAttribute(getPrivate_Insurance_and_Plan_Duration_of_contract(), ecorePackage.getEInt(), "duration_of_contract", null, 1, 1, Private_Insurance_and_Plan.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3457
3458 initEClass(health_and_Pension_InsuranceEClass, Health_and_Pension_Insurance.class, "Health_and_Pension_Insurance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3459 initEAttribute(getHealth_and_Pension_Insurance_Category(), this.getCategory_of_Health_and_Pension_Insurances(), "category", null, 1, 1, Health_and_Pension_Insurance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3460 initEAttribute(getHealth_and_Pension_Insurance_Is_related_to_additional_salary(), ecorePackage.getEBoolean(), "is_related_to_additional_salary", "false", 1, 1, Health_and_Pension_Insurance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3461
3462 initEClass(donationEClass, Donation.class, "Donation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3463 initEAttribute(getDonation_Beneficiary1(), ecorePackage.getEString(), "beneficiary1", null, 1, 1, Donation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3464 initEAttribute(getDonation_Is_donation_reported(), ecorePackage.getEBoolean(), "is_donation_reported", null, 1, 1, Donation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3465
3466 initEClass(loss_CarryforwardEClass, Loss_Carryforward.class, "Loss_Carryforward", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3467
3468 initEClass(spousal_Expense_ACEClass, Spousal_Expense_AC.class, "Spousal_Expense_AC", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3469
3470 initEClass(extraordinary_Expense_CEEClass, Extraordinary_Expense_CE.class, "Extraordinary_Expense_CE", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3471 initEAttribute(getExtraordinary_Expense_CE_Thresholded_deduction_percentage(), ecorePackage.getEDouble(), "thresholded_deduction_percentage", null, 1, 1, Extraordinary_Expense_CE.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3472 initEAttribute(getExtraordinary_Expense_CE_Ce_type(), this.getCE_Type(), "ce_type", null, 1, 1, Extraordinary_Expense_CE.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3473
3474 initEClass(travel_Expense_FDEClass, Travel_Expense_FD.class, "Travel_Expense_FD", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3475
3476 initEClass(professional_ExpenseEClass, Professional_Expense.class, "Professional_Expense", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3477
3478 initEClass(miscellaneous_Expense_FOEClass, Miscellaneous_Expense_FO.class, "Miscellaneous_Expense_FO", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3479
3480 initEClass(resourceEClass, Resource.class, "Resource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3481 initEReference(getResource_Contains(), this.getHousehold(), null, "contains", null, 0, -1, Resource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3482
3483 // Initialize enums and add enum literals
3484 initEEnum(grantorEEnum, Grantor.class, "Grantor");
3485 addEEnumLiteral(grantorEEnum, Grantor.WWW);
3486 addEEnumLiteral(grantorEEnum, Grantor.EMPLOYER);
3487 addEEnumLiteral(grantorEEnum, Grantor.MMM);
3488 addEEnumLiteral(grantorEEnum, Grantor.UUU);
3489 addEEnumLiteral(grantorEEnum, Grantor.YYY);
3490 addEEnumLiteral(grantorEEnum, Grantor.OOO);
3491
3492 initEEnum(disability_TypesEEnum, Disability_Types.class, "Disability_Types");
3493 addEEnumLiteral(disability_TypesEEnum, Disability_Types.BEUG);
3494 addEEnumLiteral(disability_TypesEEnum, Disability_Types.NONE);
3495 addEEnumLiteral(disability_TypesEEnum, Disability_Types.A);
3496 addEEnumLiteral(disability_TypesEEnum, Disability_Types.B);
3497 addEEnumLiteral(disability_TypesEEnum, Disability_Types.C);
3498 addEEnumLiteral(disability_TypesEEnum, Disability_Types.D);
3499 addEEnumLiteral(disability_TypesEEnum, Disability_Types.E);
3500 addEEnumLiteral(disability_TypesEEnum, Disability_Types.OTHER);
3501
3502 initEEnum(countryEEnum, Country.class, "Country");
3503 addEEnumLiteral(countryEEnum, Country.ZZ);
3504 addEEnumLiteral(countryEEnum, Country.FF);
3505 addEEnumLiteral(countryEEnum, Country.BB);
3506 addEEnumLiteral(countryEEnum, Country.DD);
3507 addEEnumLiteral(countryEEnum, Country.NN);
3508 addEEnumLiteral(countryEEnum, Country.OTHER);
3509
3510 initEEnum(tax_OfficeEEnum, Tax_Office.class, "Tax_Office");
3511 addEEnumLiteral(tax_OfficeEEnum, Tax_Office.RTS_2);
3512 addEEnumLiteral(tax_OfficeEEnum, Tax_Office.RTS_3);
3513 addEEnumLiteral(tax_OfficeEEnum, Tax_Office.RTS_4);
3514 addEEnumLiteral(tax_OfficeEEnum, Tax_Office.RTS_5);
3515
3516 initEEnum(tax_Class_CategoryEEnum, Tax_Class_Category.class, "Tax_Class_Category");
3517 addEEnumLiteral(tax_Class_CategoryEEnum, Tax_Class_Category.ONE);
3518 addEEnumLiteral(tax_Class_CategoryEEnum, Tax_Class_Category.ONE_A);
3519 addEEnumLiteral(tax_Class_CategoryEEnum, Tax_Class_Category.TWO);
3520
3521 initEEnum(job_ActivityEEnum, Job_Activity.class, "Job_Activity");
3522 addEEnumLiteral(job_ActivityEEnum, Job_Activity.SALARY);
3523 addEEnumLiteral(job_ActivityEEnum, Job_Activity.PENSION);
3524 addEEnumLiteral(job_ActivityEEnum, Job_Activity.ANNUITY);
3525
3526 initEEnum(townEEnum, Town.class, "Town");
3527 addEEnumLiteral(townEEnum, Town.LL);
3528 addEEnumLiteral(townEEnum, Town.BB);
3529 addEEnumLiteral(townEEnum, Town.SS);
3530 addEEnumLiteral(townEEnum, Town.TT);
3531 addEEnumLiteral(townEEnum, Town.OTHER);
3532
3533 initEEnum(cE_TypeEEnum, CE_Type.class, "CE_Type");
3534 addEEnumLiteral(cE_TypeEEnum, CE_Type.INALIDITY_AND_INFIRMITY);
3535 addEEnumLiteral(cE_TypeEEnum, CE_Type.DEPENDENCE_AND_CARE_EXCLUDING_CHLIDREN_NOT_PART_OF_HOUSEHOLD);
3536 addEEnumLiteral(cE_TypeEEnum, CE_Type.CARE_FOR_CHILDREN_NOT_BEING_PART_OF_HOUSEHOLD);
3537
3538 initEEnum(expense_PurposeEEnum, Expense_Purpose.class, "Expense_Purpose");
3539 addEEnumLiteral(expense_PurposeEEnum, Expense_Purpose.HOUSE_CARE);
3540 addEEnumLiteral(expense_PurposeEEnum, Expense_Purpose.CHILD_CARE);
3541 addEEnumLiteral(expense_PurposeEEnum, Expense_Purpose.DEPENDENCE_CARE);
3542 addEEnumLiteral(expense_PurposeEEnum, Expense_Purpose.OTHER);
3543 addEEnumLiteral(expense_PurposeEEnum, Expense_Purpose.ALIMONY);
3544 addEEnumLiteral(expense_PurposeEEnum, Expense_Purpose.RECURRENT_DEPT);
3545
3546 initEEnum(dependent_TypeEEnum, Dependent_Type.class, "Dependent_Type");
3547 addEEnumLiteral(dependent_TypeEEnum, Dependent_Type.CHILD);
3548 addEEnumLiteral(dependent_TypeEEnum, Dependent_Type.SPOUSE);
3549 addEEnumLiteral(dependent_TypeEEnum, Dependent_Type.RELATIVE);
3550 addEEnumLiteral(dependent_TypeEEnum, Dependent_Type.OTHER_FAMILY_MEMBER);
3551 addEEnumLiteral(dependent_TypeEEnum, Dependent_Type.NOT_OWN_CHILD);
3552
3553 initEEnum(separation_CausesEEnum, Separation_Causes.class, "Separation_Causes");
3554 addEEnumLiteral(separation_CausesEEnum, Separation_Causes.NONE);
3555 addEEnumLiteral(separation_CausesEEnum, Separation_Causes.DIVORCE);
3556 addEEnumLiteral(separation_CausesEEnum, Separation_Causes.SEPARATION_DE_FAIT);
3557 addEEnumLiteral(separation_CausesEEnum, Separation_Causes.SEPARATION_BY_COURT);
3558
3559 initEEnum(category_of_Permanent_ExpenseEEnum, Category_of_Permanent_Expense.class, "Category_of_Permanent_Expense");
3560 addEEnumLiteral(category_of_Permanent_ExpenseEEnum, Category_of_Permanent_Expense.MISCELLANEOUS_DEBT);
3561 addEEnumLiteral(category_of_Permanent_ExpenseEEnum, Category_of_Permanent_Expense.ALIMONY);
3562
3563 initEEnum(category_of_Health_and_Pension_InsurancesEEnum, Category_of_Health_and_Pension_Insurances.class, "Category_of_Health_and_Pension_Insurances");
3564 addEEnumLiteral(category_of_Health_and_Pension_InsurancesEEnum, Category_of_Health_and_Pension_Insurances.MANDATORY_HEALTH_AND_PENSION_INSURANCE);
3565 addEEnumLiteral(category_of_Health_and_Pension_InsurancesEEnum, Category_of_Health_and_Pension_Insurances.ADDITIONAL_EMPLOYERS_PENSION_INSURANCE);
3566 addEEnumLiteral(category_of_Health_and_Pension_InsurancesEEnum, Category_of_Health_and_Pension_Insurances.CONTINUED_HEALTH_AND_PENSION_INSURANCE);
3567
3568 initEEnum(category_of_Private_Insurance_and_PlanEEnum, Category_of_Private_Insurance_and_Plan.class, "Category_of_Private_Insurance_and_Plan");
3569 addEEnumLiteral(category_of_Private_Insurance_and_PlanEEnum, Category_of_Private_Insurance_and_Plan.PRIVATE_INSURANCE);
3570 addEEnumLiteral(category_of_Private_Insurance_and_PlanEEnum, Category_of_Private_Insurance_and_Plan.PRIVATE_LIFE_INSURANCE);
3571 addEEnumLiteral(category_of_Private_Insurance_and_PlanEEnum, Category_of_Private_Insurance_and_Plan.COMPANY_MEMBERS_PRIVATE_INSURANCE);
3572 addEEnumLiteral(category_of_Private_Insurance_and_PlanEEnum, Category_of_Private_Insurance_and_Plan.HOUSING_SAVING_PLAN);
3573 addEEnumLiteral(category_of_Private_Insurance_and_PlanEEnum, Category_of_Private_Insurance_and_Plan.OLD_AGE_PENSION_PLAN);
3574
3575 initEEnum(legal_Union_TypesEEnum, Legal_Union_Types.class, "Legal_Union_Types");
3576 addEEnumLiteral(legal_Union_TypesEEnum, Legal_Union_Types.MARIAGE);
3577 addEEnumLiteral(legal_Union_TypesEEnum, Legal_Union_Types.PARTNERSHIP);
3578 addEEnumLiteral(legal_Union_TypesEEnum, Legal_Union_Types.OTHER);
3579
3580 // Create resource
3581 createResource(eNS_URI);
3582
3583 // Create annotations
3584 // http://www.eclipse.org/OCL/Import
3585 createImportAnnotations();
3586 // duplicates
3587 createDuplicatesAnnotations();
3588 // http://schema.omg.org/spec/MOF/2.0/emof.xml#Property.oppositeRoleName
3589 createEmofAnnotations();
3590 // http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot
3591 createPivotAnnotations();
3592 }
3593
3594 /**
3595 * Initializes the annotations for <b>http://www.eclipse.org/OCL/Import</b>.
3596 * <!-- begin-user-doc -->
3597 * <!-- end-user-doc -->
3598 * @generated
3599 */
3600 protected void createImportAnnotations() {
3601 String source = "http://www.eclipse.org/OCL/Import";
3602 addAnnotation
3603 (this,
3604 source,
3605 new String[] {
3606 "ecore", "http://www.eclipse.org/emf/2002/Ecore"
3607 });
3608 }
3609
3610 /**
3611 * Initializes the annotations for <b>duplicates</b>.
3612 * <!-- begin-user-doc -->
3613 * <!-- end-user-doc -->
3614 * @generated
3615 */
3616 protected void createDuplicatesAnnotations() {
3617 String source = "duplicates";
3618 addAnnotation
3619 (tax_PayerEClass,
3620 source,
3621 new String[] {
3622 });
3623 }
3624
3625 /**
3626 * Initializes the annotations for <b>http://schema.omg.org/spec/MOF/2.0/emof.xml#Property.oppositeRoleName</b>.
3627 * <!-- begin-user-doc -->
3628 * <!-- end-user-doc -->
3629 * @generated
3630 */
3631 protected void createEmofAnnotations() {
3632 String source = "http://schema.omg.org/spec/MOF/2.0/emof.xml#Property.oppositeRoleName";
3633 addAnnotation
3634 (getLegal_Union_Record_Individual_A(),
3635 source,
3636 new String[] {
3637 "body", "legal_union_A"
3638 });
3639 addAnnotation
3640 (getLegal_Union_Record_Individual_B(),
3641 source,
3642 new String[] {
3643 "body", "legal_union_B"
3644 });
3645 }
3646
3647 /**
3648 * Initializes the annotations for <b>http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot</b>.
3649 * <!-- begin-user-doc -->
3650 * <!-- end-user-doc -->
3651 * @generated
3652 */
3653 protected void createPivotAnnotations() {
3654 String source = "http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot";
3655 addAnnotation
3656 (getIncome_Income_amount(),
3657 source,
3658 new String[] {
3659 "derivation", "let non_null_amounts:OrderedSet(Income_Detail)=self.details->select(det:Income_Detail|det.amount>0)->asOrderedSet() in\nnon_null_amounts->collect(amount)->min()"
3660 });
3661 }
3662
3663} //TaxationWithRootPackageImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Trade_and_Business_IncomeImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Trade_and_Business_IncomeImpl.java
new file mode 100644
index 00000000..5c85d666
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Trade_and_Business_IncomeImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.TaxationWithRootPackage;
6import TaxationWithRoot.Trade_and_Business_Income;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Trade and Business Income</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class Trade_and_Business_IncomeImpl extends Income_TypeImpl implements Trade_and_Business_Income {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected Trade_and_Business_IncomeImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.TRADE_AND_BUSINESS_INCOME;
35 }
36
37} //Trade_and_Business_IncomeImpl
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Travel_Expense_FDImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Travel_Expense_FDImpl.java
new file mode 100644
index 00000000..cfa52929
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Travel_Expense_FDImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.TaxationWithRootPackage;
6import TaxationWithRoot.Travel_Expense_FD;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Travel Expense FD</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class Travel_Expense_FDImpl extends Professional_ExpenseImpl implements Travel_Expense_FD {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected Travel_Expense_FDImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationWithRootPackage.Literals.TRAVEL_EXPENSE_FD;
35 }
36
37} //Travel_Expense_FDImpl