aboutsummaryrefslogtreecommitdiffstats
path: root/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl
diff options
context:
space:
mode:
authorLibravatar ArenBabikian <aren.babikian@mail.mcgill.ca>2020-05-13 00:16:27 -0400
committerLibravatar ArenBabikian <aren.babikian@mail.mcgill.ca>2020-05-13 00:16:27 -0400
commit5fd28fe3201ad6e316fea3688bd89130bc29bc13 (patch)
treef8cc7181b1eadec0f2e1d69d4cdac9e4938e07df /Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl
parentmemory cleaning message between tasks (diff)
downloadVIATRA-Generator-5fd28fe3201ad6e316fea3688bd89130bc29bc13.tar.gz
VIATRA-Generator-5fd28fe3201ad6e316fea3688bd89130bc29bc13.tar.zst
VIATRA-Generator-5fd28fe3201ad6e316fea3688bd89130bc29bc13.zip
Adjust FamilyTree MM. Add new Taxation MM with possible Multiple Roots
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl')
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/AddressImpl.java463
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Agriculture_and_Forestry_IncomeImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/CIMImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/CIPImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/CISImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Capital_and_Investments_IncomeImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/ConstantsImpl.java1509
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DSImpl.java220
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_DonationImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Health_and_Pension_InsuranceImpl.java165
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Interest_ExpenseImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Loss_CarryforwardImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Permanent_ExpenseImpl.java165
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Private_Insurance_and_PlanImpl.java165
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DependentImpl.java599
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DonationImpl.java220
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Employment_IncomeImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/ExpenseImpl.java654
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/External_AllowanceImpl.java500
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Extraordinary_Expense_CEImpl.java221
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/FDImpl.java164
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/FOImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Fiscal_AddressImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Foreign_IncomeImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/FromAgentImpl.java506
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/FromLawImpl.java268
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Habitual_AddressImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Health_and_Pension_InsuranceImpl.java221
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/HouseholdImpl.java311
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/IncomeImpl.java614
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Income_DetailImpl.java548
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Income_TaxImpl.java341
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Income_Tax_CreditImpl.java625
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Income_TypeImpl.java268
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Interest_ExpenseImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Legal_Union_RecordImpl.java648
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Local_IncomeImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Loss_CarryforwardImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Marriage_RecordImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Miscellaneous_Expense_FOImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Non_Resident_Tax_PayerImpl.java164
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Partnership_RecordImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Pensions_and_Annuities_IncomeImpl.java164
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Permanent_ExpenseImpl.java165
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Physical_PersonImpl.java617
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Private_Insurance_and_PlanImpl.java221
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Professional_ExpenseImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Professional_Expenses_DeductionImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Rentals_and_Leases_IncomeImpl.java164
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Resident_Tax_PayerImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/ResourceImpl.java153
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/RootImpl.java39
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Special_Expense_DSImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Spousal_Expense_ACImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Tax_CardImpl.java2093
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Tax_PayerImpl.java355
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Tax_PropertyImpl.java324
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/TaxationFactoryImpl.java1108
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/TaxationPackageImpl.java3988
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Trade_and_Business_IncomeImpl.java37
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Travel_Expense_FDImpl.java37
61 files changed, 19912 insertions, 0 deletions
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/AddressImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/AddressImpl.java
new file mode 100644
index 00000000..c6062848
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/AddressImpl.java
@@ -0,0 +1,463 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Address;
6import TaxationWithRoot.Country;
7import TaxationWithRoot.Physical_Person;
8import TaxationWithRoot.TaxationPackage;
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.util.EObjectWithInverseResolvingEList;
22import org.eclipse.emf.ecore.util.InternalEList;
23
24/**
25 * <!-- begin-user-doc -->
26 * An implementation of the model object '<em><b>Address</b></em>'.
27 * <!-- end-user-doc -->
28 * <p>
29 * The following features are implemented:
30 * </p>
31 * <ul>
32 * <li>{@link TaxationWithRoot.impl.AddressImpl#getCountry <em>Country</em>}</li>
33 * <li>{@link TaxationWithRoot.impl.AddressImpl#getStreet <em>Street</em>}</li>
34 * <li>{@link TaxationWithRoot.impl.AddressImpl#getZipCode <em>Zip Code</em>}</li>
35 * <li>{@link TaxationWithRoot.impl.AddressImpl#getCity <em>City</em>}</li>
36 * <li>{@link TaxationWithRoot.impl.AddressImpl#getId2 <em>Id2</em>}</li>
37 * <li>{@link TaxationWithRoot.impl.AddressImpl#getTaxPayer <em>Tax Payer</em>}</li>
38 * </ul>
39 *
40 * @generated
41 */
42public class AddressImpl extends RootImpl implements Address {
43 /**
44 * The default value of the '{@link #getCountry() <em>Country</em>}' attribute.
45 * <!-- begin-user-doc -->
46 * <!-- end-user-doc -->
47 * @see #getCountry()
48 * @generated
49 * @ordered
50 */
51 protected static final Country COUNTRY_EDEFAULT = Country.ZZ;
52
53 /**
54 * The cached value of the '{@link #getCountry() <em>Country</em>}' attribute.
55 * <!-- begin-user-doc -->
56 * <!-- end-user-doc -->
57 * @see #getCountry()
58 * @generated
59 * @ordered
60 */
61 protected Country country = COUNTRY_EDEFAULT;
62
63 /**
64 * The default value of the '{@link #getStreet() <em>Street</em>}' attribute.
65 * <!-- begin-user-doc -->
66 * <!-- end-user-doc -->
67 * @see #getStreet()
68 * @generated
69 * @ordered
70 */
71 protected static final String STREET_EDEFAULT = null;
72
73 /**
74 * The cached value of the '{@link #getStreet() <em>Street</em>}' attribute.
75 * <!-- begin-user-doc -->
76 * <!-- end-user-doc -->
77 * @see #getStreet()
78 * @generated
79 * @ordered
80 */
81 protected String street = STREET_EDEFAULT;
82
83 /**
84 * The default value of the '{@link #getZipCode() <em>Zip Code</em>}' attribute.
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @see #getZipCode()
88 * @generated
89 * @ordered
90 */
91 protected static final String ZIP_CODE_EDEFAULT = null;
92
93 /**
94 * The cached value of the '{@link #getZipCode() <em>Zip Code</em>}' attribute.
95 * <!-- begin-user-doc -->
96 * <!-- end-user-doc -->
97 * @see #getZipCode()
98 * @generated
99 * @ordered
100 */
101 protected String zipCode = ZIP_CODE_EDEFAULT;
102
103 /**
104 * The default value of the '{@link #getCity() <em>City</em>}' attribute.
105 * <!-- begin-user-doc -->
106 * <!-- end-user-doc -->
107 * @see #getCity()
108 * @generated
109 * @ordered
110 */
111 protected static final String CITY_EDEFAULT = null;
112
113 /**
114 * The cached value of the '{@link #getCity() <em>City</em>}' attribute.
115 * <!-- begin-user-doc -->
116 * <!-- end-user-doc -->
117 * @see #getCity()
118 * @generated
119 * @ordered
120 */
121 protected String city = CITY_EDEFAULT;
122
123 /**
124 * The default value of the '{@link #getId2() <em>Id2</em>}' attribute.
125 * <!-- begin-user-doc -->
126 * <!-- end-user-doc -->
127 * @see #getId2()
128 * @generated
129 * @ordered
130 */
131 protected static final String ID2_EDEFAULT = null;
132
133 /**
134 * The cached value of the '{@link #getId2() <em>Id2</em>}' attribute.
135 * <!-- begin-user-doc -->
136 * <!-- end-user-doc -->
137 * @see #getId2()
138 * @generated
139 * @ordered
140 */
141 protected String id2 = ID2_EDEFAULT;
142
143 /**
144 * The cached value of the '{@link #getTaxPayer() <em>Tax Payer</em>}' reference list.
145 * <!-- begin-user-doc -->
146 * <!-- end-user-doc -->
147 * @see #getTaxPayer()
148 * @generated
149 * @ordered
150 */
151 protected EList<Physical_Person> taxPayer;
152
153 /**
154 * <!-- begin-user-doc -->
155 * <!-- end-user-doc -->
156 * @generated
157 */
158 protected AddressImpl() {
159 super();
160 }
161
162 /**
163 * <!-- begin-user-doc -->
164 * <!-- end-user-doc -->
165 * @generated
166 */
167 @Override
168 protected EClass eStaticClass() {
169 return TaxationPackage.Literals.ADDRESS;
170 }
171
172 /**
173 * <!-- begin-user-doc -->
174 * <!-- end-user-doc -->
175 * @generated
176 */
177 @Override
178 public Country getCountry() {
179 return country;
180 }
181
182 /**
183 * <!-- begin-user-doc -->
184 * <!-- end-user-doc -->
185 * @generated
186 */
187 @Override
188 public void setCountry(Country newCountry) {
189 Country oldCountry = country;
190 country = newCountry == null ? COUNTRY_EDEFAULT : newCountry;
191 if (eNotificationRequired())
192 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.ADDRESS__COUNTRY, oldCountry, country));
193 }
194
195 /**
196 * <!-- begin-user-doc -->
197 * <!-- end-user-doc -->
198 * @generated
199 */
200 @Override
201 public String getStreet() {
202 return street;
203 }
204
205 /**
206 * <!-- begin-user-doc -->
207 * <!-- end-user-doc -->
208 * @generated
209 */
210 @Override
211 public void setStreet(String newStreet) {
212 String oldStreet = street;
213 street = newStreet;
214 if (eNotificationRequired())
215 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.ADDRESS__STREET, oldStreet, street));
216 }
217
218 /**
219 * <!-- begin-user-doc -->
220 * <!-- end-user-doc -->
221 * @generated
222 */
223 @Override
224 public String getZipCode() {
225 return zipCode;
226 }
227
228 /**
229 * <!-- begin-user-doc -->
230 * <!-- end-user-doc -->
231 * @generated
232 */
233 @Override
234 public void setZipCode(String newZipCode) {
235 String oldZipCode = zipCode;
236 zipCode = newZipCode;
237 if (eNotificationRequired())
238 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.ADDRESS__ZIP_CODE, oldZipCode, zipCode));
239 }
240
241 /**
242 * <!-- begin-user-doc -->
243 * <!-- end-user-doc -->
244 * @generated
245 */
246 @Override
247 public String getCity() {
248 return city;
249 }
250
251 /**
252 * <!-- begin-user-doc -->
253 * <!-- end-user-doc -->
254 * @generated
255 */
256 @Override
257 public void setCity(String newCity) {
258 String oldCity = city;
259 city = newCity;
260 if (eNotificationRequired())
261 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.ADDRESS__CITY, oldCity, city));
262 }
263
264 /**
265 * <!-- begin-user-doc -->
266 * <!-- end-user-doc -->
267 * @generated
268 */
269 @Override
270 public String getId2() {
271 return id2;
272 }
273
274 /**
275 * <!-- begin-user-doc -->
276 * <!-- end-user-doc -->
277 * @generated
278 */
279 @Override
280 public void setId2(String newId2) {
281 String oldId2 = id2;
282 id2 = newId2;
283 if (eNotificationRequired())
284 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.ADDRESS__ID2, oldId2, id2));
285 }
286
287 /**
288 * <!-- begin-user-doc -->
289 * <!-- end-user-doc -->
290 * @generated
291 */
292 @Override
293 public EList<Physical_Person> getTaxPayer() {
294 if (taxPayer == null) {
295 taxPayer = new EObjectWithInverseResolvingEList.ManyInverse<Physical_Person>(Physical_Person.class, this, TaxationPackage.ADDRESS__TAX_PAYER, TaxationPackage.PHYSICAL_PERSON__ADDRESSES);
296 }
297 return taxPayer;
298 }
299
300 /**
301 * <!-- begin-user-doc -->
302 * <!-- end-user-doc -->
303 * @generated
304 */
305 @SuppressWarnings("unchecked")
306 @Override
307 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
308 switch (featureID) {
309 case TaxationPackage.ADDRESS__TAX_PAYER:
310 return ((InternalEList<InternalEObject>)(InternalEList<?>)getTaxPayer()).basicAdd(otherEnd, msgs);
311 }
312 return super.eInverseAdd(otherEnd, featureID, msgs);
313 }
314
315 /**
316 * <!-- begin-user-doc -->
317 * <!-- end-user-doc -->
318 * @generated
319 */
320 @Override
321 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
322 switch (featureID) {
323 case TaxationPackage.ADDRESS__TAX_PAYER:
324 return ((InternalEList<?>)getTaxPayer()).basicRemove(otherEnd, msgs);
325 }
326 return super.eInverseRemove(otherEnd, featureID, msgs);
327 }
328
329 /**
330 * <!-- begin-user-doc -->
331 * <!-- end-user-doc -->
332 * @generated
333 */
334 @Override
335 public Object eGet(int featureID, boolean resolve, boolean coreType) {
336 switch (featureID) {
337 case TaxationPackage.ADDRESS__COUNTRY:
338 return getCountry();
339 case TaxationPackage.ADDRESS__STREET:
340 return getStreet();
341 case TaxationPackage.ADDRESS__ZIP_CODE:
342 return getZipCode();
343 case TaxationPackage.ADDRESS__CITY:
344 return getCity();
345 case TaxationPackage.ADDRESS__ID2:
346 return getId2();
347 case TaxationPackage.ADDRESS__TAX_PAYER:
348 return getTaxPayer();
349 }
350 return super.eGet(featureID, resolve, coreType);
351 }
352
353 /**
354 * <!-- begin-user-doc -->
355 * <!-- end-user-doc -->
356 * @generated
357 */
358 @SuppressWarnings("unchecked")
359 @Override
360 public void eSet(int featureID, Object newValue) {
361 switch (featureID) {
362 case TaxationPackage.ADDRESS__COUNTRY:
363 setCountry((Country)newValue);
364 return;
365 case TaxationPackage.ADDRESS__STREET:
366 setStreet((String)newValue);
367 return;
368 case TaxationPackage.ADDRESS__ZIP_CODE:
369 setZipCode((String)newValue);
370 return;
371 case TaxationPackage.ADDRESS__CITY:
372 setCity((String)newValue);
373 return;
374 case TaxationPackage.ADDRESS__ID2:
375 setId2((String)newValue);
376 return;
377 case TaxationPackage.ADDRESS__TAX_PAYER:
378 getTaxPayer().clear();
379 getTaxPayer().addAll((Collection<? extends Physical_Person>)newValue);
380 return;
381 }
382 super.eSet(featureID, newValue);
383 }
384
385 /**
386 * <!-- begin-user-doc -->
387 * <!-- end-user-doc -->
388 * @generated
389 */
390 @Override
391 public void eUnset(int featureID) {
392 switch (featureID) {
393 case TaxationPackage.ADDRESS__COUNTRY:
394 setCountry(COUNTRY_EDEFAULT);
395 return;
396 case TaxationPackage.ADDRESS__STREET:
397 setStreet(STREET_EDEFAULT);
398 return;
399 case TaxationPackage.ADDRESS__ZIP_CODE:
400 setZipCode(ZIP_CODE_EDEFAULT);
401 return;
402 case TaxationPackage.ADDRESS__CITY:
403 setCity(CITY_EDEFAULT);
404 return;
405 case TaxationPackage.ADDRESS__ID2:
406 setId2(ID2_EDEFAULT);
407 return;
408 case TaxationPackage.ADDRESS__TAX_PAYER:
409 getTaxPayer().clear();
410 return;
411 }
412 super.eUnset(featureID);
413 }
414
415 /**
416 * <!-- begin-user-doc -->
417 * <!-- end-user-doc -->
418 * @generated
419 */
420 @Override
421 public boolean eIsSet(int featureID) {
422 switch (featureID) {
423 case TaxationPackage.ADDRESS__COUNTRY:
424 return country != COUNTRY_EDEFAULT;
425 case TaxationPackage.ADDRESS__STREET:
426 return STREET_EDEFAULT == null ? street != null : !STREET_EDEFAULT.equals(street);
427 case TaxationPackage.ADDRESS__ZIP_CODE:
428 return ZIP_CODE_EDEFAULT == null ? zipCode != null : !ZIP_CODE_EDEFAULT.equals(zipCode);
429 case TaxationPackage.ADDRESS__CITY:
430 return CITY_EDEFAULT == null ? city != null : !CITY_EDEFAULT.equals(city);
431 case TaxationPackage.ADDRESS__ID2:
432 return ID2_EDEFAULT == null ? id2 != null : !ID2_EDEFAULT.equals(id2);
433 case TaxationPackage.ADDRESS__TAX_PAYER:
434 return taxPayer != null && !taxPayer.isEmpty();
435 }
436 return super.eIsSet(featureID);
437 }
438
439 /**
440 * <!-- begin-user-doc -->
441 * <!-- end-user-doc -->
442 * @generated
443 */
444 @Override
445 public String toString() {
446 if (eIsProxy()) return super.toString();
447
448 StringBuilder result = new StringBuilder(super.toString());
449 result.append(" (country: ");
450 result.append(country);
451 result.append(", street: ");
452 result.append(street);
453 result.append(", zipCode: ");
454 result.append(zipCode);
455 result.append(", city: ");
456 result.append(city);
457 result.append(", id2: ");
458 result.append(id2);
459 result.append(')');
460 return result.toString();
461 }
462
463} //AddressImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Agriculture_and_Forestry_IncomeImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Agriculture_and_Forestry_IncomeImpl.java
new file mode 100644
index 00000000..b8ed3fdc
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.Literals.AGRICULTURE_AND_FORESTRY_INCOME;
35 }
36
37} //Agriculture_and_Forestry_IncomeImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/CIMImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/CIMImpl.java
new file mode 100644
index 00000000..0a10b004
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/CIMImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.CIM;
6import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.Literals.CIM;
35 }
36
37} //CIMImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/CIPImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/CIPImpl.java
new file mode 100644
index 00000000..ba532b25
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/CIPImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.CIP;
6import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.Literals.CIP;
35 }
36
37} //CIPImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/CISImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/CISImpl.java
new file mode 100644
index 00000000..86f79bfe
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/CISImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.CIS;
6import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.Literals.CIS;
35 }
36
37} //CISImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Capital_and_Investments_IncomeImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Capital_and_Investments_IncomeImpl.java
new file mode 100644
index 00000000..a3987505
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.Literals.CAPITAL_AND_INVESTMENTS_INCOME;
35 }
36
37} //Capital_and_Investments_IncomeImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/ConstantsImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/ConstantsImpl.java
new file mode 100644
index 00000000..a6bc738b
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/ConstantsImpl.java
@@ -0,0 +1,1509 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Constants;
6import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.CONSTANTS__MINIMUM_SALARY:
1160 return getMINIMUM_SALARY();
1161 case TaxationPackage.CONSTANTS__FLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION:
1162 return getFLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION();
1163 case TaxationPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS:
1164 return getMAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS();
1165 case TaxationPackage.CONSTANTS__MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS:
1166 return getMINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS();
1167 case TaxationPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC:
1168 return getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC();
1169 case TaxationPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE:
1170 return getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE();
1171 case TaxationPackage.CONSTANTS__MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION:
1172 return getMAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION();
1173 case TaxationPackage.CONSTANTS__MAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION:
1174 return getMAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION();
1175 case TaxationPackage.CONSTANTS__MINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION:
1176 return getMINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION();
1177 case TaxationPackage.CONSTANTS__FLAT_RATE_CIM_DAILY:
1178 return getFLAT_RATE_CIM_DAILY();
1179 case TaxationPackage.CONSTANTS__FLAT_RATE_CIM_MONTHLY:
1180 return getFLAT_RATE_CIM_MONTHLY();
1181 case TaxationPackage.CONSTANTS__FLAT_RATE_CIM_YEARLY:
1182 return getFLAT_RATE_CIM_YEARLY();
1183 case TaxationPackage.CONSTANTS__FLAT_RATE_CIP_DAILY:
1184 return getFLAT_RATE_CIP_DAILY();
1185 case TaxationPackage.CONSTANTS__FLAT_RATE_CIP_MONTHLY:
1186 return getFLAT_RATE_CIP_MONTHLY();
1187 case TaxationPackage.CONSTANTS__FLAT_RATE_CIP_YEARLY:
1188 return getFLAT_RATE_CIP_YEARLY();
1189 case TaxationPackage.CONSTANTS__FLAT_RATE_CIS_DAILY:
1190 return getFLAT_RATE_CIS_DAILY();
1191 case TaxationPackage.CONSTANTS__FLAT_RATE_CIS_MONTHLY:
1192 return getFLAT_RATE_CIS_MONTHLY();
1193 case TaxationPackage.CONSTANTS__FLAT_RATE_CIS_YEARLY:
1194 return getFLAT_RATE_CIS_YEARLY();
1195 case TaxationPackage.CONSTANTS__FLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT:
1196 return getFLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT();
1197 case TaxationPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS:
1198 return getMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS();
1199 case TaxationPackage.CONSTANTS__FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE:
1200 return getFLAT_RATE_FOR_MISCELLANEOUS_EXPENSE();
1201 case TaxationPackage.CONSTANTS__DISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE:
1202 return getDISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE();
1203 case TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.CONSTANTS__MINIMUM_SALARY:
1224 setMINIMUM_SALARY((Double)newValue);
1225 return;
1226 case TaxationPackage.CONSTANTS__FLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION:
1227 setFLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION((Double)newValue);
1228 return;
1229 case TaxationPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS:
1230 setMAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS((Double)newValue);
1231 return;
1232 case TaxationPackage.CONSTANTS__MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS:
1233 setMINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS((Double)newValue);
1234 return;
1235 case TaxationPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC:
1236 setMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC((Double)newValue);
1237 return;
1238 case TaxationPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE:
1239 setMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE((Double)newValue);
1240 return;
1241 case TaxationPackage.CONSTANTS__MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION:
1242 setMAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION((Double)newValue);
1243 return;
1244 case TaxationPackage.CONSTANTS__MAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION:
1245 setMAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION((Double)newValue);
1246 return;
1247 case TaxationPackage.CONSTANTS__MINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION:
1248 setMINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION((Double)newValue);
1249 return;
1250 case TaxationPackage.CONSTANTS__FLAT_RATE_CIM_DAILY:
1251 setFLAT_RATE_CIM_DAILY((Double)newValue);
1252 return;
1253 case TaxationPackage.CONSTANTS__FLAT_RATE_CIM_MONTHLY:
1254 setFLAT_RATE_CIM_MONTHLY((Double)newValue);
1255 return;
1256 case TaxationPackage.CONSTANTS__FLAT_RATE_CIM_YEARLY:
1257 setFLAT_RATE_CIM_YEARLY((Double)newValue);
1258 return;
1259 case TaxationPackage.CONSTANTS__FLAT_RATE_CIP_DAILY:
1260 setFLAT_RATE_CIP_DAILY((Double)newValue);
1261 return;
1262 case TaxationPackage.CONSTANTS__FLAT_RATE_CIP_MONTHLY:
1263 setFLAT_RATE_CIP_MONTHLY((Double)newValue);
1264 return;
1265 case TaxationPackage.CONSTANTS__FLAT_RATE_CIP_YEARLY:
1266 setFLAT_RATE_CIP_YEARLY((Double)newValue);
1267 return;
1268 case TaxationPackage.CONSTANTS__FLAT_RATE_CIS_DAILY:
1269 setFLAT_RATE_CIS_DAILY((Double)newValue);
1270 return;
1271 case TaxationPackage.CONSTANTS__FLAT_RATE_CIS_MONTHLY:
1272 setFLAT_RATE_CIS_MONTHLY((Double)newValue);
1273 return;
1274 case TaxationPackage.CONSTANTS__FLAT_RATE_CIS_YEARLY:
1275 setFLAT_RATE_CIS_YEARLY((Double)newValue);
1276 return;
1277 case TaxationPackage.CONSTANTS__FLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT:
1278 setFLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT((Double)newValue);
1279 return;
1280 case TaxationPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS:
1281 setMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS((Double)newValue);
1282 return;
1283 case TaxationPackage.CONSTANTS__FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE:
1284 setFLAT_RATE_FOR_MISCELLANEOUS_EXPENSE((Double)newValue);
1285 return;
1286 case TaxationPackage.CONSTANTS__DISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE:
1287 setDISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE((Double)newValue);
1288 return;
1289 case TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.CONSTANTS__MINIMUM_SALARY:
1311 setMINIMUM_SALARY(MINIMUM_SALARY_EDEFAULT);
1312 return;
1313 case TaxationPackage.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 TaxationPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS:
1317 setMAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS(MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS_EDEFAULT);
1318 return;
1319 case TaxationPackage.CONSTANTS__MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS:
1320 setMINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS(MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS_EDEFAULT);
1321 return;
1322 case TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.CONSTANTS__FLAT_RATE_CIM_DAILY:
1338 setFLAT_RATE_CIM_DAILY(FLAT_RATE_CIM_DAILY_EDEFAULT);
1339 return;
1340 case TaxationPackage.CONSTANTS__FLAT_RATE_CIM_MONTHLY:
1341 setFLAT_RATE_CIM_MONTHLY(FLAT_RATE_CIM_MONTHLY_EDEFAULT);
1342 return;
1343 case TaxationPackage.CONSTANTS__FLAT_RATE_CIM_YEARLY:
1344 setFLAT_RATE_CIM_YEARLY(FLAT_RATE_CIM_YEARLY_EDEFAULT);
1345 return;
1346 case TaxationPackage.CONSTANTS__FLAT_RATE_CIP_DAILY:
1347 setFLAT_RATE_CIP_DAILY(FLAT_RATE_CIP_DAILY_EDEFAULT);
1348 return;
1349 case TaxationPackage.CONSTANTS__FLAT_RATE_CIP_MONTHLY:
1350 setFLAT_RATE_CIP_MONTHLY(FLAT_RATE_CIP_MONTHLY_EDEFAULT);
1351 return;
1352 case TaxationPackage.CONSTANTS__FLAT_RATE_CIP_YEARLY:
1353 setFLAT_RATE_CIP_YEARLY(FLAT_RATE_CIP_YEARLY_EDEFAULT);
1354 return;
1355 case TaxationPackage.CONSTANTS__FLAT_RATE_CIS_DAILY:
1356 setFLAT_RATE_CIS_DAILY(FLAT_RATE_CIS_DAILY_EDEFAULT);
1357 return;
1358 case TaxationPackage.CONSTANTS__FLAT_RATE_CIS_MONTHLY:
1359 setFLAT_RATE_CIS_MONTHLY(FLAT_RATE_CIS_MONTHLY_EDEFAULT);
1360 return;
1361 case TaxationPackage.CONSTANTS__FLAT_RATE_CIS_YEARLY:
1362 setFLAT_RATE_CIS_YEARLY(FLAT_RATE_CIS_YEARLY_EDEFAULT);
1363 return;
1364 case TaxationPackage.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 TaxationPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS:
1368 setMAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS(MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS_EDEFAULT);
1369 return;
1370 case TaxationPackage.CONSTANTS__FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE:
1371 setFLAT_RATE_FOR_MISCELLANEOUS_EXPENSE(FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE_EDEFAULT);
1372 return;
1373 case TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.CONSTANTS__MINIMUM_SALARY:
1396 return minimuM_SALARY != MINIMUM_SALARY_EDEFAULT;
1397 case TaxationPackage.CONSTANTS__FLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION:
1398 return flaT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION != FLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION_EDEFAULT;
1399 case TaxationPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS:
1400 return maximuM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS != MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS_EDEFAULT;
1401 case TaxationPackage.CONSTANTS__MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS:
1402 return minimuM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS != MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS_EDEFAULT;
1403 case TaxationPackage.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 TaxationPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE:
1406 return maximuM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE != MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE_EDEFAULT;
1407 case TaxationPackage.CONSTANTS__MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION:
1408 return maximaL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION != MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION_EDEFAULT;
1409 case TaxationPackage.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 TaxationPackage.CONSTANTS__MINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION:
1412 return minimaL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION != MINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION_EDEFAULT;
1413 case TaxationPackage.CONSTANTS__FLAT_RATE_CIM_DAILY:
1414 return flaT_RATE_CIM_DAILY != FLAT_RATE_CIM_DAILY_EDEFAULT;
1415 case TaxationPackage.CONSTANTS__FLAT_RATE_CIM_MONTHLY:
1416 return flaT_RATE_CIM_MONTHLY != FLAT_RATE_CIM_MONTHLY_EDEFAULT;
1417 case TaxationPackage.CONSTANTS__FLAT_RATE_CIM_YEARLY:
1418 return flaT_RATE_CIM_YEARLY != FLAT_RATE_CIM_YEARLY_EDEFAULT;
1419 case TaxationPackage.CONSTANTS__FLAT_RATE_CIP_DAILY:
1420 return flaT_RATE_CIP_DAILY != FLAT_RATE_CIP_DAILY_EDEFAULT;
1421 case TaxationPackage.CONSTANTS__FLAT_RATE_CIP_MONTHLY:
1422 return flaT_RATE_CIP_MONTHLY != FLAT_RATE_CIP_MONTHLY_EDEFAULT;
1423 case TaxationPackage.CONSTANTS__FLAT_RATE_CIP_YEARLY:
1424 return flaT_RATE_CIP_YEARLY != FLAT_RATE_CIP_YEARLY_EDEFAULT;
1425 case TaxationPackage.CONSTANTS__FLAT_RATE_CIS_DAILY:
1426 return flaT_RATE_CIS_DAILY != FLAT_RATE_CIS_DAILY_EDEFAULT;
1427 case TaxationPackage.CONSTANTS__FLAT_RATE_CIS_MONTHLY:
1428 return flaT_RATE_CIS_MONTHLY != FLAT_RATE_CIS_MONTHLY_EDEFAULT;
1429 case TaxationPackage.CONSTANTS__FLAT_RATE_CIS_YEARLY:
1430 return flaT_RATE_CIS_YEARLY != FLAT_RATE_CIS_YEARLY_EDEFAULT;
1431 case TaxationPackage.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 TaxationPackage.CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS:
1434 return maximuM_DEDUCTIBLE_AMOUNT_FOR_DS != MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS_EDEFAULT;
1435 case TaxationPackage.CONSTANTS__FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE:
1436 return flaT_RATE_FOR_MISCELLANEOUS_EXPENSE != FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE_EDEFAULT;
1437 case TaxationPackage.CONSTANTS__DISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE:
1438 return disabilitY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE != DISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE_EDEFAULT;
1439 case TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/DSImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DSImpl.java
new file mode 100644
index 00000000..dabc6b3c
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DSImpl.java
@@ -0,0 +1,220 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.DS;
6import TaxationWithRoot.TaxationPackage;
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>DS</b></em>'.
17 * <!-- end-user-doc -->
18 * <p>
19 * The following features are implemented:
20 * </p>
21 * <ul>
22 * <li>{@link TaxationWithRoot.impl.DSImpl#getMaximum_deductible_amount <em>Maximum deductible amount</em>}</li>
23 * <li>{@link TaxationWithRoot.impl.DSImpl#getId3 <em>Id3</em>}</li>
24 * </ul>
25 *
26 * @generated
27 */
28public class DSImpl extends RootImpl implements DS {
29 /**
30 * The default value of the '{@link #getMaximum_deductible_amount() <em>Maximum deductible amount</em>}' attribute.
31 * <!-- begin-user-doc -->
32 * <!-- end-user-doc -->
33 * @see #getMaximum_deductible_amount()
34 * @generated
35 * @ordered
36 */
37 protected static final double MAXIMUM_DEDUCTIBLE_AMOUNT_EDEFAULT = 0.0;
38
39 /**
40 * The cached value of the '{@link #getMaximum_deductible_amount() <em>Maximum deductible amount</em>}' attribute.
41 * <!-- begin-user-doc -->
42 * <!-- end-user-doc -->
43 * @see #getMaximum_deductible_amount()
44 * @generated
45 * @ordered
46 */
47 protected double maximum_deductible_amount = MAXIMUM_DEDUCTIBLE_AMOUNT_EDEFAULT;
48
49 /**
50 * The default value of the '{@link #getId3() <em>Id3</em>}' attribute.
51 * <!-- begin-user-doc -->
52 * <!-- end-user-doc -->
53 * @see #getId3()
54 * @generated
55 * @ordered
56 */
57 protected static final String ID3_EDEFAULT = null;
58
59 /**
60 * The cached value of the '{@link #getId3() <em>Id3</em>}' attribute.
61 * <!-- begin-user-doc -->
62 * <!-- end-user-doc -->
63 * @see #getId3()
64 * @generated
65 * @ordered
66 */
67 protected String id3 = ID3_EDEFAULT;
68
69 /**
70 * <!-- begin-user-doc -->
71 * <!-- end-user-doc -->
72 * @generated
73 */
74 protected DSImpl() {
75 super();
76 }
77
78 /**
79 * <!-- begin-user-doc -->
80 * <!-- end-user-doc -->
81 * @generated
82 */
83 @Override
84 protected EClass eStaticClass() {
85 return TaxationPackage.Literals.DS;
86 }
87
88 /**
89 * <!-- begin-user-doc -->
90 * <!-- end-user-doc -->
91 * @generated
92 */
93 @Override
94 public double getMaximum_deductible_amount() {
95 return maximum_deductible_amount;
96 }
97
98 /**
99 * <!-- begin-user-doc -->
100 * <!-- end-user-doc -->
101 * @generated
102 */
103 @Override
104 public void setMaximum_deductible_amount(double newMaximum_deductible_amount) {
105 double oldMaximum_deductible_amount = maximum_deductible_amount;
106 maximum_deductible_amount = newMaximum_deductible_amount;
107 if (eNotificationRequired())
108 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.DS__MAXIMUM_DEDUCTIBLE_AMOUNT, oldMaximum_deductible_amount, maximum_deductible_amount));
109 }
110
111 /**
112 * <!-- begin-user-doc -->
113 * <!-- end-user-doc -->
114 * @generated
115 */
116 @Override
117 public String getId3() {
118 return id3;
119 }
120
121 /**
122 * <!-- begin-user-doc -->
123 * <!-- end-user-doc -->
124 * @generated
125 */
126 @Override
127 public void setId3(String newId3) {
128 String oldId3 = id3;
129 id3 = newId3;
130 if (eNotificationRequired())
131 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.DS__ID3, oldId3, id3));
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 TaxationPackage.DS__MAXIMUM_DEDUCTIBLE_AMOUNT:
143 return getMaximum_deductible_amount();
144 case TaxationPackage.DS__ID3:
145 return getId3();
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 TaxationPackage.DS__MAXIMUM_DEDUCTIBLE_AMOUNT:
159 setMaximum_deductible_amount((Double)newValue);
160 return;
161 case TaxationPackage.DS__ID3:
162 setId3((String)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 TaxationPackage.DS__MAXIMUM_DEDUCTIBLE_AMOUNT:
177 setMaximum_deductible_amount(MAXIMUM_DEDUCTIBLE_AMOUNT_EDEFAULT);
178 return;
179 case TaxationPackage.DS__ID3:
180 setId3(ID3_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 TaxationPackage.DS__MAXIMUM_DEDUCTIBLE_AMOUNT:
195 return maximum_deductible_amount != MAXIMUM_DEDUCTIBLE_AMOUNT_EDEFAULT;
196 case TaxationPackage.DS__ID3:
197 return ID3_EDEFAULT == null ? id3 != null : !ID3_EDEFAULT.equals(id3);
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(" (maximum_deductible_amount: ");
213 result.append(maximum_deductible_amount);
214 result.append(", id3: ");
215 result.append(id3);
216 result.append(')');
217 return result.toString();
218 }
219
220} //DSImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_DonationImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_DonationImpl.java
new file mode 100644
index 00000000..2340f538
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_DonationImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.DS_for_Donation;
6import TaxationWithRoot.TaxationPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>DS for Donation</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class DS_for_DonationImpl extends DSImpl implements DS_for_Donation {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected DS_for_DonationImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationPackage.Literals.DS_FOR_DONATION;
35 }
36
37} //DS_for_DonationImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Health_and_Pension_InsuranceImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Health_and_Pension_InsuranceImpl.java
new file mode 100644
index 00000000..98886913
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Health_and_Pension_InsuranceImpl.java
@@ -0,0 +1,165 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Category_of_Health_and_Pension_Insurances;
6import TaxationWithRoot.DS_for_Health_and_Pension_Insurance;
7import TaxationWithRoot.TaxationPackage;
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>DS for 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.DS_for_Health_and_Pension_InsuranceImpl#getInsurance_category <em>Insurance category</em>}</li>
24 * </ul>
25 *
26 * @generated
27 */
28public class DS_for_Health_and_Pension_InsuranceImpl extends DSImpl implements DS_for_Health_and_Pension_Insurance {
29 /**
30 * The default value of the '{@link #getInsurance_category() <em>Insurance category</em>}' attribute.
31 * <!-- begin-user-doc -->
32 * <!-- end-user-doc -->
33 * @see #getInsurance_category()
34 * @generated
35 * @ordered
36 */
37 protected static final Category_of_Health_and_Pension_Insurances INSURANCE_CATEGORY_EDEFAULT = Category_of_Health_and_Pension_Insurances.MANDATORY_HEALTH_AND_PENSION_INSURANCE;
38
39 /**
40 * The cached value of the '{@link #getInsurance_category() <em>Insurance category</em>}' attribute.
41 * <!-- begin-user-doc -->
42 * <!-- end-user-doc -->
43 * @see #getInsurance_category()
44 * @generated
45 * @ordered
46 */
47 protected Category_of_Health_and_Pension_Insurances insurance_category = INSURANCE_CATEGORY_EDEFAULT;
48
49 /**
50 * <!-- begin-user-doc -->
51 * <!-- end-user-doc -->
52 * @generated
53 */
54 protected DS_for_Health_and_Pension_InsuranceImpl() {
55 super();
56 }
57
58 /**
59 * <!-- begin-user-doc -->
60 * <!-- end-user-doc -->
61 * @generated
62 */
63 @Override
64 protected EClass eStaticClass() {
65 return TaxationPackage.Literals.DS_FOR_HEALTH_AND_PENSION_INSURANCE;
66 }
67
68 /**
69 * <!-- begin-user-doc -->
70 * <!-- end-user-doc -->
71 * @generated
72 */
73 @Override
74 public Category_of_Health_and_Pension_Insurances getInsurance_category() {
75 return insurance_category;
76 }
77
78 /**
79 * <!-- begin-user-doc -->
80 * <!-- end-user-doc -->
81 * @generated
82 */
83 @Override
84 public void setInsurance_category(Category_of_Health_and_Pension_Insurances newInsurance_category) {
85 Category_of_Health_and_Pension_Insurances oldInsurance_category = insurance_category;
86 insurance_category = newInsurance_category == null ? INSURANCE_CATEGORY_EDEFAULT : newInsurance_category;
87 if (eNotificationRequired())
88 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.DS_FOR_HEALTH_AND_PENSION_INSURANCE__INSURANCE_CATEGORY, oldInsurance_category, insurance_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 TaxationPackage.DS_FOR_HEALTH_AND_PENSION_INSURANCE__INSURANCE_CATEGORY:
100 return getInsurance_category();
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 TaxationPackage.DS_FOR_HEALTH_AND_PENSION_INSURANCE__INSURANCE_CATEGORY:
114 setInsurance_category((Category_of_Health_and_Pension_Insurances)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 TaxationPackage.DS_FOR_HEALTH_AND_PENSION_INSURANCE__INSURANCE_CATEGORY:
129 setInsurance_category(INSURANCE_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 TaxationPackage.DS_FOR_HEALTH_AND_PENSION_INSURANCE__INSURANCE_CATEGORY:
144 return insurance_category != INSURANCE_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(" (insurance_category: ");
160 result.append(insurance_category);
161 result.append(')');
162 return result.toString();
163 }
164
165} //DS_for_Health_and_Pension_InsuranceImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Interest_ExpenseImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Interest_ExpenseImpl.java
new file mode 100644
index 00000000..c7472a4e
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Interest_ExpenseImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.DS_for_Interest_Expense;
6import TaxationWithRoot.TaxationPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>DS for Interest Expense</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class DS_for_Interest_ExpenseImpl extends DSImpl implements DS_for_Interest_Expense {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected DS_for_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 TaxationPackage.Literals.DS_FOR_INTEREST_EXPENSE;
35 }
36
37} //DS_for_Interest_ExpenseImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Loss_CarryforwardImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Loss_CarryforwardImpl.java
new file mode 100644
index 00000000..f08a6c28
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Loss_CarryforwardImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.DS_for_Loss_Carryforward;
6import TaxationWithRoot.TaxationPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>DS for Loss Carryforward</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class DS_for_Loss_CarryforwardImpl extends DSImpl implements DS_for_Loss_Carryforward {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected DS_for_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 TaxationPackage.Literals.DS_FOR_LOSS_CARRYFORWARD;
35 }
36
37} //DS_for_Loss_CarryforwardImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Permanent_ExpenseImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Permanent_ExpenseImpl.java
new file mode 100644
index 00000000..09859cfc
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Permanent_ExpenseImpl.java
@@ -0,0 +1,165 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Category_of_Permanent_Expense;
6import TaxationWithRoot.DS_for_Permanent_Expense;
7import TaxationWithRoot.TaxationPackage;
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>DS for 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.DS_for_Permanent_ExpenseImpl#getPermanent_expense_category <em>Permanent expense category</em>}</li>
24 * </ul>
25 *
26 * @generated
27 */
28public class DS_for_Permanent_ExpenseImpl extends DSImpl implements DS_for_Permanent_Expense {
29 /**
30 * The default value of the '{@link #getPermanent_expense_category() <em>Permanent expense category</em>}' attribute.
31 * <!-- begin-user-doc -->
32 * <!-- end-user-doc -->
33 * @see #getPermanent_expense_category()
34 * @generated
35 * @ordered
36 */
37 protected static final Category_of_Permanent_Expense PERMANENT_EXPENSE_CATEGORY_EDEFAULT = Category_of_Permanent_Expense.MISCELLANEOUS_DEBT;
38
39 /**
40 * The cached value of the '{@link #getPermanent_expense_category() <em>Permanent expense category</em>}' attribute.
41 * <!-- begin-user-doc -->
42 * <!-- end-user-doc -->
43 * @see #getPermanent_expense_category()
44 * @generated
45 * @ordered
46 */
47 protected Category_of_Permanent_Expense permanent_expense_category = PERMANENT_EXPENSE_CATEGORY_EDEFAULT;
48
49 /**
50 * <!-- begin-user-doc -->
51 * <!-- end-user-doc -->
52 * @generated
53 */
54 protected DS_for_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 TaxationPackage.Literals.DS_FOR_PERMANENT_EXPENSE;
66 }
67
68 /**
69 * <!-- begin-user-doc -->
70 * <!-- end-user-doc -->
71 * @generated
72 */
73 @Override
74 public Category_of_Permanent_Expense getPermanent_expense_category() {
75 return permanent_expense_category;
76 }
77
78 /**
79 * <!-- begin-user-doc -->
80 * <!-- end-user-doc -->
81 * @generated
82 */
83 @Override
84 public void setPermanent_expense_category(Category_of_Permanent_Expense newPermanent_expense_category) {
85 Category_of_Permanent_Expense oldPermanent_expense_category = permanent_expense_category;
86 permanent_expense_category = newPermanent_expense_category == null ? PERMANENT_EXPENSE_CATEGORY_EDEFAULT : newPermanent_expense_category;
87 if (eNotificationRequired())
88 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.DS_FOR_PERMANENT_EXPENSE__PERMANENT_EXPENSE_CATEGORY, oldPermanent_expense_category, permanent_expense_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 TaxationPackage.DS_FOR_PERMANENT_EXPENSE__PERMANENT_EXPENSE_CATEGORY:
100 return getPermanent_expense_category();
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 TaxationPackage.DS_FOR_PERMANENT_EXPENSE__PERMANENT_EXPENSE_CATEGORY:
114 setPermanent_expense_category((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 TaxationPackage.DS_FOR_PERMANENT_EXPENSE__PERMANENT_EXPENSE_CATEGORY:
129 setPermanent_expense_category(PERMANENT_EXPENSE_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 TaxationPackage.DS_FOR_PERMANENT_EXPENSE__PERMANENT_EXPENSE_CATEGORY:
144 return permanent_expense_category != PERMANENT_EXPENSE_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(" (permanent_expense_category: ");
160 result.append(permanent_expense_category);
161 result.append(')');
162 return result.toString();
163 }
164
165} //DS_for_Permanent_ExpenseImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Private_Insurance_and_PlanImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Private_Insurance_and_PlanImpl.java
new file mode 100644
index 00000000..479477c9
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Private_Insurance_and_PlanImpl.java
@@ -0,0 +1,165 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Category_of_Private_Insurance_and_Plan;
6import TaxationWithRoot.DS_for_Private_Insurance_and_Plan;
7import TaxationWithRoot.TaxationPackage;
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>DS for 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.DS_for_Private_Insurance_and_PlanImpl#getPrivate_insurance_and_plan_category <em>Private insurance and plan category</em>}</li>
24 * </ul>
25 *
26 * @generated
27 */
28public class DS_for_Private_Insurance_and_PlanImpl extends DSImpl implements DS_for_Private_Insurance_and_Plan {
29 /**
30 * The default value of the '{@link #getPrivate_insurance_and_plan_category() <em>Private insurance and plan category</em>}' attribute.
31 * <!-- begin-user-doc -->
32 * <!-- end-user-doc -->
33 * @see #getPrivate_insurance_and_plan_category()
34 * @generated
35 * @ordered
36 */
37 protected static final Category_of_Private_Insurance_and_Plan PRIVATE_INSURANCE_AND_PLAN_CATEGORY_EDEFAULT = Category_of_Private_Insurance_and_Plan.PRIVATE_INSURANCE;
38
39 /**
40 * The cached value of the '{@link #getPrivate_insurance_and_plan_category() <em>Private insurance and plan category</em>}' attribute.
41 * <!-- begin-user-doc -->
42 * <!-- end-user-doc -->
43 * @see #getPrivate_insurance_and_plan_category()
44 * @generated
45 * @ordered
46 */
47 protected Category_of_Private_Insurance_and_Plan private_insurance_and_plan_category = PRIVATE_INSURANCE_AND_PLAN_CATEGORY_EDEFAULT;
48
49 /**
50 * <!-- begin-user-doc -->
51 * <!-- end-user-doc -->
52 * @generated
53 */
54 protected DS_for_Private_Insurance_and_PlanImpl() {
55 super();
56 }
57
58 /**
59 * <!-- begin-user-doc -->
60 * <!-- end-user-doc -->
61 * @generated
62 */
63 @Override
64 protected EClass eStaticClass() {
65 return TaxationPackage.Literals.DS_FOR_PRIVATE_INSURANCE_AND_PLAN;
66 }
67
68 /**
69 * <!-- begin-user-doc -->
70 * <!-- end-user-doc -->
71 * @generated
72 */
73 @Override
74 public Category_of_Private_Insurance_and_Plan getPrivate_insurance_and_plan_category() {
75 return private_insurance_and_plan_category;
76 }
77
78 /**
79 * <!-- begin-user-doc -->
80 * <!-- end-user-doc -->
81 * @generated
82 */
83 @Override
84 public void setPrivate_insurance_and_plan_category(Category_of_Private_Insurance_and_Plan newPrivate_insurance_and_plan_category) {
85 Category_of_Private_Insurance_and_Plan oldPrivate_insurance_and_plan_category = private_insurance_and_plan_category;
86 private_insurance_and_plan_category = newPrivate_insurance_and_plan_category == null ? PRIVATE_INSURANCE_AND_PLAN_CATEGORY_EDEFAULT : newPrivate_insurance_and_plan_category;
87 if (eNotificationRequired())
88 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.DS_FOR_PRIVATE_INSURANCE_AND_PLAN__PRIVATE_INSURANCE_AND_PLAN_CATEGORY, oldPrivate_insurance_and_plan_category, private_insurance_and_plan_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 TaxationPackage.DS_FOR_PRIVATE_INSURANCE_AND_PLAN__PRIVATE_INSURANCE_AND_PLAN_CATEGORY:
100 return getPrivate_insurance_and_plan_category();
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 TaxationPackage.DS_FOR_PRIVATE_INSURANCE_AND_PLAN__PRIVATE_INSURANCE_AND_PLAN_CATEGORY:
114 setPrivate_insurance_and_plan_category((Category_of_Private_Insurance_and_Plan)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 TaxationPackage.DS_FOR_PRIVATE_INSURANCE_AND_PLAN__PRIVATE_INSURANCE_AND_PLAN_CATEGORY:
129 setPrivate_insurance_and_plan_category(PRIVATE_INSURANCE_AND_PLAN_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 TaxationPackage.DS_FOR_PRIVATE_INSURANCE_AND_PLAN__PRIVATE_INSURANCE_AND_PLAN_CATEGORY:
144 return private_insurance_and_plan_category != PRIVATE_INSURANCE_AND_PLAN_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(" (private_insurance_and_plan_category: ");
160 result.append(private_insurance_and_plan_category);
161 result.append(')');
162 return result.toString();
163 }
164
165} //DS_for_Private_Insurance_and_PlanImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DependentImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DependentImpl.java
new file mode 100644
index 00000000..3067b0f0
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.EXTERNAL_ALLOWANCE__PERSON, External_Allowance.class, msgs);
264 if (newAllowances != null)
265 msgs = ((InternalEObject)newAllowances).eInverseAdd(this, TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.FROM_AGENT__DEPENDENT, FromAgent.class, msgs);
369 if (newFrom_agent != null)
370 msgs = ((InternalEObject)newFrom_agent).eInverseAdd(this, TaxationPackage.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, TaxationPackage.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, TaxationPackage.DEPENDENT__EXPENSE, TaxationPackage.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 TaxationPackage.DEPENDENT__RESPONSIBLE_PERSON:
401 if (eInternalContainer() != null)
402 msgs = eBasicRemoveFromContainer(msgs);
403 return basicSetResponsible_person((Tax_Payer)otherEnd, msgs);
404 case TaxationPackage.DEPENDENT__ALLOWANCES:
405 if (allowances != null)
406 msgs = ((InternalEObject)allowances).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TaxationPackage.DEPENDENT__ALLOWANCES, null, msgs);
407 return basicSetAllowances((External_Allowance)otherEnd, msgs);
408 case TaxationPackage.DEPENDENT__HOUSEHOLD:
409 if (eInternalContainer() != null)
410 msgs = eBasicRemoveFromContainer(msgs);
411 return basicSetHousehold((Household)otherEnd, msgs);
412 case TaxationPackage.DEPENDENT__FROM_AGENT:
413 if (from_agent != null)
414 msgs = ((InternalEObject)from_agent).eInverseRemove(this, TaxationPackage.FROM_AGENT__DEPENDENT, FromAgent.class, msgs);
415 return basicSetFrom_agent((FromAgent)otherEnd, msgs);
416 case TaxationPackage.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 TaxationPackage.DEPENDENT__RESPONSIBLE_PERSON:
431 return basicSetResponsible_person(null, msgs);
432 case TaxationPackage.DEPENDENT__ALLOWANCES:
433 return basicSetAllowances(null, msgs);
434 case TaxationPackage.DEPENDENT__HOUSEHOLD:
435 return basicSetHousehold(null, msgs);
436 case TaxationPackage.DEPENDENT__FROM_AGENT:
437 return basicSetFrom_agent(null, msgs);
438 case TaxationPackage.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 TaxationPackage.DEPENDENT__RESPONSIBLE_PERSON:
453 return eInternalContainer().eInverseRemove(this, TaxationPackage.TAX_PAYER__DEPENDENTS, Tax_Payer.class, msgs);
454 case TaxationPackage.DEPENDENT__HOUSEHOLD:
455 return eInternalContainer().eInverseRemove(this, TaxationPackage.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 TaxationPackage.DEPENDENT__DEPENDENT_TYPE:
469 return getDependent_type();
470 case TaxationPackage.DEPENDENT__RESPONSIBLE_PERSON:
471 return getResponsible_person();
472 case TaxationPackage.DEPENDENT__CONTINUED_STUDIES:
473 return isContinued_studies();
474 case TaxationPackage.DEPENDENT__ALLOWANCES:
475 return getAllowances();
476 case TaxationPackage.DEPENDENT__HOUSEHOLD:
477 return getHousehold();
478 case TaxationPackage.DEPENDENT__FROM_AGENT:
479 if (resolve) return getFrom_agent();
480 return basicGetFrom_agent();
481 case TaxationPackage.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 TaxationPackage.DEPENDENT__DEPENDENT_TYPE:
497 setDependent_type((Dependent_Type)newValue);
498 return;
499 case TaxationPackage.DEPENDENT__RESPONSIBLE_PERSON:
500 setResponsible_person((Tax_Payer)newValue);
501 return;
502 case TaxationPackage.DEPENDENT__CONTINUED_STUDIES:
503 setContinued_studies((Boolean)newValue);
504 return;
505 case TaxationPackage.DEPENDENT__ALLOWANCES:
506 setAllowances((External_Allowance)newValue);
507 return;
508 case TaxationPackage.DEPENDENT__HOUSEHOLD:
509 setHousehold((Household)newValue);
510 return;
511 case TaxationPackage.DEPENDENT__FROM_AGENT:
512 setFrom_agent((FromAgent)newValue);
513 return;
514 case TaxationPackage.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 TaxationPackage.DEPENDENT__DEPENDENT_TYPE:
531 setDependent_type(DEPENDENT_TYPE_EDEFAULT);
532 return;
533 case TaxationPackage.DEPENDENT__RESPONSIBLE_PERSON:
534 setResponsible_person((Tax_Payer)null);
535 return;
536 case TaxationPackage.DEPENDENT__CONTINUED_STUDIES:
537 setContinued_studies(CONTINUED_STUDIES_EDEFAULT);
538 return;
539 case TaxationPackage.DEPENDENT__ALLOWANCES:
540 setAllowances((External_Allowance)null);
541 return;
542 case TaxationPackage.DEPENDENT__HOUSEHOLD:
543 setHousehold((Household)null);
544 return;
545 case TaxationPackage.DEPENDENT__FROM_AGENT:
546 setFrom_agent((FromAgent)null);
547 return;
548 case TaxationPackage.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 TaxationPackage.DEPENDENT__DEPENDENT_TYPE:
564 return dependent_type != DEPENDENT_TYPE_EDEFAULT;
565 case TaxationPackage.DEPENDENT__RESPONSIBLE_PERSON:
566 return getResponsible_person() != null;
567 case TaxationPackage.DEPENDENT__CONTINUED_STUDIES:
568 return continued_studies != CONTINUED_STUDIES_EDEFAULT;
569 case TaxationPackage.DEPENDENT__ALLOWANCES:
570 return allowances != null;
571 case TaxationPackage.DEPENDENT__HOUSEHOLD:
572 return getHousehold() != null;
573 case TaxationPackage.DEPENDENT__FROM_AGENT:
574 return from_agent != null;
575 case TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/DonationImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DonationImpl.java
new file mode 100644
index 00000000..9a34362f
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DonationImpl.java
@@ -0,0 +1,220 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Donation;
6import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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, TaxationPackage.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 TaxationPackage.DONATION__BENEFICIARY1:
143 return getBeneficiary1();
144 case TaxationPackage.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 TaxationPackage.DONATION__BENEFICIARY1:
159 setBeneficiary1((String)newValue);
160 return;
161 case TaxationPackage.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 TaxationPackage.DONATION__BENEFICIARY1:
177 setBeneficiary1(BENEFICIARY1_EDEFAULT);
178 return;
179 case TaxationPackage.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 TaxationPackage.DONATION__BENEFICIARY1:
195 return BENEFICIARY1_EDEFAULT == null ? beneficiary1 != null : !BENEFICIARY1_EDEFAULT.equals(beneficiary1);
196 case TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/Employment_IncomeImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Employment_IncomeImpl.java
new file mode 100644
index 00000000..537e0006
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Employment_IncomeImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Employment_Income;
6import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.Literals.EMPLOYMENT_INCOME;
35 }
36
37} //Employment_IncomeImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/ExpenseImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/ExpenseImpl.java
new file mode 100644
index 00000000..7aaf4b51
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.DEPENDENT__EXPENSE, Dependent.class, msgs);
252 if (newDependent != null)
253 msgs = ((InternalEObject)newDependent).eInverseAdd(this, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.FROM_AGENT__EXPENSE, FromAgent.class, msgs);
314 if (newFrom_agent != null)
315 msgs = ((InternalEObject)newFrom_agent).eInverseAdd(this, TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.PHYSICAL_PERSON__EXPENSES, Physical_Person.class, msgs);
442 if (newBeneficiary != null)
443 msgs = ((InternalEObject)newBeneficiary).eInverseAdd(this, TaxationPackage.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, TaxationPackage.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 TaxationPackage.EXPENSE__DEPENDENT:
460 if (dependent != null)
461 msgs = ((InternalEObject)dependent).eInverseRemove(this, TaxationPackage.DEPENDENT__EXPENSE, Dependent.class, msgs);
462 return basicSetDependent((Dependent)otherEnd, msgs);
463 case TaxationPackage.EXPENSE__FROM_AGENT:
464 if (from_agent != null)
465 msgs = ((InternalEObject)from_agent).eInverseRemove(this, TaxationPackage.FROM_AGENT__EXPENSE, FromAgent.class, msgs);
466 return basicSetFrom_agent((FromAgent)otherEnd, msgs);
467 case TaxationPackage.EXPENSE__INCOME:
468 if (eInternalContainer() != null)
469 msgs = eBasicRemoveFromContainer(msgs);
470 return basicSetIncome((Income)otherEnd, msgs);
471 case TaxationPackage.EXPENSE__BENEFICIARY:
472 if (beneficiary != null)
473 msgs = ((InternalEObject)beneficiary).eInverseRemove(this, TaxationPackage.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 TaxationPackage.EXPENSE__DEPENDENT:
488 return basicSetDependent(null, msgs);
489 case TaxationPackage.EXPENSE__FROM_AGENT:
490 return basicSetFrom_agent(null, msgs);
491 case TaxationPackage.EXPENSE__INCOME:
492 return basicSetIncome(null, msgs);
493 case TaxationPackage.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 TaxationPackage.EXPENSE__INCOME:
508 return eInternalContainer().eInverseRemove(this, TaxationPackage.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 TaxationPackage.EXPENSE__DECLARED_AMOUNT:
522 return getDeclared_amount();
523 case TaxationPackage.EXPENSE__EXPENSE_PURPOSE:
524 return getExpense_purpose();
525 case TaxationPackage.EXPENSE__DEPENDENT:
526 if (resolve) return getDependent();
527 return basicGetDependent();
528 case TaxationPackage.EXPENSE__FROM_AGENT:
529 if (resolve) return getFrom_agent();
530 return basicGetFrom_agent();
531 case TaxationPackage.EXPENSE__INCOME:
532 return getIncome();
533 case TaxationPackage.EXPENSE__ID4:
534 return getId4();
535 case TaxationPackage.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 TaxationPackage.EXPENSE__DECLARED_AMOUNT:
551 setDeclared_amount((Double)newValue);
552 return;
553 case TaxationPackage.EXPENSE__EXPENSE_PURPOSE:
554 setExpense_purpose((Expense_Purpose)newValue);
555 return;
556 case TaxationPackage.EXPENSE__DEPENDENT:
557 setDependent((Dependent)newValue);
558 return;
559 case TaxationPackage.EXPENSE__FROM_AGENT:
560 setFrom_agent((FromAgent)newValue);
561 return;
562 case TaxationPackage.EXPENSE__INCOME:
563 setIncome((Income)newValue);
564 return;
565 case TaxationPackage.EXPENSE__ID4:
566 setId4((String)newValue);
567 return;
568 case TaxationPackage.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 TaxationPackage.EXPENSE__DECLARED_AMOUNT:
584 setDeclared_amount(DECLARED_AMOUNT_EDEFAULT);
585 return;
586 case TaxationPackage.EXPENSE__EXPENSE_PURPOSE:
587 setExpense_purpose(EXPENSE_PURPOSE_EDEFAULT);
588 return;
589 case TaxationPackage.EXPENSE__DEPENDENT:
590 setDependent((Dependent)null);
591 return;
592 case TaxationPackage.EXPENSE__FROM_AGENT:
593 setFrom_agent((FromAgent)null);
594 return;
595 case TaxationPackage.EXPENSE__INCOME:
596 setIncome((Income)null);
597 return;
598 case TaxationPackage.EXPENSE__ID4:
599 setId4(ID4_EDEFAULT);
600 return;
601 case TaxationPackage.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 TaxationPackage.EXPENSE__DECLARED_AMOUNT:
617 return declared_amount != DECLARED_AMOUNT_EDEFAULT;
618 case TaxationPackage.EXPENSE__EXPENSE_PURPOSE:
619 return expense_purpose != EXPENSE_PURPOSE_EDEFAULT;
620 case TaxationPackage.EXPENSE__DEPENDENT:
621 return dependent != null;
622 case TaxationPackage.EXPENSE__FROM_AGENT:
623 return from_agent != null;
624 case TaxationPackage.EXPENSE__INCOME:
625 return getIncome() != null;
626 case TaxationPackage.EXPENSE__ID4:
627 return ID4_EDEFAULT == null ? id4 != null : !ID4_EDEFAULT.equals(id4);
628 case TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/External_AllowanceImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/External_AllowanceImpl.java
new file mode 100644
index 00000000..1949a481
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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, TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.EXTERNAL_ALLOWANCE__PERSON:
364 return eInternalContainer().eInverseRemove(this, TaxationPackage.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 TaxationPackage.EXTERNAL_ALLOWANCE__GRANTOR:
378 return getGrantor();
379 case TaxationPackage.EXTERNAL_ALLOWANCE__STARTING_YEAR:
380 return getStarting_year();
381 case TaxationPackage.EXTERNAL_ALLOWANCE__ENDING_YEAR:
382 return getEnding_year();
383 case TaxationPackage.EXTERNAL_ALLOWANCE__RECIVER:
384 if (resolve) return getReciver();
385 return basicGetReciver();
386 case TaxationPackage.EXTERNAL_ALLOWANCE__ID5:
387 return getId5();
388 case TaxationPackage.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 TaxationPackage.EXTERNAL_ALLOWANCE__GRANTOR:
403 setGrantor((Grantor)newValue);
404 return;
405 case TaxationPackage.EXTERNAL_ALLOWANCE__STARTING_YEAR:
406 setStarting_year((Integer)newValue);
407 return;
408 case TaxationPackage.EXTERNAL_ALLOWANCE__ENDING_YEAR:
409 setEnding_year((Integer)newValue);
410 return;
411 case TaxationPackage.EXTERNAL_ALLOWANCE__RECIVER:
412 setReciver((Physical_Person)newValue);
413 return;
414 case TaxationPackage.EXTERNAL_ALLOWANCE__ID5:
415 setId5((String)newValue);
416 return;
417 case TaxationPackage.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 TaxationPackage.EXTERNAL_ALLOWANCE__GRANTOR:
433 setGrantor(GRANTOR_EDEFAULT);
434 return;
435 case TaxationPackage.EXTERNAL_ALLOWANCE__STARTING_YEAR:
436 setStarting_year(STARTING_YEAR_EDEFAULT);
437 return;
438 case TaxationPackage.EXTERNAL_ALLOWANCE__ENDING_YEAR:
439 setEnding_year(ENDING_YEAR_EDEFAULT);
440 return;
441 case TaxationPackage.EXTERNAL_ALLOWANCE__RECIVER:
442 setReciver((Physical_Person)null);
443 return;
444 case TaxationPackage.EXTERNAL_ALLOWANCE__ID5:
445 setId5(ID5_EDEFAULT);
446 return;
447 case TaxationPackage.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 TaxationPackage.EXTERNAL_ALLOWANCE__GRANTOR:
463 return grantor != GRANTOR_EDEFAULT;
464 case TaxationPackage.EXTERNAL_ALLOWANCE__STARTING_YEAR:
465 return starting_year != STARTING_YEAR_EDEFAULT;
466 case TaxationPackage.EXTERNAL_ALLOWANCE__ENDING_YEAR:
467 return ending_year != ENDING_YEAR_EDEFAULT;
468 case TaxationPackage.EXTERNAL_ALLOWANCE__RECIVER:
469 return reciver != null;
470 case TaxationPackage.EXTERNAL_ALLOWANCE__ID5:
471 return ID5_EDEFAULT == null ? id5 != null : !ID5_EDEFAULT.equals(id5);
472 case TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/Extraordinary_Expense_CEImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Extraordinary_Expense_CEImpl.java
new file mode 100644
index 00000000..2951776a
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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, TaxationPackage.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 TaxationPackage.EXTRAORDINARY_EXPENSE_CE__THRESHOLDED_DEDUCTION_PERCENTAGE:
144 return getThresholded_deduction_percentage();
145 case TaxationPackage.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 TaxationPackage.EXTRAORDINARY_EXPENSE_CE__THRESHOLDED_DEDUCTION_PERCENTAGE:
160 setThresholded_deduction_percentage((Double)newValue);
161 return;
162 case TaxationPackage.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 TaxationPackage.EXTRAORDINARY_EXPENSE_CE__THRESHOLDED_DEDUCTION_PERCENTAGE:
178 setThresholded_deduction_percentage(THRESHOLDED_DEDUCTION_PERCENTAGE_EDEFAULT);
179 return;
180 case TaxationPackage.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 TaxationPackage.EXTRAORDINARY_EXPENSE_CE__THRESHOLDED_DEDUCTION_PERCENTAGE:
196 return thresholded_deduction_percentage != THRESHOLDED_DEDUCTION_PERCENTAGE_EDEFAULT;
197 case TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/FDImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/FDImpl.java
new file mode 100644
index 00000000..270e8f39
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/FDImpl.java
@@ -0,0 +1,164 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.FD;
6import TaxationWithRoot.TaxationPackage;
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>FD</b></em>'.
17 * <!-- end-user-doc -->
18 * <p>
19 * The following features are implemented:
20 * </p>
21 * <ul>
22 * <li>{@link TaxationWithRoot.impl.FDImpl#getDistance_declared_in_january <em>Distance declared in january</em>}</li>
23 * </ul>
24 *
25 * @generated
26 */
27public class FDImpl extends Professional_Expenses_DeductionImpl implements FD {
28 /**
29 * The default value of the '{@link #getDistance_declared_in_january() <em>Distance declared in january</em>}' attribute.
30 * <!-- begin-user-doc -->
31 * <!-- end-user-doc -->
32 * @see #getDistance_declared_in_january()
33 * @generated
34 * @ordered
35 */
36 protected static final double DISTANCE_DECLARED_IN_JANUARY_EDEFAULT = 0.0;
37
38 /**
39 * The cached value of the '{@link #getDistance_declared_in_january() <em>Distance declared in january</em>}' attribute.
40 * <!-- begin-user-doc -->
41 * <!-- end-user-doc -->
42 * @see #getDistance_declared_in_january()
43 * @generated
44 * @ordered
45 */
46 protected double distance_declared_in_january = DISTANCE_DECLARED_IN_JANUARY_EDEFAULT;
47
48 /**
49 * <!-- begin-user-doc -->
50 * <!-- end-user-doc -->
51 * @generated
52 */
53 protected FDImpl() {
54 super();
55 }
56
57 /**
58 * <!-- begin-user-doc -->
59 * <!-- end-user-doc -->
60 * @generated
61 */
62 @Override
63 protected EClass eStaticClass() {
64 return TaxationPackage.Literals.FD;
65 }
66
67 /**
68 * <!-- begin-user-doc -->
69 * <!-- end-user-doc -->
70 * @generated
71 */
72 @Override
73 public double getDistance_declared_in_january() {
74 return distance_declared_in_january;
75 }
76
77 /**
78 * <!-- begin-user-doc -->
79 * <!-- end-user-doc -->
80 * @generated
81 */
82 @Override
83 public void setDistance_declared_in_january(double newDistance_declared_in_january) {
84 double oldDistance_declared_in_january = distance_declared_in_january;
85 distance_declared_in_january = newDistance_declared_in_january;
86 if (eNotificationRequired())
87 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.FD__DISTANCE_DECLARED_IN_JANUARY, oldDistance_declared_in_january, distance_declared_in_january));
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 TaxationPackage.FD__DISTANCE_DECLARED_IN_JANUARY:
99 return getDistance_declared_in_january();
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 TaxationPackage.FD__DISTANCE_DECLARED_IN_JANUARY:
113 setDistance_declared_in_january((Double)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 TaxationPackage.FD__DISTANCE_DECLARED_IN_JANUARY:
128 setDistance_declared_in_january(DISTANCE_DECLARED_IN_JANUARY_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 TaxationPackage.FD__DISTANCE_DECLARED_IN_JANUARY:
143 return distance_declared_in_january != DISTANCE_DECLARED_IN_JANUARY_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(" (distance_declared_in_january: ");
159 result.append(distance_declared_in_january);
160 result.append(')');
161 return result.toString();
162 }
163
164} //FDImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/FOImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/FOImpl.java
new file mode 100644
index 00000000..18919a65
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/FOImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.FO;
6import TaxationWithRoot.TaxationPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>FO</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class FOImpl extends Professional_Expenses_DeductionImpl implements FO {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected 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 TaxationPackage.Literals.FO;
35 }
36
37} //FOImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Fiscal_AddressImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Fiscal_AddressImpl.java
new file mode 100644
index 00000000..007f77de
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Fiscal_AddressImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Fiscal_Address;
6import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.Literals.FISCAL_ADDRESS;
35 }
36
37} //Fiscal_AddressImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Foreign_IncomeImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Foreign_IncomeImpl.java
new file mode 100644
index 00000000..2eeee8e5
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Foreign_IncomeImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Foreign_Income;
6import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.Literals.FOREIGN_INCOME;
35 }
36
37} //Foreign_IncomeImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/FromAgentImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/FromAgentImpl.java
new file mode 100644
index 00000000..c5e0181b
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.EXPENSE__FROM_AGENT, Expense.class, msgs);
238 if (newExpense != null)
239 msgs = ((InternalEObject)newExpense).eInverseAdd(this, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.DEPENDENT__FROM_AGENT, Dependent.class, msgs);
323 if (newDependent != null)
324 msgs = ((InternalEObject)newDependent).eInverseAdd(this, TaxationPackage.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, TaxationPackage.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 TaxationPackage.FROM_AGENT__TAX_PAYER:
341 if (eInternalContainer() != null)
342 msgs = eBasicRemoveFromContainer(msgs);
343 return basicSetTaxPayer((Tax_Payer)otherEnd, msgs);
344 case TaxationPackage.FROM_AGENT__EXPENSE:
345 if (expense != null)
346 msgs = ((InternalEObject)expense).eInverseRemove(this, TaxationPackage.EXPENSE__FROM_AGENT, Expense.class, msgs);
347 return basicSetExpense((Expense)otherEnd, msgs);
348 case TaxationPackage.FROM_AGENT__DEPENDENT:
349 if (dependent != null)
350 msgs = ((InternalEObject)dependent).eInverseRemove(this, TaxationPackage.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 TaxationPackage.FROM_AGENT__TAX_PAYER:
365 return basicSetTaxPayer(null, msgs);
366 case TaxationPackage.FROM_AGENT__EXPENSE:
367 return basicSetExpense(null, msgs);
368 case TaxationPackage.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 TaxationPackage.FROM_AGENT__TAX_PAYER:
383 return eInternalContainer().eInverseRemove(this, TaxationPackage.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 TaxationPackage.FROM_AGENT__TAX_PAYER:
397 return getTaxPayer();
398 case TaxationPackage.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 TaxationPackage.FROM_AGENT__EXPENSE:
401 if (resolve) return getExpense();
402 return basicGetExpense();
403 case TaxationPackage.FROM_AGENT__IS_ELIGIBLE_DEBT:
404 return isIs_eligible_debt();
405 case TaxationPackage.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 TaxationPackage.FROM_AGENT__TAX_PAYER:
421 setTaxPayer((Tax_Payer)newValue);
422 return;
423 case TaxationPackage.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 TaxationPackage.FROM_AGENT__EXPENSE:
427 setExpense((Expense)newValue);
428 return;
429 case TaxationPackage.FROM_AGENT__IS_ELIGIBLE_DEBT:
430 setIs_eligible_debt((Boolean)newValue);
431 return;
432 case TaxationPackage.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 TaxationPackage.FROM_AGENT__TAX_PAYER:
448 setTaxPayer((Tax_Payer)null);
449 return;
450 case TaxationPackage.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 TaxationPackage.FROM_AGENT__EXPENSE:
454 setExpense((Expense)null);
455 return;
456 case TaxationPackage.FROM_AGENT__IS_ELIGIBLE_DEBT:
457 setIs_eligible_debt(IS_ELIGIBLE_DEBT_EDEFAULT);
458 return;
459 case TaxationPackage.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 TaxationPackage.FROM_AGENT__TAX_PAYER:
475 return getTaxPayer() != null;
476 case TaxationPackage.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 TaxationPackage.FROM_AGENT__EXPENSE:
479 return expense != null;
480 case TaxationPackage.FROM_AGENT__IS_ELIGIBLE_DEBT:
481 return is_eligible_debt != IS_ELIGIBLE_DEBT_EDEFAULT;
482 case TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/FromLawImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/FromLawImpl.java
new file mode 100644
index 00000000..4a607481
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/FromLawImpl.java
@@ -0,0 +1,268 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.FromLaw;
6import TaxationWithRoot.Tax_Payer;
7import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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, TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.FROM_LAW__TAX_PAYER:
179 return eInternalContainer().eInverseRemove(this, TaxationPackage.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 TaxationPackage.FROM_LAW__ID:
193 return getId();
194 case TaxationPackage.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 TaxationPackage.FROM_LAW__ID:
209 setId((String)newValue);
210 return;
211 case TaxationPackage.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 TaxationPackage.FROM_LAW__ID:
227 setId(ID_EDEFAULT);
228 return;
229 case TaxationPackage.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 TaxationPackage.FROM_LAW__ID:
245 return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
246 case TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/Habitual_AddressImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Habitual_AddressImpl.java
new file mode 100644
index 00000000..97673402
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Habitual_AddressImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Habitual_Address;
6import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.Literals.HABITUAL_ADDRESS;
35 }
36
37} //Habitual_AddressImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Health_and_Pension_InsuranceImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Health_and_Pension_InsuranceImpl.java
new file mode 100644
index 00000000..1ea4d463
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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, TaxationPackage.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 TaxationPackage.HEALTH_AND_PENSION_INSURANCE__CATEGORY:
144 return getCategory();
145 case TaxationPackage.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 TaxationPackage.HEALTH_AND_PENSION_INSURANCE__CATEGORY:
160 setCategory((Category_of_Health_and_Pension_Insurances)newValue);
161 return;
162 case TaxationPackage.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 TaxationPackage.HEALTH_AND_PENSION_INSURANCE__CATEGORY:
178 setCategory(CATEGORY_EDEFAULT);
179 return;
180 case TaxationPackage.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 TaxationPackage.HEALTH_AND_PENSION_INSURANCE__CATEGORY:
196 return category != CATEGORY_EDEFAULT;
197 case TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/HouseholdImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/HouseholdImpl.java
new file mode 100644
index 00000000..770bb5e0
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/HouseholdImpl.java
@@ -0,0 +1,311 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Dependent;
6import TaxationWithRoot.Household;
7import TaxationWithRoot.Legal_Union_Record;
8import TaxationWithRoot.TaxationPackage;
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.util.EObjectContainmentWithInverseEList;
22import org.eclipse.emf.ecore.util.InternalEList;
23
24/**
25 * <!-- begin-user-doc -->
26 * An implementation of the model object '<em><b>Household</b></em>'.
27 * <!-- end-user-doc -->
28 * <p>
29 * The following features are implemented:
30 * </p>
31 * <ul>
32 * <li>{@link TaxationWithRoot.impl.HouseholdImpl#getParents <em>Parents</em>}</li>
33 * <li>{@link TaxationWithRoot.impl.HouseholdImpl#getId1 <em>Id1</em>}</li>
34 * <li>{@link TaxationWithRoot.impl.HouseholdImpl#getChildren <em>Children</em>}</li>
35 * </ul>
36 *
37 * @generated
38 */
39public class HouseholdImpl extends RootImpl implements Household {
40 /**
41 * The cached value of the '{@link #getParents() <em>Parents</em>}' containment reference.
42 * <!-- begin-user-doc -->
43 * <!-- end-user-doc -->
44 * @see #getParents()
45 * @generated
46 * @ordered
47 */
48 protected Legal_Union_Record parents;
49
50 /**
51 * The default value of the '{@link #getId1() <em>Id1</em>}' attribute.
52 * <!-- begin-user-doc -->
53 * <!-- end-user-doc -->
54 * @see #getId1()
55 * @generated
56 * @ordered
57 */
58 protected static final String ID1_EDEFAULT = null;
59
60 /**
61 * The cached value of the '{@link #getId1() <em>Id1</em>}' attribute.
62 * <!-- begin-user-doc -->
63 * <!-- end-user-doc -->
64 * @see #getId1()
65 * @generated
66 * @ordered
67 */
68 protected String id1 = ID1_EDEFAULT;
69
70 /**
71 * The cached value of the '{@link #getChildren() <em>Children</em>}' containment reference list.
72 * <!-- begin-user-doc -->
73 * <!-- end-user-doc -->
74 * @see #getChildren()
75 * @generated
76 * @ordered
77 */
78 protected EList<Dependent> children;
79
80 /**
81 * <!-- begin-user-doc -->
82 * <!-- end-user-doc -->
83 * @generated
84 */
85 protected HouseholdImpl() {
86 super();
87 }
88
89 /**
90 * <!-- begin-user-doc -->
91 * <!-- end-user-doc -->
92 * @generated
93 */
94 @Override
95 protected EClass eStaticClass() {
96 return TaxationPackage.Literals.HOUSEHOLD;
97 }
98
99 /**
100 * <!-- begin-user-doc -->
101 * <!-- end-user-doc -->
102 * @generated
103 */
104 @Override
105 public Legal_Union_Record getParents() {
106 return parents;
107 }
108
109 /**
110 * <!-- begin-user-doc -->
111 * <!-- end-user-doc -->
112 * @generated
113 */
114 public NotificationChain basicSetParents(Legal_Union_Record newParents, NotificationChain msgs) {
115 Legal_Union_Record oldParents = parents;
116 parents = newParents;
117 if (eNotificationRequired()) {
118 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationPackage.HOUSEHOLD__PARENTS, oldParents, newParents);
119 if (msgs == null) msgs = notification; else msgs.add(notification);
120 }
121 return msgs;
122 }
123
124 /**
125 * <!-- begin-user-doc -->
126 * <!-- end-user-doc -->
127 * @generated
128 */
129 @Override
130 public void setParents(Legal_Union_Record newParents) {
131 if (newParents != parents) {
132 NotificationChain msgs = null;
133 if (parents != null)
134 msgs = ((InternalEObject)parents).eInverseRemove(this, TaxationPackage.LEGAL_UNION_RECORD__HOUSEHOLD, Legal_Union_Record.class, msgs);
135 if (newParents != null)
136 msgs = ((InternalEObject)newParents).eInverseAdd(this, TaxationPackage.LEGAL_UNION_RECORD__HOUSEHOLD, Legal_Union_Record.class, msgs);
137 msgs = basicSetParents(newParents, msgs);
138 if (msgs != null) msgs.dispatch();
139 }
140 else if (eNotificationRequired())
141 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.HOUSEHOLD__PARENTS, newParents, newParents));
142 }
143
144 /**
145 * <!-- begin-user-doc -->
146 * <!-- end-user-doc -->
147 * @generated
148 */
149 @Override
150 public String getId1() {
151 return id1;
152 }
153
154 /**
155 * <!-- begin-user-doc -->
156 * <!-- end-user-doc -->
157 * @generated
158 */
159 @Override
160 public void setId1(String newId1) {
161 String oldId1 = id1;
162 id1 = newId1;
163 if (eNotificationRequired())
164 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.HOUSEHOLD__ID1, oldId1, id1));
165 }
166
167 /**
168 * <!-- begin-user-doc -->
169 * <!-- end-user-doc -->
170 * @generated
171 */
172 @Override
173 public EList<Dependent> getChildren() {
174 if (children == null) {
175 children = new EObjectContainmentWithInverseEList<Dependent>(Dependent.class, this, TaxationPackage.HOUSEHOLD__CHILDREN, TaxationPackage.DEPENDENT__HOUSEHOLD);
176 }
177 return children;
178 }
179
180 /**
181 * <!-- begin-user-doc -->
182 * <!-- end-user-doc -->
183 * @generated
184 */
185 @SuppressWarnings("unchecked")
186 @Override
187 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
188 switch (featureID) {
189 case TaxationPackage.HOUSEHOLD__PARENTS:
190 if (parents != null)
191 msgs = ((InternalEObject)parents).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TaxationPackage.HOUSEHOLD__PARENTS, null, msgs);
192 return basicSetParents((Legal_Union_Record)otherEnd, msgs);
193 case TaxationPackage.HOUSEHOLD__CHILDREN:
194 return ((InternalEList<InternalEObject>)(InternalEList<?>)getChildren()).basicAdd(otherEnd, msgs);
195 }
196 return super.eInverseAdd(otherEnd, featureID, msgs);
197 }
198
199 /**
200 * <!-- begin-user-doc -->
201 * <!-- end-user-doc -->
202 * @generated
203 */
204 @Override
205 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
206 switch (featureID) {
207 case TaxationPackage.HOUSEHOLD__PARENTS:
208 return basicSetParents(null, msgs);
209 case TaxationPackage.HOUSEHOLD__CHILDREN:
210 return ((InternalEList<?>)getChildren()).basicRemove(otherEnd, msgs);
211 }
212 return super.eInverseRemove(otherEnd, featureID, msgs);
213 }
214
215 /**
216 * <!-- begin-user-doc -->
217 * <!-- end-user-doc -->
218 * @generated
219 */
220 @Override
221 public Object eGet(int featureID, boolean resolve, boolean coreType) {
222 switch (featureID) {
223 case TaxationPackage.HOUSEHOLD__PARENTS:
224 return getParents();
225 case TaxationPackage.HOUSEHOLD__ID1:
226 return getId1();
227 case TaxationPackage.HOUSEHOLD__CHILDREN:
228 return getChildren();
229 }
230 return super.eGet(featureID, resolve, coreType);
231 }
232
233 /**
234 * <!-- begin-user-doc -->
235 * <!-- end-user-doc -->
236 * @generated
237 */
238 @SuppressWarnings("unchecked")
239 @Override
240 public void eSet(int featureID, Object newValue) {
241 switch (featureID) {
242 case TaxationPackage.HOUSEHOLD__PARENTS:
243 setParents((Legal_Union_Record)newValue);
244 return;
245 case TaxationPackage.HOUSEHOLD__ID1:
246 setId1((String)newValue);
247 return;
248 case TaxationPackage.HOUSEHOLD__CHILDREN:
249 getChildren().clear();
250 getChildren().addAll((Collection<? extends Dependent>)newValue);
251 return;
252 }
253 super.eSet(featureID, newValue);
254 }
255
256 /**
257 * <!-- begin-user-doc -->
258 * <!-- end-user-doc -->
259 * @generated
260 */
261 @Override
262 public void eUnset(int featureID) {
263 switch (featureID) {
264 case TaxationPackage.HOUSEHOLD__PARENTS:
265 setParents((Legal_Union_Record)null);
266 return;
267 case TaxationPackage.HOUSEHOLD__ID1:
268 setId1(ID1_EDEFAULT);
269 return;
270 case TaxationPackage.HOUSEHOLD__CHILDREN:
271 getChildren().clear();
272 return;
273 }
274 super.eUnset(featureID);
275 }
276
277 /**
278 * <!-- begin-user-doc -->
279 * <!-- end-user-doc -->
280 * @generated
281 */
282 @Override
283 public boolean eIsSet(int featureID) {
284 switch (featureID) {
285 case TaxationPackage.HOUSEHOLD__PARENTS:
286 return parents != null;
287 case TaxationPackage.HOUSEHOLD__ID1:
288 return ID1_EDEFAULT == null ? id1 != null : !ID1_EDEFAULT.equals(id1);
289 case TaxationPackage.HOUSEHOLD__CHILDREN:
290 return children != null && !children.isEmpty();
291 }
292 return super.eIsSet(featureID);
293 }
294
295 /**
296 * <!-- begin-user-doc -->
297 * <!-- end-user-doc -->
298 * @generated
299 */
300 @Override
301 public String toString() {
302 if (eIsProxy()) return super.toString();
303
304 StringBuilder result = new StringBuilder(super.toString());
305 result.append(" (id1: ");
306 result.append(id1);
307 result.append(')');
308 return result.toString();
309 }
310
311} //HouseholdImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/IncomeImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/IncomeImpl.java
new file mode 100644
index 00000000..3e979e7a
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.INCOME_TYPE__INCOME, Income_Type.class, msgs);
229 if (newIncome_type != null)
230 msgs = ((InternalEObject)newIncome_type).eInverseAdd(this, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.TAX_CARD__INCOME, Tax_Card.class, msgs);
274 if (newTax_card != null)
275 msgs = ((InternalEObject)newTax_card).eInverseAdd(this, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.INCOME__DETAILS, TaxationPackage.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, TaxationPackage.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, TaxationPackage.INCOME__EXPENSES, TaxationPackage.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 TaxationPackage.INCOME__INCOME_TYPE:
408 if (income_type != null)
409 msgs = ((InternalEObject)income_type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TaxationPackage.INCOME__INCOME_TYPE, null, msgs);
410 return basicSetIncome_type((Income_Type)otherEnd, msgs);
411 case TaxationPackage.INCOME__TAX_CARD:
412 if (tax_card != null)
413 msgs = ((InternalEObject)tax_card).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TaxationPackage.INCOME__TAX_CARD, null, msgs);
414 return basicSetTax_card((Tax_Card)otherEnd, msgs);
415 case TaxationPackage.INCOME__TAX_PAYER:
416 if (eInternalContainer() != null)
417 msgs = eBasicRemoveFromContainer(msgs);
418 return basicSetTaxPayer((Tax_Payer)otherEnd, msgs);
419 case TaxationPackage.INCOME__DETAILS:
420 return ((InternalEList<InternalEObject>)(InternalEList<?>)getDetails()).basicAdd(otherEnd, msgs);
421 case TaxationPackage.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 TaxationPackage.INCOME__INCOME_TYPE:
436 return basicSetIncome_type(null, msgs);
437 case TaxationPackage.INCOME__TAX_CARD:
438 return basicSetTax_card(null, msgs);
439 case TaxationPackage.INCOME__TAX_PAYER:
440 return basicSetTaxPayer(null, msgs);
441 case TaxationPackage.INCOME__DETAILS:
442 return ((InternalEList<?>)getDetails()).basicRemove(otherEnd, msgs);
443 case TaxationPackage.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 TaxationPackage.INCOME__TAX_PAYER:
458 return eInternalContainer().eInverseRemove(this, TaxationPackage.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 TaxationPackage.INCOME__INCOME_AMOUNT:
472 return getIncome_amount();
473 case TaxationPackage.INCOME__INCOME_TYPE:
474 return getIncome_type();
475 case TaxationPackage.INCOME__TAX_CARD:
476 return getTax_card();
477 case TaxationPackage.INCOME__TAX_LIABILITY:
478 return getTax_liability();
479 case TaxationPackage.INCOME__TAX_PAYER:
480 return getTaxPayer();
481 case TaxationPackage.INCOME__DETAILS:
482 return getDetails();
483 case TaxationPackage.INCOME__NUM:
484 return getNum();
485 case TaxationPackage.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 TaxationPackage.INCOME__INCOME_AMOUNT:
501 setIncome_amount((Double)newValue);
502 return;
503 case TaxationPackage.INCOME__INCOME_TYPE:
504 setIncome_type((Income_Type)newValue);
505 return;
506 case TaxationPackage.INCOME__TAX_CARD:
507 setTax_card((Tax_Card)newValue);
508 return;
509 case TaxationPackage.INCOME__TAX_LIABILITY:
510 setTax_liability((Double)newValue);
511 return;
512 case TaxationPackage.INCOME__TAX_PAYER:
513 setTaxPayer((Tax_Payer)newValue);
514 return;
515 case TaxationPackage.INCOME__DETAILS:
516 getDetails().clear();
517 getDetails().addAll((Collection<? extends Income_Detail>)newValue);
518 return;
519 case TaxationPackage.INCOME__NUM:
520 setNum((Integer)newValue);
521 return;
522 case TaxationPackage.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 TaxationPackage.INCOME__INCOME_AMOUNT:
539 setIncome_amount(INCOME_AMOUNT_EDEFAULT);
540 return;
541 case TaxationPackage.INCOME__INCOME_TYPE:
542 setIncome_type((Income_Type)null);
543 return;
544 case TaxationPackage.INCOME__TAX_CARD:
545 setTax_card((Tax_Card)null);
546 return;
547 case TaxationPackage.INCOME__TAX_LIABILITY:
548 setTax_liability(TAX_LIABILITY_EDEFAULT);
549 return;
550 case TaxationPackage.INCOME__TAX_PAYER:
551 setTaxPayer((Tax_Payer)null);
552 return;
553 case TaxationPackage.INCOME__DETAILS:
554 getDetails().clear();
555 return;
556 case TaxationPackage.INCOME__NUM:
557 setNum(NUM_EDEFAULT);
558 return;
559 case TaxationPackage.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 TaxationPackage.INCOME__INCOME_AMOUNT:
575 return income_amount != INCOME_AMOUNT_EDEFAULT;
576 case TaxationPackage.INCOME__INCOME_TYPE:
577 return income_type != null;
578 case TaxationPackage.INCOME__TAX_CARD:
579 return tax_card != null;
580 case TaxationPackage.INCOME__TAX_LIABILITY:
581 return tax_liability != TAX_LIABILITY_EDEFAULT;
582 case TaxationPackage.INCOME__TAX_PAYER:
583 return getTaxPayer() != null;
584 case TaxationPackage.INCOME__DETAILS:
585 return details != null && !details.isEmpty();
586 case TaxationPackage.INCOME__NUM:
587 return num != NUM_EDEFAULT;
588 case TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/Income_DetailImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Income_DetailImpl.java
new file mode 100644
index 00000000..572f61a4
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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, TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.INCOME_DETAIL__INCOME:
399 return eInternalContainer().eInverseRemove(this, TaxationPackage.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 TaxationPackage.INCOME_DETAIL__AMOUNT:
413 return getAmount();
414 case TaxationPackage.INCOME_DETAIL__IS_WORKED:
415 return isIs_worked();
416 case TaxationPackage.INCOME_DETAIL__DISTANCE:
417 return getDistance();
418 case TaxationPackage.INCOME_DETAIL__WORKED_DAYS:
419 return getWorked_days();
420 case TaxationPackage.INCOME_DETAIL__IS_CONTRIBUTING_CNS:
421 return isIs_contributing_CNS();
422 case TaxationPackage.INCOME_DETAIL__ID5:
423 return getId5();
424 case TaxationPackage.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 TaxationPackage.INCOME_DETAIL__AMOUNT:
439 setAmount((Double)newValue);
440 return;
441 case TaxationPackage.INCOME_DETAIL__IS_WORKED:
442 setIs_worked((Boolean)newValue);
443 return;
444 case TaxationPackage.INCOME_DETAIL__DISTANCE:
445 setDistance((Double)newValue);
446 return;
447 case TaxationPackage.INCOME_DETAIL__WORKED_DAYS:
448 setWorked_days((Integer)newValue);
449 return;
450 case TaxationPackage.INCOME_DETAIL__IS_CONTRIBUTING_CNS:
451 setIs_contributing_CNS((Boolean)newValue);
452 return;
453 case TaxationPackage.INCOME_DETAIL__ID5:
454 setId5((String)newValue);
455 return;
456 case TaxationPackage.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 TaxationPackage.INCOME_DETAIL__AMOUNT:
472 setAmount(AMOUNT_EDEFAULT);
473 return;
474 case TaxationPackage.INCOME_DETAIL__IS_WORKED:
475 setIs_worked(IS_WORKED_EDEFAULT);
476 return;
477 case TaxationPackage.INCOME_DETAIL__DISTANCE:
478 setDistance(DISTANCE_EDEFAULT);
479 return;
480 case TaxationPackage.INCOME_DETAIL__WORKED_DAYS:
481 setWorked_days(WORKED_DAYS_EDEFAULT);
482 return;
483 case TaxationPackage.INCOME_DETAIL__IS_CONTRIBUTING_CNS:
484 setIs_contributing_CNS(IS_CONTRIBUTING_CNS_EDEFAULT);
485 return;
486 case TaxationPackage.INCOME_DETAIL__ID5:
487 setId5(ID5_EDEFAULT);
488 return;
489 case TaxationPackage.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 TaxationPackage.INCOME_DETAIL__AMOUNT:
505 return amount != AMOUNT_EDEFAULT;
506 case TaxationPackage.INCOME_DETAIL__IS_WORKED:
507 return is_worked != IS_WORKED_EDEFAULT;
508 case TaxationPackage.INCOME_DETAIL__DISTANCE:
509 return distance != DISTANCE_EDEFAULT;
510 case TaxationPackage.INCOME_DETAIL__WORKED_DAYS:
511 return worked_days != WORKED_DAYS_EDEFAULT;
512 case TaxationPackage.INCOME_DETAIL__IS_CONTRIBUTING_CNS:
513 return is_contributing_CNS != IS_CONTRIBUTING_CNS_EDEFAULT;
514 case TaxationPackage.INCOME_DETAIL__ID5:
515 return ID5_EDEFAULT == null ? id5 != null : !ID5_EDEFAULT.equals(id5);
516 case TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/Income_TaxImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Income_TaxImpl.java
new file mode 100644
index 00000000..6f9b0f0d
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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 TaxationPackage.INCOME_TAX__TAX_PAYER:
241 if (resolve) return getTaxPayer();
242 return basicGetTaxPayer();
243 case TaxationPackage.INCOME_TAX__TAX_AMOUNT:
244 return getTax_amount();
245 case TaxationPackage.INCOME_TAX__TAX_YEAR:
246 return getTax_year();
247 case TaxationPackage.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 TaxationPackage.INCOME_TAX__TAX_PAYER:
262 setTaxPayer((Tax_Payer)newValue);
263 return;
264 case TaxationPackage.INCOME_TAX__TAX_AMOUNT:
265 setTax_amount((Double)newValue);
266 return;
267 case TaxationPackage.INCOME_TAX__TAX_YEAR:
268 setTax_year((Integer)newValue);
269 return;
270 case TaxationPackage.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 TaxationPackage.INCOME_TAX__TAX_PAYER:
286 setTaxPayer((Tax_Payer)null);
287 return;
288 case TaxationPackage.INCOME_TAX__TAX_AMOUNT:
289 setTax_amount(TAX_AMOUNT_EDEFAULT);
290 return;
291 case TaxationPackage.INCOME_TAX__TAX_YEAR:
292 setTax_year(TAX_YEAR_EDEFAULT);
293 return;
294 case TaxationPackage.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 TaxationPackage.INCOME_TAX__TAX_PAYER:
310 return taxPayer != null;
311 case TaxationPackage.INCOME_TAX__TAX_AMOUNT:
312 return tax_amount != TAX_AMOUNT_EDEFAULT;
313 case TaxationPackage.INCOME_TAX__TAX_YEAR:
314 return tax_year != TAX_YEAR_EDEFAULT;
315 case TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/Income_Tax_CreditImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Income_Tax_CreditImpl.java
new file mode 100644
index 00000000..308a8f01
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Income_Tax_CreditImpl.java
@@ -0,0 +1,625 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Grantor;
6import TaxationWithRoot.Income_Tax_Credit;
7import TaxationWithRoot.Tax_Card;
8import TaxationWithRoot.Tax_Payer;
9import TaxationWithRoot.TaxationPackage;
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;
18
19/**
20 * <!-- begin-user-doc -->
21 * An implementation of the model object '<em><b>Income Tax Credit</b></em>'.
22 * <!-- end-user-doc -->
23 * <p>
24 * The following features are implemented:
25 * </p>
26 * <ul>
27 * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getGrantedBy <em>Granted By</em>}</li>
28 * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getTaxPayer <em>Tax Payer</em>}</li>
29 * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getTax_year <em>Tax year</em>}</li>
30 * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getYearly <em>Yearly</em>}</li>
31 * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getMonthly <em>Monthly</em>}</li>
32 * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getDaily <em>Daily</em>}</li>
33 * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getId7 <em>Id7</em>}</li>
34 * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getTaxation_Frame <em>Taxation Frame</em>}</li>
35 * </ul>
36 *
37 * @generated
38 */
39public class Income_Tax_CreditImpl extends RootImpl implements Income_Tax_Credit {
40 /**
41 * The default value of the '{@link #getGrantedBy() <em>Granted By</em>}' attribute.
42 * <!-- begin-user-doc -->
43 * <!-- end-user-doc -->
44 * @see #getGrantedBy()
45 * @generated
46 * @ordered
47 */
48 protected static final Grantor GRANTED_BY_EDEFAULT = Grantor.WWW;
49
50 /**
51 * The cached value of the '{@link #getGrantedBy() <em>Granted By</em>}' attribute.
52 * <!-- begin-user-doc -->
53 * <!-- end-user-doc -->
54 * @see #getGrantedBy()
55 * @generated
56 * @ordered
57 */
58 protected Grantor grantedBy = GRANTED_BY_EDEFAULT;
59
60 /**
61 * The cached value of the '{@link #getTaxPayer() <em>Tax Payer</em>}' reference.
62 * <!-- begin-user-doc -->
63 * <!-- end-user-doc -->
64 * @see #getTaxPayer()
65 * @generated
66 * @ordered
67 */
68 protected Tax_Payer taxPayer;
69
70 /**
71 * The default value of the '{@link #getTax_year() <em>Tax year</em>}' attribute.
72 * <!-- begin-user-doc -->
73 * <!-- end-user-doc -->
74 * @see #getTax_year()
75 * @generated
76 * @ordered
77 */
78 protected static final int TAX_YEAR_EDEFAULT = 0;
79
80 /**
81 * The cached value of the '{@link #getTax_year() <em>Tax year</em>}' attribute.
82 * <!-- begin-user-doc -->
83 * <!-- end-user-doc -->
84 * @see #getTax_year()
85 * @generated
86 * @ordered
87 */
88 protected int tax_year = TAX_YEAR_EDEFAULT;
89
90 /**
91 * The default value of the '{@link #getYearly() <em>Yearly</em>}' attribute.
92 * <!-- begin-user-doc -->
93 * <!-- end-user-doc -->
94 * @see #getYearly()
95 * @generated
96 * @ordered
97 */
98 protected static final double YEARLY_EDEFAULT = 300.0;
99
100 /**
101 * The cached value of the '{@link #getYearly() <em>Yearly</em>}' attribute.
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @see #getYearly()
105 * @generated
106 * @ordered
107 */
108 protected double yearly = YEARLY_EDEFAULT;
109
110 /**
111 * The default value of the '{@link #getMonthly() <em>Monthly</em>}' attribute.
112 * <!-- begin-user-doc -->
113 * <!-- end-user-doc -->
114 * @see #getMonthly()
115 * @generated
116 * @ordered
117 */
118 protected static final double MONTHLY_EDEFAULT = 25.0;
119
120 /**
121 * The cached value of the '{@link #getMonthly() <em>Monthly</em>}' attribute.
122 * <!-- begin-user-doc -->
123 * <!-- end-user-doc -->
124 * @see #getMonthly()
125 * @generated
126 * @ordered
127 */
128 protected double monthly = MONTHLY_EDEFAULT;
129
130 /**
131 * The default value of the '{@link #getDaily() <em>Daily</em>}' attribute.
132 * <!-- begin-user-doc -->
133 * <!-- end-user-doc -->
134 * @see #getDaily()
135 * @generated
136 * @ordered
137 */
138 protected static final double DAILY_EDEFAULT = 1.0;
139
140 /**
141 * The cached value of the '{@link #getDaily() <em>Daily</em>}' attribute.
142 * <!-- begin-user-doc -->
143 * <!-- end-user-doc -->
144 * @see #getDaily()
145 * @generated
146 * @ordered
147 */
148 protected double daily = DAILY_EDEFAULT;
149
150 /**
151 * The default value of the '{@link #getId7() <em>Id7</em>}' attribute.
152 * <!-- begin-user-doc -->
153 * <!-- end-user-doc -->
154 * @see #getId7()
155 * @generated
156 * @ordered
157 */
158 protected static final String ID7_EDEFAULT = null;
159
160 /**
161 * The cached value of the '{@link #getId7() <em>Id7</em>}' attribute.
162 * <!-- begin-user-doc -->
163 * <!-- end-user-doc -->
164 * @see #getId7()
165 * @generated
166 * @ordered
167 */
168 protected String id7 = ID7_EDEFAULT;
169
170 /**
171 * The cached value of the '{@link #getTaxation_Frame() <em>Taxation Frame</em>}' reference.
172 * <!-- begin-user-doc -->
173 * <!-- end-user-doc -->
174 * @see #getTaxation_Frame()
175 * @generated
176 * @ordered
177 */
178 protected Tax_Card taxation_Frame;
179
180 /**
181 * <!-- begin-user-doc -->
182 * <!-- end-user-doc -->
183 * @generated
184 */
185 protected Income_Tax_CreditImpl() {
186 super();
187 }
188
189 /**
190 * <!-- begin-user-doc -->
191 * <!-- end-user-doc -->
192 * @generated
193 */
194 @Override
195 protected EClass eStaticClass() {
196 return TaxationPackage.Literals.INCOME_TAX_CREDIT;
197 }
198
199 /**
200 * <!-- begin-user-doc -->
201 * <!-- end-user-doc -->
202 * @generated
203 */
204 @Override
205 public Grantor getGrantedBy() {
206 return grantedBy;
207 }
208
209 /**
210 * <!-- begin-user-doc -->
211 * <!-- end-user-doc -->
212 * @generated
213 */
214 @Override
215 public void setGrantedBy(Grantor newGrantedBy) {
216 Grantor oldGrantedBy = grantedBy;
217 grantedBy = newGrantedBy == null ? GRANTED_BY_EDEFAULT : newGrantedBy;
218 if (eNotificationRequired())
219 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.INCOME_TAX_CREDIT__GRANTED_BY, oldGrantedBy, grantedBy));
220 }
221
222 /**
223 * <!-- begin-user-doc -->
224 * <!-- end-user-doc -->
225 * @generated
226 */
227 @Override
228 public Tax_Payer getTaxPayer() {
229 if (taxPayer != null && taxPayer.eIsProxy()) {
230 InternalEObject oldTaxPayer = (InternalEObject)taxPayer;
231 taxPayer = (Tax_Payer)eResolveProxy(oldTaxPayer);
232 if (taxPayer != oldTaxPayer) {
233 if (eNotificationRequired())
234 eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationPackage.INCOME_TAX_CREDIT__TAX_PAYER, oldTaxPayer, taxPayer));
235 }
236 }
237 return taxPayer;
238 }
239
240 /**
241 * <!-- begin-user-doc -->
242 * <!-- end-user-doc -->
243 * @generated
244 */
245 public Tax_Payer basicGetTaxPayer() {
246 return taxPayer;
247 }
248
249 /**
250 * <!-- begin-user-doc -->
251 * <!-- end-user-doc -->
252 * @generated
253 */
254 @Override
255 public void setTaxPayer(Tax_Payer newTaxPayer) {
256 Tax_Payer oldTaxPayer = taxPayer;
257 taxPayer = newTaxPayer;
258 if (eNotificationRequired())
259 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.INCOME_TAX_CREDIT__TAX_PAYER, oldTaxPayer, taxPayer));
260 }
261
262 /**
263 * <!-- begin-user-doc -->
264 * <!-- end-user-doc -->
265 * @generated
266 */
267 @Override
268 public int getTax_year() {
269 return tax_year;
270 }
271
272 /**
273 * <!-- begin-user-doc -->
274 * <!-- end-user-doc -->
275 * @generated
276 */
277 @Override
278 public void setTax_year(int newTax_year) {
279 int oldTax_year = tax_year;
280 tax_year = newTax_year;
281 if (eNotificationRequired())
282 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.INCOME_TAX_CREDIT__TAX_YEAR, oldTax_year, tax_year));
283 }
284
285 /**
286 * <!-- begin-user-doc -->
287 * <!-- end-user-doc -->
288 * @generated
289 */
290 @Override
291 public double getYearly() {
292 return yearly;
293 }
294
295 /**
296 * <!-- begin-user-doc -->
297 * <!-- end-user-doc -->
298 * @generated
299 */
300 @Override
301 public void setYearly(double newYearly) {
302 double oldYearly = yearly;
303 yearly = newYearly;
304 if (eNotificationRequired())
305 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.INCOME_TAX_CREDIT__YEARLY, oldYearly, yearly));
306 }
307
308 /**
309 * <!-- begin-user-doc -->
310 * <!-- end-user-doc -->
311 * @generated
312 */
313 @Override
314 public double getMonthly() {
315 return monthly;
316 }
317
318 /**
319 * <!-- begin-user-doc -->
320 * <!-- end-user-doc -->
321 * @generated
322 */
323 @Override
324 public void setMonthly(double newMonthly) {
325 double oldMonthly = monthly;
326 monthly = newMonthly;
327 if (eNotificationRequired())
328 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.INCOME_TAX_CREDIT__MONTHLY, oldMonthly, monthly));
329 }
330
331 /**
332 * <!-- begin-user-doc -->
333 * <!-- end-user-doc -->
334 * @generated
335 */
336 @Override
337 public double getDaily() {
338 return daily;
339 }
340
341 /**
342 * <!-- begin-user-doc -->
343 * <!-- end-user-doc -->
344 * @generated
345 */
346 @Override
347 public void setDaily(double newDaily) {
348 double oldDaily = daily;
349 daily = newDaily;
350 if (eNotificationRequired())
351 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.INCOME_TAX_CREDIT__DAILY, oldDaily, daily));
352 }
353
354 /**
355 * <!-- begin-user-doc -->
356 * <!-- end-user-doc -->
357 * @generated
358 */
359 @Override
360 public String getId7() {
361 return id7;
362 }
363
364 /**
365 * <!-- begin-user-doc -->
366 * <!-- end-user-doc -->
367 * @generated
368 */
369 @Override
370 public void setId7(String newId7) {
371 String oldId7 = id7;
372 id7 = newId7;
373 if (eNotificationRequired())
374 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.INCOME_TAX_CREDIT__ID7, oldId7, id7));
375 }
376
377 /**
378 * <!-- begin-user-doc -->
379 * <!-- end-user-doc -->
380 * @generated
381 */
382 @Override
383 public Tax_Card getTaxation_Frame() {
384 if (taxation_Frame != null && taxation_Frame.eIsProxy()) {
385 InternalEObject oldTaxation_Frame = (InternalEObject)taxation_Frame;
386 taxation_Frame = (Tax_Card)eResolveProxy(oldTaxation_Frame);
387 if (taxation_Frame != oldTaxation_Frame) {
388 if (eNotificationRequired())
389 eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationPackage.INCOME_TAX_CREDIT__TAXATION_FRAME, oldTaxation_Frame, taxation_Frame));
390 }
391 }
392 return taxation_Frame;
393 }
394
395 /**
396 * <!-- begin-user-doc -->
397 * <!-- end-user-doc -->
398 * @generated
399 */
400 public Tax_Card basicGetTaxation_Frame() {
401 return taxation_Frame;
402 }
403
404 /**
405 * <!-- begin-user-doc -->
406 * <!-- end-user-doc -->
407 * @generated
408 */
409 public NotificationChain basicSetTaxation_Frame(Tax_Card newTaxation_Frame, NotificationChain msgs) {
410 Tax_Card oldTaxation_Frame = taxation_Frame;
411 taxation_Frame = newTaxation_Frame;
412 if (eNotificationRequired()) {
413 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationPackage.INCOME_TAX_CREDIT__TAXATION_FRAME, oldTaxation_Frame, newTaxation_Frame);
414 if (msgs == null) msgs = notification; else msgs.add(notification);
415 }
416 return msgs;
417 }
418
419 /**
420 * <!-- begin-user-doc -->
421 * <!-- end-user-doc -->
422 * @generated
423 */
424 @Override
425 public void setTaxation_Frame(Tax_Card newTaxation_Frame) {
426 if (newTaxation_Frame != taxation_Frame) {
427 NotificationChain msgs = null;
428 if (taxation_Frame != null)
429 msgs = ((InternalEObject)taxation_Frame).eInverseRemove(this, TaxationPackage.TAX_CARD__INCOME_TAX_CREDIT, Tax_Card.class, msgs);
430 if (newTaxation_Frame != null)
431 msgs = ((InternalEObject)newTaxation_Frame).eInverseAdd(this, TaxationPackage.TAX_CARD__INCOME_TAX_CREDIT, Tax_Card.class, msgs);
432 msgs = basicSetTaxation_Frame(newTaxation_Frame, msgs);
433 if (msgs != null) msgs.dispatch();
434 }
435 else if (eNotificationRequired())
436 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.INCOME_TAX_CREDIT__TAXATION_FRAME, newTaxation_Frame, newTaxation_Frame));
437 }
438
439 /**
440 * <!-- begin-user-doc -->
441 * <!-- end-user-doc -->
442 * @generated
443 */
444 @Override
445 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
446 switch (featureID) {
447 case TaxationPackage.INCOME_TAX_CREDIT__TAXATION_FRAME:
448 if (taxation_Frame != null)
449 msgs = ((InternalEObject)taxation_Frame).eInverseRemove(this, TaxationPackage.TAX_CARD__INCOME_TAX_CREDIT, Tax_Card.class, msgs);
450 return basicSetTaxation_Frame((Tax_Card)otherEnd, msgs);
451 }
452 return super.eInverseAdd(otherEnd, featureID, msgs);
453 }
454
455 /**
456 * <!-- begin-user-doc -->
457 * <!-- end-user-doc -->
458 * @generated
459 */
460 @Override
461 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
462 switch (featureID) {
463 case TaxationPackage.INCOME_TAX_CREDIT__TAXATION_FRAME:
464 return basicSetTaxation_Frame(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 Object eGet(int featureID, boolean resolve, boolean coreType) {
476 switch (featureID) {
477 case TaxationPackage.INCOME_TAX_CREDIT__GRANTED_BY:
478 return getGrantedBy();
479 case TaxationPackage.INCOME_TAX_CREDIT__TAX_PAYER:
480 if (resolve) return getTaxPayer();
481 return basicGetTaxPayer();
482 case TaxationPackage.INCOME_TAX_CREDIT__TAX_YEAR:
483 return getTax_year();
484 case TaxationPackage.INCOME_TAX_CREDIT__YEARLY:
485 return getYearly();
486 case TaxationPackage.INCOME_TAX_CREDIT__MONTHLY:
487 return getMonthly();
488 case TaxationPackage.INCOME_TAX_CREDIT__DAILY:
489 return getDaily();
490 case TaxationPackage.INCOME_TAX_CREDIT__ID7:
491 return getId7();
492 case TaxationPackage.INCOME_TAX_CREDIT__TAXATION_FRAME:
493 if (resolve) return getTaxation_Frame();
494 return basicGetTaxation_Frame();
495 }
496 return super.eGet(featureID, resolve, coreType);
497 }
498
499 /**
500 * <!-- begin-user-doc -->
501 * <!-- end-user-doc -->
502 * @generated
503 */
504 @Override
505 public void eSet(int featureID, Object newValue) {
506 switch (featureID) {
507 case TaxationPackage.INCOME_TAX_CREDIT__GRANTED_BY:
508 setGrantedBy((Grantor)newValue);
509 return;
510 case TaxationPackage.INCOME_TAX_CREDIT__TAX_PAYER:
511 setTaxPayer((Tax_Payer)newValue);
512 return;
513 case TaxationPackage.INCOME_TAX_CREDIT__TAX_YEAR:
514 setTax_year((Integer)newValue);
515 return;
516 case TaxationPackage.INCOME_TAX_CREDIT__YEARLY:
517 setYearly((Double)newValue);
518 return;
519 case TaxationPackage.INCOME_TAX_CREDIT__MONTHLY:
520 setMonthly((Double)newValue);
521 return;
522 case TaxationPackage.INCOME_TAX_CREDIT__DAILY:
523 setDaily((Double)newValue);
524 return;
525 case TaxationPackage.INCOME_TAX_CREDIT__ID7:
526 setId7((String)newValue);
527 return;
528 case TaxationPackage.INCOME_TAX_CREDIT__TAXATION_FRAME:
529 setTaxation_Frame((Tax_Card)newValue);
530 return;
531 }
532 super.eSet(featureID, newValue);
533 }
534
535 /**
536 * <!-- begin-user-doc -->
537 * <!-- end-user-doc -->
538 * @generated
539 */
540 @Override
541 public void eUnset(int featureID) {
542 switch (featureID) {
543 case TaxationPackage.INCOME_TAX_CREDIT__GRANTED_BY:
544 setGrantedBy(GRANTED_BY_EDEFAULT);
545 return;
546 case TaxationPackage.INCOME_TAX_CREDIT__TAX_PAYER:
547 setTaxPayer((Tax_Payer)null);
548 return;
549 case TaxationPackage.INCOME_TAX_CREDIT__TAX_YEAR:
550 setTax_year(TAX_YEAR_EDEFAULT);
551 return;
552 case TaxationPackage.INCOME_TAX_CREDIT__YEARLY:
553 setYearly(YEARLY_EDEFAULT);
554 return;
555 case TaxationPackage.INCOME_TAX_CREDIT__MONTHLY:
556 setMonthly(MONTHLY_EDEFAULT);
557 return;
558 case TaxationPackage.INCOME_TAX_CREDIT__DAILY:
559 setDaily(DAILY_EDEFAULT);
560 return;
561 case TaxationPackage.INCOME_TAX_CREDIT__ID7:
562 setId7(ID7_EDEFAULT);
563 return;
564 case TaxationPackage.INCOME_TAX_CREDIT__TAXATION_FRAME:
565 setTaxation_Frame((Tax_Card)null);
566 return;
567 }
568 super.eUnset(featureID);
569 }
570
571 /**
572 * <!-- begin-user-doc -->
573 * <!-- end-user-doc -->
574 * @generated
575 */
576 @Override
577 public boolean eIsSet(int featureID) {
578 switch (featureID) {
579 case TaxationPackage.INCOME_TAX_CREDIT__GRANTED_BY:
580 return grantedBy != GRANTED_BY_EDEFAULT;
581 case TaxationPackage.INCOME_TAX_CREDIT__TAX_PAYER:
582 return taxPayer != null;
583 case TaxationPackage.INCOME_TAX_CREDIT__TAX_YEAR:
584 return tax_year != TAX_YEAR_EDEFAULT;
585 case TaxationPackage.INCOME_TAX_CREDIT__YEARLY:
586 return yearly != YEARLY_EDEFAULT;
587 case TaxationPackage.INCOME_TAX_CREDIT__MONTHLY:
588 return monthly != MONTHLY_EDEFAULT;
589 case TaxationPackage.INCOME_TAX_CREDIT__DAILY:
590 return daily != DAILY_EDEFAULT;
591 case TaxationPackage.INCOME_TAX_CREDIT__ID7:
592 return ID7_EDEFAULT == null ? id7 != null : !ID7_EDEFAULT.equals(id7);
593 case TaxationPackage.INCOME_TAX_CREDIT__TAXATION_FRAME:
594 return taxation_Frame != null;
595 }
596 return super.eIsSet(featureID);
597 }
598
599 /**
600 * <!-- begin-user-doc -->
601 * <!-- end-user-doc -->
602 * @generated
603 */
604 @Override
605 public String toString() {
606 if (eIsProxy()) return super.toString();
607
608 StringBuilder result = new StringBuilder(super.toString());
609 result.append(" (grantedBy: ");
610 result.append(grantedBy);
611 result.append(", tax_year: ");
612 result.append(tax_year);
613 result.append(", yearly: ");
614 result.append(yearly);
615 result.append(", monthly: ");
616 result.append(monthly);
617 result.append(", daily: ");
618 result.append(daily);
619 result.append(", id7: ");
620 result.append(id7);
621 result.append(')');
622 return result.toString();
623 }
624
625} //Income_Tax_CreditImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Income_TypeImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Income_TypeImpl.java
new file mode 100644
index 00000000..af44c0a0
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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, TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.INCOME_TYPE__INCOME:
179 return eInternalContainer().eInverseRemove(this, TaxationPackage.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 TaxationPackage.INCOME_TYPE__ID8:
193 return getId8();
194 case TaxationPackage.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 TaxationPackage.INCOME_TYPE__ID8:
209 setId8((String)newValue);
210 return;
211 case TaxationPackage.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 TaxationPackage.INCOME_TYPE__ID8:
227 setId8(ID8_EDEFAULT);
228 return;
229 case TaxationPackage.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 TaxationPackage.INCOME_TYPE__ID8:
245 return ID8_EDEFAULT == null ? id8 != null : !ID8_EDEFAULT.equals(id8);
246 case TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/Interest_ExpenseImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Interest_ExpenseImpl.java
new file mode 100644
index 00000000..14e78ab9
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Interest_ExpenseImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Interest_Expense;
6import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.Literals.INTEREST_EXPENSE;
35 }
36
37} //Interest_ExpenseImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Legal_Union_RecordImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Legal_Union_RecordImpl.java
new file mode 100644
index 00000000..5e81cb60
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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 - TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A, null, msgs);
306 if (newIndividual_A != null)
307 msgs = ((InternalEObject)newIndividual_A).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.LEGAL_UNION_RECORD__PROPERTIES, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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, TaxationPackage.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 TaxationPackage.LEGAL_UNION_RECORD__PROPERTIES:
440 return ((InternalEList<InternalEObject>)(InternalEList<?>)getProperties()).basicAdd(otherEnd, msgs);
441 case TaxationPackage.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 TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A:
458 return basicSetIndividual_A(null, msgs);
459 case TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_B:
460 return ((InternalEList<?>)getIndividual_B()).basicRemove(otherEnd, msgs);
461 case TaxationPackage.LEGAL_UNION_RECORD__PROPERTIES:
462 return ((InternalEList<?>)getProperties()).basicRemove(otherEnd, msgs);
463 case TaxationPackage.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 TaxationPackage.LEGAL_UNION_RECORD__HOUSEHOLD:
478 return eInternalContainer().eInverseRemove(this, TaxationPackage.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 TaxationPackage.LEGAL_UNION_RECORD__START_YEAR:
492 return getStart_year();
493 case TaxationPackage.LEGAL_UNION_RECORD__END_YEAR:
494 return getEnd_year();
495 case TaxationPackage.LEGAL_UNION_RECORD__SEPARATION_CAUSE:
496 return getSeparation_cause();
497 case TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A:
498 return getIndividual_A();
499 case TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_B:
500 return getIndividual_B();
501 case TaxationPackage.LEGAL_UNION_RECORD__PROPERTIES:
502 return getProperties();
503 case TaxationPackage.LEGAL_UNION_RECORD__MUTUAL_AGREEMENT:
504 return isMutual_agreement();
505 case TaxationPackage.LEGAL_UNION_RECORD__ID9:
506 return getId9();
507 case TaxationPackage.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 TaxationPackage.LEGAL_UNION_RECORD__START_YEAR:
523 setStart_year((Integer)newValue);
524 return;
525 case TaxationPackage.LEGAL_UNION_RECORD__END_YEAR:
526 setEnd_year((Integer)newValue);
527 return;
528 case TaxationPackage.LEGAL_UNION_RECORD__SEPARATION_CAUSE:
529 setSeparation_cause((Separation_Causes)newValue);
530 return;
531 case TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A:
532 setIndividual_A((Physical_Person)newValue);
533 return;
534 case TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_B:
535 getIndividual_B().clear();
536 getIndividual_B().addAll((Collection<? extends Physical_Person>)newValue);
537 return;
538 case TaxationPackage.LEGAL_UNION_RECORD__PROPERTIES:
539 getProperties().clear();
540 getProperties().addAll((Collection<? extends Tax_Property>)newValue);
541 return;
542 case TaxationPackage.LEGAL_UNION_RECORD__MUTUAL_AGREEMENT:
543 setMutual_agreement((Boolean)newValue);
544 return;
545 case TaxationPackage.LEGAL_UNION_RECORD__ID9:
546 setId9((String)newValue);
547 return;
548 case TaxationPackage.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 TaxationPackage.LEGAL_UNION_RECORD__START_YEAR:
564 setStart_year(START_YEAR_EDEFAULT);
565 return;
566 case TaxationPackage.LEGAL_UNION_RECORD__END_YEAR:
567 setEnd_year(END_YEAR_EDEFAULT);
568 return;
569 case TaxationPackage.LEGAL_UNION_RECORD__SEPARATION_CAUSE:
570 setSeparation_cause(SEPARATION_CAUSE_EDEFAULT);
571 return;
572 case TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A:
573 setIndividual_A((Physical_Person)null);
574 return;
575 case TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_B:
576 getIndividual_B().clear();
577 return;
578 case TaxationPackage.LEGAL_UNION_RECORD__PROPERTIES:
579 getProperties().clear();
580 return;
581 case TaxationPackage.LEGAL_UNION_RECORD__MUTUAL_AGREEMENT:
582 setMutual_agreement(MUTUAL_AGREEMENT_EDEFAULT);
583 return;
584 case TaxationPackage.LEGAL_UNION_RECORD__ID9:
585 setId9(ID9_EDEFAULT);
586 return;
587 case TaxationPackage.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 TaxationPackage.LEGAL_UNION_RECORD__START_YEAR:
603 return start_year != START_YEAR_EDEFAULT;
604 case TaxationPackage.LEGAL_UNION_RECORD__END_YEAR:
605 return end_year != END_YEAR_EDEFAULT;
606 case TaxationPackage.LEGAL_UNION_RECORD__SEPARATION_CAUSE:
607 return separation_cause != SEPARATION_CAUSE_EDEFAULT;
608 case TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A:
609 return individual_A != null;
610 case TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_B:
611 return individual_B != null && !individual_B.isEmpty();
612 case TaxationPackage.LEGAL_UNION_RECORD__PROPERTIES:
613 return properties != null && !properties.isEmpty();
614 case TaxationPackage.LEGAL_UNION_RECORD__MUTUAL_AGREEMENT:
615 return mutual_agreement != MUTUAL_AGREEMENT_EDEFAULT;
616 case TaxationPackage.LEGAL_UNION_RECORD__ID9:
617 return ID9_EDEFAULT == null ? id9 != null : !ID9_EDEFAULT.equals(id9);
618 case TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/Local_IncomeImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Local_IncomeImpl.java
new file mode 100644
index 00000000..e4d72407
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Local_IncomeImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Local_Income;
6import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.Literals.LOCAL_INCOME;
35 }
36
37} //Local_IncomeImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Loss_CarryforwardImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Loss_CarryforwardImpl.java
new file mode 100644
index 00000000..9eff625c
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Loss_CarryforwardImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Loss_Carryforward;
6import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.Literals.LOSS_CARRYFORWARD;
35 }
36
37} //Loss_CarryforwardImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Marriage_RecordImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Marriage_RecordImpl.java
new file mode 100644
index 00000000..f4bce1e0
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Marriage_RecordImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Marriage_Record;
6import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.Literals.MARRIAGE_RECORD;
35 }
36
37} //Marriage_RecordImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Miscellaneous_Expense_FOImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Miscellaneous_Expense_FOImpl.java
new file mode 100644
index 00000000..f65633e4
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Miscellaneous_Expense_FOImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Miscellaneous_Expense_FO;
6import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.Literals.MISCELLANEOUS_EXPENSE_FO;
35 }
36
37} //Miscellaneous_Expense_FOImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Non_Resident_Tax_PayerImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Non_Resident_Tax_PayerImpl.java
new file mode 100644
index 00000000..182f297f
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/Partnership_RecordImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Partnership_RecordImpl.java
new file mode 100644
index 00000000..4fd5570d
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Partnership_RecordImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Partnership_Record;
6import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.Literals.PARTNERSHIP_RECORD;
35 }
36
37} //Partnership_RecordImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Pensions_and_Annuities_IncomeImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Pensions_and_Annuities_IncomeImpl.java
new file mode 100644
index 00000000..2ab5a688
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/Permanent_ExpenseImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Permanent_ExpenseImpl.java
new file mode 100644
index 00000000..c09a5950
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/Physical_PersonImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Physical_PersonImpl.java
new file mode 100644
index 00000000..d3a54bdd
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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, TaxationPackage.PHYSICAL_PERSON__ADDRESSES, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.PHYSICAL_PERSON__EXPENSES, TaxationPackage.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, TaxationPackage.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 TaxationPackage.PHYSICAL_PERSON__ADDRESSES:
425 return ((InternalEList<InternalEObject>)(InternalEList<?>)getAddresses()).basicAdd(otherEnd, msgs);
426 case TaxationPackage.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 TaxationPackage.PHYSICAL_PERSON__ADDRESSES:
441 return ((InternalEList<?>)getAddresses()).basicRemove(otherEnd, msgs);
442 case TaxationPackage.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 TaxationPackage.PHYSICAL_PERSON__SS_NO:
457 return getSSNo();
458 case TaxationPackage.PHYSICAL_PERSON__ADDRESSES:
459 return getAddresses();
460 case TaxationPackage.PHYSICAL_PERSON__BIRTH_YEAR:
461 return getBirth_year();
462 case TaxationPackage.PHYSICAL_PERSON__DISABILITY_PERCENTAGE:
463 return getDisability_percentage();
464 case TaxationPackage.PHYSICAL_PERSON__DISABILITY_TYPE:
465 return getDisability_type();
466 case TaxationPackage.PHYSICAL_PERSON__BIRTH_MONTH:
467 return getBirth_month();
468 case TaxationPackage.PHYSICAL_PERSON__BIRTH_DAY:
469 return getBirth_day();
470 case TaxationPackage.PHYSICAL_PERSON__EXPENSES:
471 return getExpenses();
472 case TaxationPackage.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 TaxationPackage.PHYSICAL_PERSON__SS_NO:
488 setSSNo((String)newValue);
489 return;
490 case TaxationPackage.PHYSICAL_PERSON__ADDRESSES:
491 getAddresses().clear();
492 getAddresses().addAll((Collection<? extends Address>)newValue);
493 return;
494 case TaxationPackage.PHYSICAL_PERSON__BIRTH_YEAR:
495 setBirth_year((Integer)newValue);
496 return;
497 case TaxationPackage.PHYSICAL_PERSON__DISABILITY_PERCENTAGE:
498 setDisability_percentage((Double)newValue);
499 return;
500 case TaxationPackage.PHYSICAL_PERSON__DISABILITY_TYPE:
501 setDisability_type((Disability_Types)newValue);
502 return;
503 case TaxationPackage.PHYSICAL_PERSON__BIRTH_MONTH:
504 setBirth_month((Integer)newValue);
505 return;
506 case TaxationPackage.PHYSICAL_PERSON__BIRTH_DAY:
507 setBirth_day((Integer)newValue);
508 return;
509 case TaxationPackage.PHYSICAL_PERSON__EXPENSES:
510 getExpenses().clear();
511 getExpenses().addAll((Collection<? extends Expense>)newValue);
512 return;
513 case TaxationPackage.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 TaxationPackage.PHYSICAL_PERSON__SS_NO:
529 setSSNo(SS_NO_EDEFAULT);
530 return;
531 case TaxationPackage.PHYSICAL_PERSON__ADDRESSES:
532 getAddresses().clear();
533 return;
534 case TaxationPackage.PHYSICAL_PERSON__BIRTH_YEAR:
535 setBirth_year(BIRTH_YEAR_EDEFAULT);
536 return;
537 case TaxationPackage.PHYSICAL_PERSON__DISABILITY_PERCENTAGE:
538 setDisability_percentage(DISABILITY_PERCENTAGE_EDEFAULT);
539 return;
540 case TaxationPackage.PHYSICAL_PERSON__DISABILITY_TYPE:
541 setDisability_type(DISABILITY_TYPE_EDEFAULT);
542 return;
543 case TaxationPackage.PHYSICAL_PERSON__BIRTH_MONTH:
544 setBirth_month(BIRTH_MONTH_EDEFAULT);
545 return;
546 case TaxationPackage.PHYSICAL_PERSON__BIRTH_DAY:
547 setBirth_day(BIRTH_DAY_EDEFAULT);
548 return;
549 case TaxationPackage.PHYSICAL_PERSON__EXPENSES:
550 getExpenses().clear();
551 return;
552 case TaxationPackage.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 TaxationPackage.PHYSICAL_PERSON__SS_NO:
568 return SS_NO_EDEFAULT == null ? ssNo != null : !SS_NO_EDEFAULT.equals(ssNo);
569 case TaxationPackage.PHYSICAL_PERSON__ADDRESSES:
570 return addresses != null && !addresses.isEmpty();
571 case TaxationPackage.PHYSICAL_PERSON__BIRTH_YEAR:
572 return birth_year != BIRTH_YEAR_EDEFAULT;
573 case TaxationPackage.PHYSICAL_PERSON__DISABILITY_PERCENTAGE:
574 return disability_percentage != DISABILITY_PERCENTAGE_EDEFAULT;
575 case TaxationPackage.PHYSICAL_PERSON__DISABILITY_TYPE:
576 return disability_type != DISABILITY_TYPE_EDEFAULT;
577 case TaxationPackage.PHYSICAL_PERSON__BIRTH_MONTH:
578 return birth_month != BIRTH_MONTH_EDEFAULT;
579 case TaxationPackage.PHYSICAL_PERSON__BIRTH_DAY:
580 return birth_day != BIRTH_DAY_EDEFAULT;
581 case TaxationPackage.PHYSICAL_PERSON__EXPENSES:
582 return expenses != null && !expenses.isEmpty();
583 case TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/Private_Insurance_and_PlanImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Private_Insurance_and_PlanImpl.java
new file mode 100644
index 00000000..b1370999
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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, TaxationPackage.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 TaxationPackage.PRIVATE_INSURANCE_AND_PLAN__CATEGORY:
144 return getCategory();
145 case TaxationPackage.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 TaxationPackage.PRIVATE_INSURANCE_AND_PLAN__CATEGORY:
160 setCategory((Category_of_Private_Insurance_and_Plan)newValue);
161 return;
162 case TaxationPackage.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 TaxationPackage.PRIVATE_INSURANCE_AND_PLAN__CATEGORY:
178 setCategory(CATEGORY_EDEFAULT);
179 return;
180 case TaxationPackage.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 TaxationPackage.PRIVATE_INSURANCE_AND_PLAN__CATEGORY:
196 return category != CATEGORY_EDEFAULT;
197 case TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/Professional_ExpenseImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Professional_ExpenseImpl.java
new file mode 100644
index 00000000..308a453d
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Professional_ExpenseImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Professional_Expense;
6import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.Literals.PROFESSIONAL_EXPENSE;
35 }
36
37} //Professional_ExpenseImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Professional_Expenses_DeductionImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Professional_Expenses_DeductionImpl.java
new file mode 100644
index 00000000..a4a903e8
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Professional_Expenses_DeductionImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Professional_Expenses_Deduction;
6import TaxationWithRoot.TaxationPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10/**
11 * <!-- begin-user-doc -->
12 * An implementation of the model object '<em><b>Professional Expenses Deduction</b></em>'.
13 * <!-- end-user-doc -->
14 *
15 * @generated
16 */
17public class Professional_Expenses_DeductionImpl extends RootImpl implements Professional_Expenses_Deduction {
18 /**
19 * <!-- begin-user-doc -->
20 * <!-- end-user-doc -->
21 * @generated
22 */
23 protected Professional_Expenses_DeductionImpl() {
24 super();
25 }
26
27 /**
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 @Override
33 protected EClass eStaticClass() {
34 return TaxationPackage.Literals.PROFESSIONAL_EXPENSES_DEDUCTION;
35 }
36
37} //Professional_Expenses_DeductionImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Rentals_and_Leases_IncomeImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Rentals_and_Leases_IncomeImpl.java
new file mode 100644
index 00000000..fe3493b2
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/Resident_Tax_PayerImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Resident_Tax_PayerImpl.java
new file mode 100644
index 00000000..39e32c90
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Resident_Tax_PayerImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Resident_Tax_Payer;
6import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.Literals.RESIDENT_TAX_PAYER;
35 }
36
37} //Resident_Tax_PayerImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/ResourceImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/ResourceImpl.java
new file mode 100644
index 00000000..2104cce8
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/ResourceImpl.java
@@ -0,0 +1,153 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Resource;
6import TaxationWithRoot.Root;
7import TaxationWithRoot.TaxationPackage;
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<Root> 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 TaxationPackage.Literals.RESOURCE;
64 }
65
66 /**
67 * <!-- begin-user-doc -->
68 * <!-- end-user-doc -->
69 * @generated
70 */
71 @Override
72 public EList<Root> getContains() {
73 if (contains == null) {
74 contains = new EObjectContainmentEList<Root>(Root.class, this, TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.RESOURCE__CONTAINS:
117 getContains().clear();
118 getContains().addAll((Collection<? extends Root>)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 TaxationPackage.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 TaxationPackage.RESOURCE__CONTAINS:
148 return contains != null && !contains.isEmpty();
149 }
150 return super.eIsSet(featureID);
151 }
152
153} //ResourceImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/RootImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/RootImpl.java
new file mode 100644
index 00000000..65a8d68c
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/RootImpl.java
@@ -0,0 +1,39 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Root;
6import TaxationWithRoot.TaxationPackage;
7
8import org.eclipse.emf.ecore.EClass;
9
10import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
11
12/**
13 * <!-- begin-user-doc -->
14 * An implementation of the model object '<em><b>Root</b></em>'.
15 * <!-- end-user-doc -->
16 *
17 * @generated
18 */
19public abstract class RootImpl extends MinimalEObjectImpl.Container implements Root {
20 /**
21 * <!-- begin-user-doc -->
22 * <!-- end-user-doc -->
23 * @generated
24 */
25 protected RootImpl() {
26 super();
27 }
28
29 /**
30 * <!-- begin-user-doc -->
31 * <!-- end-user-doc -->
32 * @generated
33 */
34 @Override
35 protected EClass eStaticClass() {
36 return TaxationPackage.Literals.ROOT;
37 }
38
39} //RootImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Special_Expense_DSImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Special_Expense_DSImpl.java
new file mode 100644
index 00000000..b603c761
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Special_Expense_DSImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Special_Expense_DS;
6import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.Literals.SPECIAL_EXPENSE_DS;
35 }
36
37} //Special_Expense_DSImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Spousal_Expense_ACImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Spousal_Expense_ACImpl.java
new file mode 100644
index 00000000..911bf73e
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Spousal_Expense_ACImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Spousal_Expense_AC;
6import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.Literals.SPOUSAL_EXPENSE_AC;
35 }
36
37} //Spousal_Expense_ACImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Tax_CardImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Tax_CardImpl.java
new file mode 100644
index 00000000..fb1f670c
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.TAX_CARD__INCOME_TAX_CREDIT, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.TAX_CARD__CURRENT_TAX_CARD, Tax_Card.class, msgs);
1382 if (newPrevious != null)
1383 msgs = ((InternalEObject)newPrevious).eInverseAdd(this, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.TAX_CARD__PREVIOUS, Tax_Card.class, msgs);
1444 if (newCurrent_tax_card != null)
1445 msgs = ((InternalEObject)newCurrent_tax_card).eInverseAdd(this, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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, TaxationPackage.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 TaxationPackage.TAX_CARD__INCOME_TAX_CREDIT:
1575 return ((InternalEList<InternalEObject>)(InternalEList<?>)getIncome_Tax_Credit()).basicAdd(otherEnd, msgs);
1576 case TaxationPackage.TAX_CARD__PREVIOUS:
1577 if (previous != null)
1578 msgs = ((InternalEObject)previous).eInverseRemove(this, TaxationPackage.TAX_CARD__CURRENT_TAX_CARD, Tax_Card.class, msgs);
1579 return basicSetPrevious((Tax_Card)otherEnd, msgs);
1580 case TaxationPackage.TAX_CARD__CURRENT_TAX_CARD:
1581 if (current_tax_card != null)
1582 msgs = ((InternalEObject)current_tax_card).eInverseRemove(this, TaxationPackage.TAX_CARD__PREVIOUS, Tax_Card.class, msgs);
1583 return basicSetCurrent_tax_card((Tax_Card)otherEnd, msgs);
1584 case TaxationPackage.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 TaxationPackage.TAX_CARD__INCOME_TAX_CREDIT:
1601 return ((InternalEList<?>)getIncome_Tax_Credit()).basicRemove(otherEnd, msgs);
1602 case TaxationPackage.TAX_CARD__PREVIOUS:
1603 return basicSetPrevious(null, msgs);
1604 case TaxationPackage.TAX_CARD__CURRENT_TAX_CARD:
1605 return basicSetCurrent_tax_card(null, msgs);
1606 case TaxationPackage.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 TaxationPackage.TAX_CARD__INCOME:
1621 return eInternalContainer().eInverseRemove(this, TaxationPackage.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 TaxationPackage.TAX_CARD__CARD_IDENTIFIER:
1635 return getCard_identifier();
1636 case TaxationPackage.TAX_CARD__TAX_OFFICE:
1637 return getTax_office();
1638 case TaxationPackage.TAX_CARD__PERCENTAGE_OF_WITHOLDING:
1639 return getPercentage_of_witholding();
1640 case TaxationPackage.TAX_CARD__TAX_PAYERS_NAME_SURNAME:
1641 return getTax_payers_name_surname();
1642 case TaxationPackage.TAX_CARD__TAX_PAYERS_PARTNER_NAME_SURNAME:
1643 return getTax_payers_partner_name_surname();
1644 case TaxationPackage.TAX_CARD__TAX_PAYERS_ADDRESS:
1645 if (resolve) return getTax_payers_address();
1646 return basicGetTax_payers_address();
1647 case TaxationPackage.TAX_CARD__JOBS_EMPLOYER_SS_NO:
1648 return getJobs_Employer_SSNo();
1649 case TaxationPackage.TAX_CARD__JOBS_EMPLOYERS_NAME:
1650 return getJobs_employers_name();
1651 case TaxationPackage.TAX_CARD__JOBS_ACTIVITY_TYPE:
1652 return getJobs_activity_type();
1653 case TaxationPackage.TAX_CARD__JOBS_PLACE_OF_WORK:
1654 return getJobs_place_of_work();
1655 case TaxationPackage.TAX_CARD__DEDUCTION_FD_DAILY:
1656 return getDeduction_FD_daily();
1657 case TaxationPackage.TAX_CARD__DEDUCTION_FD_MONTHLY:
1658 return getDeduction_FD_monthly();
1659 case TaxationPackage.TAX_CARD__DEDUCTION_AC_DAILY:
1660 return getDeduction_AC_daily();
1661 case TaxationPackage.TAX_CARD__DEDUCTION_AC_MONTHLY:
1662 return getDeduction_AC_monthly();
1663 case TaxationPackage.TAX_CARD__DEDUCTION_AC_YEARLY:
1664 return getDeduction_AC_yearly();
1665 case TaxationPackage.TAX_CARD__DEDUCTION_CE_DAILY:
1666 return getDeduction_CE_daily();
1667 case TaxationPackage.TAX_CARD__DEDUCTION_CE_MONTHLY:
1668 return getDeduction_CE_monthly();
1669 case TaxationPackage.TAX_CARD__DEDUCTION_CE_YEARLY:
1670 return getDeduction_CE_yearly();
1671 case TaxationPackage.TAX_CARD__DEDUCTION_DS_DAILY:
1672 return getDeduction_DS_daily();
1673 case TaxationPackage.TAX_CARD__DEDUCTION_DS_MONTHLY:
1674 return getDeduction_DS_monthly();
1675 case TaxationPackage.TAX_CARD__DEDUCTION_FO_DAILY:
1676 return getDeduction_FO_daily();
1677 case TaxationPackage.TAX_CARD__DEDUCTION_FO_MONTHLY:
1678 return getDeduction_FO_monthly();
1679 case TaxationPackage.TAX_CARD__DEDUCTION_FO_YEARLY:
1680 return getDeduction_FO_yearly();
1681 case TaxationPackage.TAX_CARD__CREDIT_CIS_DAILY:
1682 return getCredit_CIS_daily();
1683 case TaxationPackage.TAX_CARD__CREDIT_CIS_MONTHLY:
1684 return getCredit_CIS_monthly();
1685 case TaxationPackage.TAX_CARD__CREDIT_CIM_DAILY:
1686 return getCredit_CIM_daily();
1687 case TaxationPackage.TAX_CARD__VALIDITY:
1688 return isValidity();
1689 case TaxationPackage.TAX_CARD__INCOME_TAX_CREDIT:
1690 return getIncome_Tax_Credit();
1691 case TaxationPackage.TAX_CARD__PREVIOUS:
1692 if (resolve) return getPrevious();
1693 return basicGetPrevious();
1694 case TaxationPackage.TAX_CARD__CURRENT_TAX_CARD:
1695 if (resolve) return getCurrent_tax_card();
1696 return basicGetCurrent_tax_card();
1697 case TaxationPackage.TAX_CARD__CREDIT_CIM_YEARLY:
1698 return getCredit_CIM_yearly();
1699 case TaxationPackage.TAX_CARD__DEDUCTION_DS_ALIMONY_YEARLY:
1700 return getDeduction_DS_Alimony_yearly();
1701 case TaxationPackage.TAX_CARD__DEDUCTION_DS_DEBT_YEARLY:
1702 return getDeduction_DS_Debt_yearly();
1703 case TaxationPackage.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 TaxationPackage.TAX_CARD__CARD_IDENTIFIER:
1719 setCard_identifier((String)newValue);
1720 return;
1721 case TaxationPackage.TAX_CARD__TAX_OFFICE:
1722 setTax_office((Tax_Office)newValue);
1723 return;
1724 case TaxationPackage.TAX_CARD__PERCENTAGE_OF_WITHOLDING:
1725 setPercentage_of_witholding((Double)newValue);
1726 return;
1727 case TaxationPackage.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 TaxationPackage.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 TaxationPackage.TAX_CARD__TAX_PAYERS_ADDRESS:
1736 setTax_payers_address((Address)newValue);
1737 return;
1738 case TaxationPackage.TAX_CARD__JOBS_EMPLOYER_SS_NO:
1739 setJobs_Employer_SSNo((String)newValue);
1740 return;
1741 case TaxationPackage.TAX_CARD__JOBS_EMPLOYERS_NAME:
1742 setJobs_employers_name((String)newValue);
1743 return;
1744 case TaxationPackage.TAX_CARD__JOBS_ACTIVITY_TYPE:
1745 setJobs_activity_type((Job_Activity)newValue);
1746 return;
1747 case TaxationPackage.TAX_CARD__JOBS_PLACE_OF_WORK:
1748 setJobs_place_of_work((Town)newValue);
1749 return;
1750 case TaxationPackage.TAX_CARD__DEDUCTION_FD_DAILY:
1751 setDeduction_FD_daily((Double)newValue);
1752 return;
1753 case TaxationPackage.TAX_CARD__DEDUCTION_FD_MONTHLY:
1754 setDeduction_FD_monthly((Double)newValue);
1755 return;
1756 case TaxationPackage.TAX_CARD__DEDUCTION_AC_DAILY:
1757 setDeduction_AC_daily((Double)newValue);
1758 return;
1759 case TaxationPackage.TAX_CARD__DEDUCTION_AC_MONTHLY:
1760 setDeduction_AC_monthly((Double)newValue);
1761 return;
1762 case TaxationPackage.TAX_CARD__DEDUCTION_AC_YEARLY:
1763 setDeduction_AC_yearly((Double)newValue);
1764 return;
1765 case TaxationPackage.TAX_CARD__DEDUCTION_CE_DAILY:
1766 setDeduction_CE_daily((Double)newValue);
1767 return;
1768 case TaxationPackage.TAX_CARD__DEDUCTION_CE_MONTHLY:
1769 setDeduction_CE_monthly((Double)newValue);
1770 return;
1771 case TaxationPackage.TAX_CARD__DEDUCTION_CE_YEARLY:
1772 setDeduction_CE_yearly((Double)newValue);
1773 return;
1774 case TaxationPackage.TAX_CARD__DEDUCTION_DS_DAILY:
1775 setDeduction_DS_daily((Double)newValue);
1776 return;
1777 case TaxationPackage.TAX_CARD__DEDUCTION_DS_MONTHLY:
1778 setDeduction_DS_monthly((Double)newValue);
1779 return;
1780 case TaxationPackage.TAX_CARD__DEDUCTION_FO_DAILY:
1781 setDeduction_FO_daily((Double)newValue);
1782 return;
1783 case TaxationPackage.TAX_CARD__DEDUCTION_FO_MONTHLY:
1784 setDeduction_FO_monthly((Double)newValue);
1785 return;
1786 case TaxationPackage.TAX_CARD__DEDUCTION_FO_YEARLY:
1787 setDeduction_FO_yearly((Double)newValue);
1788 return;
1789 case TaxationPackage.TAX_CARD__CREDIT_CIS_DAILY:
1790 setCredit_CIS_daily((Double)newValue);
1791 return;
1792 case TaxationPackage.TAX_CARD__CREDIT_CIS_MONTHLY:
1793 setCredit_CIS_monthly((Double)newValue);
1794 return;
1795 case TaxationPackage.TAX_CARD__CREDIT_CIM_DAILY:
1796 setCredit_CIM_daily((Double)newValue);
1797 return;
1798 case TaxationPackage.TAX_CARD__VALIDITY:
1799 setValidity((Boolean)newValue);
1800 return;
1801 case TaxationPackage.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 TaxationPackage.TAX_CARD__PREVIOUS:
1806 setPrevious((Tax_Card)newValue);
1807 return;
1808 case TaxationPackage.TAX_CARD__CURRENT_TAX_CARD:
1809 setCurrent_tax_card((Tax_Card)newValue);
1810 return;
1811 case TaxationPackage.TAX_CARD__CREDIT_CIM_YEARLY:
1812 setCredit_CIM_yearly((Double)newValue);
1813 return;
1814 case TaxationPackage.TAX_CARD__DEDUCTION_DS_ALIMONY_YEARLY:
1815 setDeduction_DS_Alimony_yearly((Double)newValue);
1816 return;
1817 case TaxationPackage.TAX_CARD__DEDUCTION_DS_DEBT_YEARLY:
1818 setDeduction_DS_Debt_yearly((Double)newValue);
1819 return;
1820 case TaxationPackage.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 TaxationPackage.TAX_CARD__CARD_IDENTIFIER:
1836 setCard_identifier(CARD_IDENTIFIER_EDEFAULT);
1837 return;
1838 case TaxationPackage.TAX_CARD__TAX_OFFICE:
1839 setTax_office(TAX_OFFICE_EDEFAULT);
1840 return;
1841 case TaxationPackage.TAX_CARD__PERCENTAGE_OF_WITHOLDING:
1842 setPercentage_of_witholding(PERCENTAGE_OF_WITHOLDING_EDEFAULT);
1843 return;
1844 case TaxationPackage.TAX_CARD__TAX_PAYERS_NAME_SURNAME:
1845 getTax_payers_name_surname().clear();
1846 return;
1847 case TaxationPackage.TAX_CARD__TAX_PAYERS_PARTNER_NAME_SURNAME:
1848 getTax_payers_partner_name_surname().clear();
1849 return;
1850 case TaxationPackage.TAX_CARD__TAX_PAYERS_ADDRESS:
1851 setTax_payers_address((Address)null);
1852 return;
1853 case TaxationPackage.TAX_CARD__JOBS_EMPLOYER_SS_NO:
1854 setJobs_Employer_SSNo(JOBS_EMPLOYER_SS_NO_EDEFAULT);
1855 return;
1856 case TaxationPackage.TAX_CARD__JOBS_EMPLOYERS_NAME:
1857 setJobs_employers_name(JOBS_EMPLOYERS_NAME_EDEFAULT);
1858 return;
1859 case TaxationPackage.TAX_CARD__JOBS_ACTIVITY_TYPE:
1860 setJobs_activity_type(JOBS_ACTIVITY_TYPE_EDEFAULT);
1861 return;
1862 case TaxationPackage.TAX_CARD__JOBS_PLACE_OF_WORK:
1863 setJobs_place_of_work(JOBS_PLACE_OF_WORK_EDEFAULT);
1864 return;
1865 case TaxationPackage.TAX_CARD__DEDUCTION_FD_DAILY:
1866 setDeduction_FD_daily(DEDUCTION_FD_DAILY_EDEFAULT);
1867 return;
1868 case TaxationPackage.TAX_CARD__DEDUCTION_FD_MONTHLY:
1869 setDeduction_FD_monthly(DEDUCTION_FD_MONTHLY_EDEFAULT);
1870 return;
1871 case TaxationPackage.TAX_CARD__DEDUCTION_AC_DAILY:
1872 setDeduction_AC_daily(DEDUCTION_AC_DAILY_EDEFAULT);
1873 return;
1874 case TaxationPackage.TAX_CARD__DEDUCTION_AC_MONTHLY:
1875 setDeduction_AC_monthly(DEDUCTION_AC_MONTHLY_EDEFAULT);
1876 return;
1877 case TaxationPackage.TAX_CARD__DEDUCTION_AC_YEARLY:
1878 setDeduction_AC_yearly(DEDUCTION_AC_YEARLY_EDEFAULT);
1879 return;
1880 case TaxationPackage.TAX_CARD__DEDUCTION_CE_DAILY:
1881 setDeduction_CE_daily(DEDUCTION_CE_DAILY_EDEFAULT);
1882 return;
1883 case TaxationPackage.TAX_CARD__DEDUCTION_CE_MONTHLY:
1884 setDeduction_CE_monthly(DEDUCTION_CE_MONTHLY_EDEFAULT);
1885 return;
1886 case TaxationPackage.TAX_CARD__DEDUCTION_CE_YEARLY:
1887 setDeduction_CE_yearly(DEDUCTION_CE_YEARLY_EDEFAULT);
1888 return;
1889 case TaxationPackage.TAX_CARD__DEDUCTION_DS_DAILY:
1890 setDeduction_DS_daily(DEDUCTION_DS_DAILY_EDEFAULT);
1891 return;
1892 case TaxationPackage.TAX_CARD__DEDUCTION_DS_MONTHLY:
1893 setDeduction_DS_monthly(DEDUCTION_DS_MONTHLY_EDEFAULT);
1894 return;
1895 case TaxationPackage.TAX_CARD__DEDUCTION_FO_DAILY:
1896 setDeduction_FO_daily(DEDUCTION_FO_DAILY_EDEFAULT);
1897 return;
1898 case TaxationPackage.TAX_CARD__DEDUCTION_FO_MONTHLY:
1899 setDeduction_FO_monthly(DEDUCTION_FO_MONTHLY_EDEFAULT);
1900 return;
1901 case TaxationPackage.TAX_CARD__DEDUCTION_FO_YEARLY:
1902 setDeduction_FO_yearly(DEDUCTION_FO_YEARLY_EDEFAULT);
1903 return;
1904 case TaxationPackage.TAX_CARD__CREDIT_CIS_DAILY:
1905 setCredit_CIS_daily(CREDIT_CIS_DAILY_EDEFAULT);
1906 return;
1907 case TaxationPackage.TAX_CARD__CREDIT_CIS_MONTHLY:
1908 setCredit_CIS_monthly(CREDIT_CIS_MONTHLY_EDEFAULT);
1909 return;
1910 case TaxationPackage.TAX_CARD__CREDIT_CIM_DAILY:
1911 setCredit_CIM_daily(CREDIT_CIM_DAILY_EDEFAULT);
1912 return;
1913 case TaxationPackage.TAX_CARD__VALIDITY:
1914 setValidity(VALIDITY_EDEFAULT);
1915 return;
1916 case TaxationPackage.TAX_CARD__INCOME_TAX_CREDIT:
1917 getIncome_Tax_Credit().clear();
1918 return;
1919 case TaxationPackage.TAX_CARD__PREVIOUS:
1920 setPrevious((Tax_Card)null);
1921 return;
1922 case TaxationPackage.TAX_CARD__CURRENT_TAX_CARD:
1923 setCurrent_tax_card((Tax_Card)null);
1924 return;
1925 case TaxationPackage.TAX_CARD__CREDIT_CIM_YEARLY:
1926 setCredit_CIM_yearly(CREDIT_CIM_YEARLY_EDEFAULT);
1927 return;
1928 case TaxationPackage.TAX_CARD__DEDUCTION_DS_ALIMONY_YEARLY:
1929 setDeduction_DS_Alimony_yearly(DEDUCTION_DS_ALIMONY_YEARLY_EDEFAULT);
1930 return;
1931 case TaxationPackage.TAX_CARD__DEDUCTION_DS_DEBT_YEARLY:
1932 setDeduction_DS_Debt_yearly(DEDUCTION_DS_DEBT_YEARLY_EDEFAULT);
1933 return;
1934 case TaxationPackage.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 TaxationPackage.TAX_CARD__CARD_IDENTIFIER:
1950 return CARD_IDENTIFIER_EDEFAULT == null ? card_identifier != null : !CARD_IDENTIFIER_EDEFAULT.equals(card_identifier);
1951 case TaxationPackage.TAX_CARD__TAX_OFFICE:
1952 return tax_office != TAX_OFFICE_EDEFAULT;
1953 case TaxationPackage.TAX_CARD__PERCENTAGE_OF_WITHOLDING:
1954 return percentage_of_witholding != PERCENTAGE_OF_WITHOLDING_EDEFAULT;
1955 case TaxationPackage.TAX_CARD__TAX_PAYERS_NAME_SURNAME:
1956 return tax_payers_name_surname != null && !tax_payers_name_surname.isEmpty();
1957 case TaxationPackage.TAX_CARD__TAX_PAYERS_PARTNER_NAME_SURNAME:
1958 return tax_payers_partner_name_surname != null && !tax_payers_partner_name_surname.isEmpty();
1959 case TaxationPackage.TAX_CARD__TAX_PAYERS_ADDRESS:
1960 return tax_payers_address != null;
1961 case TaxationPackage.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 TaxationPackage.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 TaxationPackage.TAX_CARD__JOBS_ACTIVITY_TYPE:
1966 return jobs_activity_type != JOBS_ACTIVITY_TYPE_EDEFAULT;
1967 case TaxationPackage.TAX_CARD__JOBS_PLACE_OF_WORK:
1968 return jobs_place_of_work != JOBS_PLACE_OF_WORK_EDEFAULT;
1969 case TaxationPackage.TAX_CARD__DEDUCTION_FD_DAILY:
1970 return deduction_FD_daily != DEDUCTION_FD_DAILY_EDEFAULT;
1971 case TaxationPackage.TAX_CARD__DEDUCTION_FD_MONTHLY:
1972 return deduction_FD_monthly != DEDUCTION_FD_MONTHLY_EDEFAULT;
1973 case TaxationPackage.TAX_CARD__DEDUCTION_AC_DAILY:
1974 return deduction_AC_daily != DEDUCTION_AC_DAILY_EDEFAULT;
1975 case TaxationPackage.TAX_CARD__DEDUCTION_AC_MONTHLY:
1976 return deduction_AC_monthly != DEDUCTION_AC_MONTHLY_EDEFAULT;
1977 case TaxationPackage.TAX_CARD__DEDUCTION_AC_YEARLY:
1978 return deduction_AC_yearly != DEDUCTION_AC_YEARLY_EDEFAULT;
1979 case TaxationPackage.TAX_CARD__DEDUCTION_CE_DAILY:
1980 return deduction_CE_daily != DEDUCTION_CE_DAILY_EDEFAULT;
1981 case TaxationPackage.TAX_CARD__DEDUCTION_CE_MONTHLY:
1982 return deduction_CE_monthly != DEDUCTION_CE_MONTHLY_EDEFAULT;
1983 case TaxationPackage.TAX_CARD__DEDUCTION_CE_YEARLY:
1984 return deduction_CE_yearly != DEDUCTION_CE_YEARLY_EDEFAULT;
1985 case TaxationPackage.TAX_CARD__DEDUCTION_DS_DAILY:
1986 return deduction_DS_daily != DEDUCTION_DS_DAILY_EDEFAULT;
1987 case TaxationPackage.TAX_CARD__DEDUCTION_DS_MONTHLY:
1988 return deduction_DS_monthly != DEDUCTION_DS_MONTHLY_EDEFAULT;
1989 case TaxationPackage.TAX_CARD__DEDUCTION_FO_DAILY:
1990 return deduction_FO_daily != DEDUCTION_FO_DAILY_EDEFAULT;
1991 case TaxationPackage.TAX_CARD__DEDUCTION_FO_MONTHLY:
1992 return deduction_FO_monthly != DEDUCTION_FO_MONTHLY_EDEFAULT;
1993 case TaxationPackage.TAX_CARD__DEDUCTION_FO_YEARLY:
1994 return deduction_FO_yearly != DEDUCTION_FO_YEARLY_EDEFAULT;
1995 case TaxationPackage.TAX_CARD__CREDIT_CIS_DAILY:
1996 return credit_CIS_daily != CREDIT_CIS_DAILY_EDEFAULT;
1997 case TaxationPackage.TAX_CARD__CREDIT_CIS_MONTHLY:
1998 return credit_CIS_monthly != CREDIT_CIS_MONTHLY_EDEFAULT;
1999 case TaxationPackage.TAX_CARD__CREDIT_CIM_DAILY:
2000 return credit_CIM_daily != CREDIT_CIM_DAILY_EDEFAULT;
2001 case TaxationPackage.TAX_CARD__VALIDITY:
2002 return validity != VALIDITY_EDEFAULT;
2003 case TaxationPackage.TAX_CARD__INCOME_TAX_CREDIT:
2004 return income_Tax_Credit != null && !income_Tax_Credit.isEmpty();
2005 case TaxationPackage.TAX_CARD__PREVIOUS:
2006 return previous != null;
2007 case TaxationPackage.TAX_CARD__CURRENT_TAX_CARD:
2008 return current_tax_card != null;
2009 case TaxationPackage.TAX_CARD__CREDIT_CIM_YEARLY:
2010 return credit_CIM_yearly != CREDIT_CIM_YEARLY_EDEFAULT;
2011 case TaxationPackage.TAX_CARD__DEDUCTION_DS_ALIMONY_YEARLY:
2012 return deduction_DS_Alimony_yearly != DEDUCTION_DS_ALIMONY_YEARLY_EDEFAULT;
2013 case TaxationPackage.TAX_CARD__DEDUCTION_DS_DEBT_YEARLY:
2014 return deduction_DS_Debt_yearly != DEDUCTION_DS_DEBT_YEARLY_EDEFAULT;
2015 case TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/Tax_PayerImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Tax_PayerImpl.java
new file mode 100644
index 00000000..859b1f84
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.TAX_PAYER__DEPENDENTS, TaxationPackage.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, TaxationPackage.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, TaxationPackage.FROM_AGENT__TAX_PAYER, FromAgent.class, msgs);
152 if (newFrom_agent != null)
153 msgs = ((InternalEObject)newFrom_agent).eInverseAdd(this, TaxationPackage.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, TaxationPackage.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, TaxationPackage.TAX_PAYER__INCOMES, TaxationPackage.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, TaxationPackage.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, TaxationPackage.FROM_LAW__TAX_PAYER, FromLaw.class, msgs);
210 if (newFrom_law != null)
211 msgs = ((InternalEObject)newFrom_law).eInverseAdd(this, TaxationPackage.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, TaxationPackage.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 TaxationPackage.TAX_PAYER__DEPENDENTS:
229 return ((InternalEList<InternalEObject>)(InternalEList<?>)getDependents()).basicAdd(otherEnd, msgs);
230 case TaxationPackage.TAX_PAYER__FROM_AGENT:
231 if (from_agent != null)
232 msgs = ((InternalEObject)from_agent).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TaxationPackage.TAX_PAYER__FROM_AGENT, null, msgs);
233 return basicSetFrom_agent((FromAgent)otherEnd, msgs);
234 case TaxationPackage.TAX_PAYER__INCOMES:
235 return ((InternalEList<InternalEObject>)(InternalEList<?>)getIncomes()).basicAdd(otherEnd, msgs);
236 case TaxationPackage.TAX_PAYER__FROM_LAW:
237 if (from_law != null)
238 msgs = ((InternalEObject)from_law).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TaxationPackage.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 TaxationPackage.TAX_PAYER__DEPENDENTS:
253 return ((InternalEList<?>)getDependents()).basicRemove(otherEnd, msgs);
254 case TaxationPackage.TAX_PAYER__FROM_AGENT:
255 return basicSetFrom_agent(null, msgs);
256 case TaxationPackage.TAX_PAYER__INCOMES:
257 return ((InternalEList<?>)getIncomes()).basicRemove(otherEnd, msgs);
258 case TaxationPackage.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 TaxationPackage.TAX_PAYER__DEPENDENTS:
273 return getDependents();
274 case TaxationPackage.TAX_PAYER__FROM_AGENT:
275 return getFrom_agent();
276 case TaxationPackage.TAX_PAYER__INCOMES:
277 return getIncomes();
278 case TaxationPackage.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 TaxationPackage.TAX_PAYER__DEPENDENTS:
294 getDependents().clear();
295 getDependents().addAll((Collection<? extends Dependent>)newValue);
296 return;
297 case TaxationPackage.TAX_PAYER__FROM_AGENT:
298 setFrom_agent((FromAgent)newValue);
299 return;
300 case TaxationPackage.TAX_PAYER__INCOMES:
301 getIncomes().clear();
302 getIncomes().addAll((Collection<? extends Income>)newValue);
303 return;
304 case TaxationPackage.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 TaxationPackage.TAX_PAYER__DEPENDENTS:
320 getDependents().clear();
321 return;
322 case TaxationPackage.TAX_PAYER__FROM_AGENT:
323 setFrom_agent((FromAgent)null);
324 return;
325 case TaxationPackage.TAX_PAYER__INCOMES:
326 getIncomes().clear();
327 return;
328 case TaxationPackage.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 TaxationPackage.TAX_PAYER__DEPENDENTS:
344 return dependents != null && !dependents.isEmpty();
345 case TaxationPackage.TAX_PAYER__FROM_AGENT:
346 return from_agent != null;
347 case TaxationPackage.TAX_PAYER__INCOMES:
348 return incomes != null && !incomes.isEmpty();
349 case TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/Tax_PropertyImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Tax_PropertyImpl.java
new file mode 100644
index 00000000..8da197f0
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/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.TaxationPackage;
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 TaxationPackage.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, TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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() != TaxationPackage.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, TaxationPackage.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, TaxationPackage.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 TaxationPackage.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 TaxationPackage.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 TaxationPackage.TAX_PROPERTY__UNION_RECORD:
223 return eInternalContainer().eInverseRemove(this, TaxationPackage.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 TaxationPackage.TAX_PROPERTY__STARTING_YEAR:
237 return getStarting_year();
238 case TaxationPackage.TAX_PROPERTY__ID10:
239 return getId10();
240 case TaxationPackage.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 TaxationPackage.TAX_PROPERTY__STARTING_YEAR:
255 setStarting_year((Integer)newValue);
256 return;
257 case TaxationPackage.TAX_PROPERTY__ID10:
258 setId10((String)newValue);
259 return;
260 case TaxationPackage.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 TaxationPackage.TAX_PROPERTY__STARTING_YEAR:
276 setStarting_year(STARTING_YEAR_EDEFAULT);
277 return;
278 case TaxationPackage.TAX_PROPERTY__ID10:
279 setId10(ID10_EDEFAULT);
280 return;
281 case TaxationPackage.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 TaxationPackage.TAX_PROPERTY__STARTING_YEAR:
297 return starting_year != STARTING_YEAR_EDEFAULT;
298 case TaxationPackage.TAX_PROPERTY__ID10:
299 return ID10_EDEFAULT == null ? id10 != null : !ID10_EDEFAULT.equals(id10);
300 case TaxationPackage.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/case.study.pledge.model/src/TaxationWithRoot/impl/TaxationFactoryImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/TaxationFactoryImpl.java
new file mode 100644
index 00000000..12caab7b
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/TaxationFactoryImpl.java
@@ -0,0 +1,1108 @@
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 TaxationFactoryImpl extends EFactoryImpl implements TaxationFactory {
23 /**
24 * Creates the default factory implementation.
25 * <!-- begin-user-doc -->
26 * <!-- end-user-doc -->
27 * @generated
28 */
29 public static TaxationFactory init() {
30 try {
31 TaxationFactory theTaxationFactory = (TaxationFactory)EPackage.Registry.INSTANCE.getEFactory(TaxationPackage.eNS_URI);
32 if (theTaxationFactory != null) {
33 return theTaxationFactory;
34 }
35 }
36 catch (Exception exception) {
37 EcorePlugin.INSTANCE.log(exception);
38 }
39 return new TaxationFactoryImpl();
40 }
41
42 /**
43 * Creates an instance of the factory.
44 * <!-- begin-user-doc -->
45 * <!-- end-user-doc -->
46 * @generated
47 */
48 public TaxationFactoryImpl() {
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 TaxationPackage.INCOME_TAX: return createIncome_Tax();
61 case TaxationPackage.PHYSICAL_PERSON: return createPhysical_Person();
62 case TaxationPackage.ADDRESS: return createAddress();
63 case TaxationPackage.EXPENSE: return createExpense();
64 case TaxationPackage.DEPENDENT: return createDependent();
65 case TaxationPackage.EXTERNAL_ALLOWANCE: return createExternal_Allowance();
66 case TaxationPackage.HOUSEHOLD: return createHousehold();
67 case TaxationPackage.TAX_PROPERTY: return createTax_Property();
68 case TaxationPackage.FROM_AGENT: return createFromAgent();
69 case TaxationPackage.TAX_CARD: return createTax_Card();
70 case TaxationPackage.INCOME_TAX_CREDIT: return createIncome_Tax_Credit();
71 case TaxationPackage.INCOME_DETAIL: return createIncome_Detail();
72 case TaxationPackage.FROM_LAW: return createFromLaw();
73 case TaxationPackage.FISCAL_ADDRESS: return createFiscal_Address();
74 case TaxationPackage.HABITUAL_ADDRESS: return createHabitual_Address();
75 case TaxationPackage.MARRIAGE_RECORD: return createMarriage_Record();
76 case TaxationPackage.NON_RESIDENT_TAX_PAYER: return createNon_Resident_Tax_Payer();
77 case TaxationPackage.PARTNERSHIP_RECORD: return createPartnership_Record();
78 case TaxationPackage.RESIDENT_TAX_PAYER: return createResident_Tax_Payer();
79 case TaxationPackage.TRADE_AND_BUSINESS_INCOME: return createTrade_and_Business_Income();
80 case TaxationPackage.AGRICULTURE_AND_FORESTRY_INCOME: return createAgriculture_and_Forestry_Income();
81 case TaxationPackage.PENSIONS_AND_ANNUITIES_INCOME: return createPensions_and_Annuities_Income();
82 case TaxationPackage.CAPITAL_AND_INVESTMENTS_INCOME: return createCapital_and_Investments_Income();
83 case TaxationPackage.EMPLOYMENT_INCOME: return createEmployment_Income();
84 case TaxationPackage.RENTALS_AND_LEASES_INCOME: return createRentals_and_Leases_Income();
85 case TaxationPackage.FOREIGN_INCOME: return createForeign_Income();
86 case TaxationPackage.LOCAL_INCOME: return createLocal_Income();
87 case TaxationPackage.CIM: return createCIM();
88 case TaxationPackage.CIP: return createCIP();
89 case TaxationPackage.CIS: return createCIS();
90 case TaxationPackage.FD: return createFD();
91 case TaxationPackage.PROFESSIONAL_EXPENSES_DEDUCTION: return createProfessional_Expenses_Deduction();
92 case TaxationPackage.FO: return createFO();
93 case TaxationPackage.DS_FOR_PERMANENT_EXPENSE: return createDS_for_Permanent_Expense();
94 case TaxationPackage.DS: return createDS();
95 case TaxationPackage.DS_FOR_INTEREST_EXPENSE: return createDS_for_Interest_Expense();
96 case TaxationPackage.DS_FOR_HEALTH_AND_PENSION_INSURANCE: return createDS_for_Health_and_Pension_Insurance();
97 case TaxationPackage.DS_FOR_PRIVATE_INSURANCE_AND_PLAN: return createDS_for_Private_Insurance_and_Plan();
98 case TaxationPackage.DS_FOR_LOSS_CARRYFORWARD: return createDS_for_Loss_Carryforward();
99 case TaxationPackage.DS_FOR_DONATION: return createDS_for_Donation();
100 case TaxationPackage.PERMANENT_EXPENSE: return createPermanent_Expense();
101 case TaxationPackage.SPECIAL_EXPENSE_DS: return createSpecial_Expense_DS();
102 case TaxationPackage.INTEREST_EXPENSE: return createInterest_Expense();
103 case TaxationPackage.PRIVATE_INSURANCE_AND_PLAN: return createPrivate_Insurance_and_Plan();
104 case TaxationPackage.HEALTH_AND_PENSION_INSURANCE: return createHealth_and_Pension_Insurance();
105 case TaxationPackage.DONATION: return createDonation();
106 case TaxationPackage.LOSS_CARRYFORWARD: return createLoss_Carryforward();
107 case TaxationPackage.SPOUSAL_EXPENSE_AC: return createSpousal_Expense_AC();
108 case TaxationPackage.EXTRAORDINARY_EXPENSE_CE: return createExtraordinary_Expense_CE();
109 case TaxationPackage.TRAVEL_EXPENSE_FD: return createTravel_Expense_FD();
110 case TaxationPackage.PROFESSIONAL_EXPENSE: return createProfessional_Expense();
111 case TaxationPackage.MISCELLANEOUS_EXPENSE_FO: return createMiscellaneous_Expense_FO();
112 case TaxationPackage.RESOURCE: return createResource();
113 default:
114 throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
115 }
116 }
117
118 /**
119 * <!-- begin-user-doc -->
120 * <!-- end-user-doc -->
121 * @generated
122 */
123 @Override
124 public Object createFromString(EDataType eDataType, String initialValue) {
125 switch (eDataType.getClassifierID()) {
126 case TaxationPackage.GRANTOR:
127 return createGrantorFromString(eDataType, initialValue);
128 case TaxationPackage.DISABILITY_TYPES:
129 return createDisability_TypesFromString(eDataType, initialValue);
130 case TaxationPackage.COUNTRY:
131 return createCountryFromString(eDataType, initialValue);
132 case TaxationPackage.TAX_OFFICE:
133 return createTax_OfficeFromString(eDataType, initialValue);
134 case TaxationPackage.TAX_CLASS_CATEGORY:
135 return createTax_Class_CategoryFromString(eDataType, initialValue);
136 case TaxationPackage.JOB_ACTIVITY:
137 return createJob_ActivityFromString(eDataType, initialValue);
138 case TaxationPackage.TOWN:
139 return createTownFromString(eDataType, initialValue);
140 case TaxationPackage.CE_TYPE:
141 return createCE_TypeFromString(eDataType, initialValue);
142 case TaxationPackage.EXPENSE_PURPOSE:
143 return createExpense_PurposeFromString(eDataType, initialValue);
144 case TaxationPackage.DEPENDENT_TYPE:
145 return createDependent_TypeFromString(eDataType, initialValue);
146 case TaxationPackage.SEPARATION_CAUSES:
147 return createSeparation_CausesFromString(eDataType, initialValue);
148 case TaxationPackage.CATEGORY_OF_PERMANENT_EXPENSE:
149 return createCategory_of_Permanent_ExpenseFromString(eDataType, initialValue);
150 case TaxationPackage.CATEGORY_OF_HEALTH_AND_PENSION_INSURANCES:
151 return createCategory_of_Health_and_Pension_InsurancesFromString(eDataType, initialValue);
152 case TaxationPackage.CATEGORY_OF_PRIVATE_INSURANCE_AND_PLAN:
153 return createCategory_of_Private_Insurance_and_PlanFromString(eDataType, initialValue);
154 case TaxationPackage.LEGAL_UNION_TYPES:
155 return createLegal_Union_TypesFromString(eDataType, initialValue);
156 default:
157 throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
158 }
159 }
160
161 /**
162 * <!-- begin-user-doc -->
163 * <!-- end-user-doc -->
164 * @generated
165 */
166 @Override
167 public String convertToString(EDataType eDataType, Object instanceValue) {
168 switch (eDataType.getClassifierID()) {
169 case TaxationPackage.GRANTOR:
170 return convertGrantorToString(eDataType, instanceValue);
171 case TaxationPackage.DISABILITY_TYPES:
172 return convertDisability_TypesToString(eDataType, instanceValue);
173 case TaxationPackage.COUNTRY:
174 return convertCountryToString(eDataType, instanceValue);
175 case TaxationPackage.TAX_OFFICE:
176 return convertTax_OfficeToString(eDataType, instanceValue);
177 case TaxationPackage.TAX_CLASS_CATEGORY:
178 return convertTax_Class_CategoryToString(eDataType, instanceValue);
179 case TaxationPackage.JOB_ACTIVITY:
180 return convertJob_ActivityToString(eDataType, instanceValue);
181 case TaxationPackage.TOWN:
182 return convertTownToString(eDataType, instanceValue);
183 case TaxationPackage.CE_TYPE:
184 return convertCE_TypeToString(eDataType, instanceValue);
185 case TaxationPackage.EXPENSE_PURPOSE:
186 return convertExpense_PurposeToString(eDataType, instanceValue);
187 case TaxationPackage.DEPENDENT_TYPE:
188 return convertDependent_TypeToString(eDataType, instanceValue);
189 case TaxationPackage.SEPARATION_CAUSES:
190 return convertSeparation_CausesToString(eDataType, instanceValue);
191 case TaxationPackage.CATEGORY_OF_PERMANENT_EXPENSE:
192 return convertCategory_of_Permanent_ExpenseToString(eDataType, instanceValue);
193 case TaxationPackage.CATEGORY_OF_HEALTH_AND_PENSION_INSURANCES:
194 return convertCategory_of_Health_and_Pension_InsurancesToString(eDataType, instanceValue);
195 case TaxationPackage.CATEGORY_OF_PRIVATE_INSURANCE_AND_PLAN:
196 return convertCategory_of_Private_Insurance_and_PlanToString(eDataType, instanceValue);
197 case TaxationPackage.LEGAL_UNION_TYPES:
198 return convertLegal_Union_TypesToString(eDataType, instanceValue);
199 default:
200 throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
201 }
202 }
203
204 /**
205 * <!-- begin-user-doc -->
206 * <!-- end-user-doc -->
207 * @generated
208 */
209 @Override
210 public Income_Tax createIncome_Tax() {
211 Income_TaxImpl income_Tax = new Income_TaxImpl();
212 return income_Tax;
213 }
214
215 /**
216 * <!-- begin-user-doc -->
217 * <!-- end-user-doc -->
218 * @generated
219 */
220 @Override
221 public Physical_Person createPhysical_Person() {
222 Physical_PersonImpl physical_Person = new Physical_PersonImpl();
223 return physical_Person;
224 }
225
226 /**
227 * <!-- begin-user-doc -->
228 * <!-- end-user-doc -->
229 * @generated
230 */
231 @Override
232 public Address createAddress() {
233 AddressImpl address = new AddressImpl();
234 return address;
235 }
236
237 /**
238 * <!-- begin-user-doc -->
239 * <!-- end-user-doc -->
240 * @generated
241 */
242 @Override
243 public Expense createExpense() {
244 ExpenseImpl expense = new ExpenseImpl();
245 return expense;
246 }
247
248 /**
249 * <!-- begin-user-doc -->
250 * <!-- end-user-doc -->
251 * @generated
252 */
253 @Override
254 public Dependent createDependent() {
255 DependentImpl dependent = new DependentImpl();
256 return dependent;
257 }
258
259 /**
260 * <!-- begin-user-doc -->
261 * <!-- end-user-doc -->
262 * @generated
263 */
264 @Override
265 public External_Allowance createExternal_Allowance() {
266 External_AllowanceImpl external_Allowance = new External_AllowanceImpl();
267 return external_Allowance;
268 }
269
270 /**
271 * <!-- begin-user-doc -->
272 * <!-- end-user-doc -->
273 * @generated
274 */
275 @Override
276 public Household createHousehold() {
277 HouseholdImpl household = new HouseholdImpl();
278 return household;
279 }
280
281 /**
282 * <!-- begin-user-doc -->
283 * <!-- end-user-doc -->
284 * @generated
285 */
286 @Override
287 public Tax_Property createTax_Property() {
288 Tax_PropertyImpl tax_Property = new Tax_PropertyImpl();
289 return tax_Property;
290 }
291
292 /**
293 * <!-- begin-user-doc -->
294 * <!-- end-user-doc -->
295 * @generated
296 */
297 @Override
298 public FromAgent createFromAgent() {
299 FromAgentImpl fromAgent = new FromAgentImpl();
300 return fromAgent;
301 }
302
303 /**
304 * <!-- begin-user-doc -->
305 * <!-- end-user-doc -->
306 * @generated
307 */
308 @Override
309 public Tax_Card createTax_Card() {
310 Tax_CardImpl tax_Card = new Tax_CardImpl();
311 return tax_Card;
312 }
313
314 /**
315 * <!-- begin-user-doc -->
316 * <!-- end-user-doc -->
317 * @generated
318 */
319 @Override
320 public Income_Tax_Credit createIncome_Tax_Credit() {
321 Income_Tax_CreditImpl income_Tax_Credit = new Income_Tax_CreditImpl();
322 return income_Tax_Credit;
323 }
324
325 /**
326 * <!-- begin-user-doc -->
327 * <!-- end-user-doc -->
328 * @generated
329 */
330 @Override
331 public Income_Detail createIncome_Detail() {
332 Income_DetailImpl income_Detail = new Income_DetailImpl();
333 return income_Detail;
334 }
335
336 /**
337 * <!-- begin-user-doc -->
338 * <!-- end-user-doc -->
339 * @generated
340 */
341 @Override
342 public FromLaw createFromLaw() {
343 FromLawImpl fromLaw = new FromLawImpl();
344 return fromLaw;
345 }
346
347 /**
348 * <!-- begin-user-doc -->
349 * <!-- end-user-doc -->
350 * @generated
351 */
352 @Override
353 public Fiscal_Address createFiscal_Address() {
354 Fiscal_AddressImpl fiscal_Address = new Fiscal_AddressImpl();
355 return fiscal_Address;
356 }
357
358 /**
359 * <!-- begin-user-doc -->
360 * <!-- end-user-doc -->
361 * @generated
362 */
363 @Override
364 public Habitual_Address createHabitual_Address() {
365 Habitual_AddressImpl habitual_Address = new Habitual_AddressImpl();
366 return habitual_Address;
367 }
368
369 /**
370 * <!-- begin-user-doc -->
371 * <!-- end-user-doc -->
372 * @generated
373 */
374 @Override
375 public Marriage_Record createMarriage_Record() {
376 Marriage_RecordImpl marriage_Record = new Marriage_RecordImpl();
377 return marriage_Record;
378 }
379
380 /**
381 * <!-- begin-user-doc -->
382 * <!-- end-user-doc -->
383 * @generated
384 */
385 @Override
386 public Non_Resident_Tax_Payer createNon_Resident_Tax_Payer() {
387 Non_Resident_Tax_PayerImpl non_Resident_Tax_Payer = new Non_Resident_Tax_PayerImpl();
388 return non_Resident_Tax_Payer;
389 }
390
391 /**
392 * <!-- begin-user-doc -->
393 * <!-- end-user-doc -->
394 * @generated
395 */
396 @Override
397 public Partnership_Record createPartnership_Record() {
398 Partnership_RecordImpl partnership_Record = new Partnership_RecordImpl();
399 return partnership_Record;
400 }
401
402 /**
403 * <!-- begin-user-doc -->
404 * <!-- end-user-doc -->
405 * @generated
406 */
407 @Override
408 public Resident_Tax_Payer createResident_Tax_Payer() {
409 Resident_Tax_PayerImpl resident_Tax_Payer = new Resident_Tax_PayerImpl();
410 return resident_Tax_Payer;
411 }
412
413 /**
414 * <!-- begin-user-doc -->
415 * <!-- end-user-doc -->
416 * @generated
417 */
418 @Override
419 public Trade_and_Business_Income createTrade_and_Business_Income() {
420 Trade_and_Business_IncomeImpl trade_and_Business_Income = new Trade_and_Business_IncomeImpl();
421 return trade_and_Business_Income;
422 }
423
424 /**
425 * <!-- begin-user-doc -->
426 * <!-- end-user-doc -->
427 * @generated
428 */
429 @Override
430 public Agriculture_and_Forestry_Income createAgriculture_and_Forestry_Income() {
431 Agriculture_and_Forestry_IncomeImpl agriculture_and_Forestry_Income = new Agriculture_and_Forestry_IncomeImpl();
432 return agriculture_and_Forestry_Income;
433 }
434
435 /**
436 * <!-- begin-user-doc -->
437 * <!-- end-user-doc -->
438 * @generated
439 */
440 @Override
441 public Pensions_and_Annuities_Income createPensions_and_Annuities_Income() {
442 Pensions_and_Annuities_IncomeImpl pensions_and_Annuities_Income = new Pensions_and_Annuities_IncomeImpl();
443 return pensions_and_Annuities_Income;
444 }
445
446 /**
447 * <!-- begin-user-doc -->
448 * <!-- end-user-doc -->
449 * @generated
450 */
451 @Override
452 public Capital_and_Investments_Income createCapital_and_Investments_Income() {
453 Capital_and_Investments_IncomeImpl capital_and_Investments_Income = new Capital_and_Investments_IncomeImpl();
454 return capital_and_Investments_Income;
455 }
456
457 /**
458 * <!-- begin-user-doc -->
459 * <!-- end-user-doc -->
460 * @generated
461 */
462 @Override
463 public Employment_Income createEmployment_Income() {
464 Employment_IncomeImpl employment_Income = new Employment_IncomeImpl();
465 return employment_Income;
466 }
467
468 /**
469 * <!-- begin-user-doc -->
470 * <!-- end-user-doc -->
471 * @generated
472 */
473 @Override
474 public Rentals_and_Leases_Income createRentals_and_Leases_Income() {
475 Rentals_and_Leases_IncomeImpl rentals_and_Leases_Income = new Rentals_and_Leases_IncomeImpl();
476 return rentals_and_Leases_Income;
477 }
478
479 /**
480 * <!-- begin-user-doc -->
481 * <!-- end-user-doc -->
482 * @generated
483 */
484 @Override
485 public Foreign_Income createForeign_Income() {
486 Foreign_IncomeImpl foreign_Income = new Foreign_IncomeImpl();
487 return foreign_Income;
488 }
489
490 /**
491 * <!-- begin-user-doc -->
492 * <!-- end-user-doc -->
493 * @generated
494 */
495 @Override
496 public Local_Income createLocal_Income() {
497 Local_IncomeImpl local_Income = new Local_IncomeImpl();
498 return local_Income;
499 }
500
501 /**
502 * <!-- begin-user-doc -->
503 * <!-- end-user-doc -->
504 * @generated
505 */
506 @Override
507 public CIM createCIM() {
508 CIMImpl cim = new CIMImpl();
509 return cim;
510 }
511
512 /**
513 * <!-- begin-user-doc -->
514 * <!-- end-user-doc -->
515 * @generated
516 */
517 @Override
518 public CIP createCIP() {
519 CIPImpl cip = new CIPImpl();
520 return cip;
521 }
522
523 /**
524 * <!-- begin-user-doc -->
525 * <!-- end-user-doc -->
526 * @generated
527 */
528 @Override
529 public CIS createCIS() {
530 CISImpl cis = new CISImpl();
531 return cis;
532 }
533
534 /**
535 * <!-- begin-user-doc -->
536 * <!-- end-user-doc -->
537 * @generated
538 */
539 @Override
540 public FD createFD() {
541 FDImpl fd = new FDImpl();
542 return fd;
543 }
544
545 /**
546 * <!-- begin-user-doc -->
547 * <!-- end-user-doc -->
548 * @generated
549 */
550 @Override
551 public Professional_Expenses_Deduction createProfessional_Expenses_Deduction() {
552 Professional_Expenses_DeductionImpl professional_Expenses_Deduction = new Professional_Expenses_DeductionImpl();
553 return professional_Expenses_Deduction;
554 }
555
556 /**
557 * <!-- begin-user-doc -->
558 * <!-- end-user-doc -->
559 * @generated
560 */
561 @Override
562 public FO createFO() {
563 FOImpl fo = new FOImpl();
564 return fo;
565 }
566
567 /**
568 * <!-- begin-user-doc -->
569 * <!-- end-user-doc -->
570 * @generated
571 */
572 @Override
573 public DS_for_Permanent_Expense createDS_for_Permanent_Expense() {
574 DS_for_Permanent_ExpenseImpl dS_for_Permanent_Expense = new DS_for_Permanent_ExpenseImpl();
575 return dS_for_Permanent_Expense;
576 }
577
578 /**
579 * <!-- begin-user-doc -->
580 * <!-- end-user-doc -->
581 * @generated
582 */
583 @Override
584 public DS createDS() {
585 DSImpl ds = new DSImpl();
586 return ds;
587 }
588
589 /**
590 * <!-- begin-user-doc -->
591 * <!-- end-user-doc -->
592 * @generated
593 */
594 @Override
595 public DS_for_Interest_Expense createDS_for_Interest_Expense() {
596 DS_for_Interest_ExpenseImpl dS_for_Interest_Expense = new DS_for_Interest_ExpenseImpl();
597 return dS_for_Interest_Expense;
598 }
599
600 /**
601 * <!-- begin-user-doc -->
602 * <!-- end-user-doc -->
603 * @generated
604 */
605 @Override
606 public DS_for_Health_and_Pension_Insurance createDS_for_Health_and_Pension_Insurance() {
607 DS_for_Health_and_Pension_InsuranceImpl dS_for_Health_and_Pension_Insurance = new DS_for_Health_and_Pension_InsuranceImpl();
608 return dS_for_Health_and_Pension_Insurance;
609 }
610
611 /**
612 * <!-- begin-user-doc -->
613 * <!-- end-user-doc -->
614 * @generated
615 */
616 @Override
617 public DS_for_Private_Insurance_and_Plan createDS_for_Private_Insurance_and_Plan() {
618 DS_for_Private_Insurance_and_PlanImpl dS_for_Private_Insurance_and_Plan = new DS_for_Private_Insurance_and_PlanImpl();
619 return dS_for_Private_Insurance_and_Plan;
620 }
621
622 /**
623 * <!-- begin-user-doc -->
624 * <!-- end-user-doc -->
625 * @generated
626 */
627 @Override
628 public DS_for_Loss_Carryforward createDS_for_Loss_Carryforward() {
629 DS_for_Loss_CarryforwardImpl dS_for_Loss_Carryforward = new DS_for_Loss_CarryforwardImpl();
630 return dS_for_Loss_Carryforward;
631 }
632
633 /**
634 * <!-- begin-user-doc -->
635 * <!-- end-user-doc -->
636 * @generated
637 */
638 @Override
639 public DS_for_Donation createDS_for_Donation() {
640 DS_for_DonationImpl dS_for_Donation = new DS_for_DonationImpl();
641 return dS_for_Donation;
642 }
643
644 /**
645 * <!-- begin-user-doc -->
646 * <!-- end-user-doc -->
647 * @generated
648 */
649 @Override
650 public Permanent_Expense createPermanent_Expense() {
651 Permanent_ExpenseImpl permanent_Expense = new Permanent_ExpenseImpl();
652 return permanent_Expense;
653 }
654
655 /**
656 * <!-- begin-user-doc -->
657 * <!-- end-user-doc -->
658 * @generated
659 */
660 @Override
661 public Special_Expense_DS createSpecial_Expense_DS() {
662 Special_Expense_DSImpl special_Expense_DS = new Special_Expense_DSImpl();
663 return special_Expense_DS;
664 }
665
666 /**
667 * <!-- begin-user-doc -->
668 * <!-- end-user-doc -->
669 * @generated
670 */
671 @Override
672 public Interest_Expense createInterest_Expense() {
673 Interest_ExpenseImpl interest_Expense = new Interest_ExpenseImpl();
674 return interest_Expense;
675 }
676
677 /**
678 * <!-- begin-user-doc -->
679 * <!-- end-user-doc -->
680 * @generated
681 */
682 @Override
683 public Private_Insurance_and_Plan createPrivate_Insurance_and_Plan() {
684 Private_Insurance_and_PlanImpl private_Insurance_and_Plan = new Private_Insurance_and_PlanImpl();
685 return private_Insurance_and_Plan;
686 }
687
688 /**
689 * <!-- begin-user-doc -->
690 * <!-- end-user-doc -->
691 * @generated
692 */
693 @Override
694 public Health_and_Pension_Insurance createHealth_and_Pension_Insurance() {
695 Health_and_Pension_InsuranceImpl health_and_Pension_Insurance = new Health_and_Pension_InsuranceImpl();
696 return health_and_Pension_Insurance;
697 }
698
699 /**
700 * <!-- begin-user-doc -->
701 * <!-- end-user-doc -->
702 * @generated
703 */
704 @Override
705 public Donation createDonation() {
706 DonationImpl donation = new DonationImpl();
707 return donation;
708 }
709
710 /**
711 * <!-- begin-user-doc -->
712 * <!-- end-user-doc -->
713 * @generated
714 */
715 @Override
716 public Loss_Carryforward createLoss_Carryforward() {
717 Loss_CarryforwardImpl loss_Carryforward = new Loss_CarryforwardImpl();
718 return loss_Carryforward;
719 }
720
721 /**
722 * <!-- begin-user-doc -->
723 * <!-- end-user-doc -->
724 * @generated
725 */
726 @Override
727 public Spousal_Expense_AC createSpousal_Expense_AC() {
728 Spousal_Expense_ACImpl spousal_Expense_AC = new Spousal_Expense_ACImpl();
729 return spousal_Expense_AC;
730 }
731
732 /**
733 * <!-- begin-user-doc -->
734 * <!-- end-user-doc -->
735 * @generated
736 */
737 @Override
738 public Extraordinary_Expense_CE createExtraordinary_Expense_CE() {
739 Extraordinary_Expense_CEImpl extraordinary_Expense_CE = new Extraordinary_Expense_CEImpl();
740 return extraordinary_Expense_CE;
741 }
742
743 /**
744 * <!-- begin-user-doc -->
745 * <!-- end-user-doc -->
746 * @generated
747 */
748 @Override
749 public Travel_Expense_FD createTravel_Expense_FD() {
750 Travel_Expense_FDImpl travel_Expense_FD = new Travel_Expense_FDImpl();
751 return travel_Expense_FD;
752 }
753
754 /**
755 * <!-- begin-user-doc -->
756 * <!-- end-user-doc -->
757 * @generated
758 */
759 @Override
760 public Professional_Expense createProfessional_Expense() {
761 Professional_ExpenseImpl professional_Expense = new Professional_ExpenseImpl();
762 return professional_Expense;
763 }
764
765 /**
766 * <!-- begin-user-doc -->
767 * <!-- end-user-doc -->
768 * @generated
769 */
770 @Override
771 public Miscellaneous_Expense_FO createMiscellaneous_Expense_FO() {
772 Miscellaneous_Expense_FOImpl miscellaneous_Expense_FO = new Miscellaneous_Expense_FOImpl();
773 return miscellaneous_Expense_FO;
774 }
775
776 /**
777 * <!-- begin-user-doc -->
778 * <!-- end-user-doc -->
779 * @generated
780 */
781 @Override
782 public Resource createResource() {
783 ResourceImpl resource = new ResourceImpl();
784 return resource;
785 }
786
787 /**
788 * <!-- begin-user-doc -->
789 * <!-- end-user-doc -->
790 * @generated
791 */
792 public Grantor createGrantorFromString(EDataType eDataType, String initialValue) {
793 Grantor result = Grantor.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 convertGrantorToString(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 Disability_Types createDisability_TypesFromString(EDataType eDataType, String initialValue) {
813 Disability_Types result = Disability_Types.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 convertDisability_TypesToString(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 Country createCountryFromString(EDataType eDataType, String initialValue) {
833 Country result = Country.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 convertCountryToString(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 Tax_Office createTax_OfficeFromString(EDataType eDataType, String initialValue) {
853 Tax_Office result = Tax_Office.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 convertTax_OfficeToString(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 Tax_Class_Category createTax_Class_CategoryFromString(EDataType eDataType, String initialValue) {
873 Tax_Class_Category result = Tax_Class_Category.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 convertTax_Class_CategoryToString(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 Job_Activity createJob_ActivityFromString(EDataType eDataType, String initialValue) {
893 Job_Activity result = Job_Activity.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 convertJob_ActivityToString(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 Town createTownFromString(EDataType eDataType, String initialValue) {
913 Town result = Town.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 convertTownToString(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 CE_Type createCE_TypeFromString(EDataType eDataType, String initialValue) {
933 CE_Type result = CE_Type.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 convertCE_TypeToString(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 Expense_Purpose createExpense_PurposeFromString(EDataType eDataType, String initialValue) {
953 Expense_Purpose result = Expense_Purpose.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 convertExpense_PurposeToString(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 public Dependent_Type createDependent_TypeFromString(EDataType eDataType, String initialValue) {
973 Dependent_Type result = Dependent_Type.get(initialValue);
974 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
975 return result;
976 }
977
978 /**
979 * <!-- begin-user-doc -->
980 * <!-- end-user-doc -->
981 * @generated
982 */
983 public String convertDependent_TypeToString(EDataType eDataType, Object instanceValue) {
984 return instanceValue == null ? null : instanceValue.toString();
985 }
986
987 /**
988 * <!-- begin-user-doc -->
989 * <!-- end-user-doc -->
990 * @generated
991 */
992 public Separation_Causes createSeparation_CausesFromString(EDataType eDataType, String initialValue) {
993 Separation_Causes result = Separation_Causes.get(initialValue);
994 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
995 return result;
996 }
997
998 /**
999 * <!-- begin-user-doc -->
1000 * <!-- end-user-doc -->
1001 * @generated
1002 */
1003 public String convertSeparation_CausesToString(EDataType eDataType, Object instanceValue) {
1004 return instanceValue == null ? null : instanceValue.toString();
1005 }
1006
1007 /**
1008 * <!-- begin-user-doc -->
1009 * <!-- end-user-doc -->
1010 * @generated
1011 */
1012 public Category_of_Permanent_Expense createCategory_of_Permanent_ExpenseFromString(EDataType eDataType, String initialValue) {
1013 Category_of_Permanent_Expense result = Category_of_Permanent_Expense.get(initialValue);
1014 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
1015 return result;
1016 }
1017
1018 /**
1019 * <!-- begin-user-doc -->
1020 * <!-- end-user-doc -->
1021 * @generated
1022 */
1023 public String convertCategory_of_Permanent_ExpenseToString(EDataType eDataType, Object instanceValue) {
1024 return instanceValue == null ? null : instanceValue.toString();
1025 }
1026
1027 /**
1028 * <!-- begin-user-doc -->
1029 * <!-- end-user-doc -->
1030 * @generated
1031 */
1032 public Category_of_Health_and_Pension_Insurances createCategory_of_Health_and_Pension_InsurancesFromString(EDataType eDataType, String initialValue) {
1033 Category_of_Health_and_Pension_Insurances result = Category_of_Health_and_Pension_Insurances.get(initialValue);
1034 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
1035 return result;
1036 }
1037
1038 /**
1039 * <!-- begin-user-doc -->
1040 * <!-- end-user-doc -->
1041 * @generated
1042 */
1043 public String convertCategory_of_Health_and_Pension_InsurancesToString(EDataType eDataType, Object instanceValue) {
1044 return instanceValue == null ? null : instanceValue.toString();
1045 }
1046
1047 /**
1048 * <!-- begin-user-doc -->
1049 * <!-- end-user-doc -->
1050 * @generated
1051 */
1052 public Category_of_Private_Insurance_and_Plan createCategory_of_Private_Insurance_and_PlanFromString(EDataType eDataType, String initialValue) {
1053 Category_of_Private_Insurance_and_Plan result = Category_of_Private_Insurance_and_Plan.get(initialValue);
1054 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
1055 return result;
1056 }
1057
1058 /**
1059 * <!-- begin-user-doc -->
1060 * <!-- end-user-doc -->
1061 * @generated
1062 */
1063 public String convertCategory_of_Private_Insurance_and_PlanToString(EDataType eDataType, Object instanceValue) {
1064 return instanceValue == null ? null : instanceValue.toString();
1065 }
1066
1067 /**
1068 * <!-- begin-user-doc -->
1069 * <!-- end-user-doc -->
1070 * @generated
1071 */
1072 public Legal_Union_Types createLegal_Union_TypesFromString(EDataType eDataType, String initialValue) {
1073 Legal_Union_Types result = Legal_Union_Types.get(initialValue);
1074 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
1075 return result;
1076 }
1077
1078 /**
1079 * <!-- begin-user-doc -->
1080 * <!-- end-user-doc -->
1081 * @generated
1082 */
1083 public String convertLegal_Union_TypesToString(EDataType eDataType, Object instanceValue) {
1084 return instanceValue == null ? null : instanceValue.toString();
1085 }
1086
1087 /**
1088 * <!-- begin-user-doc -->
1089 * <!-- end-user-doc -->
1090 * @generated
1091 */
1092 @Override
1093 public TaxationPackage getTaxationPackage() {
1094 return (TaxationPackage)getEPackage();
1095 }
1096
1097 /**
1098 * <!-- begin-user-doc -->
1099 * <!-- end-user-doc -->
1100 * @deprecated
1101 * @generated
1102 */
1103 @Deprecated
1104 public static TaxationPackage getPackage() {
1105 return TaxationPackage.eINSTANCE;
1106 }
1107
1108} //TaxationFactoryImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/TaxationPackageImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/TaxationPackageImpl.java
new file mode 100644
index 00000000..c8a1400d
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/TaxationPackageImpl.java
@@ -0,0 +1,3988 @@
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.DS_for_Donation;
15import TaxationWithRoot.DS_for_Health_and_Pension_Insurance;
16import TaxationWithRoot.DS_for_Interest_Expense;
17import TaxationWithRoot.DS_for_Loss_Carryforward;
18import TaxationWithRoot.DS_for_Permanent_Expense;
19import TaxationWithRoot.DS_for_Private_Insurance_and_Plan;
20import TaxationWithRoot.Dependent;
21import TaxationWithRoot.Dependent_Type;
22import TaxationWithRoot.Disability_Types;
23import TaxationWithRoot.Donation;
24import TaxationWithRoot.Employment_Income;
25import TaxationWithRoot.Expense;
26import TaxationWithRoot.Expense_Purpose;
27import TaxationWithRoot.External_Allowance;
28import TaxationWithRoot.Extraordinary_Expense_CE;
29import TaxationWithRoot.Fiscal_Address;
30import TaxationWithRoot.Foreign_Income;
31import TaxationWithRoot.FromAgent;
32import TaxationWithRoot.FromLaw;
33import TaxationWithRoot.Grantor;
34import TaxationWithRoot.Habitual_Address;
35import TaxationWithRoot.Health_and_Pension_Insurance;
36import TaxationWithRoot.Household;
37import TaxationWithRoot.Income;
38import TaxationWithRoot.Income_Detail;
39import TaxationWithRoot.Income_Tax;
40import TaxationWithRoot.Income_Tax_Credit;
41import TaxationWithRoot.Income_Type;
42import TaxationWithRoot.Interest_Expense;
43import TaxationWithRoot.Job_Activity;
44import TaxationWithRoot.Legal_Union_Record;
45import TaxationWithRoot.Legal_Union_Types;
46import TaxationWithRoot.Local_Income;
47import TaxationWithRoot.Loss_Carryforward;
48import TaxationWithRoot.Marriage_Record;
49import TaxationWithRoot.Miscellaneous_Expense_FO;
50import TaxationWithRoot.Non_Resident_Tax_Payer;
51import TaxationWithRoot.Partnership_Record;
52import TaxationWithRoot.Pensions_and_Annuities_Income;
53import TaxationWithRoot.Permanent_Expense;
54import TaxationWithRoot.Physical_Person;
55import TaxationWithRoot.Private_Insurance_and_Plan;
56import TaxationWithRoot.Professional_Expense;
57import TaxationWithRoot.Professional_Expenses_Deduction;
58import TaxationWithRoot.Rentals_and_Leases_Income;
59import TaxationWithRoot.Resident_Tax_Payer;
60import TaxationWithRoot.Resource;
61import TaxationWithRoot.Root;
62import TaxationWithRoot.Separation_Causes;
63import TaxationWithRoot.Special_Expense_DS;
64import TaxationWithRoot.Spousal_Expense_AC;
65import TaxationWithRoot.Tax_Card;
66import TaxationWithRoot.Tax_Case;
67import TaxationWithRoot.Tax_Class_Category;
68import TaxationWithRoot.Tax_Office;
69import TaxationWithRoot.Tax_Payer;
70import TaxationWithRoot.Tax_Property;
71import TaxationWithRoot.TaxationFactory;
72import TaxationWithRoot.TaxationPackage;
73import TaxationWithRoot.Town;
74import TaxationWithRoot.Trade_and_Business_Income;
75import TaxationWithRoot.Travel_Expense_FD;
76
77import org.eclipse.emf.ecore.EAttribute;
78import org.eclipse.emf.ecore.EClass;
79import org.eclipse.emf.ecore.EEnum;
80import org.eclipse.emf.ecore.EPackage;
81import org.eclipse.emf.ecore.EReference;
82
83import org.eclipse.emf.ecore.impl.EPackageImpl;
84
85/**
86 * <!-- begin-user-doc -->
87 * An implementation of the model <b>Package</b>.
88 * <!-- end-user-doc -->
89 * @generated
90 */
91public class TaxationPackageImpl extends EPackageImpl implements TaxationPackage {
92 /**
93 * <!-- begin-user-doc -->
94 * <!-- end-user-doc -->
95 * @generated
96 */
97 private EClass constantsEClass = null;
98
99 /**
100 * <!-- begin-user-doc -->
101 * <!-- end-user-doc -->
102 * @generated
103 */
104 private EClass income_TaxEClass = null;
105
106 /**
107 * <!-- begin-user-doc -->
108 * <!-- end-user-doc -->
109 * @generated
110 */
111 private EClass tax_PayerEClass = null;
112
113 /**
114 * <!-- begin-user-doc -->
115 * <!-- end-user-doc -->
116 * @generated
117 */
118 private EClass physical_PersonEClass = null;
119
120 /**
121 * <!-- begin-user-doc -->
122 * <!-- end-user-doc -->
123 * @generated
124 */
125 private EClass addressEClass = null;
126
127 /**
128 * <!-- begin-user-doc -->
129 * <!-- end-user-doc -->
130 * @generated
131 */
132 private EClass expenseEClass = null;
133
134 /**
135 * <!-- begin-user-doc -->
136 * <!-- end-user-doc -->
137 * @generated
138 */
139 private EClass dependentEClass = null;
140
141 /**
142 * <!-- begin-user-doc -->
143 * <!-- end-user-doc -->
144 * @generated
145 */
146 private EClass external_AllowanceEClass = null;
147
148 /**
149 * <!-- begin-user-doc -->
150 * <!-- end-user-doc -->
151 * @generated
152 */
153 private EClass householdEClass = null;
154
155 /**
156 * <!-- begin-user-doc -->
157 * <!-- end-user-doc -->
158 * @generated
159 */
160 private EClass legal_Union_RecordEClass = null;
161
162 /**
163 * <!-- begin-user-doc -->
164 * <!-- end-user-doc -->
165 * @generated
166 */
167 private EClass tax_PropertyEClass = null;
168
169 /**
170 * <!-- begin-user-doc -->
171 * <!-- end-user-doc -->
172 * @generated
173 */
174 private EClass tax_CaseEClass = null;
175
176 /**
177 * <!-- begin-user-doc -->
178 * <!-- end-user-doc -->
179 * @generated
180 */
181 private EClass fromAgentEClass = null;
182
183 /**
184 * <!-- begin-user-doc -->
185 * <!-- end-user-doc -->
186 * @generated
187 */
188 private EClass incomeEClass = null;
189
190 /**
191 * <!-- begin-user-doc -->
192 * <!-- end-user-doc -->
193 * @generated
194 */
195 private EClass income_TypeEClass = null;
196
197 /**
198 * <!-- begin-user-doc -->
199 * <!-- end-user-doc -->
200 * @generated
201 */
202 private EClass tax_CardEClass = null;
203
204 /**
205 * <!-- begin-user-doc -->
206 * <!-- end-user-doc -->
207 * @generated
208 */
209 private EClass income_Tax_CreditEClass = null;
210
211 /**
212 * <!-- begin-user-doc -->
213 * <!-- end-user-doc -->
214 * @generated
215 */
216 private EClass income_DetailEClass = null;
217
218 /**
219 * <!-- begin-user-doc -->
220 * <!-- end-user-doc -->
221 * @generated
222 */
223 private EClass fromLawEClass = null;
224
225 /**
226 * <!-- begin-user-doc -->
227 * <!-- end-user-doc -->
228 * @generated
229 */
230 private EClass fiscal_AddressEClass = null;
231
232 /**
233 * <!-- begin-user-doc -->
234 * <!-- end-user-doc -->
235 * @generated
236 */
237 private EClass habitual_AddressEClass = null;
238
239 /**
240 * <!-- begin-user-doc -->
241 * <!-- end-user-doc -->
242 * @generated
243 */
244 private EClass marriage_RecordEClass = null;
245
246 /**
247 * <!-- begin-user-doc -->
248 * <!-- end-user-doc -->
249 * @generated
250 */
251 private EClass non_Resident_Tax_PayerEClass = null;
252
253 /**
254 * <!-- begin-user-doc -->
255 * <!-- end-user-doc -->
256 * @generated
257 */
258 private EClass partnership_RecordEClass = null;
259
260 /**
261 * <!-- begin-user-doc -->
262 * <!-- end-user-doc -->
263 * @generated
264 */
265 private EClass resident_Tax_PayerEClass = null;
266
267 /**
268 * <!-- begin-user-doc -->
269 * <!-- end-user-doc -->
270 * @generated
271 */
272 private EClass trade_and_Business_IncomeEClass = null;
273
274 /**
275 * <!-- begin-user-doc -->
276 * <!-- end-user-doc -->
277 * @generated
278 */
279 private EClass agriculture_and_Forestry_IncomeEClass = null;
280
281 /**
282 * <!-- begin-user-doc -->
283 * <!-- end-user-doc -->
284 * @generated
285 */
286 private EClass pensions_and_Annuities_IncomeEClass = null;
287
288 /**
289 * <!-- begin-user-doc -->
290 * <!-- end-user-doc -->
291 * @generated
292 */
293 private EClass capital_and_Investments_IncomeEClass = null;
294
295 /**
296 * <!-- begin-user-doc -->
297 * <!-- end-user-doc -->
298 * @generated
299 */
300 private EClass employment_IncomeEClass = null;
301
302 /**
303 * <!-- begin-user-doc -->
304 * <!-- end-user-doc -->
305 * @generated
306 */
307 private EClass rentals_and_Leases_IncomeEClass = null;
308
309 /**
310 * <!-- begin-user-doc -->
311 * <!-- end-user-doc -->
312 * @generated
313 */
314 private EClass foreign_IncomeEClass = null;
315
316 /**
317 * <!-- begin-user-doc -->
318 * <!-- end-user-doc -->
319 * @generated
320 */
321 private EClass local_IncomeEClass = null;
322
323 /**
324 * <!-- begin-user-doc -->
325 * <!-- end-user-doc -->
326 * @generated
327 */
328 private EClass cimEClass = null;
329
330 /**
331 * <!-- begin-user-doc -->
332 * <!-- end-user-doc -->
333 * @generated
334 */
335 private EClass cipEClass = null;
336
337 /**
338 * <!-- begin-user-doc -->
339 * <!-- end-user-doc -->
340 * @generated
341 */
342 private EClass cisEClass = null;
343
344 /**
345 * <!-- begin-user-doc -->
346 * <!-- end-user-doc -->
347 * @generated
348 */
349 private EClass fdEClass = null;
350
351 /**
352 * <!-- begin-user-doc -->
353 * <!-- end-user-doc -->
354 * @generated
355 */
356 private EClass professional_Expenses_DeductionEClass = null;
357
358 /**
359 * <!-- begin-user-doc -->
360 * <!-- end-user-doc -->
361 * @generated
362 */
363 private EClass foEClass = null;
364
365 /**
366 * <!-- begin-user-doc -->
367 * <!-- end-user-doc -->
368 * @generated
369 */
370 private EClass dS_for_Permanent_ExpenseEClass = null;
371
372 /**
373 * <!-- begin-user-doc -->
374 * <!-- end-user-doc -->
375 * @generated
376 */
377 private EClass dsEClass = null;
378
379 /**
380 * <!-- begin-user-doc -->
381 * <!-- end-user-doc -->
382 * @generated
383 */
384 private EClass dS_for_Interest_ExpenseEClass = null;
385
386 /**
387 * <!-- begin-user-doc -->
388 * <!-- end-user-doc -->
389 * @generated
390 */
391 private EClass dS_for_Health_and_Pension_InsuranceEClass = null;
392
393 /**
394 * <!-- begin-user-doc -->
395 * <!-- end-user-doc -->
396 * @generated
397 */
398 private EClass dS_for_Private_Insurance_and_PlanEClass = null;
399
400 /**
401 * <!-- begin-user-doc -->
402 * <!-- end-user-doc -->
403 * @generated
404 */
405 private EClass dS_for_Loss_CarryforwardEClass = null;
406
407 /**
408 * <!-- begin-user-doc -->
409 * <!-- end-user-doc -->
410 * @generated
411 */
412 private EClass dS_for_DonationEClass = null;
413
414 /**
415 * <!-- begin-user-doc -->
416 * <!-- end-user-doc -->
417 * @generated
418 */
419 private EClass permanent_ExpenseEClass = null;
420
421 /**
422 * <!-- begin-user-doc -->
423 * <!-- end-user-doc -->
424 * @generated
425 */
426 private EClass special_Expense_DSEClass = null;
427
428 /**
429 * <!-- begin-user-doc -->
430 * <!-- end-user-doc -->
431 * @generated
432 */
433 private EClass interest_ExpenseEClass = null;
434
435 /**
436 * <!-- begin-user-doc -->
437 * <!-- end-user-doc -->
438 * @generated
439 */
440 private EClass private_Insurance_and_PlanEClass = null;
441
442 /**
443 * <!-- begin-user-doc -->
444 * <!-- end-user-doc -->
445 * @generated
446 */
447 private EClass health_and_Pension_InsuranceEClass = null;
448
449 /**
450 * <!-- begin-user-doc -->
451 * <!-- end-user-doc -->
452 * @generated
453 */
454 private EClass donationEClass = null;
455
456 /**
457 * <!-- begin-user-doc -->
458 * <!-- end-user-doc -->
459 * @generated
460 */
461 private EClass loss_CarryforwardEClass = null;
462
463 /**
464 * <!-- begin-user-doc -->
465 * <!-- end-user-doc -->
466 * @generated
467 */
468 private EClass spousal_Expense_ACEClass = null;
469
470 /**
471 * <!-- begin-user-doc -->
472 * <!-- end-user-doc -->
473 * @generated
474 */
475 private EClass extraordinary_Expense_CEEClass = null;
476
477 /**
478 * <!-- begin-user-doc -->
479 * <!-- end-user-doc -->
480 * @generated
481 */
482 private EClass travel_Expense_FDEClass = null;
483
484 /**
485 * <!-- begin-user-doc -->
486 * <!-- end-user-doc -->
487 * @generated
488 */
489 private EClass professional_ExpenseEClass = null;
490
491 /**
492 * <!-- begin-user-doc -->
493 * <!-- end-user-doc -->
494 * @generated
495 */
496 private EClass miscellaneous_Expense_FOEClass = null;
497
498 /**
499 * <!-- begin-user-doc -->
500 * <!-- end-user-doc -->
501 * @generated
502 */
503 private EClass resourceEClass = null;
504
505 /**
506 * <!-- begin-user-doc -->
507 * <!-- end-user-doc -->
508 * @generated
509 */
510 private EClass rootEClass = null;
511
512 /**
513 * <!-- begin-user-doc -->
514 * <!-- end-user-doc -->
515 * @generated
516 */
517 private EEnum grantorEEnum = null;
518
519 /**
520 * <!-- begin-user-doc -->
521 * <!-- end-user-doc -->
522 * @generated
523 */
524 private EEnum disability_TypesEEnum = null;
525
526 /**
527 * <!-- begin-user-doc -->
528 * <!-- end-user-doc -->
529 * @generated
530 */
531 private EEnum countryEEnum = null;
532
533 /**
534 * <!-- begin-user-doc -->
535 * <!-- end-user-doc -->
536 * @generated
537 */
538 private EEnum tax_OfficeEEnum = null;
539
540 /**
541 * <!-- begin-user-doc -->
542 * <!-- end-user-doc -->
543 * @generated
544 */
545 private EEnum tax_Class_CategoryEEnum = null;
546
547 /**
548 * <!-- begin-user-doc -->
549 * <!-- end-user-doc -->
550 * @generated
551 */
552 private EEnum job_ActivityEEnum = null;
553
554 /**
555 * <!-- begin-user-doc -->
556 * <!-- end-user-doc -->
557 * @generated
558 */
559 private EEnum townEEnum = null;
560
561 /**
562 * <!-- begin-user-doc -->
563 * <!-- end-user-doc -->
564 * @generated
565 */
566 private EEnum cE_TypeEEnum = null;
567
568 /**
569 * <!-- begin-user-doc -->
570 * <!-- end-user-doc -->
571 * @generated
572 */
573 private EEnum expense_PurposeEEnum = null;
574
575 /**
576 * <!-- begin-user-doc -->
577 * <!-- end-user-doc -->
578 * @generated
579 */
580 private EEnum dependent_TypeEEnum = null;
581
582 /**
583 * <!-- begin-user-doc -->
584 * <!-- end-user-doc -->
585 * @generated
586 */
587 private EEnum separation_CausesEEnum = null;
588
589 /**
590 * <!-- begin-user-doc -->
591 * <!-- end-user-doc -->
592 * @generated
593 */
594 private EEnum category_of_Permanent_ExpenseEEnum = null;
595
596 /**
597 * <!-- begin-user-doc -->
598 * <!-- end-user-doc -->
599 * @generated
600 */
601 private EEnum category_of_Health_and_Pension_InsurancesEEnum = null;
602
603 /**
604 * <!-- begin-user-doc -->
605 * <!-- end-user-doc -->
606 * @generated
607 */
608 private EEnum category_of_Private_Insurance_and_PlanEEnum = null;
609
610 /**
611 * <!-- begin-user-doc -->
612 * <!-- end-user-doc -->
613 * @generated
614 */
615 private EEnum legal_Union_TypesEEnum = null;
616
617 /**
618 * Creates an instance of the model <b>Package</b>, registered with
619 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
620 * package URI value.
621 * <p>Note: the correct way to create the package is via the static
622 * factory method {@link #init init()}, which also performs
623 * initialization of the package, or returns the registered package,
624 * if one already exists.
625 * <!-- begin-user-doc -->
626 * <!-- end-user-doc -->
627 * @see org.eclipse.emf.ecore.EPackage.Registry
628 * @see TaxationWithRoot.TaxationPackage#eNS_URI
629 * @see #init()
630 * @generated
631 */
632 private TaxationPackageImpl() {
633 super(eNS_URI, TaxationFactory.eINSTANCE);
634 }
635
636 /**
637 * <!-- begin-user-doc -->
638 * <!-- end-user-doc -->
639 * @generated
640 */
641 private static boolean isInited = false;
642
643 /**
644 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
645 *
646 * <p>This method is used to initialize {@link TaxationPackage#eINSTANCE} when that field is accessed.
647 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
648 * <!-- begin-user-doc -->
649 * <!-- end-user-doc -->
650 * @see #eNS_URI
651 * @see #createPackageContents()
652 * @see #initializePackageContents()
653 * @generated
654 */
655 public static TaxationPackage init() {
656 if (isInited) return (TaxationPackage)EPackage.Registry.INSTANCE.getEPackage(TaxationPackage.eNS_URI);
657
658 // Obtain or create and register package
659 Object registeredTaxationPackage = EPackage.Registry.INSTANCE.get(eNS_URI);
660 TaxationPackageImpl theTaxationPackage = registeredTaxationPackage instanceof TaxationPackageImpl ? (TaxationPackageImpl)registeredTaxationPackage : new TaxationPackageImpl();
661
662 isInited = true;
663
664 // Create package meta-data objects
665 theTaxationPackage.createPackageContents();
666
667 // Initialize created meta-data
668 theTaxationPackage.initializePackageContents();
669
670 // Mark meta-data to indicate it can't be changed
671 theTaxationPackage.freeze();
672
673 // Update the registry and return the package
674 EPackage.Registry.INSTANCE.put(TaxationPackage.eNS_URI, theTaxationPackage);
675 return theTaxationPackage;
676 }
677
678 /**
679 * <!-- begin-user-doc -->
680 * <!-- end-user-doc -->
681 * @generated
682 */
683 @Override
684 public EClass getConstants() {
685 return constantsEClass;
686 }
687
688 /**
689 * <!-- begin-user-doc -->
690 * <!-- end-user-doc -->
691 * @generated
692 */
693 @Override
694 public EAttribute getConstants_MAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD() {
695 return (EAttribute)constantsEClass.getEStructuralFeatures().get(0);
696 }
697
698 /**
699 * <!-- begin-user-doc -->
700 * <!-- end-user-doc -->
701 * @generated
702 */
703 @Override
704 public EAttribute getConstants_MAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE() {
705 return (EAttribute)constantsEClass.getEStructuralFeatures().get(1);
706 }
707
708 /**
709 * <!-- begin-user-doc -->
710 * <!-- end-user-doc -->
711 * @generated
712 */
713 @Override
714 public EAttribute getConstants_MINIMUM_SALARY() {
715 return (EAttribute)constantsEClass.getEStructuralFeatures().get(2);
716 }
717
718 /**
719 * <!-- begin-user-doc -->
720 * <!-- end-user-doc -->
721 * @generated
722 */
723 @Override
724 public EAttribute getConstants_FLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION() {
725 return (EAttribute)constantsEClass.getEStructuralFeatures().get(3);
726 }
727
728 /**
729 * <!-- begin-user-doc -->
730 * <!-- end-user-doc -->
731 * @generated
732 */
733 @Override
734 public EAttribute getConstants_MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS() {
735 return (EAttribute)constantsEClass.getEStructuralFeatures().get(4);
736 }
737
738 /**
739 * <!-- begin-user-doc -->
740 * <!-- end-user-doc -->
741 * @generated
742 */
743 @Override
744 public EAttribute getConstants_MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS() {
745 return (EAttribute)constantsEClass.getEStructuralFeatures().get(5);
746 }
747
748 /**
749 * <!-- begin-user-doc -->
750 * <!-- end-user-doc -->
751 * @generated
752 */
753 @Override
754 public EAttribute getConstants_MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC() {
755 return (EAttribute)constantsEClass.getEStructuralFeatures().get(6);
756 }
757
758 /**
759 * <!-- begin-user-doc -->
760 * <!-- end-user-doc -->
761 * @generated
762 */
763 @Override
764 public EAttribute getConstants_MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE() {
765 return (EAttribute)constantsEClass.getEStructuralFeatures().get(7);
766 }
767
768 /**
769 * <!-- begin-user-doc -->
770 * <!-- end-user-doc -->
771 * @generated
772 */
773 @Override
774 public EAttribute getConstants_MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION() {
775 return (EAttribute)constantsEClass.getEStructuralFeatures().get(8);
776 }
777
778 /**
779 * <!-- begin-user-doc -->
780 * <!-- end-user-doc -->
781 * @generated
782 */
783 @Override
784 public EAttribute getConstants_MAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION() {
785 return (EAttribute)constantsEClass.getEStructuralFeatures().get(9);
786 }
787
788 /**
789 * <!-- begin-user-doc -->
790 * <!-- end-user-doc -->
791 * @generated
792 */
793 @Override
794 public EAttribute getConstants_MINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION() {
795 return (EAttribute)constantsEClass.getEStructuralFeatures().get(10);
796 }
797
798 /**
799 * <!-- begin-user-doc -->
800 * <!-- end-user-doc -->
801 * @generated
802 */
803 @Override
804 public EAttribute getConstants_FLAT_RATE_CIM_DAILY() {
805 return (EAttribute)constantsEClass.getEStructuralFeatures().get(11);
806 }
807
808 /**
809 * <!-- begin-user-doc -->
810 * <!-- end-user-doc -->
811 * @generated
812 */
813 @Override
814 public EAttribute getConstants_FLAT_RATE_CIM_MONTHLY() {
815 return (EAttribute)constantsEClass.getEStructuralFeatures().get(12);
816 }
817
818 /**
819 * <!-- begin-user-doc -->
820 * <!-- end-user-doc -->
821 * @generated
822 */
823 @Override
824 public EAttribute getConstants_FLAT_RATE_CIM_YEARLY() {
825 return (EAttribute)constantsEClass.getEStructuralFeatures().get(13);
826 }
827
828 /**
829 * <!-- begin-user-doc -->
830 * <!-- end-user-doc -->
831 * @generated
832 */
833 @Override
834 public EAttribute getConstants_FLAT_RATE_CIP_DAILY() {
835 return (EAttribute)constantsEClass.getEStructuralFeatures().get(14);
836 }
837
838 /**
839 * <!-- begin-user-doc -->
840 * <!-- end-user-doc -->
841 * @generated
842 */
843 @Override
844 public EAttribute getConstants_FLAT_RATE_CIP_MONTHLY() {
845 return (EAttribute)constantsEClass.getEStructuralFeatures().get(15);
846 }
847
848 /**
849 * <!-- begin-user-doc -->
850 * <!-- end-user-doc -->
851 * @generated
852 */
853 @Override
854 public EAttribute getConstants_FLAT_RATE_CIP_YEARLY() {
855 return (EAttribute)constantsEClass.getEStructuralFeatures().get(16);
856 }
857
858 /**
859 * <!-- begin-user-doc -->
860 * <!-- end-user-doc -->
861 * @generated
862 */
863 @Override
864 public EAttribute getConstants_FLAT_RATE_CIS_DAILY() {
865 return (EAttribute)constantsEClass.getEStructuralFeatures().get(17);
866 }
867
868 /**
869 * <!-- begin-user-doc -->
870 * <!-- end-user-doc -->
871 * @generated
872 */
873 @Override
874 public EAttribute getConstants_FLAT_RATE_CIS_MONTHLY() {
875 return (EAttribute)constantsEClass.getEStructuralFeatures().get(18);
876 }
877
878 /**
879 * <!-- begin-user-doc -->
880 * <!-- end-user-doc -->
881 * @generated
882 */
883 @Override
884 public EAttribute getConstants_FLAT_RATE_CIS_YEARLY() {
885 return (EAttribute)constantsEClass.getEStructuralFeatures().get(19);
886 }
887
888 /**
889 * <!-- begin-user-doc -->
890 * <!-- end-user-doc -->
891 * @generated
892 */
893 @Override
894 public EAttribute getConstants_FLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT() {
895 return (EAttribute)constantsEClass.getEStructuralFeatures().get(20);
896 }
897
898 /**
899 * <!-- begin-user-doc -->
900 * <!-- end-user-doc -->
901 * @generated
902 */
903 @Override
904 public EAttribute getConstants_MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS() {
905 return (EAttribute)constantsEClass.getEStructuralFeatures().get(21);
906 }
907
908 /**
909 * <!-- begin-user-doc -->
910 * <!-- end-user-doc -->
911 * @generated
912 */
913 @Override
914 public EAttribute getConstants_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE() {
915 return (EAttribute)constantsEClass.getEStructuralFeatures().get(22);
916 }
917
918 /**
919 * <!-- begin-user-doc -->
920 * <!-- end-user-doc -->
921 * @generated
922 */
923 @Override
924 public EAttribute getConstants_DISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE() {
925 return (EAttribute)constantsEClass.getEStructuralFeatures().get(23);
926 }
927
928 /**
929 * <!-- begin-user-doc -->
930 * <!-- end-user-doc -->
931 * @generated
932 */
933 @Override
934 public EAttribute getConstants_MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE() {
935 return (EAttribute)constantsEClass.getEStructuralFeatures().get(24);
936 }
937
938 /**
939 * <!-- begin-user-doc -->
940 * <!-- end-user-doc -->
941 * @generated
942 */
943 @Override
944 public EClass getIncome_Tax() {
945 return income_TaxEClass;
946 }
947
948 /**
949 * <!-- begin-user-doc -->
950 * <!-- end-user-doc -->
951 * @generated
952 */
953 @Override
954 public EReference getIncome_Tax_TaxPayer() {
955 return (EReference)income_TaxEClass.getEStructuralFeatures().get(0);
956 }
957
958 /**
959 * <!-- begin-user-doc -->
960 * <!-- end-user-doc -->
961 * @generated
962 */
963 @Override
964 public EAttribute getIncome_Tax_Tax_amount() {
965 return (EAttribute)income_TaxEClass.getEStructuralFeatures().get(1);
966 }
967
968 /**
969 * <!-- begin-user-doc -->
970 * <!-- end-user-doc -->
971 * @generated
972 */
973 @Override
974 public EAttribute getIncome_Tax_Tax_year() {
975 return (EAttribute)income_TaxEClass.getEStructuralFeatures().get(2);
976 }
977
978 /**
979 * <!-- begin-user-doc -->
980 * <!-- end-user-doc -->
981 * @generated
982 */
983 @Override
984 public EAttribute getIncome_Tax_Id6() {
985 return (EAttribute)income_TaxEClass.getEStructuralFeatures().get(3);
986 }
987
988 /**
989 * <!-- begin-user-doc -->
990 * <!-- end-user-doc -->
991 * @generated
992 */
993 @Override
994 public EClass getTax_Payer() {
995 return tax_PayerEClass;
996 }
997
998 /**
999 * <!-- begin-user-doc -->
1000 * <!-- end-user-doc -->
1001 * @generated
1002 */
1003 @Override
1004 public EReference getTax_Payer_Dependents() {
1005 return (EReference)tax_PayerEClass.getEStructuralFeatures().get(0);
1006 }
1007
1008 /**
1009 * <!-- begin-user-doc -->
1010 * <!-- end-user-doc -->
1011 * @generated
1012 */
1013 @Override
1014 public EReference getTax_Payer_From_agent() {
1015 return (EReference)tax_PayerEClass.getEStructuralFeatures().get(1);
1016 }
1017
1018 /**
1019 * <!-- begin-user-doc -->
1020 * <!-- end-user-doc -->
1021 * @generated
1022 */
1023 @Override
1024 public EReference getTax_Payer_Incomes() {
1025 return (EReference)tax_PayerEClass.getEStructuralFeatures().get(2);
1026 }
1027
1028 /**
1029 * <!-- begin-user-doc -->
1030 * <!-- end-user-doc -->
1031 * @generated
1032 */
1033 @Override
1034 public EReference getTax_Payer_From_law() {
1035 return (EReference)tax_PayerEClass.getEStructuralFeatures().get(3);
1036 }
1037
1038 /**
1039 * <!-- begin-user-doc -->
1040 * <!-- end-user-doc -->
1041 * @generated
1042 */
1043 @Override
1044 public EClass getPhysical_Person() {
1045 return physical_PersonEClass;
1046 }
1047
1048 /**
1049 * <!-- begin-user-doc -->
1050 * <!-- end-user-doc -->
1051 * @generated
1052 */
1053 @Override
1054 public EAttribute getPhysical_Person_SSNo() {
1055 return (EAttribute)physical_PersonEClass.getEStructuralFeatures().get(0);
1056 }
1057
1058 /**
1059 * <!-- begin-user-doc -->
1060 * <!-- end-user-doc -->
1061 * @generated
1062 */
1063 @Override
1064 public EReference getPhysical_Person_Addresses() {
1065 return (EReference)physical_PersonEClass.getEStructuralFeatures().get(1);
1066 }
1067
1068 /**
1069 * <!-- begin-user-doc -->
1070 * <!-- end-user-doc -->
1071 * @generated
1072 */
1073 @Override
1074 public EAttribute getPhysical_Person_Birth_year() {
1075 return (EAttribute)physical_PersonEClass.getEStructuralFeatures().get(2);
1076 }
1077
1078 /**
1079 * <!-- begin-user-doc -->
1080 * <!-- end-user-doc -->
1081 * @generated
1082 */
1083 @Override
1084 public EAttribute getPhysical_Person_Disability_percentage() {
1085 return (EAttribute)physical_PersonEClass.getEStructuralFeatures().get(3);
1086 }
1087
1088 /**
1089 * <!-- begin-user-doc -->
1090 * <!-- end-user-doc -->
1091 * @generated
1092 */
1093 @Override
1094 public EAttribute getPhysical_Person_Disability_type() {
1095 return (EAttribute)physical_PersonEClass.getEStructuralFeatures().get(4);
1096 }
1097
1098 /**
1099 * <!-- begin-user-doc -->
1100 * <!-- end-user-doc -->
1101 * @generated
1102 */
1103 @Override
1104 public EAttribute getPhysical_Person_Birth_month() {
1105 return (EAttribute)physical_PersonEClass.getEStructuralFeatures().get(5);
1106 }
1107
1108 /**
1109 * <!-- begin-user-doc -->
1110 * <!-- end-user-doc -->
1111 * @generated
1112 */
1113 @Override
1114 public EAttribute getPhysical_Person_Birth_day() {
1115 return (EAttribute)physical_PersonEClass.getEStructuralFeatures().get(6);
1116 }
1117
1118 /**
1119 * <!-- begin-user-doc -->
1120 * <!-- end-user-doc -->
1121 * @generated
1122 */
1123 @Override
1124 public EReference getPhysical_Person_Expenses() {
1125 return (EReference)physical_PersonEClass.getEStructuralFeatures().get(7);
1126 }
1127
1128 /**
1129 * <!-- begin-user-doc -->
1130 * <!-- end-user-doc -->
1131 * @generated
1132 */
1133 @Override
1134 public EAttribute getPhysical_Person_Is_widower() {
1135 return (EAttribute)physical_PersonEClass.getEStructuralFeatures().get(8);
1136 }
1137
1138 /**
1139 * <!-- begin-user-doc -->
1140 * <!-- end-user-doc -->
1141 * @generated
1142 */
1143 @Override
1144 public EClass getAddress() {
1145 return addressEClass;
1146 }
1147
1148 /**
1149 * <!-- begin-user-doc -->
1150 * <!-- end-user-doc -->
1151 * @generated
1152 */
1153 @Override
1154 public EAttribute getAddress_Country() {
1155 return (EAttribute)addressEClass.getEStructuralFeatures().get(0);
1156 }
1157
1158 /**
1159 * <!-- begin-user-doc -->
1160 * <!-- end-user-doc -->
1161 * @generated
1162 */
1163 @Override
1164 public EAttribute getAddress_Street() {
1165 return (EAttribute)addressEClass.getEStructuralFeatures().get(1);
1166 }
1167
1168 /**
1169 * <!-- begin-user-doc -->
1170 * <!-- end-user-doc -->
1171 * @generated
1172 */
1173 @Override
1174 public EAttribute getAddress_ZipCode() {
1175 return (EAttribute)addressEClass.getEStructuralFeatures().get(2);
1176 }
1177
1178 /**
1179 * <!-- begin-user-doc -->
1180 * <!-- end-user-doc -->
1181 * @generated
1182 */
1183 @Override
1184 public EAttribute getAddress_City() {
1185 return (EAttribute)addressEClass.getEStructuralFeatures().get(3);
1186 }
1187
1188 /**
1189 * <!-- begin-user-doc -->
1190 * <!-- end-user-doc -->
1191 * @generated
1192 */
1193 @Override
1194 public EAttribute getAddress_Id2() {
1195 return (EAttribute)addressEClass.getEStructuralFeatures().get(4);
1196 }
1197
1198 /**
1199 * <!-- begin-user-doc -->
1200 * <!-- end-user-doc -->
1201 * @generated
1202 */
1203 @Override
1204 public EReference getAddress_TaxPayer() {
1205 return (EReference)addressEClass.getEStructuralFeatures().get(5);
1206 }
1207
1208 /**
1209 * <!-- begin-user-doc -->
1210 * <!-- end-user-doc -->
1211 * @generated
1212 */
1213 @Override
1214 public EClass getExpense() {
1215 return expenseEClass;
1216 }
1217
1218 /**
1219 * <!-- begin-user-doc -->
1220 * <!-- end-user-doc -->
1221 * @generated
1222 */
1223 @Override
1224 public EAttribute getExpense_Declared_amount() {
1225 return (EAttribute)expenseEClass.getEStructuralFeatures().get(0);
1226 }
1227
1228 /**
1229 * <!-- begin-user-doc -->
1230 * <!-- end-user-doc -->
1231 * @generated
1232 */
1233 @Override
1234 public EAttribute getExpense_Expense_purpose() {
1235 return (EAttribute)expenseEClass.getEStructuralFeatures().get(1);
1236 }
1237
1238 /**
1239 * <!-- begin-user-doc -->
1240 * <!-- end-user-doc -->
1241 * @generated
1242 */
1243 @Override
1244 public EReference getExpense_Dependent() {
1245 return (EReference)expenseEClass.getEStructuralFeatures().get(2);
1246 }
1247
1248 /**
1249 * <!-- begin-user-doc -->
1250 * <!-- end-user-doc -->
1251 * @generated
1252 */
1253 @Override
1254 public EReference getExpense_From_agent() {
1255 return (EReference)expenseEClass.getEStructuralFeatures().get(3);
1256 }
1257
1258 /**
1259 * <!-- begin-user-doc -->
1260 * <!-- end-user-doc -->
1261 * @generated
1262 */
1263 @Override
1264 public EReference getExpense_Income() {
1265 return (EReference)expenseEClass.getEStructuralFeatures().get(4);
1266 }
1267
1268 /**
1269 * <!-- begin-user-doc -->
1270 * <!-- end-user-doc -->
1271 * @generated
1272 */
1273 @Override
1274 public EAttribute getExpense_Id4() {
1275 return (EAttribute)expenseEClass.getEStructuralFeatures().get(5);
1276 }
1277
1278 /**
1279 * <!-- begin-user-doc -->
1280 * <!-- end-user-doc -->
1281 * @generated
1282 */
1283 @Override
1284 public EReference getExpense_Beneficiary() {
1285 return (EReference)expenseEClass.getEStructuralFeatures().get(6);
1286 }
1287
1288 /**
1289 * <!-- begin-user-doc -->
1290 * <!-- end-user-doc -->
1291 * @generated
1292 */
1293 @Override
1294 public EClass getDependent() {
1295 return dependentEClass;
1296 }
1297
1298 /**
1299 * <!-- begin-user-doc -->
1300 * <!-- end-user-doc -->
1301 * @generated
1302 */
1303 @Override
1304 public EAttribute getDependent_Dependent_type() {
1305 return (EAttribute)dependentEClass.getEStructuralFeatures().get(0);
1306 }
1307
1308 /**
1309 * <!-- begin-user-doc -->
1310 * <!-- end-user-doc -->
1311 * @generated
1312 */
1313 @Override
1314 public EReference getDependent_Responsible_person() {
1315 return (EReference)dependentEClass.getEStructuralFeatures().get(1);
1316 }
1317
1318 /**
1319 * <!-- begin-user-doc -->
1320 * <!-- end-user-doc -->
1321 * @generated
1322 */
1323 @Override
1324 public EAttribute getDependent_Continued_studies() {
1325 return (EAttribute)dependentEClass.getEStructuralFeatures().get(2);
1326 }
1327
1328 /**
1329 * <!-- begin-user-doc -->
1330 * <!-- end-user-doc -->
1331 * @generated
1332 */
1333 @Override
1334 public EReference getDependent_Allowances() {
1335 return (EReference)dependentEClass.getEStructuralFeatures().get(3);
1336 }
1337
1338 /**
1339 * <!-- begin-user-doc -->
1340 * <!-- end-user-doc -->
1341 * @generated
1342 */
1343 @Override
1344 public EReference getDependent_Household() {
1345 return (EReference)dependentEClass.getEStructuralFeatures().get(4);
1346 }
1347
1348 /**
1349 * <!-- begin-user-doc -->
1350 * <!-- end-user-doc -->
1351 * @generated
1352 */
1353 @Override
1354 public EReference getDependent_From_agent() {
1355 return (EReference)dependentEClass.getEStructuralFeatures().get(5);
1356 }
1357
1358 /**
1359 * <!-- begin-user-doc -->
1360 * <!-- end-user-doc -->
1361 * @generated
1362 */
1363 @Override
1364 public EReference getDependent_Expense() {
1365 return (EReference)dependentEClass.getEStructuralFeatures().get(6);
1366 }
1367
1368 /**
1369 * <!-- begin-user-doc -->
1370 * <!-- end-user-doc -->
1371 * @generated
1372 */
1373 @Override
1374 public EClass getExternal_Allowance() {
1375 return external_AllowanceEClass;
1376 }
1377
1378 /**
1379 * <!-- begin-user-doc -->
1380 * <!-- end-user-doc -->
1381 * @generated
1382 */
1383 @Override
1384 public EAttribute getExternal_Allowance_Grantor() {
1385 return (EAttribute)external_AllowanceEClass.getEStructuralFeatures().get(0);
1386 }
1387
1388 /**
1389 * <!-- begin-user-doc -->
1390 * <!-- end-user-doc -->
1391 * @generated
1392 */
1393 @Override
1394 public EAttribute getExternal_Allowance_Starting_year() {
1395 return (EAttribute)external_AllowanceEClass.getEStructuralFeatures().get(1);
1396 }
1397
1398 /**
1399 * <!-- begin-user-doc -->
1400 * <!-- end-user-doc -->
1401 * @generated
1402 */
1403 @Override
1404 public EAttribute getExternal_Allowance_Ending_year() {
1405 return (EAttribute)external_AllowanceEClass.getEStructuralFeatures().get(2);
1406 }
1407
1408 /**
1409 * <!-- begin-user-doc -->
1410 * <!-- end-user-doc -->
1411 * @generated
1412 */
1413 @Override
1414 public EReference getExternal_Allowance_Reciver() {
1415 return (EReference)external_AllowanceEClass.getEStructuralFeatures().get(3);
1416 }
1417
1418 /**
1419 * <!-- begin-user-doc -->
1420 * <!-- end-user-doc -->
1421 * @generated
1422 */
1423 @Override
1424 public EAttribute getExternal_Allowance_Id5() {
1425 return (EAttribute)external_AllowanceEClass.getEStructuralFeatures().get(4);
1426 }
1427
1428 /**
1429 * <!-- begin-user-doc -->
1430 * <!-- end-user-doc -->
1431 * @generated
1432 */
1433 @Override
1434 public EReference getExternal_Allowance_Person() {
1435 return (EReference)external_AllowanceEClass.getEStructuralFeatures().get(5);
1436 }
1437
1438 /**
1439 * <!-- begin-user-doc -->
1440 * <!-- end-user-doc -->
1441 * @generated
1442 */
1443 @Override
1444 public EClass getHousehold() {
1445 return householdEClass;
1446 }
1447
1448 /**
1449 * <!-- begin-user-doc -->
1450 * <!-- end-user-doc -->
1451 * @generated
1452 */
1453 @Override
1454 public EReference getHousehold_Parents() {
1455 return (EReference)householdEClass.getEStructuralFeatures().get(0);
1456 }
1457
1458 /**
1459 * <!-- begin-user-doc -->
1460 * <!-- end-user-doc -->
1461 * @generated
1462 */
1463 @Override
1464 public EAttribute getHousehold_Id1() {
1465 return (EAttribute)householdEClass.getEStructuralFeatures().get(1);
1466 }
1467
1468 /**
1469 * <!-- begin-user-doc -->
1470 * <!-- end-user-doc -->
1471 * @generated
1472 */
1473 @Override
1474 public EReference getHousehold_Children() {
1475 return (EReference)householdEClass.getEStructuralFeatures().get(2);
1476 }
1477
1478 /**
1479 * <!-- begin-user-doc -->
1480 * <!-- end-user-doc -->
1481 * @generated
1482 */
1483 @Override
1484 public EClass getLegal_Union_Record() {
1485 return legal_Union_RecordEClass;
1486 }
1487
1488 /**
1489 * <!-- begin-user-doc -->
1490 * <!-- end-user-doc -->
1491 * @generated
1492 */
1493 @Override
1494 public EAttribute getLegal_Union_Record_Start_year() {
1495 return (EAttribute)legal_Union_RecordEClass.getEStructuralFeatures().get(0);
1496 }
1497
1498 /**
1499 * <!-- begin-user-doc -->
1500 * <!-- end-user-doc -->
1501 * @generated
1502 */
1503 @Override
1504 public EAttribute getLegal_Union_Record_End_year() {
1505 return (EAttribute)legal_Union_RecordEClass.getEStructuralFeatures().get(1);
1506 }
1507
1508 /**
1509 * <!-- begin-user-doc -->
1510 * <!-- end-user-doc -->
1511 * @generated
1512 */
1513 @Override
1514 public EAttribute getLegal_Union_Record_Separation_cause() {
1515 return (EAttribute)legal_Union_RecordEClass.getEStructuralFeatures().get(2);
1516 }
1517
1518 /**
1519 * <!-- begin-user-doc -->
1520 * <!-- end-user-doc -->
1521 * @generated
1522 */
1523 @Override
1524 public EReference getLegal_Union_Record_Individual_A() {
1525 return (EReference)legal_Union_RecordEClass.getEStructuralFeatures().get(3);
1526 }
1527
1528 /**
1529 * <!-- begin-user-doc -->
1530 * <!-- end-user-doc -->
1531 * @generated
1532 */
1533 @Override
1534 public EReference getLegal_Union_Record_Individual_B() {
1535 return (EReference)legal_Union_RecordEClass.getEStructuralFeatures().get(4);
1536 }
1537
1538 /**
1539 * <!-- begin-user-doc -->
1540 * <!-- end-user-doc -->
1541 * @generated
1542 */
1543 @Override
1544 public EReference getLegal_Union_Record_Properties() {
1545 return (EReference)legal_Union_RecordEClass.getEStructuralFeatures().get(5);
1546 }
1547
1548 /**
1549 * <!-- begin-user-doc -->
1550 * <!-- end-user-doc -->
1551 * @generated
1552 */
1553 @Override
1554 public EAttribute getLegal_Union_Record_Mutual_agreement() {
1555 return (EAttribute)legal_Union_RecordEClass.getEStructuralFeatures().get(6);
1556 }
1557
1558 /**
1559 * <!-- begin-user-doc -->
1560 * <!-- end-user-doc -->
1561 * @generated
1562 */
1563 @Override
1564 public EAttribute getLegal_Union_Record_Id9() {
1565 return (EAttribute)legal_Union_RecordEClass.getEStructuralFeatures().get(7);
1566 }
1567
1568 /**
1569 * <!-- begin-user-doc -->
1570 * <!-- end-user-doc -->
1571 * @generated
1572 */
1573 @Override
1574 public EReference getLegal_Union_Record_Household() {
1575 return (EReference)legal_Union_RecordEClass.getEStructuralFeatures().get(8);
1576 }
1577
1578 /**
1579 * <!-- begin-user-doc -->
1580 * <!-- end-user-doc -->
1581 * @generated
1582 */
1583 @Override
1584 public EClass getTax_Property() {
1585 return tax_PropertyEClass;
1586 }
1587
1588 /**
1589 * <!-- begin-user-doc -->
1590 * <!-- end-user-doc -->
1591 * @generated
1592 */
1593 @Override
1594 public EAttribute getTax_Property_Starting_year() {
1595 return (EAttribute)tax_PropertyEClass.getEStructuralFeatures().get(0);
1596 }
1597
1598 /**
1599 * <!-- begin-user-doc -->
1600 * <!-- end-user-doc -->
1601 * @generated
1602 */
1603 @Override
1604 public EAttribute getTax_Property_Id10() {
1605 return (EAttribute)tax_PropertyEClass.getEStructuralFeatures().get(1);
1606 }
1607
1608 /**
1609 * <!-- begin-user-doc -->
1610 * <!-- end-user-doc -->
1611 * @generated
1612 */
1613 @Override
1614 public EReference getTax_Property_Union_record() {
1615 return (EReference)tax_PropertyEClass.getEStructuralFeatures().get(2);
1616 }
1617
1618 /**
1619 * <!-- begin-user-doc -->
1620 * <!-- end-user-doc -->
1621 * @generated
1622 */
1623 @Override
1624 public EClass getTax_Case() {
1625 return tax_CaseEClass;
1626 }
1627
1628 /**
1629 * <!-- begin-user-doc -->
1630 * <!-- end-user-doc -->
1631 * @generated
1632 */
1633 @Override
1634 public EClass getFromAgent() {
1635 return fromAgentEClass;
1636 }
1637
1638 /**
1639 * <!-- begin-user-doc -->
1640 * <!-- end-user-doc -->
1641 * @generated
1642 */
1643 @Override
1644 public EReference getFromAgent_TaxPayer() {
1645 return (EReference)fromAgentEClass.getEStructuralFeatures().get(0);
1646 }
1647
1648 /**
1649 * <!-- begin-user-doc -->
1650 * <!-- end-user-doc -->
1651 * @generated
1652 */
1653 @Override
1654 public EAttribute getFromAgent_Is_dependent_eligible_for_CE_Not_In_Houshold_Children_Care() {
1655 return (EAttribute)fromAgentEClass.getEStructuralFeatures().get(1);
1656 }
1657
1658 /**
1659 * <!-- begin-user-doc -->
1660 * <!-- end-user-doc -->
1661 * @generated
1662 */
1663 @Override
1664 public EReference getFromAgent_Expense() {
1665 return (EReference)fromAgentEClass.getEStructuralFeatures().get(2);
1666 }
1667
1668 /**
1669 * <!-- begin-user-doc -->
1670 * <!-- end-user-doc -->
1671 * @generated
1672 */
1673 @Override
1674 public EAttribute getFromAgent_Is_eligible_debt() {
1675 return (EAttribute)fromAgentEClass.getEStructuralFeatures().get(3);
1676 }
1677
1678 /**
1679 * <!-- begin-user-doc -->
1680 * <!-- end-user-doc -->
1681 * @generated
1682 */
1683 @Override
1684 public EReference getFromAgent_Dependent() {
1685 return (EReference)fromAgentEClass.getEStructuralFeatures().get(4);
1686 }
1687
1688 /**
1689 * <!-- begin-user-doc -->
1690 * <!-- end-user-doc -->
1691 * @generated
1692 */
1693 @Override
1694 public EClass getIncome() {
1695 return incomeEClass;
1696 }
1697
1698 /**
1699 * <!-- begin-user-doc -->
1700 * <!-- end-user-doc -->
1701 * @generated
1702 */
1703 @Override
1704 public EAttribute getIncome_Income_amount() {
1705 return (EAttribute)incomeEClass.getEStructuralFeatures().get(0);
1706 }
1707
1708 /**
1709 * <!-- begin-user-doc -->
1710 * <!-- end-user-doc -->
1711 * @generated
1712 */
1713 @Override
1714 public EReference getIncome_Income_type() {
1715 return (EReference)incomeEClass.getEStructuralFeatures().get(1);
1716 }
1717
1718 /**
1719 * <!-- begin-user-doc -->
1720 * <!-- end-user-doc -->
1721 * @generated
1722 */
1723 @Override
1724 public EReference getIncome_Tax_card() {
1725 return (EReference)incomeEClass.getEStructuralFeatures().get(2);
1726 }
1727
1728 /**
1729 * <!-- begin-user-doc -->
1730 * <!-- end-user-doc -->
1731 * @generated
1732 */
1733 @Override
1734 public EAttribute getIncome_Tax_liability() {
1735 return (EAttribute)incomeEClass.getEStructuralFeatures().get(3);
1736 }
1737
1738 /**
1739 * <!-- begin-user-doc -->
1740 * <!-- end-user-doc -->
1741 * @generated
1742 */
1743 @Override
1744 public EReference getIncome_TaxPayer() {
1745 return (EReference)incomeEClass.getEStructuralFeatures().get(4);
1746 }
1747
1748 /**
1749 * <!-- begin-user-doc -->
1750 * <!-- end-user-doc -->
1751 * @generated
1752 */
1753 @Override
1754 public EReference getIncome_Details() {
1755 return (EReference)incomeEClass.getEStructuralFeatures().get(5);
1756 }
1757
1758 /**
1759 * <!-- begin-user-doc -->
1760 * <!-- end-user-doc -->
1761 * @generated
1762 */
1763 @Override
1764 public EAttribute getIncome_Num() {
1765 return (EAttribute)incomeEClass.getEStructuralFeatures().get(6);
1766 }
1767
1768 /**
1769 * <!-- begin-user-doc -->
1770 * <!-- end-user-doc -->
1771 * @generated
1772 */
1773 @Override
1774 public EReference getIncome_Expenses() {
1775 return (EReference)incomeEClass.getEStructuralFeatures().get(7);
1776 }
1777
1778 /**
1779 * <!-- begin-user-doc -->
1780 * <!-- end-user-doc -->
1781 * @generated
1782 */
1783 @Override
1784 public EClass getIncome_Type() {
1785 return income_TypeEClass;
1786 }
1787
1788 /**
1789 * <!-- begin-user-doc -->
1790 * <!-- end-user-doc -->
1791 * @generated
1792 */
1793 @Override
1794 public EAttribute getIncome_Type_Id8() {
1795 return (EAttribute)income_TypeEClass.getEStructuralFeatures().get(0);
1796 }
1797
1798 /**
1799 * <!-- begin-user-doc -->
1800 * <!-- end-user-doc -->
1801 * @generated
1802 */
1803 @Override
1804 public EReference getIncome_Type_Income() {
1805 return (EReference)income_TypeEClass.getEStructuralFeatures().get(1);
1806 }
1807
1808 /**
1809 * <!-- begin-user-doc -->
1810 * <!-- end-user-doc -->
1811 * @generated
1812 */
1813 @Override
1814 public EClass getTax_Card() {
1815 return tax_CardEClass;
1816 }
1817
1818 /**
1819 * <!-- begin-user-doc -->
1820 * <!-- end-user-doc -->
1821 * @generated
1822 */
1823 @Override
1824 public EAttribute getTax_Card_Card_identifier() {
1825 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(0);
1826 }
1827
1828 /**
1829 * <!-- begin-user-doc -->
1830 * <!-- end-user-doc -->
1831 * @generated
1832 */
1833 @Override
1834 public EAttribute getTax_Card_Tax_office() {
1835 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(1);
1836 }
1837
1838 /**
1839 * <!-- begin-user-doc -->
1840 * <!-- end-user-doc -->
1841 * @generated
1842 */
1843 @Override
1844 public EAttribute getTax_Card_Percentage_of_witholding() {
1845 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(2);
1846 }
1847
1848 /**
1849 * <!-- begin-user-doc -->
1850 * <!-- end-user-doc -->
1851 * @generated
1852 */
1853 @Override
1854 public EAttribute getTax_Card_Tax_payers_name_surname() {
1855 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(3);
1856 }
1857
1858 /**
1859 * <!-- begin-user-doc -->
1860 * <!-- end-user-doc -->
1861 * @generated
1862 */
1863 @Override
1864 public EAttribute getTax_Card_Tax_payers_partner_name_surname() {
1865 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(4);
1866 }
1867
1868 /**
1869 * <!-- begin-user-doc -->
1870 * <!-- end-user-doc -->
1871 * @generated
1872 */
1873 @Override
1874 public EReference getTax_Card_Tax_payers_address() {
1875 return (EReference)tax_CardEClass.getEStructuralFeatures().get(5);
1876 }
1877
1878 /**
1879 * <!-- begin-user-doc -->
1880 * <!-- end-user-doc -->
1881 * @generated
1882 */
1883 @Override
1884 public EAttribute getTax_Card_Jobs_Employer_SSNo() {
1885 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(6);
1886 }
1887
1888 /**
1889 * <!-- begin-user-doc -->
1890 * <!-- end-user-doc -->
1891 * @generated
1892 */
1893 @Override
1894 public EAttribute getTax_Card_Jobs_employers_name() {
1895 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(7);
1896 }
1897
1898 /**
1899 * <!-- begin-user-doc -->
1900 * <!-- end-user-doc -->
1901 * @generated
1902 */
1903 @Override
1904 public EAttribute getTax_Card_Jobs_activity_type() {
1905 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(8);
1906 }
1907
1908 /**
1909 * <!-- begin-user-doc -->
1910 * <!-- end-user-doc -->
1911 * @generated
1912 */
1913 @Override
1914 public EAttribute getTax_Card_Jobs_place_of_work() {
1915 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(9);
1916 }
1917
1918 /**
1919 * <!-- begin-user-doc -->
1920 * <!-- end-user-doc -->
1921 * @generated
1922 */
1923 @Override
1924 public EAttribute getTax_Card_Deduction_FD_daily() {
1925 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(10);
1926 }
1927
1928 /**
1929 * <!-- begin-user-doc -->
1930 * <!-- end-user-doc -->
1931 * @generated
1932 */
1933 @Override
1934 public EAttribute getTax_Card_Deduction_FD_monthly() {
1935 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(11);
1936 }
1937
1938 /**
1939 * <!-- begin-user-doc -->
1940 * <!-- end-user-doc -->
1941 * @generated
1942 */
1943 @Override
1944 public EAttribute getTax_Card_Deduction_AC_daily() {
1945 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(12);
1946 }
1947
1948 /**
1949 * <!-- begin-user-doc -->
1950 * <!-- end-user-doc -->
1951 * @generated
1952 */
1953 @Override
1954 public EAttribute getTax_Card_Deduction_AC_monthly() {
1955 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(13);
1956 }
1957
1958 /**
1959 * <!-- begin-user-doc -->
1960 * <!-- end-user-doc -->
1961 * @generated
1962 */
1963 @Override
1964 public EAttribute getTax_Card_Deduction_AC_yearly() {
1965 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(14);
1966 }
1967
1968 /**
1969 * <!-- begin-user-doc -->
1970 * <!-- end-user-doc -->
1971 * @generated
1972 */
1973 @Override
1974 public EAttribute getTax_Card_Deduction_CE_daily() {
1975 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(15);
1976 }
1977
1978 /**
1979 * <!-- begin-user-doc -->
1980 * <!-- end-user-doc -->
1981 * @generated
1982 */
1983 @Override
1984 public EAttribute getTax_Card_Deduction_CE_monthly() {
1985 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(16);
1986 }
1987
1988 /**
1989 * <!-- begin-user-doc -->
1990 * <!-- end-user-doc -->
1991 * @generated
1992 */
1993 @Override
1994 public EAttribute getTax_Card_Deduction_CE_yearly() {
1995 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(17);
1996 }
1997
1998 /**
1999 * <!-- begin-user-doc -->
2000 * <!-- end-user-doc -->
2001 * @generated
2002 */
2003 @Override
2004 public EAttribute getTax_Card_Deduction_DS_daily() {
2005 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(18);
2006 }
2007
2008 /**
2009 * <!-- begin-user-doc -->
2010 * <!-- end-user-doc -->
2011 * @generated
2012 */
2013 @Override
2014 public EAttribute getTax_Card_Deduction_DS_monthly() {
2015 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(19);
2016 }
2017
2018 /**
2019 * <!-- begin-user-doc -->
2020 * <!-- end-user-doc -->
2021 * @generated
2022 */
2023 @Override
2024 public EAttribute getTax_Card_Deduction_FO_daily() {
2025 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(20);
2026 }
2027
2028 /**
2029 * <!-- begin-user-doc -->
2030 * <!-- end-user-doc -->
2031 * @generated
2032 */
2033 @Override
2034 public EAttribute getTax_Card_Deduction_FO_monthly() {
2035 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(21);
2036 }
2037
2038 /**
2039 * <!-- begin-user-doc -->
2040 * <!-- end-user-doc -->
2041 * @generated
2042 */
2043 @Override
2044 public EAttribute getTax_Card_Deduction_FO_yearly() {
2045 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(22);
2046 }
2047
2048 /**
2049 * <!-- begin-user-doc -->
2050 * <!-- end-user-doc -->
2051 * @generated
2052 */
2053 @Override
2054 public EAttribute getTax_Card_Credit_CIS_daily() {
2055 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(23);
2056 }
2057
2058 /**
2059 * <!-- begin-user-doc -->
2060 * <!-- end-user-doc -->
2061 * @generated
2062 */
2063 @Override
2064 public EAttribute getTax_Card_Credit_CIS_monthly() {
2065 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(24);
2066 }
2067
2068 /**
2069 * <!-- begin-user-doc -->
2070 * <!-- end-user-doc -->
2071 * @generated
2072 */
2073 @Override
2074 public EAttribute getTax_Card_Credit_CIM_daily() {
2075 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(25);
2076 }
2077
2078 /**
2079 * <!-- begin-user-doc -->
2080 * <!-- end-user-doc -->
2081 * @generated
2082 */
2083 @Override
2084 public EAttribute getTax_Card_Validity() {
2085 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(26);
2086 }
2087
2088 /**
2089 * <!-- begin-user-doc -->
2090 * <!-- end-user-doc -->
2091 * @generated
2092 */
2093 @Override
2094 public EReference getTax_Card_Income_Tax_Credit() {
2095 return (EReference)tax_CardEClass.getEStructuralFeatures().get(27);
2096 }
2097
2098 /**
2099 * <!-- begin-user-doc -->
2100 * <!-- end-user-doc -->
2101 * @generated
2102 */
2103 @Override
2104 public EReference getTax_Card_Previous() {
2105 return (EReference)tax_CardEClass.getEStructuralFeatures().get(28);
2106 }
2107
2108 /**
2109 * <!-- begin-user-doc -->
2110 * <!-- end-user-doc -->
2111 * @generated
2112 */
2113 @Override
2114 public EReference getTax_Card_Current_tax_card() {
2115 return (EReference)tax_CardEClass.getEStructuralFeatures().get(29);
2116 }
2117
2118 /**
2119 * <!-- begin-user-doc -->
2120 * <!-- end-user-doc -->
2121 * @generated
2122 */
2123 @Override
2124 public EAttribute getTax_Card_Credit_CIM_yearly() {
2125 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(30);
2126 }
2127
2128 /**
2129 * <!-- begin-user-doc -->
2130 * <!-- end-user-doc -->
2131 * @generated
2132 */
2133 @Override
2134 public EAttribute getTax_Card_Deduction_DS_Alimony_yearly() {
2135 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(31);
2136 }
2137
2138 /**
2139 * <!-- begin-user-doc -->
2140 * <!-- end-user-doc -->
2141 * @generated
2142 */
2143 @Override
2144 public EAttribute getTax_Card_Deduction_DS_Debt_yearly() {
2145 return (EAttribute)tax_CardEClass.getEStructuralFeatures().get(32);
2146 }
2147
2148 /**
2149 * <!-- begin-user-doc -->
2150 * <!-- end-user-doc -->
2151 * @generated
2152 */
2153 @Override
2154 public EReference getTax_Card_Income() {
2155 return (EReference)tax_CardEClass.getEStructuralFeatures().get(33);
2156 }
2157
2158 /**
2159 * <!-- begin-user-doc -->
2160 * <!-- end-user-doc -->
2161 * @generated
2162 */
2163 @Override
2164 public EClass getIncome_Tax_Credit() {
2165 return income_Tax_CreditEClass;
2166 }
2167
2168 /**
2169 * <!-- begin-user-doc -->
2170 * <!-- end-user-doc -->
2171 * @generated
2172 */
2173 @Override
2174 public EAttribute getIncome_Tax_Credit_GrantedBy() {
2175 return (EAttribute)income_Tax_CreditEClass.getEStructuralFeatures().get(0);
2176 }
2177
2178 /**
2179 * <!-- begin-user-doc -->
2180 * <!-- end-user-doc -->
2181 * @generated
2182 */
2183 @Override
2184 public EReference getIncome_Tax_Credit_TaxPayer() {
2185 return (EReference)income_Tax_CreditEClass.getEStructuralFeatures().get(1);
2186 }
2187
2188 /**
2189 * <!-- begin-user-doc -->
2190 * <!-- end-user-doc -->
2191 * @generated
2192 */
2193 @Override
2194 public EAttribute getIncome_Tax_Credit_Tax_year() {
2195 return (EAttribute)income_Tax_CreditEClass.getEStructuralFeatures().get(2);
2196 }
2197
2198 /**
2199 * <!-- begin-user-doc -->
2200 * <!-- end-user-doc -->
2201 * @generated
2202 */
2203 @Override
2204 public EAttribute getIncome_Tax_Credit_Yearly() {
2205 return (EAttribute)income_Tax_CreditEClass.getEStructuralFeatures().get(3);
2206 }
2207
2208 /**
2209 * <!-- begin-user-doc -->
2210 * <!-- end-user-doc -->
2211 * @generated
2212 */
2213 @Override
2214 public EAttribute getIncome_Tax_Credit_Monthly() {
2215 return (EAttribute)income_Tax_CreditEClass.getEStructuralFeatures().get(4);
2216 }
2217
2218 /**
2219 * <!-- begin-user-doc -->
2220 * <!-- end-user-doc -->
2221 * @generated
2222 */
2223 @Override
2224 public EAttribute getIncome_Tax_Credit_Daily() {
2225 return (EAttribute)income_Tax_CreditEClass.getEStructuralFeatures().get(5);
2226 }
2227
2228 /**
2229 * <!-- begin-user-doc -->
2230 * <!-- end-user-doc -->
2231 * @generated
2232 */
2233 @Override
2234 public EAttribute getIncome_Tax_Credit_Id7() {
2235 return (EAttribute)income_Tax_CreditEClass.getEStructuralFeatures().get(6);
2236 }
2237
2238 /**
2239 * <!-- begin-user-doc -->
2240 * <!-- end-user-doc -->
2241 * @generated
2242 */
2243 @Override
2244 public EReference getIncome_Tax_Credit_Taxation_Frame() {
2245 return (EReference)income_Tax_CreditEClass.getEStructuralFeatures().get(7);
2246 }
2247
2248 /**
2249 * <!-- begin-user-doc -->
2250 * <!-- end-user-doc -->
2251 * @generated
2252 */
2253 @Override
2254 public EClass getIncome_Detail() {
2255 return income_DetailEClass;
2256 }
2257
2258 /**
2259 * <!-- begin-user-doc -->
2260 * <!-- end-user-doc -->
2261 * @generated
2262 */
2263 @Override
2264 public EAttribute getIncome_Detail_Amount() {
2265 return (EAttribute)income_DetailEClass.getEStructuralFeatures().get(0);
2266 }
2267
2268 /**
2269 * <!-- begin-user-doc -->
2270 * <!-- end-user-doc -->
2271 * @generated
2272 */
2273 @Override
2274 public EAttribute getIncome_Detail_Is_worked() {
2275 return (EAttribute)income_DetailEClass.getEStructuralFeatures().get(1);
2276 }
2277
2278 /**
2279 * <!-- begin-user-doc -->
2280 * <!-- end-user-doc -->
2281 * @generated
2282 */
2283 @Override
2284 public EAttribute getIncome_Detail_Distance() {
2285 return (EAttribute)income_DetailEClass.getEStructuralFeatures().get(2);
2286 }
2287
2288 /**
2289 * <!-- begin-user-doc -->
2290 * <!-- end-user-doc -->
2291 * @generated
2292 */
2293 @Override
2294 public EAttribute getIncome_Detail_Worked_days() {
2295 return (EAttribute)income_DetailEClass.getEStructuralFeatures().get(3);
2296 }
2297
2298 /**
2299 * <!-- begin-user-doc -->
2300 * <!-- end-user-doc -->
2301 * @generated
2302 */
2303 @Override
2304 public EAttribute getIncome_Detail_Is_contributing_CNS() {
2305 return (EAttribute)income_DetailEClass.getEStructuralFeatures().get(4);
2306 }
2307
2308 /**
2309 * <!-- begin-user-doc -->
2310 * <!-- end-user-doc -->
2311 * @generated
2312 */
2313 @Override
2314 public EAttribute getIncome_Detail_Id5() {
2315 return (EAttribute)income_DetailEClass.getEStructuralFeatures().get(5);
2316 }
2317
2318 /**
2319 * <!-- begin-user-doc -->
2320 * <!-- end-user-doc -->
2321 * @generated
2322 */
2323 @Override
2324 public EReference getIncome_Detail_Income() {
2325 return (EReference)income_DetailEClass.getEStructuralFeatures().get(6);
2326 }
2327
2328 /**
2329 * <!-- begin-user-doc -->
2330 * <!-- end-user-doc -->
2331 * @generated
2332 */
2333 @Override
2334 public EClass getFromLaw() {
2335 return fromLawEClass;
2336 }
2337
2338 /**
2339 * <!-- begin-user-doc -->
2340 * <!-- end-user-doc -->
2341 * @generated
2342 */
2343 @Override
2344 public EAttribute getFromLaw_Id() {
2345 return (EAttribute)fromLawEClass.getEStructuralFeatures().get(0);
2346 }
2347
2348 /**
2349 * <!-- begin-user-doc -->
2350 * <!-- end-user-doc -->
2351 * @generated
2352 */
2353 @Override
2354 public EReference getFromLaw_TaxPayer() {
2355 return (EReference)fromLawEClass.getEStructuralFeatures().get(1);
2356 }
2357
2358 /**
2359 * <!-- begin-user-doc -->
2360 * <!-- end-user-doc -->
2361 * @generated
2362 */
2363 @Override
2364 public EClass getFiscal_Address() {
2365 return fiscal_AddressEClass;
2366 }
2367
2368 /**
2369 * <!-- begin-user-doc -->
2370 * <!-- end-user-doc -->
2371 * @generated
2372 */
2373 @Override
2374 public EClass getHabitual_Address() {
2375 return habitual_AddressEClass;
2376 }
2377
2378 /**
2379 * <!-- begin-user-doc -->
2380 * <!-- end-user-doc -->
2381 * @generated
2382 */
2383 @Override
2384 public EClass getMarriage_Record() {
2385 return marriage_RecordEClass;
2386 }
2387
2388 /**
2389 * <!-- begin-user-doc -->
2390 * <!-- end-user-doc -->
2391 * @generated
2392 */
2393 @Override
2394 public EClass getNon_Resident_Tax_Payer() {
2395 return non_Resident_Tax_PayerEClass;
2396 }
2397
2398 /**
2399 * <!-- begin-user-doc -->
2400 * <!-- end-user-doc -->
2401 * @generated
2402 */
2403 @Override
2404 public EAttribute getNon_Resident_Tax_Payer_Is_assimilated_to_resident() {
2405 return (EAttribute)non_Resident_Tax_PayerEClass.getEStructuralFeatures().get(0);
2406 }
2407
2408 /**
2409 * <!-- begin-user-doc -->
2410 * <!-- end-user-doc -->
2411 * @generated
2412 */
2413 @Override
2414 public EClass getPartnership_Record() {
2415 return partnership_RecordEClass;
2416 }
2417
2418 /**
2419 * <!-- begin-user-doc -->
2420 * <!-- end-user-doc -->
2421 * @generated
2422 */
2423 @Override
2424 public EClass getResident_Tax_Payer() {
2425 return resident_Tax_PayerEClass;
2426 }
2427
2428 /**
2429 * <!-- begin-user-doc -->
2430 * <!-- end-user-doc -->
2431 * @generated
2432 */
2433 @Override
2434 public EClass getTrade_and_Business_Income() {
2435 return trade_and_Business_IncomeEClass;
2436 }
2437
2438 /**
2439 * <!-- begin-user-doc -->
2440 * <!-- end-user-doc -->
2441 * @generated
2442 */
2443 @Override
2444 public EClass getAgriculture_and_Forestry_Income() {
2445 return agriculture_and_Forestry_IncomeEClass;
2446 }
2447
2448 /**
2449 * <!-- begin-user-doc -->
2450 * <!-- end-user-doc -->
2451 * @generated
2452 */
2453 @Override
2454 public EClass getPensions_and_Annuities_Income() {
2455 return pensions_and_Annuities_IncomeEClass;
2456 }
2457
2458 /**
2459 * <!-- begin-user-doc -->
2460 * <!-- end-user-doc -->
2461 * @generated
2462 */
2463 @Override
2464 public EAttribute getPensions_and_Annuities_Income_Occasional_payement() {
2465 return (EAttribute)pensions_and_Annuities_IncomeEClass.getEStructuralFeatures().get(0);
2466 }
2467
2468 /**
2469 * <!-- begin-user-doc -->
2470 * <!-- end-user-doc -->
2471 * @generated
2472 */
2473 @Override
2474 public EClass getCapital_and_Investments_Income() {
2475 return capital_and_Investments_IncomeEClass;
2476 }
2477
2478 /**
2479 * <!-- begin-user-doc -->
2480 * <!-- end-user-doc -->
2481 * @generated
2482 */
2483 @Override
2484 public EClass getEmployment_Income() {
2485 return employment_IncomeEClass;
2486 }
2487
2488 /**
2489 * <!-- begin-user-doc -->
2490 * <!-- end-user-doc -->
2491 * @generated
2492 */
2493 @Override
2494 public EClass getRentals_and_Leases_Income() {
2495 return rentals_and_Leases_IncomeEClass;
2496 }
2497
2498 /**
2499 * <!-- begin-user-doc -->
2500 * <!-- end-user-doc -->
2501 * @generated
2502 */
2503 @Override
2504 public EAttribute getRentals_and_Leases_Income_Is_periodic() {
2505 return (EAttribute)rentals_and_Leases_IncomeEClass.getEStructuralFeatures().get(0);
2506 }
2507
2508 /**
2509 * <!-- begin-user-doc -->
2510 * <!-- end-user-doc -->
2511 * @generated
2512 */
2513 @Override
2514 public EClass getForeign_Income() {
2515 return foreign_IncomeEClass;
2516 }
2517
2518 /**
2519 * <!-- begin-user-doc -->
2520 * <!-- end-user-doc -->
2521 * @generated
2522 */
2523 @Override
2524 public EClass getLocal_Income() {
2525 return local_IncomeEClass;
2526 }
2527
2528 /**
2529 * <!-- begin-user-doc -->
2530 * <!-- end-user-doc -->
2531 * @generated
2532 */
2533 @Override
2534 public EClass getCIM() {
2535 return cimEClass;
2536 }
2537
2538 /**
2539 * <!-- begin-user-doc -->
2540 * <!-- end-user-doc -->
2541 * @generated
2542 */
2543 @Override
2544 public EClass getCIP() {
2545 return cipEClass;
2546 }
2547
2548 /**
2549 * <!-- begin-user-doc -->
2550 * <!-- end-user-doc -->
2551 * @generated
2552 */
2553 @Override
2554 public EClass getCIS() {
2555 return cisEClass;
2556 }
2557
2558 /**
2559 * <!-- begin-user-doc -->
2560 * <!-- end-user-doc -->
2561 * @generated
2562 */
2563 @Override
2564 public EClass getFD() {
2565 return fdEClass;
2566 }
2567
2568 /**
2569 * <!-- begin-user-doc -->
2570 * <!-- end-user-doc -->
2571 * @generated
2572 */
2573 @Override
2574 public EAttribute getFD_Distance_declared_in_january() {
2575 return (EAttribute)fdEClass.getEStructuralFeatures().get(0);
2576 }
2577
2578 /**
2579 * <!-- begin-user-doc -->
2580 * <!-- end-user-doc -->
2581 * @generated
2582 */
2583 @Override
2584 public EClass getProfessional_Expenses_Deduction() {
2585 return professional_Expenses_DeductionEClass;
2586 }
2587
2588 /**
2589 * <!-- begin-user-doc -->
2590 * <!-- end-user-doc -->
2591 * @generated
2592 */
2593 @Override
2594 public EClass getFO() {
2595 return foEClass;
2596 }
2597
2598 /**
2599 * <!-- begin-user-doc -->
2600 * <!-- end-user-doc -->
2601 * @generated
2602 */
2603 @Override
2604 public EClass getDS_for_Permanent_Expense() {
2605 return dS_for_Permanent_ExpenseEClass;
2606 }
2607
2608 /**
2609 * <!-- begin-user-doc -->
2610 * <!-- end-user-doc -->
2611 * @generated
2612 */
2613 @Override
2614 public EAttribute getDS_for_Permanent_Expense_Permanent_expense_category() {
2615 return (EAttribute)dS_for_Permanent_ExpenseEClass.getEStructuralFeatures().get(0);
2616 }
2617
2618 /**
2619 * <!-- begin-user-doc -->
2620 * <!-- end-user-doc -->
2621 * @generated
2622 */
2623 @Override
2624 public EClass getDS() {
2625 return dsEClass;
2626 }
2627
2628 /**
2629 * <!-- begin-user-doc -->
2630 * <!-- end-user-doc -->
2631 * @generated
2632 */
2633 @Override
2634 public EAttribute getDS_Maximum_deductible_amount() {
2635 return (EAttribute)dsEClass.getEStructuralFeatures().get(0);
2636 }
2637
2638 /**
2639 * <!-- begin-user-doc -->
2640 * <!-- end-user-doc -->
2641 * @generated
2642 */
2643 @Override
2644 public EAttribute getDS_Id3() {
2645 return (EAttribute)dsEClass.getEStructuralFeatures().get(1);
2646 }
2647
2648 /**
2649 * <!-- begin-user-doc -->
2650 * <!-- end-user-doc -->
2651 * @generated
2652 */
2653 @Override
2654 public EClass getDS_for_Interest_Expense() {
2655 return dS_for_Interest_ExpenseEClass;
2656 }
2657
2658 /**
2659 * <!-- begin-user-doc -->
2660 * <!-- end-user-doc -->
2661 * @generated
2662 */
2663 @Override
2664 public EClass getDS_for_Health_and_Pension_Insurance() {
2665 return dS_for_Health_and_Pension_InsuranceEClass;
2666 }
2667
2668 /**
2669 * <!-- begin-user-doc -->
2670 * <!-- end-user-doc -->
2671 * @generated
2672 */
2673 @Override
2674 public EAttribute getDS_for_Health_and_Pension_Insurance_Insurance_category() {
2675 return (EAttribute)dS_for_Health_and_Pension_InsuranceEClass.getEStructuralFeatures().get(0);
2676 }
2677
2678 /**
2679 * <!-- begin-user-doc -->
2680 * <!-- end-user-doc -->
2681 * @generated
2682 */
2683 @Override
2684 public EClass getDS_for_Private_Insurance_and_Plan() {
2685 return dS_for_Private_Insurance_and_PlanEClass;
2686 }
2687
2688 /**
2689 * <!-- begin-user-doc -->
2690 * <!-- end-user-doc -->
2691 * @generated
2692 */
2693 @Override
2694 public EAttribute getDS_for_Private_Insurance_and_Plan_Private_insurance_and_plan_category() {
2695 return (EAttribute)dS_for_Private_Insurance_and_PlanEClass.getEStructuralFeatures().get(0);
2696 }
2697
2698 /**
2699 * <!-- begin-user-doc -->
2700 * <!-- end-user-doc -->
2701 * @generated
2702 */
2703 @Override
2704 public EClass getDS_for_Loss_Carryforward() {
2705 return dS_for_Loss_CarryforwardEClass;
2706 }
2707
2708 /**
2709 * <!-- begin-user-doc -->
2710 * <!-- end-user-doc -->
2711 * @generated
2712 */
2713 @Override
2714 public EClass getDS_for_Donation() {
2715 return dS_for_DonationEClass;
2716 }
2717
2718 /**
2719 * <!-- begin-user-doc -->
2720 * <!-- end-user-doc -->
2721 * @generated
2722 */
2723 @Override
2724 public EClass getPermanent_Expense() {
2725 return permanent_ExpenseEClass;
2726 }
2727
2728 /**
2729 * <!-- begin-user-doc -->
2730 * <!-- end-user-doc -->
2731 * @generated
2732 */
2733 @Override
2734 public EAttribute getPermanent_Expense_Category() {
2735 return (EAttribute)permanent_ExpenseEClass.getEStructuralFeatures().get(0);
2736 }
2737
2738 /**
2739 * <!-- begin-user-doc -->
2740 * <!-- end-user-doc -->
2741 * @generated
2742 */
2743 @Override
2744 public EClass getSpecial_Expense_DS() {
2745 return special_Expense_DSEClass;
2746 }
2747
2748 /**
2749 * <!-- begin-user-doc -->
2750 * <!-- end-user-doc -->
2751 * @generated
2752 */
2753 @Override
2754 public EClass getInterest_Expense() {
2755 return interest_ExpenseEClass;
2756 }
2757
2758 /**
2759 * <!-- begin-user-doc -->
2760 * <!-- end-user-doc -->
2761 * @generated
2762 */
2763 @Override
2764 public EClass getPrivate_Insurance_and_Plan() {
2765 return private_Insurance_and_PlanEClass;
2766 }
2767
2768 /**
2769 * <!-- begin-user-doc -->
2770 * <!-- end-user-doc -->
2771 * @generated
2772 */
2773 @Override
2774 public EAttribute getPrivate_Insurance_and_Plan_Category() {
2775 return (EAttribute)private_Insurance_and_PlanEClass.getEStructuralFeatures().get(0);
2776 }
2777
2778 /**
2779 * <!-- begin-user-doc -->
2780 * <!-- end-user-doc -->
2781 * @generated
2782 */
2783 @Override
2784 public EAttribute getPrivate_Insurance_and_Plan_Duration_of_contract() {
2785 return (EAttribute)private_Insurance_and_PlanEClass.getEStructuralFeatures().get(1);
2786 }
2787
2788 /**
2789 * <!-- begin-user-doc -->
2790 * <!-- end-user-doc -->
2791 * @generated
2792 */
2793 @Override
2794 public EClass getHealth_and_Pension_Insurance() {
2795 return health_and_Pension_InsuranceEClass;
2796 }
2797
2798 /**
2799 * <!-- begin-user-doc -->
2800 * <!-- end-user-doc -->
2801 * @generated
2802 */
2803 @Override
2804 public EAttribute getHealth_and_Pension_Insurance_Category() {
2805 return (EAttribute)health_and_Pension_InsuranceEClass.getEStructuralFeatures().get(0);
2806 }
2807
2808 /**
2809 * <!-- begin-user-doc -->
2810 * <!-- end-user-doc -->
2811 * @generated
2812 */
2813 @Override
2814 public EAttribute getHealth_and_Pension_Insurance_Is_related_to_additional_salary() {
2815 return (EAttribute)health_and_Pension_InsuranceEClass.getEStructuralFeatures().get(1);
2816 }
2817
2818 /**
2819 * <!-- begin-user-doc -->
2820 * <!-- end-user-doc -->
2821 * @generated
2822 */
2823 @Override
2824 public EClass getDonation() {
2825 return donationEClass;
2826 }
2827
2828 /**
2829 * <!-- begin-user-doc -->
2830 * <!-- end-user-doc -->
2831 * @generated
2832 */
2833 @Override
2834 public EAttribute getDonation_Beneficiary1() {
2835 return (EAttribute)donationEClass.getEStructuralFeatures().get(0);
2836 }
2837
2838 /**
2839 * <!-- begin-user-doc -->
2840 * <!-- end-user-doc -->
2841 * @generated
2842 */
2843 @Override
2844 public EAttribute getDonation_Is_donation_reported() {
2845 return (EAttribute)donationEClass.getEStructuralFeatures().get(1);
2846 }
2847
2848 /**
2849 * <!-- begin-user-doc -->
2850 * <!-- end-user-doc -->
2851 * @generated
2852 */
2853 @Override
2854 public EClass getLoss_Carryforward() {
2855 return loss_CarryforwardEClass;
2856 }
2857
2858 /**
2859 * <!-- begin-user-doc -->
2860 * <!-- end-user-doc -->
2861 * @generated
2862 */
2863 @Override
2864 public EClass getSpousal_Expense_AC() {
2865 return spousal_Expense_ACEClass;
2866 }
2867
2868 /**
2869 * <!-- begin-user-doc -->
2870 * <!-- end-user-doc -->
2871 * @generated
2872 */
2873 @Override
2874 public EClass getExtraordinary_Expense_CE() {
2875 return extraordinary_Expense_CEEClass;
2876 }
2877
2878 /**
2879 * <!-- begin-user-doc -->
2880 * <!-- end-user-doc -->
2881 * @generated
2882 */
2883 @Override
2884 public EAttribute getExtraordinary_Expense_CE_Thresholded_deduction_percentage() {
2885 return (EAttribute)extraordinary_Expense_CEEClass.getEStructuralFeatures().get(0);
2886 }
2887
2888 /**
2889 * <!-- begin-user-doc -->
2890 * <!-- end-user-doc -->
2891 * @generated
2892 */
2893 @Override
2894 public EAttribute getExtraordinary_Expense_CE_Ce_type() {
2895 return (EAttribute)extraordinary_Expense_CEEClass.getEStructuralFeatures().get(1);
2896 }
2897
2898 /**
2899 * <!-- begin-user-doc -->
2900 * <!-- end-user-doc -->
2901 * @generated
2902 */
2903 @Override
2904 public EClass getTravel_Expense_FD() {
2905 return travel_Expense_FDEClass;
2906 }
2907
2908 /**
2909 * <!-- begin-user-doc -->
2910 * <!-- end-user-doc -->
2911 * @generated
2912 */
2913 @Override
2914 public EClass getProfessional_Expense() {
2915 return professional_ExpenseEClass;
2916 }
2917
2918 /**
2919 * <!-- begin-user-doc -->
2920 * <!-- end-user-doc -->
2921 * @generated
2922 */
2923 @Override
2924 public EClass getMiscellaneous_Expense_FO() {
2925 return miscellaneous_Expense_FOEClass;
2926 }
2927
2928 /**
2929 * <!-- begin-user-doc -->
2930 * <!-- end-user-doc -->
2931 * @generated
2932 */
2933 @Override
2934 public EClass getResource() {
2935 return resourceEClass;
2936 }
2937
2938 /**
2939 * <!-- begin-user-doc -->
2940 * <!-- end-user-doc -->
2941 * @generated
2942 */
2943 @Override
2944 public EReference getResource_Contains() {
2945 return (EReference)resourceEClass.getEStructuralFeatures().get(0);
2946 }
2947
2948 /**
2949 * <!-- begin-user-doc -->
2950 * <!-- end-user-doc -->
2951 * @generated
2952 */
2953 @Override
2954 public EClass getRoot() {
2955 return rootEClass;
2956 }
2957
2958 /**
2959 * <!-- begin-user-doc -->
2960 * <!-- end-user-doc -->
2961 * @generated
2962 */
2963 @Override
2964 public EEnum getGrantor() {
2965 return grantorEEnum;
2966 }
2967
2968 /**
2969 * <!-- begin-user-doc -->
2970 * <!-- end-user-doc -->
2971 * @generated
2972 */
2973 @Override
2974 public EEnum getDisability_Types() {
2975 return disability_TypesEEnum;
2976 }
2977
2978 /**
2979 * <!-- begin-user-doc -->
2980 * <!-- end-user-doc -->
2981 * @generated
2982 */
2983 @Override
2984 public EEnum getCountry() {
2985 return countryEEnum;
2986 }
2987
2988 /**
2989 * <!-- begin-user-doc -->
2990 * <!-- end-user-doc -->
2991 * @generated
2992 */
2993 @Override
2994 public EEnum getTax_Office() {
2995 return tax_OfficeEEnum;
2996 }
2997
2998 /**
2999 * <!-- begin-user-doc -->
3000 * <!-- end-user-doc -->
3001 * @generated
3002 */
3003 @Override
3004 public EEnum getTax_Class_Category() {
3005 return tax_Class_CategoryEEnum;
3006 }
3007
3008 /**
3009 * <!-- begin-user-doc -->
3010 * <!-- end-user-doc -->
3011 * @generated
3012 */
3013 @Override
3014 public EEnum getJob_Activity() {
3015 return job_ActivityEEnum;
3016 }
3017
3018 /**
3019 * <!-- begin-user-doc -->
3020 * <!-- end-user-doc -->
3021 * @generated
3022 */
3023 @Override
3024 public EEnum getTown() {
3025 return townEEnum;
3026 }
3027
3028 /**
3029 * <!-- begin-user-doc -->
3030 * <!-- end-user-doc -->
3031 * @generated
3032 */
3033 @Override
3034 public EEnum getCE_Type() {
3035 return cE_TypeEEnum;
3036 }
3037
3038 /**
3039 * <!-- begin-user-doc -->
3040 * <!-- end-user-doc -->
3041 * @generated
3042 */
3043 @Override
3044 public EEnum getExpense_Purpose() {
3045 return expense_PurposeEEnum;
3046 }
3047
3048 /**
3049 * <!-- begin-user-doc -->
3050 * <!-- end-user-doc -->
3051 * @generated
3052 */
3053 @Override
3054 public EEnum getDependent_Type() {
3055 return dependent_TypeEEnum;
3056 }
3057
3058 /**
3059 * <!-- begin-user-doc -->
3060 * <!-- end-user-doc -->
3061 * @generated
3062 */
3063 @Override
3064 public EEnum getSeparation_Causes() {
3065 return separation_CausesEEnum;
3066 }
3067
3068 /**
3069 * <!-- begin-user-doc -->
3070 * <!-- end-user-doc -->
3071 * @generated
3072 */
3073 @Override
3074 public EEnum getCategory_of_Permanent_Expense() {
3075 return category_of_Permanent_ExpenseEEnum;
3076 }
3077
3078 /**
3079 * <!-- begin-user-doc -->
3080 * <!-- end-user-doc -->
3081 * @generated
3082 */
3083 @Override
3084 public EEnum getCategory_of_Health_and_Pension_Insurances() {
3085 return category_of_Health_and_Pension_InsurancesEEnum;
3086 }
3087
3088 /**
3089 * <!-- begin-user-doc -->
3090 * <!-- end-user-doc -->
3091 * @generated
3092 */
3093 @Override
3094 public EEnum getCategory_of_Private_Insurance_and_Plan() {
3095 return category_of_Private_Insurance_and_PlanEEnum;
3096 }
3097
3098 /**
3099 * <!-- begin-user-doc -->
3100 * <!-- end-user-doc -->
3101 * @generated
3102 */
3103 @Override
3104 public EEnum getLegal_Union_Types() {
3105 return legal_Union_TypesEEnum;
3106 }
3107
3108 /**
3109 * <!-- begin-user-doc -->
3110 * <!-- end-user-doc -->
3111 * @generated
3112 */
3113 @Override
3114 public TaxationFactory getTaxationFactory() {
3115 return (TaxationFactory)getEFactoryInstance();
3116 }
3117
3118 /**
3119 * <!-- begin-user-doc -->
3120 * <!-- end-user-doc -->
3121 * @generated
3122 */
3123 private boolean isCreated = false;
3124
3125 /**
3126 * Creates the meta-model objects for the package. This method is
3127 * guarded to have no affect on any invocation but its first.
3128 * <!-- begin-user-doc -->
3129 * <!-- end-user-doc -->
3130 * @generated
3131 */
3132 public void createPackageContents() {
3133 if (isCreated) return;
3134 isCreated = true;
3135
3136 // Create classes and their features
3137 constantsEClass = createEClass(CONSTANTS);
3138 createEAttribute(constantsEClass, CONSTANTS__MAXIMUM_CE_RATE_FOR_CHILD_NOT_BEING_PART_OF_HOUSEHOLD);
3139 createEAttribute(constantsEClass, CONSTANTS__MAXIMUM_CE_RATE_FOR_HOUSE_CARE_AND_CHILD_PART_OF_THE_HOUSEHOLD_CARE);
3140 createEAttribute(constantsEClass, CONSTANTS__MINIMUM_SALARY);
3141 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_FOR_EXTRA_PROFESSIONAL_DEDUCTION);
3142 createEAttribute(constantsEClass, CONSTANTS__MAXIMUM_DEDUCTIBLE_PERCENTAGE_FOR_DONATIONS);
3143 createEAttribute(constantsEClass, CONSTANTS__MINIMUM_DEDUCTIBLE_AMOUNT_FOR_DONATIONS);
3144 createEAttribute(constantsEClass, CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANC);
3145 createEAttribute(constantsEClass, CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ALIMONY_EXPENSE);
3146 createEAttribute(constantsEClass, CONSTANTS__MAXIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION);
3147 createEAttribute(constantsEClass, CONSTANTS__MAXIMAL_FLAT_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION);
3148 createEAttribute(constantsEClass, CONSTANTS__MINIMAL_DISTANCE_FOR_TRAVEL_EXPENSE_DEDUCTION);
3149 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_CIM_DAILY);
3150 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_CIM_MONTHLY);
3151 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_CIM_YEARLY);
3152 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_CIP_DAILY);
3153 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_CIP_MONTHLY);
3154 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_CIP_YEARLY);
3155 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_CIS_DAILY);
3156 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_CIS_MONTHLY);
3157 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_CIS_YEARLY);
3158 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_FOR_TRAVEL_EXPENSE_PER_UNIT);
3159 createEAttribute(constantsEClass, CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_DS);
3160 createEAttribute(constantsEClass, CONSTANTS__FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE);
3161 createEAttribute(constantsEClass, CONSTANTS__DISABILITY_FLAT_RATE_FOR_MISCELLANEOUS_EXPENSE);
3162 createEAttribute(constantsEClass, CONSTANTS__MAXIMUM_DEDUCTIBLE_AMOUNT_FOR_ADDITIONAL_PENSION_AND_INSURANCE);
3163
3164 income_TaxEClass = createEClass(INCOME_TAX);
3165 createEReference(income_TaxEClass, INCOME_TAX__TAX_PAYER);
3166 createEAttribute(income_TaxEClass, INCOME_TAX__TAX_AMOUNT);
3167 createEAttribute(income_TaxEClass, INCOME_TAX__TAX_YEAR);
3168 createEAttribute(income_TaxEClass, INCOME_TAX__ID6);
3169
3170 tax_PayerEClass = createEClass(TAX_PAYER);
3171 createEReference(tax_PayerEClass, TAX_PAYER__DEPENDENTS);
3172 createEReference(tax_PayerEClass, TAX_PAYER__FROM_AGENT);
3173 createEReference(tax_PayerEClass, TAX_PAYER__INCOMES);
3174 createEReference(tax_PayerEClass, TAX_PAYER__FROM_LAW);
3175
3176 physical_PersonEClass = createEClass(PHYSICAL_PERSON);
3177 createEAttribute(physical_PersonEClass, PHYSICAL_PERSON__SS_NO);
3178 createEReference(physical_PersonEClass, PHYSICAL_PERSON__ADDRESSES);
3179 createEAttribute(physical_PersonEClass, PHYSICAL_PERSON__BIRTH_YEAR);
3180 createEAttribute(physical_PersonEClass, PHYSICAL_PERSON__DISABILITY_PERCENTAGE);
3181 createEAttribute(physical_PersonEClass, PHYSICAL_PERSON__DISABILITY_TYPE);
3182 createEAttribute(physical_PersonEClass, PHYSICAL_PERSON__BIRTH_MONTH);
3183 createEAttribute(physical_PersonEClass, PHYSICAL_PERSON__BIRTH_DAY);
3184 createEReference(physical_PersonEClass, PHYSICAL_PERSON__EXPENSES);
3185 createEAttribute(physical_PersonEClass, PHYSICAL_PERSON__IS_WIDOWER);
3186
3187 addressEClass = createEClass(ADDRESS);
3188 createEAttribute(addressEClass, ADDRESS__COUNTRY);
3189 createEAttribute(addressEClass, ADDRESS__STREET);
3190 createEAttribute(addressEClass, ADDRESS__ZIP_CODE);
3191 createEAttribute(addressEClass, ADDRESS__CITY);
3192 createEAttribute(addressEClass, ADDRESS__ID2);
3193 createEReference(addressEClass, ADDRESS__TAX_PAYER);
3194
3195 expenseEClass = createEClass(EXPENSE);
3196 createEAttribute(expenseEClass, EXPENSE__DECLARED_AMOUNT);
3197 createEAttribute(expenseEClass, EXPENSE__EXPENSE_PURPOSE);
3198 createEReference(expenseEClass, EXPENSE__DEPENDENT);
3199 createEReference(expenseEClass, EXPENSE__FROM_AGENT);
3200 createEReference(expenseEClass, EXPENSE__INCOME);
3201 createEAttribute(expenseEClass, EXPENSE__ID4);
3202 createEReference(expenseEClass, EXPENSE__BENEFICIARY);
3203
3204 dependentEClass = createEClass(DEPENDENT);
3205 createEAttribute(dependentEClass, DEPENDENT__DEPENDENT_TYPE);
3206 createEReference(dependentEClass, DEPENDENT__RESPONSIBLE_PERSON);
3207 createEAttribute(dependentEClass, DEPENDENT__CONTINUED_STUDIES);
3208 createEReference(dependentEClass, DEPENDENT__ALLOWANCES);
3209 createEReference(dependentEClass, DEPENDENT__HOUSEHOLD);
3210 createEReference(dependentEClass, DEPENDENT__FROM_AGENT);
3211 createEReference(dependentEClass, DEPENDENT__EXPENSE);
3212
3213 external_AllowanceEClass = createEClass(EXTERNAL_ALLOWANCE);
3214 createEAttribute(external_AllowanceEClass, EXTERNAL_ALLOWANCE__GRANTOR);
3215 createEAttribute(external_AllowanceEClass, EXTERNAL_ALLOWANCE__STARTING_YEAR);
3216 createEAttribute(external_AllowanceEClass, EXTERNAL_ALLOWANCE__ENDING_YEAR);
3217 createEReference(external_AllowanceEClass, EXTERNAL_ALLOWANCE__RECIVER);
3218 createEAttribute(external_AllowanceEClass, EXTERNAL_ALLOWANCE__ID5);
3219 createEReference(external_AllowanceEClass, EXTERNAL_ALLOWANCE__PERSON);
3220
3221 householdEClass = createEClass(HOUSEHOLD);
3222 createEReference(householdEClass, HOUSEHOLD__PARENTS);
3223 createEAttribute(householdEClass, HOUSEHOLD__ID1);
3224 createEReference(householdEClass, HOUSEHOLD__CHILDREN);
3225
3226 legal_Union_RecordEClass = createEClass(LEGAL_UNION_RECORD);
3227 createEAttribute(legal_Union_RecordEClass, LEGAL_UNION_RECORD__START_YEAR);
3228 createEAttribute(legal_Union_RecordEClass, LEGAL_UNION_RECORD__END_YEAR);
3229 createEAttribute(legal_Union_RecordEClass, LEGAL_UNION_RECORD__SEPARATION_CAUSE);
3230 createEReference(legal_Union_RecordEClass, LEGAL_UNION_RECORD__INDIVIDUAL_A);
3231 createEReference(legal_Union_RecordEClass, LEGAL_UNION_RECORD__INDIVIDUAL_B);
3232 createEReference(legal_Union_RecordEClass, LEGAL_UNION_RECORD__PROPERTIES);
3233 createEAttribute(legal_Union_RecordEClass, LEGAL_UNION_RECORD__MUTUAL_AGREEMENT);
3234 createEAttribute(legal_Union_RecordEClass, LEGAL_UNION_RECORD__ID9);
3235 createEReference(legal_Union_RecordEClass, LEGAL_UNION_RECORD__HOUSEHOLD);
3236
3237 tax_PropertyEClass = createEClass(TAX_PROPERTY);
3238 createEAttribute(tax_PropertyEClass, TAX_PROPERTY__STARTING_YEAR);
3239 createEAttribute(tax_PropertyEClass, TAX_PROPERTY__ID10);
3240 createEReference(tax_PropertyEClass, TAX_PROPERTY__UNION_RECORD);
3241
3242 tax_CaseEClass = createEClass(TAX_CASE);
3243
3244 fromAgentEClass = createEClass(FROM_AGENT);
3245 createEReference(fromAgentEClass, FROM_AGENT__TAX_PAYER);
3246 createEAttribute(fromAgentEClass, FROM_AGENT__IS_DEPENDENT_ELIGIBLE_FOR_CE_NOT_IN_HOUSHOLD_CHILDREN_CARE);
3247 createEReference(fromAgentEClass, FROM_AGENT__EXPENSE);
3248 createEAttribute(fromAgentEClass, FROM_AGENT__IS_ELIGIBLE_DEBT);
3249 createEReference(fromAgentEClass, FROM_AGENT__DEPENDENT);
3250
3251 incomeEClass = createEClass(INCOME);
3252 createEAttribute(incomeEClass, INCOME__INCOME_AMOUNT);
3253 createEReference(incomeEClass, INCOME__INCOME_TYPE);
3254 createEReference(incomeEClass, INCOME__TAX_CARD);
3255 createEAttribute(incomeEClass, INCOME__TAX_LIABILITY);
3256 createEReference(incomeEClass, INCOME__TAX_PAYER);
3257 createEReference(incomeEClass, INCOME__DETAILS);
3258 createEAttribute(incomeEClass, INCOME__NUM);
3259 createEReference(incomeEClass, INCOME__EXPENSES);
3260
3261 income_TypeEClass = createEClass(INCOME_TYPE);
3262 createEAttribute(income_TypeEClass, INCOME_TYPE__ID8);
3263 createEReference(income_TypeEClass, INCOME_TYPE__INCOME);
3264
3265 tax_CardEClass = createEClass(TAX_CARD);
3266 createEAttribute(tax_CardEClass, TAX_CARD__CARD_IDENTIFIER);
3267 createEAttribute(tax_CardEClass, TAX_CARD__TAX_OFFICE);
3268 createEAttribute(tax_CardEClass, TAX_CARD__PERCENTAGE_OF_WITHOLDING);
3269 createEAttribute(tax_CardEClass, TAX_CARD__TAX_PAYERS_NAME_SURNAME);
3270 createEAttribute(tax_CardEClass, TAX_CARD__TAX_PAYERS_PARTNER_NAME_SURNAME);
3271 createEReference(tax_CardEClass, TAX_CARD__TAX_PAYERS_ADDRESS);
3272 createEAttribute(tax_CardEClass, TAX_CARD__JOBS_EMPLOYER_SS_NO);
3273 createEAttribute(tax_CardEClass, TAX_CARD__JOBS_EMPLOYERS_NAME);
3274 createEAttribute(tax_CardEClass, TAX_CARD__JOBS_ACTIVITY_TYPE);
3275 createEAttribute(tax_CardEClass, TAX_CARD__JOBS_PLACE_OF_WORK);
3276 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_FD_DAILY);
3277 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_FD_MONTHLY);
3278 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_AC_DAILY);
3279 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_AC_MONTHLY);
3280 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_AC_YEARLY);
3281 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_CE_DAILY);
3282 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_CE_MONTHLY);
3283 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_CE_YEARLY);
3284 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_DS_DAILY);
3285 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_DS_MONTHLY);
3286 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_FO_DAILY);
3287 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_FO_MONTHLY);
3288 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_FO_YEARLY);
3289 createEAttribute(tax_CardEClass, TAX_CARD__CREDIT_CIS_DAILY);
3290 createEAttribute(tax_CardEClass, TAX_CARD__CREDIT_CIS_MONTHLY);
3291 createEAttribute(tax_CardEClass, TAX_CARD__CREDIT_CIM_DAILY);
3292 createEAttribute(tax_CardEClass, TAX_CARD__VALIDITY);
3293 createEReference(tax_CardEClass, TAX_CARD__INCOME_TAX_CREDIT);
3294 createEReference(tax_CardEClass, TAX_CARD__PREVIOUS);
3295 createEReference(tax_CardEClass, TAX_CARD__CURRENT_TAX_CARD);
3296 createEAttribute(tax_CardEClass, TAX_CARD__CREDIT_CIM_YEARLY);
3297 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_DS_ALIMONY_YEARLY);
3298 createEAttribute(tax_CardEClass, TAX_CARD__DEDUCTION_DS_DEBT_YEARLY);
3299 createEReference(tax_CardEClass, TAX_CARD__INCOME);
3300
3301 income_Tax_CreditEClass = createEClass(INCOME_TAX_CREDIT);
3302 createEAttribute(income_Tax_CreditEClass, INCOME_TAX_CREDIT__GRANTED_BY);
3303 createEReference(income_Tax_CreditEClass, INCOME_TAX_CREDIT__TAX_PAYER);
3304 createEAttribute(income_Tax_CreditEClass, INCOME_TAX_CREDIT__TAX_YEAR);
3305 createEAttribute(income_Tax_CreditEClass, INCOME_TAX_CREDIT__YEARLY);
3306 createEAttribute(income_Tax_CreditEClass, INCOME_TAX_CREDIT__MONTHLY);
3307 createEAttribute(income_Tax_CreditEClass, INCOME_TAX_CREDIT__DAILY);
3308 createEAttribute(income_Tax_CreditEClass, INCOME_TAX_CREDIT__ID7);
3309 createEReference(income_Tax_CreditEClass, INCOME_TAX_CREDIT__TAXATION_FRAME);
3310
3311 income_DetailEClass = createEClass(INCOME_DETAIL);
3312 createEAttribute(income_DetailEClass, INCOME_DETAIL__AMOUNT);
3313 createEAttribute(income_DetailEClass, INCOME_DETAIL__IS_WORKED);
3314 createEAttribute(income_DetailEClass, INCOME_DETAIL__DISTANCE);
3315 createEAttribute(income_DetailEClass, INCOME_DETAIL__WORKED_DAYS);
3316 createEAttribute(income_DetailEClass, INCOME_DETAIL__IS_CONTRIBUTING_CNS);
3317 createEAttribute(income_DetailEClass, INCOME_DETAIL__ID5);
3318 createEReference(income_DetailEClass, INCOME_DETAIL__INCOME);
3319
3320 fromLawEClass = createEClass(FROM_LAW);
3321 createEAttribute(fromLawEClass, FROM_LAW__ID);
3322 createEReference(fromLawEClass, FROM_LAW__TAX_PAYER);
3323
3324 fiscal_AddressEClass = createEClass(FISCAL_ADDRESS);
3325
3326 habitual_AddressEClass = createEClass(HABITUAL_ADDRESS);
3327
3328 marriage_RecordEClass = createEClass(MARRIAGE_RECORD);
3329
3330 non_Resident_Tax_PayerEClass = createEClass(NON_RESIDENT_TAX_PAYER);
3331 createEAttribute(non_Resident_Tax_PayerEClass, NON_RESIDENT_TAX_PAYER__IS_ASSIMILATED_TO_RESIDENT);
3332
3333 partnership_RecordEClass = createEClass(PARTNERSHIP_RECORD);
3334
3335 resident_Tax_PayerEClass = createEClass(RESIDENT_TAX_PAYER);
3336
3337 trade_and_Business_IncomeEClass = createEClass(TRADE_AND_BUSINESS_INCOME);
3338
3339 agriculture_and_Forestry_IncomeEClass = createEClass(AGRICULTURE_AND_FORESTRY_INCOME);
3340
3341 pensions_and_Annuities_IncomeEClass = createEClass(PENSIONS_AND_ANNUITIES_INCOME);
3342 createEAttribute(pensions_and_Annuities_IncomeEClass, PENSIONS_AND_ANNUITIES_INCOME__OCCASIONAL_PAYEMENT);
3343
3344 capital_and_Investments_IncomeEClass = createEClass(CAPITAL_AND_INVESTMENTS_INCOME);
3345
3346 employment_IncomeEClass = createEClass(EMPLOYMENT_INCOME);
3347
3348 rentals_and_Leases_IncomeEClass = createEClass(RENTALS_AND_LEASES_INCOME);
3349 createEAttribute(rentals_and_Leases_IncomeEClass, RENTALS_AND_LEASES_INCOME__IS_PERIODIC);
3350
3351 foreign_IncomeEClass = createEClass(FOREIGN_INCOME);
3352
3353 local_IncomeEClass = createEClass(LOCAL_INCOME);
3354
3355 cimEClass = createEClass(CIM);
3356
3357 cipEClass = createEClass(CIP);
3358
3359 cisEClass = createEClass(CIS);
3360
3361 fdEClass = createEClass(FD);
3362 createEAttribute(fdEClass, FD__DISTANCE_DECLARED_IN_JANUARY);
3363
3364 professional_Expenses_DeductionEClass = createEClass(PROFESSIONAL_EXPENSES_DEDUCTION);
3365
3366 foEClass = createEClass(FO);
3367
3368 dS_for_Permanent_ExpenseEClass = createEClass(DS_FOR_PERMANENT_EXPENSE);
3369 createEAttribute(dS_for_Permanent_ExpenseEClass, DS_FOR_PERMANENT_EXPENSE__PERMANENT_EXPENSE_CATEGORY);
3370
3371 dsEClass = createEClass(DS);
3372 createEAttribute(dsEClass, DS__MAXIMUM_DEDUCTIBLE_AMOUNT);
3373 createEAttribute(dsEClass, DS__ID3);
3374
3375 dS_for_Interest_ExpenseEClass = createEClass(DS_FOR_INTEREST_EXPENSE);
3376
3377 dS_for_Health_and_Pension_InsuranceEClass = createEClass(DS_FOR_HEALTH_AND_PENSION_INSURANCE);
3378 createEAttribute(dS_for_Health_and_Pension_InsuranceEClass, DS_FOR_HEALTH_AND_PENSION_INSURANCE__INSURANCE_CATEGORY);
3379
3380 dS_for_Private_Insurance_and_PlanEClass = createEClass(DS_FOR_PRIVATE_INSURANCE_AND_PLAN);
3381 createEAttribute(dS_for_Private_Insurance_and_PlanEClass, DS_FOR_PRIVATE_INSURANCE_AND_PLAN__PRIVATE_INSURANCE_AND_PLAN_CATEGORY);
3382
3383 dS_for_Loss_CarryforwardEClass = createEClass(DS_FOR_LOSS_CARRYFORWARD);
3384
3385 dS_for_DonationEClass = createEClass(DS_FOR_DONATION);
3386
3387 permanent_ExpenseEClass = createEClass(PERMANENT_EXPENSE);
3388 createEAttribute(permanent_ExpenseEClass, PERMANENT_EXPENSE__CATEGORY);
3389
3390 special_Expense_DSEClass = createEClass(SPECIAL_EXPENSE_DS);
3391
3392 interest_ExpenseEClass = createEClass(INTEREST_EXPENSE);
3393
3394 private_Insurance_and_PlanEClass = createEClass(PRIVATE_INSURANCE_AND_PLAN);
3395 createEAttribute(private_Insurance_and_PlanEClass, PRIVATE_INSURANCE_AND_PLAN__CATEGORY);
3396 createEAttribute(private_Insurance_and_PlanEClass, PRIVATE_INSURANCE_AND_PLAN__DURATION_OF_CONTRACT);
3397
3398 health_and_Pension_InsuranceEClass = createEClass(HEALTH_AND_PENSION_INSURANCE);
3399 createEAttribute(health_and_Pension_InsuranceEClass, HEALTH_AND_PENSION_INSURANCE__CATEGORY);
3400 createEAttribute(health_and_Pension_InsuranceEClass, HEALTH_AND_PENSION_INSURANCE__IS_RELATED_TO_ADDITIONAL_SALARY);
3401
3402 donationEClass = createEClass(DONATION);
3403 createEAttribute(donationEClass, DONATION__BENEFICIARY1);
3404 createEAttribute(donationEClass, DONATION__IS_DONATION_REPORTED);
3405
3406 loss_CarryforwardEClass = createEClass(LOSS_CARRYFORWARD);
3407
3408 spousal_Expense_ACEClass = createEClass(SPOUSAL_EXPENSE_AC);
3409
3410 extraordinary_Expense_CEEClass = createEClass(EXTRAORDINARY_EXPENSE_CE);
3411 createEAttribute(extraordinary_Expense_CEEClass, EXTRAORDINARY_EXPENSE_CE__THRESHOLDED_DEDUCTION_PERCENTAGE);
3412 createEAttribute(extraordinary_Expense_CEEClass, EXTRAORDINARY_EXPENSE_CE__CE_TYPE);
3413
3414 travel_Expense_FDEClass = createEClass(TRAVEL_EXPENSE_FD);
3415
3416 professional_ExpenseEClass = createEClass(PROFESSIONAL_EXPENSE);
3417
3418 miscellaneous_Expense_FOEClass = createEClass(MISCELLANEOUS_EXPENSE_FO);
3419
3420 resourceEClass = createEClass(RESOURCE);
3421 createEReference(resourceEClass, RESOURCE__CONTAINS);
3422
3423 rootEClass = createEClass(ROOT);
3424
3425 // Create enums
3426 grantorEEnum = createEEnum(GRANTOR);
3427 disability_TypesEEnum = createEEnum(DISABILITY_TYPES);
3428 countryEEnum = createEEnum(COUNTRY);
3429 tax_OfficeEEnum = createEEnum(TAX_OFFICE);
3430 tax_Class_CategoryEEnum = createEEnum(TAX_CLASS_CATEGORY);
3431 job_ActivityEEnum = createEEnum(JOB_ACTIVITY);
3432 townEEnum = createEEnum(TOWN);
3433 cE_TypeEEnum = createEEnum(CE_TYPE);
3434 expense_PurposeEEnum = createEEnum(EXPENSE_PURPOSE);
3435 dependent_TypeEEnum = createEEnum(DEPENDENT_TYPE);
3436 separation_CausesEEnum = createEEnum(SEPARATION_CAUSES);
3437 category_of_Permanent_ExpenseEEnum = createEEnum(CATEGORY_OF_PERMANENT_EXPENSE);
3438 category_of_Health_and_Pension_InsurancesEEnum = createEEnum(CATEGORY_OF_HEALTH_AND_PENSION_INSURANCES);
3439 category_of_Private_Insurance_and_PlanEEnum = createEEnum(CATEGORY_OF_PRIVATE_INSURANCE_AND_PLAN);
3440 legal_Union_TypesEEnum = createEEnum(LEGAL_UNION_TYPES);
3441 }
3442
3443 /**
3444 * <!-- begin-user-doc -->
3445 * <!-- end-user-doc -->
3446 * @generated
3447 */
3448 private boolean isInitialized = false;
3449
3450 /**
3451 * Complete the initialization of the package and its meta-model. This
3452 * method is guarded to have no affect on any invocation but its first.
3453 * <!-- begin-user-doc -->
3454 * <!-- end-user-doc -->
3455 * @generated
3456 */
3457 public void initializePackageContents() {
3458 if (isInitialized) return;
3459 isInitialized = true;
3460
3461 // Initialize package
3462 setName(eNAME);
3463 setNsPrefix(eNS_PREFIX);
3464 setNsURI(eNS_URI);
3465
3466 // Create type parameters
3467
3468 // Set bounds for type parameters
3469
3470 // Add supertypes to classes
3471 tax_PayerEClass.getESuperTypes().add(this.getPhysical_Person());
3472 tax_PayerEClass.getESuperTypes().add(this.getTax_Case());
3473 tax_PayerEClass.getESuperTypes().add(this.getRoot());
3474 addressEClass.getESuperTypes().add(this.getRoot());
3475 dependentEClass.getESuperTypes().add(this.getPhysical_Person());
3476 householdEClass.getESuperTypes().add(this.getTax_Case());
3477 tax_CaseEClass.getESuperTypes().add(this.getRoot());
3478 income_Tax_CreditEClass.getESuperTypes().add(this.getRoot());
3479 fiscal_AddressEClass.getESuperTypes().add(this.getAddress());
3480 habitual_AddressEClass.getESuperTypes().add(this.getAddress());
3481 marriage_RecordEClass.getESuperTypes().add(this.getLegal_Union_Record());
3482 non_Resident_Tax_PayerEClass.getESuperTypes().add(this.getTax_Payer());
3483 partnership_RecordEClass.getESuperTypes().add(this.getLegal_Union_Record());
3484 resident_Tax_PayerEClass.getESuperTypes().add(this.getTax_Payer());
3485 trade_and_Business_IncomeEClass.getESuperTypes().add(this.getIncome_Type());
3486 agriculture_and_Forestry_IncomeEClass.getESuperTypes().add(this.getIncome_Type());
3487 pensions_and_Annuities_IncomeEClass.getESuperTypes().add(this.getIncome_Type());
3488 capital_and_Investments_IncomeEClass.getESuperTypes().add(this.getIncome_Type());
3489 employment_IncomeEClass.getESuperTypes().add(this.getIncome_Type());
3490 rentals_and_Leases_IncomeEClass.getESuperTypes().add(this.getIncome_Type());
3491 foreign_IncomeEClass.getESuperTypes().add(this.getIncome());
3492 local_IncomeEClass.getESuperTypes().add(this.getIncome());
3493 cimEClass.getESuperTypes().add(this.getIncome_Tax_Credit());
3494 cipEClass.getESuperTypes().add(this.getIncome_Tax_Credit());
3495 cisEClass.getESuperTypes().add(this.getIncome_Tax_Credit());
3496 fdEClass.getESuperTypes().add(this.getProfessional_Expenses_Deduction());
3497 professional_Expenses_DeductionEClass.getESuperTypes().add(this.getRoot());
3498 foEClass.getESuperTypes().add(this.getProfessional_Expenses_Deduction());
3499 dS_for_Permanent_ExpenseEClass.getESuperTypes().add(this.getDS());
3500 dsEClass.getESuperTypes().add(this.getRoot());
3501 dS_for_Interest_ExpenseEClass.getESuperTypes().add(this.getDS());
3502 dS_for_Health_and_Pension_InsuranceEClass.getESuperTypes().add(this.getDS());
3503 dS_for_Private_Insurance_and_PlanEClass.getESuperTypes().add(this.getDS());
3504 dS_for_Loss_CarryforwardEClass.getESuperTypes().add(this.getDS());
3505 dS_for_DonationEClass.getESuperTypes().add(this.getDS());
3506 permanent_ExpenseEClass.getESuperTypes().add(this.getSpecial_Expense_DS());
3507 special_Expense_DSEClass.getESuperTypes().add(this.getExpense());
3508 interest_ExpenseEClass.getESuperTypes().add(this.getSpecial_Expense_DS());
3509 private_Insurance_and_PlanEClass.getESuperTypes().add(this.getSpecial_Expense_DS());
3510 health_and_Pension_InsuranceEClass.getESuperTypes().add(this.getSpecial_Expense_DS());
3511 donationEClass.getESuperTypes().add(this.getSpecial_Expense_DS());
3512 loss_CarryforwardEClass.getESuperTypes().add(this.getSpecial_Expense_DS());
3513 spousal_Expense_ACEClass.getESuperTypes().add(this.getExpense());
3514 extraordinary_Expense_CEEClass.getESuperTypes().add(this.getExpense());
3515 travel_Expense_FDEClass.getESuperTypes().add(this.getProfessional_Expense());
3516 professional_ExpenseEClass.getESuperTypes().add(this.getExpense());
3517 miscellaneous_Expense_FOEClass.getESuperTypes().add(this.getProfessional_Expense());
3518
3519 // Initialize classes, features, and operations; add parameters
3520 initEClass(constantsEClass, Constants.class, "Constants", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3521 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);
3522 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);
3523 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);
3524 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);
3525 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);
3526 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);
3527 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);
3528 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);
3529 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);
3530 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);
3531 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);
3532 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);
3533 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);
3534 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);
3535 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);
3536 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);
3537 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);
3538 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);
3539 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);
3540 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);
3541 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);
3542 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);
3543 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);
3544 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);
3545 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);
3546
3547 initEClass(income_TaxEClass, Income_Tax.class, "Income_Tax", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3548 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);
3549 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);
3550 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);
3551 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);
3552
3553 initEClass(tax_PayerEClass, Tax_Payer.class, "Tax_Payer", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3554 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);
3555 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);
3556 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);
3557 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);
3558
3559 initEClass(physical_PersonEClass, Physical_Person.class, "Physical_Person", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3560 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);
3561 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);
3562 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);
3563 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);
3564 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);
3565 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);
3566 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);
3567 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);
3568 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);
3569
3570 initEClass(addressEClass, Address.class, "Address", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3571 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);
3572 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);
3573 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);
3574 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);
3575 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);
3576 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);
3577
3578 initEClass(expenseEClass, Expense.class, "Expense", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3579 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);
3580 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);
3581 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);
3582 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);
3583 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);
3584 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);
3585 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);
3586
3587 initEClass(dependentEClass, Dependent.class, "Dependent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3588 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);
3589 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);
3590 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);
3591 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);
3592 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);
3593 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);
3594 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);
3595
3596 initEClass(external_AllowanceEClass, External_Allowance.class, "External_Allowance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3597 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);
3598 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);
3599 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);
3600 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);
3601 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);
3602 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);
3603
3604 initEClass(householdEClass, Household.class, "Household", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3605 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);
3606 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);
3607 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);
3608
3609 initEClass(legal_Union_RecordEClass, Legal_Union_Record.class, "Legal_Union_Record", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3610 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);
3611 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);
3612 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);
3613 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);
3614 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);
3615 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);
3616 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);
3617 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);
3618 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);
3619
3620 initEClass(tax_PropertyEClass, Tax_Property.class, "Tax_Property", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3621 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);
3622 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);
3623 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);
3624
3625 initEClass(tax_CaseEClass, Tax_Case.class, "Tax_Case", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3626
3627 initEClass(fromAgentEClass, FromAgent.class, "FromAgent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3628 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);
3629 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);
3630 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);
3631 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);
3632 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);
3633
3634 initEClass(incomeEClass, Income.class, "Income", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3635 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);
3636 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);
3637 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);
3638 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);
3639 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);
3640 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);
3641 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);
3642 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);
3643
3644 initEClass(income_TypeEClass, Income_Type.class, "Income_Type", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3645 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);
3646 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);
3647
3648 initEClass(tax_CardEClass, Tax_Card.class, "Tax_Card", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3649 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);
3650 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);
3651 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);
3652 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);
3653 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);
3654 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);
3655 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);
3656 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);
3657 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);
3658 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);
3659 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);
3660 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);
3661 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);
3662 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);
3663 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);
3664 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);
3665 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);
3666 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);
3667 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);
3668 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);
3669 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);
3670 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);
3671 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);
3672 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);
3673 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);
3674 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);
3675 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);
3676 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);
3677 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);
3678 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);
3679 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);
3680 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);
3681 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);
3682 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);
3683
3684 initEClass(income_Tax_CreditEClass, Income_Tax_Credit.class, "Income_Tax_Credit", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3685 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);
3686 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);
3687 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);
3688 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);
3689 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);
3690 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);
3691 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);
3692 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);
3693
3694 initEClass(income_DetailEClass, Income_Detail.class, "Income_Detail", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3695 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);
3696 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);
3697 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);
3698 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);
3699 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);
3700 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);
3701 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);
3702
3703 initEClass(fromLawEClass, FromLaw.class, "FromLaw", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3704 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);
3705 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);
3706
3707 initEClass(fiscal_AddressEClass, Fiscal_Address.class, "Fiscal_Address", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3708
3709 initEClass(habitual_AddressEClass, Habitual_Address.class, "Habitual_Address", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3710
3711 initEClass(marriage_RecordEClass, Marriage_Record.class, "Marriage_Record", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3712
3713 initEClass(non_Resident_Tax_PayerEClass, Non_Resident_Tax_Payer.class, "Non_Resident_Tax_Payer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3714 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);
3715
3716 initEClass(partnership_RecordEClass, Partnership_Record.class, "Partnership_Record", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3717
3718 initEClass(resident_Tax_PayerEClass, Resident_Tax_Payer.class, "Resident_Tax_Payer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3719
3720 initEClass(trade_and_Business_IncomeEClass, Trade_and_Business_Income.class, "Trade_and_Business_Income", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3721
3722 initEClass(agriculture_and_Forestry_IncomeEClass, Agriculture_and_Forestry_Income.class, "Agriculture_and_Forestry_Income", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3723
3724 initEClass(pensions_and_Annuities_IncomeEClass, Pensions_and_Annuities_Income.class, "Pensions_and_Annuities_Income", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3725 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);
3726
3727 initEClass(capital_and_Investments_IncomeEClass, Capital_and_Investments_Income.class, "Capital_and_Investments_Income", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3728
3729 initEClass(employment_IncomeEClass, Employment_Income.class, "Employment_Income", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3730
3731 initEClass(rentals_and_Leases_IncomeEClass, Rentals_and_Leases_Income.class, "Rentals_and_Leases_Income", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3732 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);
3733
3734 initEClass(foreign_IncomeEClass, Foreign_Income.class, "Foreign_Income", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3735
3736 initEClass(local_IncomeEClass, Local_Income.class, "Local_Income", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3737
3738 initEClass(cimEClass, TaxationWithRoot.CIM.class, "CIM", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3739
3740 initEClass(cipEClass, TaxationWithRoot.CIP.class, "CIP", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3741
3742 initEClass(cisEClass, TaxationWithRoot.CIS.class, "CIS", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3743
3744 initEClass(fdEClass, TaxationWithRoot.FD.class, "FD", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3745 initEAttribute(getFD_Distance_declared_in_january(), ecorePackage.getEDouble(), "distance_declared_in_january", null, 1, 1, TaxationWithRoot.FD.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3746
3747 initEClass(professional_Expenses_DeductionEClass, Professional_Expenses_Deduction.class, "Professional_Expenses_Deduction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3748
3749 initEClass(foEClass, TaxationWithRoot.FO.class, "FO", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3750
3751 initEClass(dS_for_Permanent_ExpenseEClass, DS_for_Permanent_Expense.class, "DS_for_Permanent_Expense", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3752 initEAttribute(getDS_for_Permanent_Expense_Permanent_expense_category(), this.getCategory_of_Permanent_Expense(), "permanent_expense_category", null, 1, 1, DS_for_Permanent_Expense.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3753
3754 initEClass(dsEClass, TaxationWithRoot.DS.class, "DS", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3755 initEAttribute(getDS_Maximum_deductible_amount(), ecorePackage.getEDouble(), "maximum_deductible_amount", null, 1, 1, TaxationWithRoot.DS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3756 initEAttribute(getDS_Id3(), ecorePackage.getEString(), "id3", null, 1, 1, TaxationWithRoot.DS.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
3757
3758 initEClass(dS_for_Interest_ExpenseEClass, DS_for_Interest_Expense.class, "DS_for_Interest_Expense", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3759
3760 initEClass(dS_for_Health_and_Pension_InsuranceEClass, DS_for_Health_and_Pension_Insurance.class, "DS_for_Health_and_Pension_Insurance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3761 initEAttribute(getDS_for_Health_and_Pension_Insurance_Insurance_category(), this.getCategory_of_Health_and_Pension_Insurances(), "insurance_category", null, 1, 1, DS_for_Health_and_Pension_Insurance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3762
3763 initEClass(dS_for_Private_Insurance_and_PlanEClass, DS_for_Private_Insurance_and_Plan.class, "DS_for_Private_Insurance_and_Plan", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3764 initEAttribute(getDS_for_Private_Insurance_and_Plan_Private_insurance_and_plan_category(), this.getCategory_of_Private_Insurance_and_Plan(), "private_insurance_and_plan_category", null, 1, 1, DS_for_Private_Insurance_and_Plan.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
3765
3766 initEClass(dS_for_Loss_CarryforwardEClass, DS_for_Loss_Carryforward.class, "DS_for_Loss_Carryforward", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3767
3768 initEClass(dS_for_DonationEClass, DS_for_Donation.class, "DS_for_Donation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3769
3770 initEClass(permanent_ExpenseEClass, Permanent_Expense.class, "Permanent_Expense", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3771 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);
3772
3773 initEClass(special_Expense_DSEClass, Special_Expense_DS.class, "Special_Expense_DS", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3774
3775 initEClass(interest_ExpenseEClass, Interest_Expense.class, "Interest_Expense", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3776
3777 initEClass(private_Insurance_and_PlanEClass, Private_Insurance_and_Plan.class, "Private_Insurance_and_Plan", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3778 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);
3779 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);
3780
3781 initEClass(health_and_Pension_InsuranceEClass, Health_and_Pension_Insurance.class, "Health_and_Pension_Insurance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3782 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);
3783 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);
3784
3785 initEClass(donationEClass, Donation.class, "Donation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3786 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);
3787 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);
3788
3789 initEClass(loss_CarryforwardEClass, Loss_Carryforward.class, "Loss_Carryforward", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3790
3791 initEClass(spousal_Expense_ACEClass, Spousal_Expense_AC.class, "Spousal_Expense_AC", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3792
3793 initEClass(extraordinary_Expense_CEEClass, Extraordinary_Expense_CE.class, "Extraordinary_Expense_CE", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3794 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);
3795 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);
3796
3797 initEClass(travel_Expense_FDEClass, Travel_Expense_FD.class, "Travel_Expense_FD", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3798
3799 initEClass(professional_ExpenseEClass, Professional_Expense.class, "Professional_Expense", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3800
3801 initEClass(miscellaneous_Expense_FOEClass, Miscellaneous_Expense_FO.class, "Miscellaneous_Expense_FO", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3802
3803 initEClass(resourceEClass, Resource.class, "Resource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3804 initEReference(getResource_Contains(), this.getRoot(), 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);
3805
3806 initEClass(rootEClass, Root.class, "Root", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
3807
3808 // Initialize enums and add enum literals
3809 initEEnum(grantorEEnum, Grantor.class, "Grantor");
3810 addEEnumLiteral(grantorEEnum, Grantor.WWW);
3811 addEEnumLiteral(grantorEEnum, Grantor.EMPLOYER);
3812 addEEnumLiteral(grantorEEnum, Grantor.MMM);
3813 addEEnumLiteral(grantorEEnum, Grantor.UUU);
3814 addEEnumLiteral(grantorEEnum, Grantor.YYY);
3815 addEEnumLiteral(grantorEEnum, Grantor.OOO);
3816
3817 initEEnum(disability_TypesEEnum, Disability_Types.class, "Disability_Types");
3818 addEEnumLiteral(disability_TypesEEnum, Disability_Types.BEUG);
3819 addEEnumLiteral(disability_TypesEEnum, Disability_Types.NONE);
3820 addEEnumLiteral(disability_TypesEEnum, Disability_Types.A);
3821 addEEnumLiteral(disability_TypesEEnum, Disability_Types.B);
3822 addEEnumLiteral(disability_TypesEEnum, Disability_Types.C);
3823 addEEnumLiteral(disability_TypesEEnum, Disability_Types.D);
3824 addEEnumLiteral(disability_TypesEEnum, Disability_Types.E);
3825 addEEnumLiteral(disability_TypesEEnum, Disability_Types.OTHER);
3826
3827 initEEnum(countryEEnum, Country.class, "Country");
3828 addEEnumLiteral(countryEEnum, Country.ZZ);
3829 addEEnumLiteral(countryEEnum, Country.FF);
3830 addEEnumLiteral(countryEEnum, Country.BB);
3831 addEEnumLiteral(countryEEnum, Country.DD);
3832 addEEnumLiteral(countryEEnum, Country.NN);
3833 addEEnumLiteral(countryEEnum, Country.OTHER);
3834
3835 initEEnum(tax_OfficeEEnum, Tax_Office.class, "Tax_Office");
3836 addEEnumLiteral(tax_OfficeEEnum, Tax_Office.RTS_2);
3837 addEEnumLiteral(tax_OfficeEEnum, Tax_Office.RTS_3);
3838 addEEnumLiteral(tax_OfficeEEnum, Tax_Office.RTS_4);
3839 addEEnumLiteral(tax_OfficeEEnum, Tax_Office.RTS_5);
3840
3841 initEEnum(tax_Class_CategoryEEnum, Tax_Class_Category.class, "Tax_Class_Category");
3842 addEEnumLiteral(tax_Class_CategoryEEnum, Tax_Class_Category.ONE);
3843 addEEnumLiteral(tax_Class_CategoryEEnum, Tax_Class_Category.ONE_A);
3844 addEEnumLiteral(tax_Class_CategoryEEnum, Tax_Class_Category.TWO);
3845
3846 initEEnum(job_ActivityEEnum, Job_Activity.class, "Job_Activity");
3847 addEEnumLiteral(job_ActivityEEnum, Job_Activity.SALARY);
3848 addEEnumLiteral(job_ActivityEEnum, Job_Activity.PENSION);
3849 addEEnumLiteral(job_ActivityEEnum, Job_Activity.ANNUITY);
3850
3851 initEEnum(townEEnum, Town.class, "Town");
3852 addEEnumLiteral(townEEnum, Town.LL);
3853 addEEnumLiteral(townEEnum, Town.BB);
3854 addEEnumLiteral(townEEnum, Town.SS);
3855 addEEnumLiteral(townEEnum, Town.TT);
3856 addEEnumLiteral(townEEnum, Town.OTHER);
3857
3858 initEEnum(cE_TypeEEnum, CE_Type.class, "CE_Type");
3859 addEEnumLiteral(cE_TypeEEnum, CE_Type.INALIDITY_AND_INFIRMITY);
3860 addEEnumLiteral(cE_TypeEEnum, CE_Type.DEPENDENCE_AND_CARE_EXCLUDING_CHLIDREN_NOT_PART_OF_HOUSEHOLD);
3861 addEEnumLiteral(cE_TypeEEnum, CE_Type.CARE_FOR_CHILDREN_NOT_BEING_PART_OF_HOUSEHOLD);
3862
3863 initEEnum(expense_PurposeEEnum, Expense_Purpose.class, "Expense_Purpose");
3864 addEEnumLiteral(expense_PurposeEEnum, Expense_Purpose.HOUSE_CARE);
3865 addEEnumLiteral(expense_PurposeEEnum, Expense_Purpose.CHILD_CARE);
3866 addEEnumLiteral(expense_PurposeEEnum, Expense_Purpose.DEPENDENCE_CARE);
3867 addEEnumLiteral(expense_PurposeEEnum, Expense_Purpose.OTHER);
3868 addEEnumLiteral(expense_PurposeEEnum, Expense_Purpose.ALIMONY);
3869 addEEnumLiteral(expense_PurposeEEnum, Expense_Purpose.RECURRENT_DEPT);
3870
3871 initEEnum(dependent_TypeEEnum, Dependent_Type.class, "Dependent_Type");
3872 addEEnumLiteral(dependent_TypeEEnum, Dependent_Type.CHILD);
3873 addEEnumLiteral(dependent_TypeEEnum, Dependent_Type.SPOUSE);
3874 addEEnumLiteral(dependent_TypeEEnum, Dependent_Type.RELATIVE);
3875 addEEnumLiteral(dependent_TypeEEnum, Dependent_Type.OTHER_FAMILY_MEMBER);
3876 addEEnumLiteral(dependent_TypeEEnum, Dependent_Type.NOT_OWN_CHILD);
3877
3878 initEEnum(separation_CausesEEnum, Separation_Causes.class, "Separation_Causes");
3879 addEEnumLiteral(separation_CausesEEnum, Separation_Causes.NONE);
3880 addEEnumLiteral(separation_CausesEEnum, Separation_Causes.DIVORCE);
3881 addEEnumLiteral(separation_CausesEEnum, Separation_Causes.SEPARATION_DE_FAIT);
3882 addEEnumLiteral(separation_CausesEEnum, Separation_Causes.SEPARATION_BY_COURT);
3883
3884 initEEnum(category_of_Permanent_ExpenseEEnum, Category_of_Permanent_Expense.class, "Category_of_Permanent_Expense");
3885 addEEnumLiteral(category_of_Permanent_ExpenseEEnum, Category_of_Permanent_Expense.MISCELLANEOUS_DEBT);
3886 addEEnumLiteral(category_of_Permanent_ExpenseEEnum, Category_of_Permanent_Expense.ALIMONY);
3887
3888 initEEnum(category_of_Health_and_Pension_InsurancesEEnum, Category_of_Health_and_Pension_Insurances.class, "Category_of_Health_and_Pension_Insurances");
3889 addEEnumLiteral(category_of_Health_and_Pension_InsurancesEEnum, Category_of_Health_and_Pension_Insurances.MANDATORY_HEALTH_AND_PENSION_INSURANCE);
3890 addEEnumLiteral(category_of_Health_and_Pension_InsurancesEEnum, Category_of_Health_and_Pension_Insurances.ADDITIONAL_EMPLOYERS_PENSION_INSURANCE);
3891 addEEnumLiteral(category_of_Health_and_Pension_InsurancesEEnum, Category_of_Health_and_Pension_Insurances.CONTINUED_HEALTH_AND_PENSION_INSURANCE);
3892
3893 initEEnum(category_of_Private_Insurance_and_PlanEEnum, Category_of_Private_Insurance_and_Plan.class, "Category_of_Private_Insurance_and_Plan");
3894 addEEnumLiteral(category_of_Private_Insurance_and_PlanEEnum, Category_of_Private_Insurance_and_Plan.PRIVATE_INSURANCE);
3895 addEEnumLiteral(category_of_Private_Insurance_and_PlanEEnum, Category_of_Private_Insurance_and_Plan.PRIVATE_LIFE_INSURANCE);
3896 addEEnumLiteral(category_of_Private_Insurance_and_PlanEEnum, Category_of_Private_Insurance_and_Plan.COMPANY_MEMBERS_PRIVATE_INSURANCE);
3897 addEEnumLiteral(category_of_Private_Insurance_and_PlanEEnum, Category_of_Private_Insurance_and_Plan.HOUSING_SAVING_PLAN);
3898 addEEnumLiteral(category_of_Private_Insurance_and_PlanEEnum, Category_of_Private_Insurance_and_Plan.OLD_AGE_PENSION_PLAN);
3899
3900 initEEnum(legal_Union_TypesEEnum, Legal_Union_Types.class, "Legal_Union_Types");
3901 addEEnumLiteral(legal_Union_TypesEEnum, Legal_Union_Types.MARIAGE);
3902 addEEnumLiteral(legal_Union_TypesEEnum, Legal_Union_Types.PARTNERSHIP);
3903 addEEnumLiteral(legal_Union_TypesEEnum, Legal_Union_Types.OTHER);
3904
3905 // Create resource
3906 createResource(eNS_URI);
3907
3908 // Create annotations
3909 // http://www.eclipse.org/OCL/Import
3910 createImportAnnotations();
3911 // duplicates
3912 createDuplicatesAnnotations();
3913 // http://schema.omg.org/spec/MOF/2.0/emof.xml#Property.oppositeRoleName
3914 createEmofAnnotations();
3915 // http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot
3916 createPivotAnnotations();
3917 }
3918
3919 /**
3920 * Initializes the annotations for <b>http://www.eclipse.org/OCL/Import</b>.
3921 * <!-- begin-user-doc -->
3922 * <!-- end-user-doc -->
3923 * @generated
3924 */
3925 protected void createImportAnnotations() {
3926 String source = "http://www.eclipse.org/OCL/Import";
3927 addAnnotation
3928 (this,
3929 source,
3930 new String[] {
3931 "ecore", "http://www.eclipse.org/emf/2002/Ecore"
3932 });
3933 }
3934
3935 /**
3936 * Initializes the annotations for <b>duplicates</b>.
3937 * <!-- begin-user-doc -->
3938 * <!-- end-user-doc -->
3939 * @generated
3940 */
3941 protected void createDuplicatesAnnotations() {
3942 String source = "duplicates";
3943 addAnnotation
3944 (tax_PayerEClass,
3945 source,
3946 new String[] {
3947 });
3948 }
3949
3950 /**
3951 * Initializes the annotations for <b>http://schema.omg.org/spec/MOF/2.0/emof.xml#Property.oppositeRoleName</b>.
3952 * <!-- begin-user-doc -->
3953 * <!-- end-user-doc -->
3954 * @generated
3955 */
3956 protected void createEmofAnnotations() {
3957 String source = "http://schema.omg.org/spec/MOF/2.0/emof.xml#Property.oppositeRoleName";
3958 addAnnotation
3959 (getLegal_Union_Record_Individual_A(),
3960 source,
3961 new String[] {
3962 "body", "legal_union_A"
3963 });
3964 addAnnotation
3965 (getLegal_Union_Record_Individual_B(),
3966 source,
3967 new String[] {
3968 "body", "legal_union_B"
3969 });
3970 }
3971
3972 /**
3973 * Initializes the annotations for <b>http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot</b>.
3974 * <!-- begin-user-doc -->
3975 * <!-- end-user-doc -->
3976 * @generated
3977 */
3978 protected void createPivotAnnotations() {
3979 String source = "http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot";
3980 addAnnotation
3981 (getIncome_Income_amount(),
3982 source,
3983 new String[] {
3984 "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()"
3985 });
3986 }
3987
3988} //TaxationPackageImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Trade_and_Business_IncomeImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Trade_and_Business_IncomeImpl.java
new file mode 100644
index 00000000..965b884b
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Trade_and_Business_IncomeImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.Literals.TRADE_AND_BUSINESS_INCOME;
35 }
36
37} //Trade_and_Business_IncomeImpl
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Travel_Expense_FDImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Travel_Expense_FDImpl.java
new file mode 100644
index 00000000..53384098
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Travel_Expense_FDImpl.java
@@ -0,0 +1,37 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.TaxationPackage;
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 TaxationPackage.Literals.TRAVEL_EXPENSE_FD;
35 }
36
37} //Travel_Expense_FDImpl