diff options
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Legal_Union_RecordImpl.java')
-rw-r--r-- | Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Legal_Union_RecordImpl.java | 648 |
1 files changed, 648 insertions, 0 deletions
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Legal_Union_RecordImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Legal_Union_RecordImpl.java new file mode 100644 index 00000000..8853657a --- /dev/null +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Legal_Union_RecordImpl.java | |||
@@ -0,0 +1,648 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package Taxation.impl; | ||
4 | |||
5 | import Taxation.Household; | ||
6 | import Taxation.Legal_Union_Record; | ||
7 | import Taxation.Physical_Person; | ||
8 | import Taxation.Separation_Causes; | ||
9 | import Taxation.Tax_Property; | ||
10 | import Taxation.TaxationPackage; | ||
11 | |||
12 | import java.util.Collection; | ||
13 | |||
14 | import org.eclipse.emf.common.notify.Notification; | ||
15 | import org.eclipse.emf.common.notify.NotificationChain; | ||
16 | |||
17 | import org.eclipse.emf.common.util.EList; | ||
18 | |||
19 | import org.eclipse.emf.ecore.EClass; | ||
20 | import org.eclipse.emf.ecore.InternalEObject; | ||
21 | |||
22 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
23 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
24 | |||
25 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
26 | import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; | ||
27 | import org.eclipse.emf.ecore.util.EcoreUtil; | ||
28 | import 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 Taxation.impl.Legal_Union_RecordImpl#getStart_year <em>Start year</em>}</li> | ||
39 | * <li>{@link Taxation.impl.Legal_Union_RecordImpl#getEnd_year <em>End year</em>}</li> | ||
40 | * <li>{@link Taxation.impl.Legal_Union_RecordImpl#getSeparation_cause <em>Separation cause</em>}</li> | ||
41 | * <li>{@link Taxation.impl.Legal_Union_RecordImpl#getIndividual_A <em>Individual A</em>}</li> | ||
42 | * <li>{@link Taxation.impl.Legal_Union_RecordImpl#getIndividual_B <em>Individual B</em>}</li> | ||
43 | * <li>{@link Taxation.impl.Legal_Union_RecordImpl#getProperties <em>Properties</em>}</li> | ||
44 | * <li>{@link Taxation.impl.Legal_Union_RecordImpl#isMutual_agreement <em>Mutual agreement</em>}</li> | ||
45 | * <li>{@link Taxation.impl.Legal_Union_RecordImpl#getId9 <em>Id9</em>}</li> | ||
46 | * <li>{@link Taxation.impl.Legal_Union_RecordImpl#getHousehold <em>Household</em>}</li> | ||
47 | * </ul> | ||
48 | * | ||
49 | * @generated | ||
50 | */ | ||
51 | public 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 | ||