aboutsummaryrefslogtreecommitdiffstats
path: root/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Physical_PersonImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Physical_PersonImpl.java')
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Physical_PersonImpl.java766
1 files changed, 766 insertions, 0 deletions
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Physical_PersonImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Physical_PersonImpl.java
new file mode 100644
index 00000000..a63a993e
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Physical_PersonImpl.java
@@ -0,0 +1,766 @@
1/**
2 */
3package Taxation.impl;
4
5import Taxation.Address;
6import Taxation.Disability_Types;
7import Taxation.Expense;
8import Taxation.Physical_Person;
9import Taxation.TaxationPackage;
10import java.util.Collection;
11
12import org.eclipse.emf.common.notify.Notification;
13import org.eclipse.emf.common.notify.NotificationChain;
14
15import org.eclipse.emf.common.util.EList;
16
17import org.eclipse.emf.ecore.EClass;
18import org.eclipse.emf.ecore.InternalEObject;
19
20import org.eclipse.emf.ecore.impl.ENotificationImpl;
21import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
22
23import org.eclipse.emf.ecore.util.EObjectContainmentEList;
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 Taxation.impl.Physical_PersonImpl#isIs_assisting_spouse <em>Is assisting spouse</em>}</li>
36 * <li>{@link Taxation.impl.Physical_PersonImpl#getSSNo <em>SS No</em>}</li>
37 * <li>{@link Taxation.impl.Physical_PersonImpl#getAddresses <em>Addresses</em>}</li>
38 * <li>{@link Taxation.impl.Physical_PersonImpl#getBirth_year <em>Birth year</em>}</li>
39 * <li>{@link Taxation.impl.Physical_PersonImpl#getDisability_percentage <em>Disability percentage</em>}</li>
40 * <li>{@link Taxation.impl.Physical_PersonImpl#getDisability_type <em>Disability type</em>}</li>
41 * <li>{@link Taxation.impl.Physical_PersonImpl#isIs_affiliated_personnaly_to_social_security <em>Is affiliated personnaly to social security</em>}</li>
42 * <li>{@link Taxation.impl.Physical_PersonImpl#getBirth_month <em>Birth month</em>}</li>
43 * <li>{@link Taxation.impl.Physical_PersonImpl#getBirth_day <em>Birth day</em>}</li>
44 * <li>{@link Taxation.impl.Physical_PersonImpl#getExpenses <em>Expenses</em>}</li>
45 * <li>{@link Taxation.impl.Physical_PersonImpl#isIs_widower <em>Is widower</em>}</li>
46 * <li>{@link Taxation.impl.Physical_PersonImpl#getOwns_Address <em>Owns Address</em>}</li>
47 * </ul>
48 *
49 * @generated
50 */
51public class Physical_PersonImpl extends MinimalEObjectImpl.Container implements Physical_Person {
52 /**
53 * The default value of the '{@link #isIs_assisting_spouse() <em>Is assisting spouse</em>}' attribute.
54 * <!-- begin-user-doc -->
55 * <!-- end-user-doc -->
56 * @see #isIs_assisting_spouse()
57 * @generated
58 * @ordered
59 */
60 protected static final boolean IS_ASSISTING_SPOUSE_EDEFAULT = false;
61
62 /**
63 * The cached value of the '{@link #isIs_assisting_spouse() <em>Is assisting spouse</em>}' attribute.
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @see #isIs_assisting_spouse()
67 * @generated
68 * @ordered
69 */
70 protected boolean is_assisting_spouse = IS_ASSISTING_SPOUSE_EDEFAULT;
71
72 /**
73 * The default value of the '{@link #getSSNo() <em>SS No</em>}' attribute.
74 * <!-- begin-user-doc -->
75 * <!-- end-user-doc -->
76 * @see #getSSNo()
77 * @generated
78 * @ordered
79 */
80 protected static final String SS_NO_EDEFAULT = null;
81
82 /**
83 * The cached value of the '{@link #getSSNo() <em>SS No</em>}' attribute.
84 * <!-- begin-user-doc -->
85 * <!-- end-user-doc -->
86 * @see #getSSNo()
87 * @generated
88 * @ordered
89 */
90 protected String ssNo = SS_NO_EDEFAULT;
91
92 /**
93 * The cached value of the '{@link #getAddresses() <em>Addresses</em>}' reference list.
94 * <!-- begin-user-doc -->
95 * <!-- end-user-doc -->
96 * @see #getAddresses()
97 * @generated
98 * @ordered
99 */
100 protected EList<Address> addresses;
101
102 /**
103 * The default value of the '{@link #getBirth_year() <em>Birth year</em>}' attribute.
104 * <!-- begin-user-doc -->
105 * <!-- end-user-doc -->
106 * @see #getBirth_year()
107 * @generated
108 * @ordered
109 */
110 protected static final int BIRTH_YEAR_EDEFAULT = 0;
111
112 /**
113 * The cached value of the '{@link #getBirth_year() <em>Birth year</em>}' attribute.
114 * <!-- begin-user-doc -->
115 * <!-- end-user-doc -->
116 * @see #getBirth_year()
117 * @generated
118 * @ordered
119 */
120 protected int birth_year = BIRTH_YEAR_EDEFAULT;
121
122 /**
123 * The default value of the '{@link #getDisability_percentage() <em>Disability percentage</em>}' attribute.
124 * <!-- begin-user-doc -->
125 * <!-- end-user-doc -->
126 * @see #getDisability_percentage()
127 * @generated
128 * @ordered
129 */
130 protected static final double DISABILITY_PERCENTAGE_EDEFAULT = 0.0;
131
132 /**
133 * The cached value of the '{@link #getDisability_percentage() <em>Disability percentage</em>}' attribute.
134 * <!-- begin-user-doc -->
135 * <!-- end-user-doc -->
136 * @see #getDisability_percentage()
137 * @generated
138 * @ordered
139 */
140 protected double disability_percentage = DISABILITY_PERCENTAGE_EDEFAULT;
141
142 /**
143 * The default value of the '{@link #getDisability_type() <em>Disability type</em>}' attribute.
144 * <!-- begin-user-doc -->
145 * <!-- end-user-doc -->
146 * @see #getDisability_type()
147 * @generated
148 * @ordered
149 */
150 protected static final Disability_Types DISABILITY_TYPE_EDEFAULT = Disability_Types.BEUG;
151
152 /**
153 * The cached value of the '{@link #getDisability_type() <em>Disability type</em>}' attribute.
154 * <!-- begin-user-doc -->
155 * <!-- end-user-doc -->
156 * @see #getDisability_type()
157 * @generated
158 * @ordered
159 */
160 protected Disability_Types disability_type = DISABILITY_TYPE_EDEFAULT;
161
162 /**
163 * The default value of the '{@link #isIs_affiliated_personnaly_to_social_security() <em>Is affiliated personnaly to social security</em>}' attribute.
164 * <!-- begin-user-doc -->
165 * <!-- end-user-doc -->
166 * @see #isIs_affiliated_personnaly_to_social_security()
167 * @generated
168 * @ordered
169 */
170 protected static final boolean IS_AFFILIATED_PERSONNALY_TO_SOCIAL_SECURITY_EDEFAULT = false;
171
172 /**
173 * The cached value of the '{@link #isIs_affiliated_personnaly_to_social_security() <em>Is affiliated personnaly to social security</em>}' attribute.
174 * <!-- begin-user-doc -->
175 * <!-- end-user-doc -->
176 * @see #isIs_affiliated_personnaly_to_social_security()
177 * @generated
178 * @ordered
179 */
180 protected boolean is_affiliated_personnaly_to_social_security = IS_AFFILIATED_PERSONNALY_TO_SOCIAL_SECURITY_EDEFAULT;
181
182 /**
183 * The default value of the '{@link #getBirth_month() <em>Birth month</em>}' attribute.
184 * <!-- begin-user-doc -->
185 * <!-- end-user-doc -->
186 * @see #getBirth_month()
187 * @generated
188 * @ordered
189 */
190 protected static final int BIRTH_MONTH_EDEFAULT = 0;
191
192 /**
193 * The cached value of the '{@link #getBirth_month() <em>Birth month</em>}' attribute.
194 * <!-- begin-user-doc -->
195 * <!-- end-user-doc -->
196 * @see #getBirth_month()
197 * @generated
198 * @ordered
199 */
200 protected int birth_month = BIRTH_MONTH_EDEFAULT;
201
202 /**
203 * The default value of the '{@link #getBirth_day() <em>Birth day</em>}' attribute.
204 * <!-- begin-user-doc -->
205 * <!-- end-user-doc -->
206 * @see #getBirth_day()
207 * @generated
208 * @ordered
209 */
210 protected static final int BIRTH_DAY_EDEFAULT = 0;
211
212 /**
213 * The cached value of the '{@link #getBirth_day() <em>Birth day</em>}' attribute.
214 * <!-- begin-user-doc -->
215 * <!-- end-user-doc -->
216 * @see #getBirth_day()
217 * @generated
218 * @ordered
219 */
220 protected int birth_day = BIRTH_DAY_EDEFAULT;
221
222 /**
223 * The cached value of the '{@link #getExpenses() <em>Expenses</em>}' reference list.
224 * <!-- begin-user-doc -->
225 * <!-- end-user-doc -->
226 * @see #getExpenses()
227 * @generated
228 * @ordered
229 */
230 protected EList<Expense> expenses;
231
232 /**
233 * The default value of the '{@link #isIs_widower() <em>Is widower</em>}' attribute.
234 * <!-- begin-user-doc -->
235 * <!-- end-user-doc -->
236 * @see #isIs_widower()
237 * @generated
238 * @ordered
239 */
240 protected static final boolean IS_WIDOWER_EDEFAULT = false;
241
242 /**
243 * The cached value of the '{@link #isIs_widower() <em>Is widower</em>}' attribute.
244 * <!-- begin-user-doc -->
245 * <!-- end-user-doc -->
246 * @see #isIs_widower()
247 * @generated
248 * @ordered
249 */
250 protected boolean is_widower = IS_WIDOWER_EDEFAULT;
251
252 /**
253 * The cached value of the '{@link #getOwns_Address() <em>Owns Address</em>}' containment reference list.
254 * <!-- begin-user-doc -->
255 * <!-- end-user-doc -->
256 * @see #getOwns_Address()
257 * @generated
258 * @ordered
259 */
260 protected EList<Address> owns_Address;
261
262 /**
263 * <!-- begin-user-doc -->
264 * <!-- end-user-doc -->
265 * @generated
266 */
267 protected Physical_PersonImpl() {
268 super();
269 }
270
271 /**
272 * <!-- begin-user-doc -->
273 * <!-- end-user-doc -->
274 * @generated
275 */
276 @Override
277 protected EClass eStaticClass() {
278 return TaxationPackage.Literals.PHYSICAL_PERSON;
279 }
280
281 /**
282 * <!-- begin-user-doc -->
283 * <!-- end-user-doc -->
284 * @generated
285 */
286 @Override
287 public boolean isIs_assisting_spouse() {
288 return is_assisting_spouse;
289 }
290
291 /**
292 * <!-- begin-user-doc -->
293 * <!-- end-user-doc -->
294 * @generated
295 */
296 @Override
297 public void setIs_assisting_spouse(boolean newIs_assisting_spouse) {
298 boolean oldIs_assisting_spouse = is_assisting_spouse;
299 is_assisting_spouse = newIs_assisting_spouse;
300 if (eNotificationRequired())
301 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.PHYSICAL_PERSON__IS_ASSISTING_SPOUSE, oldIs_assisting_spouse, is_assisting_spouse));
302 }
303
304 /**
305 * <!-- begin-user-doc -->
306 * <!-- end-user-doc -->
307 * @generated
308 */
309 @Override
310 public String getSSNo() {
311 return ssNo;
312 }
313
314 /**
315 * <!-- begin-user-doc -->
316 * <!-- end-user-doc -->
317 * @generated
318 */
319 @Override
320 public void setSSNo(String newSSNo) {
321 String oldSSNo = ssNo;
322 ssNo = newSSNo;
323 if (eNotificationRequired())
324 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.PHYSICAL_PERSON__SS_NO, oldSSNo, ssNo));
325 }
326
327 /**
328 * <!-- begin-user-doc -->
329 * <!-- end-user-doc -->
330 * @generated
331 */
332 @Override
333 public EList<Address> getAddresses() {
334 if (addresses == null) {
335 addresses = new EObjectWithInverseResolvingEList.ManyInverse<Address>(Address.class, this, TaxationPackage.PHYSICAL_PERSON__ADDRESSES, TaxationPackage.ADDRESS__TAX_PAYER);
336 }
337 return addresses;
338 }
339
340 /**
341 * <!-- begin-user-doc -->
342 * <!-- end-user-doc -->
343 * @generated
344 */
345 @Override
346 public int getBirth_year() {
347 return birth_year;
348 }
349
350 /**
351 * <!-- begin-user-doc -->
352 * <!-- end-user-doc -->
353 * @generated
354 */
355 @Override
356 public void setBirth_year(int newBirth_year) {
357 int oldBirth_year = birth_year;
358 birth_year = newBirth_year;
359 if (eNotificationRequired())
360 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.PHYSICAL_PERSON__BIRTH_YEAR, oldBirth_year, birth_year));
361 }
362
363 /**
364 * <!-- begin-user-doc -->
365 * <!-- end-user-doc -->
366 * @generated
367 */
368 @Override
369 public double getDisability_percentage() {
370 return disability_percentage;
371 }
372
373 /**
374 * <!-- begin-user-doc -->
375 * <!-- end-user-doc -->
376 * @generated
377 */
378 @Override
379 public void setDisability_percentage(double newDisability_percentage) {
380 double oldDisability_percentage = disability_percentage;
381 disability_percentage = newDisability_percentage;
382 if (eNotificationRequired())
383 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.PHYSICAL_PERSON__DISABILITY_PERCENTAGE, oldDisability_percentage, disability_percentage));
384 }
385
386 /**
387 * <!-- begin-user-doc -->
388 * <!-- end-user-doc -->
389 * @generated
390 */
391 @Override
392 public Disability_Types getDisability_type() {
393 return disability_type;
394 }
395
396 /**
397 * <!-- begin-user-doc -->
398 * <!-- end-user-doc -->
399 * @generated
400 */
401 @Override
402 public void setDisability_type(Disability_Types newDisability_type) {
403 Disability_Types oldDisability_type = disability_type;
404 disability_type = newDisability_type == null ? DISABILITY_TYPE_EDEFAULT : newDisability_type;
405 if (eNotificationRequired())
406 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.PHYSICAL_PERSON__DISABILITY_TYPE, oldDisability_type, disability_type));
407 }
408
409 /**
410 * <!-- begin-user-doc -->
411 * <!-- end-user-doc -->
412 * @generated
413 */
414 @Override
415 public boolean isIs_affiliated_personnaly_to_social_security() {
416 return is_affiliated_personnaly_to_social_security;
417 }
418
419 /**
420 * <!-- begin-user-doc -->
421 * <!-- end-user-doc -->
422 * @generated
423 */
424 @Override
425 public void setIs_affiliated_personnaly_to_social_security(boolean newIs_affiliated_personnaly_to_social_security) {
426 boolean oldIs_affiliated_personnaly_to_social_security = is_affiliated_personnaly_to_social_security;
427 is_affiliated_personnaly_to_social_security = newIs_affiliated_personnaly_to_social_security;
428 if (eNotificationRequired())
429 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.PHYSICAL_PERSON__IS_AFFILIATED_PERSONNALY_TO_SOCIAL_SECURITY, oldIs_affiliated_personnaly_to_social_security, is_affiliated_personnaly_to_social_security));
430 }
431
432 /**
433 * <!-- begin-user-doc -->
434 * <!-- end-user-doc -->
435 * @generated
436 */
437 @Override
438 public int getBirth_month() {
439 return birth_month;
440 }
441
442 /**
443 * <!-- begin-user-doc -->
444 * <!-- end-user-doc -->
445 * @generated
446 */
447 @Override
448 public void setBirth_month(int newBirth_month) {
449 int oldBirth_month = birth_month;
450 birth_month = newBirth_month;
451 if (eNotificationRequired())
452 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.PHYSICAL_PERSON__BIRTH_MONTH, oldBirth_month, birth_month));
453 }
454
455 /**
456 * <!-- begin-user-doc -->
457 * <!-- end-user-doc -->
458 * @generated
459 */
460 @Override
461 public int getBirth_day() {
462 return birth_day;
463 }
464
465 /**
466 * <!-- begin-user-doc -->
467 * <!-- end-user-doc -->
468 * @generated
469 */
470 @Override
471 public void setBirth_day(int newBirth_day) {
472 int oldBirth_day = birth_day;
473 birth_day = newBirth_day;
474 if (eNotificationRequired())
475 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.PHYSICAL_PERSON__BIRTH_DAY, oldBirth_day, birth_day));
476 }
477
478 /**
479 * <!-- begin-user-doc -->
480 * <!-- end-user-doc -->
481 * @generated
482 */
483 @Override
484 public EList<Expense> getExpenses() {
485 if (expenses == null) {
486 expenses = new EObjectWithInverseResolvingEList<Expense>(Expense.class, this, TaxationPackage.PHYSICAL_PERSON__EXPENSES, TaxationPackage.EXPENSE__BENEFICIARY);
487 }
488 return expenses;
489 }
490
491 /**
492 * <!-- begin-user-doc -->
493 * <!-- end-user-doc -->
494 * @generated
495 */
496 @Override
497 public boolean isIs_widower() {
498 return is_widower;
499 }
500
501 /**
502 * <!-- begin-user-doc -->
503 * <!-- end-user-doc -->
504 * @generated
505 */
506 @Override
507 public void setIs_widower(boolean newIs_widower) {
508 boolean oldIs_widower = is_widower;
509 is_widower = newIs_widower;
510 if (eNotificationRequired())
511 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.PHYSICAL_PERSON__IS_WIDOWER, oldIs_widower, is_widower));
512 }
513
514 /**
515 * <!-- begin-user-doc -->
516 * <!-- end-user-doc -->
517 * @generated
518 */
519 @Override
520 public EList<Address> getOwns_Address() {
521 if (owns_Address == null) {
522 owns_Address = new EObjectContainmentEList<Address>(Address.class, this, TaxationPackage.PHYSICAL_PERSON__OWNS_ADDRESS);
523 }
524 return owns_Address;
525 }
526
527 /**
528 * <!-- begin-user-doc -->
529 * <!-- end-user-doc -->
530 * @generated
531 */
532 @SuppressWarnings("unchecked")
533 @Override
534 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
535 switch (featureID) {
536 case TaxationPackage.PHYSICAL_PERSON__ADDRESSES:
537 return ((InternalEList<InternalEObject>)(InternalEList<?>)getAddresses()).basicAdd(otherEnd, msgs);
538 case TaxationPackage.PHYSICAL_PERSON__EXPENSES:
539 return ((InternalEList<InternalEObject>)(InternalEList<?>)getExpenses()).basicAdd(otherEnd, msgs);
540 }
541 return super.eInverseAdd(otherEnd, featureID, msgs);
542 }
543
544 /**
545 * <!-- begin-user-doc -->
546 * <!-- end-user-doc -->
547 * @generated
548 */
549 @Override
550 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
551 switch (featureID) {
552 case TaxationPackage.PHYSICAL_PERSON__ADDRESSES:
553 return ((InternalEList<?>)getAddresses()).basicRemove(otherEnd, msgs);
554 case TaxationPackage.PHYSICAL_PERSON__EXPENSES:
555 return ((InternalEList<?>)getExpenses()).basicRemove(otherEnd, msgs);
556 case TaxationPackage.PHYSICAL_PERSON__OWNS_ADDRESS:
557 return ((InternalEList<?>)getOwns_Address()).basicRemove(otherEnd, msgs);
558 }
559 return super.eInverseRemove(otherEnd, featureID, msgs);
560 }
561
562 /**
563 * <!-- begin-user-doc -->
564 * <!-- end-user-doc -->
565 * @generated
566 */
567 @Override
568 public Object eGet(int featureID, boolean resolve, boolean coreType) {
569 switch (featureID) {
570 case TaxationPackage.PHYSICAL_PERSON__IS_ASSISTING_SPOUSE:
571 return isIs_assisting_spouse();
572 case TaxationPackage.PHYSICAL_PERSON__SS_NO:
573 return getSSNo();
574 case TaxationPackage.PHYSICAL_PERSON__ADDRESSES:
575 return getAddresses();
576 case TaxationPackage.PHYSICAL_PERSON__BIRTH_YEAR:
577 return getBirth_year();
578 case TaxationPackage.PHYSICAL_PERSON__DISABILITY_PERCENTAGE:
579 return getDisability_percentage();
580 case TaxationPackage.PHYSICAL_PERSON__DISABILITY_TYPE:
581 return getDisability_type();
582 case TaxationPackage.PHYSICAL_PERSON__IS_AFFILIATED_PERSONNALY_TO_SOCIAL_SECURITY:
583 return isIs_affiliated_personnaly_to_social_security();
584 case TaxationPackage.PHYSICAL_PERSON__BIRTH_MONTH:
585 return getBirth_month();
586 case TaxationPackage.PHYSICAL_PERSON__BIRTH_DAY:
587 return getBirth_day();
588 case TaxationPackage.PHYSICAL_PERSON__EXPENSES:
589 return getExpenses();
590 case TaxationPackage.PHYSICAL_PERSON__IS_WIDOWER:
591 return isIs_widower();
592 case TaxationPackage.PHYSICAL_PERSON__OWNS_ADDRESS:
593 return getOwns_Address();
594 }
595 return super.eGet(featureID, resolve, coreType);
596 }
597
598 /**
599 * <!-- begin-user-doc -->
600 * <!-- end-user-doc -->
601 * @generated
602 */
603 @SuppressWarnings("unchecked")
604 @Override
605 public void eSet(int featureID, Object newValue) {
606 switch (featureID) {
607 case TaxationPackage.PHYSICAL_PERSON__IS_ASSISTING_SPOUSE:
608 setIs_assisting_spouse((Boolean)newValue);
609 return;
610 case TaxationPackage.PHYSICAL_PERSON__SS_NO:
611 setSSNo((String)newValue);
612 return;
613 case TaxationPackage.PHYSICAL_PERSON__ADDRESSES:
614 getAddresses().clear();
615 getAddresses().addAll((Collection<? extends Address>)newValue);
616 return;
617 case TaxationPackage.PHYSICAL_PERSON__BIRTH_YEAR:
618 setBirth_year((Integer)newValue);
619 return;
620 case TaxationPackage.PHYSICAL_PERSON__DISABILITY_PERCENTAGE:
621 setDisability_percentage((Double)newValue);
622 return;
623 case TaxationPackage.PHYSICAL_PERSON__DISABILITY_TYPE:
624 setDisability_type((Disability_Types)newValue);
625 return;
626 case TaxationPackage.PHYSICAL_PERSON__IS_AFFILIATED_PERSONNALY_TO_SOCIAL_SECURITY:
627 setIs_affiliated_personnaly_to_social_security((Boolean)newValue);
628 return;
629 case TaxationPackage.PHYSICAL_PERSON__BIRTH_MONTH:
630 setBirth_month((Integer)newValue);
631 return;
632 case TaxationPackage.PHYSICAL_PERSON__BIRTH_DAY:
633 setBirth_day((Integer)newValue);
634 return;
635 case TaxationPackage.PHYSICAL_PERSON__EXPENSES:
636 getExpenses().clear();
637 getExpenses().addAll((Collection<? extends Expense>)newValue);
638 return;
639 case TaxationPackage.PHYSICAL_PERSON__IS_WIDOWER:
640 setIs_widower((Boolean)newValue);
641 return;
642 case TaxationPackage.PHYSICAL_PERSON__OWNS_ADDRESS:
643 getOwns_Address().clear();
644 getOwns_Address().addAll((Collection<? extends Address>)newValue);
645 return;
646 }
647 super.eSet(featureID, newValue);
648 }
649
650 /**
651 * <!-- begin-user-doc -->
652 * <!-- end-user-doc -->
653 * @generated
654 */
655 @Override
656 public void eUnset(int featureID) {
657 switch (featureID) {
658 case TaxationPackage.PHYSICAL_PERSON__IS_ASSISTING_SPOUSE:
659 setIs_assisting_spouse(IS_ASSISTING_SPOUSE_EDEFAULT);
660 return;
661 case TaxationPackage.PHYSICAL_PERSON__SS_NO:
662 setSSNo(SS_NO_EDEFAULT);
663 return;
664 case TaxationPackage.PHYSICAL_PERSON__ADDRESSES:
665 getAddresses().clear();
666 return;
667 case TaxationPackage.PHYSICAL_PERSON__BIRTH_YEAR:
668 setBirth_year(BIRTH_YEAR_EDEFAULT);
669 return;
670 case TaxationPackage.PHYSICAL_PERSON__DISABILITY_PERCENTAGE:
671 setDisability_percentage(DISABILITY_PERCENTAGE_EDEFAULT);
672 return;
673 case TaxationPackage.PHYSICAL_PERSON__DISABILITY_TYPE:
674 setDisability_type(DISABILITY_TYPE_EDEFAULT);
675 return;
676 case TaxationPackage.PHYSICAL_PERSON__IS_AFFILIATED_PERSONNALY_TO_SOCIAL_SECURITY:
677 setIs_affiliated_personnaly_to_social_security(IS_AFFILIATED_PERSONNALY_TO_SOCIAL_SECURITY_EDEFAULT);
678 return;
679 case TaxationPackage.PHYSICAL_PERSON__BIRTH_MONTH:
680 setBirth_month(BIRTH_MONTH_EDEFAULT);
681 return;
682 case TaxationPackage.PHYSICAL_PERSON__BIRTH_DAY:
683 setBirth_day(BIRTH_DAY_EDEFAULT);
684 return;
685 case TaxationPackage.PHYSICAL_PERSON__EXPENSES:
686 getExpenses().clear();
687 return;
688 case TaxationPackage.PHYSICAL_PERSON__IS_WIDOWER:
689 setIs_widower(IS_WIDOWER_EDEFAULT);
690 return;
691 case TaxationPackage.PHYSICAL_PERSON__OWNS_ADDRESS:
692 getOwns_Address().clear();
693 return;
694 }
695 super.eUnset(featureID);
696 }
697
698 /**
699 * <!-- begin-user-doc -->
700 * <!-- end-user-doc -->
701 * @generated
702 */
703 @Override
704 public boolean eIsSet(int featureID) {
705 switch (featureID) {
706 case TaxationPackage.PHYSICAL_PERSON__IS_ASSISTING_SPOUSE:
707 return is_assisting_spouse != IS_ASSISTING_SPOUSE_EDEFAULT;
708 case TaxationPackage.PHYSICAL_PERSON__SS_NO:
709 return SS_NO_EDEFAULT == null ? ssNo != null : !SS_NO_EDEFAULT.equals(ssNo);
710 case TaxationPackage.PHYSICAL_PERSON__ADDRESSES:
711 return addresses != null && !addresses.isEmpty();
712 case TaxationPackage.PHYSICAL_PERSON__BIRTH_YEAR:
713 return birth_year != BIRTH_YEAR_EDEFAULT;
714 case TaxationPackage.PHYSICAL_PERSON__DISABILITY_PERCENTAGE:
715 return disability_percentage != DISABILITY_PERCENTAGE_EDEFAULT;
716 case TaxationPackage.PHYSICAL_PERSON__DISABILITY_TYPE:
717 return disability_type != DISABILITY_TYPE_EDEFAULT;
718 case TaxationPackage.PHYSICAL_PERSON__IS_AFFILIATED_PERSONNALY_TO_SOCIAL_SECURITY:
719 return is_affiliated_personnaly_to_social_security != IS_AFFILIATED_PERSONNALY_TO_SOCIAL_SECURITY_EDEFAULT;
720 case TaxationPackage.PHYSICAL_PERSON__BIRTH_MONTH:
721 return birth_month != BIRTH_MONTH_EDEFAULT;
722 case TaxationPackage.PHYSICAL_PERSON__BIRTH_DAY:
723 return birth_day != BIRTH_DAY_EDEFAULT;
724 case TaxationPackage.PHYSICAL_PERSON__EXPENSES:
725 return expenses != null && !expenses.isEmpty();
726 case TaxationPackage.PHYSICAL_PERSON__IS_WIDOWER:
727 return is_widower != IS_WIDOWER_EDEFAULT;
728 case TaxationPackage.PHYSICAL_PERSON__OWNS_ADDRESS:
729 return owns_Address != null && !owns_Address.isEmpty();
730 }
731 return super.eIsSet(featureID);
732 }
733
734 /**
735 * <!-- begin-user-doc -->
736 * <!-- end-user-doc -->
737 * @generated
738 */
739 @Override
740 public String toString() {
741 if (eIsProxy()) return super.toString();
742
743 StringBuilder result = new StringBuilder(super.toString());
744 result.append(" (is_assisting_spouse: ");
745 result.append(is_assisting_spouse);
746 result.append(", SSNo: ");
747 result.append(ssNo);
748 result.append(", birth_year: ");
749 result.append(birth_year);
750 result.append(", disability_percentage: ");
751 result.append(disability_percentage);
752 result.append(", disability_type: ");
753 result.append(disability_type);
754 result.append(", is_affiliated_personnaly_to_social_security: ");
755 result.append(is_affiliated_personnaly_to_social_security);
756 result.append(", birth_month: ");
757 result.append(birth_month);
758 result.append(", birth_day: ");
759 result.append(birth_day);
760 result.append(", is_widower: ");
761 result.append(is_widower);
762 result.append(')');
763 return result.toString();
764 }
765
766} //Physical_PersonImpl