diff options
author | 20001LastOrder <boqi.chen@mail.mcgill.ca> | 2020-11-04 01:33:58 -0500 |
---|---|---|
committer | 20001LastOrder <boqi.chen@mail.mcgill.ca> | 2020-11-04 01:33:58 -0500 |
commit | a20af4d0dbf5eab84ee271d426528aabb5a8ac3b (patch) | |
tree | a9ab772ee313125aaf3a941d66e131b408d949ba /Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Physical_PersonImpl.java | |
parent | changes in settings of measurements (diff) | |
parent | merge with current master, comment numerical solver related logging (diff) | |
download | VIATRA-Generator-a20af4d0dbf5eab84ee271d426528aabb5a8ac3b.tar.gz VIATRA-Generator-a20af4d0dbf5eab84ee271d426528aabb5a8ac3b.tar.zst VIATRA-Generator-a20af4d0dbf5eab84ee271d426528aabb5a8ac3b.zip |
fix merging issue
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Physical_PersonImpl.java')
-rw-r--r-- | Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/Physical_PersonImpl.java | 617 |
1 files changed, 617 insertions, 0 deletions
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 | */ | ||
3 | package TaxationWithRoot.impl; | ||
4 | |||
5 | import TaxationWithRoot.Address; | ||
6 | import TaxationWithRoot.Disability_Types; | ||
7 | import TaxationWithRoot.Expense; | ||
8 | import TaxationWithRoot.Physical_Person; | ||
9 | import TaxationWithRoot.TaxationPackage; | ||
10 | |||
11 | import java.util.Collection; | ||
12 | |||
13 | import org.eclipse.emf.common.notify.Notification; | ||
14 | import org.eclipse.emf.common.notify.NotificationChain; | ||
15 | |||
16 | import org.eclipse.emf.common.util.EList; | ||
17 | |||
18 | import org.eclipse.emf.ecore.EClass; | ||
19 | import org.eclipse.emf.ecore.InternalEObject; | ||
20 | |||
21 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
22 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
23 | |||
24 | import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; | ||
25 | import 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 | */ | ||
48 | public 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 | ||