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 | 647 |
1 files changed, 647 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..1ab3bf53 --- /dev/null +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Legal_Union_RecordImpl.java | |||
@@ -0,0 +1,647 @@ | |||
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 | 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.EObjectContainmentEList; | ||
25 | import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; | ||
26 | import org.eclipse.emf.ecore.util.EcoreUtil; | ||
27 | import org.eclipse.emf.ecore.util.InternalEList; | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * An implementation of the model object '<em><b>Legal Union Record</b></em>'. | ||
32 | * <!-- end-user-doc --> | ||
33 | * <p> | ||
34 | * The following features are implemented: | ||
35 | * </p> | ||
36 | * <ul> | ||
37 | * <li>{@link Taxation.impl.Legal_Union_RecordImpl#getStart_year <em>Start year</em>}</li> | ||
38 | * <li>{@link Taxation.impl.Legal_Union_RecordImpl#getEnd_year <em>End year</em>}</li> | ||
39 | * <li>{@link Taxation.impl.Legal_Union_RecordImpl#getSeparation_cause <em>Separation cause</em>}</li> | ||
40 | * <li>{@link Taxation.impl.Legal_Union_RecordImpl#getIndividual_A <em>Individual A</em>}</li> | ||
41 | * <li>{@link Taxation.impl.Legal_Union_RecordImpl#getIndividual_B <em>Individual B</em>}</li> | ||
42 | * <li>{@link Taxation.impl.Legal_Union_RecordImpl#getProperties <em>Properties</em>}</li> | ||
43 | * <li>{@link Taxation.impl.Legal_Union_RecordImpl#isMutual_agreement <em>Mutual agreement</em>}</li> | ||
44 | * <li>{@link Taxation.impl.Legal_Union_RecordImpl#getId9 <em>Id9</em>}</li> | ||
45 | * <li>{@link Taxation.impl.Legal_Union_RecordImpl#getHousehold <em>Household</em>}</li> | ||
46 | * </ul> | ||
47 | * | ||
48 | * @generated | ||
49 | */ | ||
50 | public abstract class Legal_Union_RecordImpl extends MinimalEObjectImpl.Container implements Legal_Union_Record { | ||
51 | /** | ||
52 | * The default value of the '{@link #getStart_year() <em>Start year</em>}' attribute. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #getStart_year() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected static final int START_YEAR_EDEFAULT = 0; | ||
60 | |||
61 | /** | ||
62 | * The cached value of the '{@link #getStart_year() <em>Start year</em>}' attribute. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @see #getStart_year() | ||
66 | * @generated | ||
67 | * @ordered | ||
68 | */ | ||
69 | protected int start_year = START_YEAR_EDEFAULT; | ||
70 | |||
71 | /** | ||
72 | * The default value of the '{@link #getEnd_year() <em>End year</em>}' attribute. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @see #getEnd_year() | ||
76 | * @generated | ||
77 | * @ordered | ||
78 | */ | ||
79 | protected static final int END_YEAR_EDEFAULT = 0; | ||
80 | |||
81 | /** | ||
82 | * The cached value of the '{@link #getEnd_year() <em>End year</em>}' attribute. | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @see #getEnd_year() | ||
86 | * @generated | ||
87 | * @ordered | ||
88 | */ | ||
89 | protected int end_year = END_YEAR_EDEFAULT; | ||
90 | |||
91 | /** | ||
92 | * The default value of the '{@link #getSeparation_cause() <em>Separation cause</em>}' attribute. | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @see #getSeparation_cause() | ||
96 | * @generated | ||
97 | * @ordered | ||
98 | */ | ||
99 | protected static final Separation_Causes SEPARATION_CAUSE_EDEFAULT = Separation_Causes.NONE; | ||
100 | |||
101 | /** | ||
102 | * The cached value of the '{@link #getSeparation_cause() <em>Separation cause</em>}' attribute. | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @see #getSeparation_cause() | ||
106 | * @generated | ||
107 | * @ordered | ||
108 | */ | ||
109 | protected Separation_Causes separation_cause = SEPARATION_CAUSE_EDEFAULT; | ||
110 | |||
111 | /** | ||
112 | * The cached value of the '{@link #getIndividual_A() <em>Individual A</em>}' containment reference. | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @see #getIndividual_A() | ||
116 | * @generated | ||
117 | * @ordered | ||
118 | */ | ||
119 | protected Physical_Person individual_A; | ||
120 | |||
121 | /** | ||
122 | * The cached value of the '{@link #getIndividual_B() <em>Individual B</em>}' containment reference list. | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @see #getIndividual_B() | ||
126 | * @generated | ||
127 | * @ordered | ||
128 | */ | ||
129 | protected EList<Physical_Person> individual_B; | ||
130 | |||
131 | /** | ||
132 | * The cached value of the '{@link #getProperties() <em>Properties</em>}' containment reference list. | ||
133 | * <!-- begin-user-doc --> | ||
134 | * <!-- end-user-doc --> | ||
135 | * @see #getProperties() | ||
136 | * @generated | ||
137 | * @ordered | ||
138 | */ | ||
139 | protected EList<Tax_Property> properties; | ||
140 | |||
141 | /** | ||
142 | * The default value of the '{@link #isMutual_agreement() <em>Mutual agreement</em>}' attribute. | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @see #isMutual_agreement() | ||
146 | * @generated | ||
147 | * @ordered | ||
148 | */ | ||
149 | protected static final boolean MUTUAL_AGREEMENT_EDEFAULT = false; | ||
150 | |||
151 | /** | ||
152 | * The cached value of the '{@link #isMutual_agreement() <em>Mutual agreement</em>}' attribute. | ||
153 | * <!-- begin-user-doc --> | ||
154 | * <!-- end-user-doc --> | ||
155 | * @see #isMutual_agreement() | ||
156 | * @generated | ||
157 | * @ordered | ||
158 | */ | ||
159 | protected boolean mutual_agreement = MUTUAL_AGREEMENT_EDEFAULT; | ||
160 | |||
161 | /** | ||
162 | * The default value of the '{@link #getId9() <em>Id9</em>}' attribute. | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @see #getId9() | ||
166 | * @generated | ||
167 | * @ordered | ||
168 | */ | ||
169 | protected static final String ID9_EDEFAULT = null; | ||
170 | |||
171 | /** | ||
172 | * The cached value of the '{@link #getId9() <em>Id9</em>}' attribute. | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @see #getId9() | ||
176 | * @generated | ||
177 | * @ordered | ||
178 | */ | ||
179 | protected String id9 = ID9_EDEFAULT; | ||
180 | |||
181 | /** | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | */ | ||
186 | protected Legal_Union_RecordImpl() { | ||
187 | super(); | ||
188 | } | ||
189 | |||
190 | /** | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @generated | ||
194 | */ | ||
195 | @Override | ||
196 | protected EClass eStaticClass() { | ||
197 | return TaxationPackage.Literals.LEGAL_UNION_RECORD; | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public int getStart_year() { | ||
207 | return start_year; | ||
208 | } | ||
209 | |||
210 | /** | ||
211 | * <!-- begin-user-doc --> | ||
212 | * <!-- end-user-doc --> | ||
213 | * @generated | ||
214 | */ | ||
215 | @Override | ||
216 | public void setStart_year(int newStart_year) { | ||
217 | int oldStart_year = start_year; | ||
218 | start_year = newStart_year; | ||
219 | if (eNotificationRequired()) | ||
220 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.LEGAL_UNION_RECORD__START_YEAR, oldStart_year, start_year)); | ||
221 | } | ||
222 | |||
223 | /** | ||
224 | * <!-- begin-user-doc --> | ||
225 | * <!-- end-user-doc --> | ||
226 | * @generated | ||
227 | */ | ||
228 | @Override | ||
229 | public int getEnd_year() { | ||
230 | return end_year; | ||
231 | } | ||
232 | |||
233 | /** | ||
234 | * <!-- begin-user-doc --> | ||
235 | * <!-- end-user-doc --> | ||
236 | * @generated | ||
237 | */ | ||
238 | @Override | ||
239 | public void setEnd_year(int newEnd_year) { | ||
240 | int oldEnd_year = end_year; | ||
241 | end_year = newEnd_year; | ||
242 | if (eNotificationRequired()) | ||
243 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.LEGAL_UNION_RECORD__END_YEAR, oldEnd_year, end_year)); | ||
244 | } | ||
245 | |||
246 | /** | ||
247 | * <!-- begin-user-doc --> | ||
248 | * <!-- end-user-doc --> | ||
249 | * @generated | ||
250 | */ | ||
251 | @Override | ||
252 | public Separation_Causes getSeparation_cause() { | ||
253 | return separation_cause; | ||
254 | } | ||
255 | |||
256 | /** | ||
257 | * <!-- begin-user-doc --> | ||
258 | * <!-- end-user-doc --> | ||
259 | * @generated | ||
260 | */ | ||
261 | @Override | ||
262 | public void setSeparation_cause(Separation_Causes newSeparation_cause) { | ||
263 | Separation_Causes oldSeparation_cause = separation_cause; | ||
264 | separation_cause = newSeparation_cause == null ? SEPARATION_CAUSE_EDEFAULT : newSeparation_cause; | ||
265 | if (eNotificationRequired()) | ||
266 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.LEGAL_UNION_RECORD__SEPARATION_CAUSE, oldSeparation_cause, separation_cause)); | ||
267 | } | ||
268 | |||
269 | /** | ||
270 | * <!-- begin-user-doc --> | ||
271 | * <!-- end-user-doc --> | ||
272 | * @generated | ||
273 | */ | ||
274 | @Override | ||
275 | public Physical_Person getIndividual_A() { | ||
276 | return individual_A; | ||
277 | } | ||
278 | |||
279 | /** | ||
280 | * <!-- begin-user-doc --> | ||
281 | * <!-- end-user-doc --> | ||
282 | * @generated | ||
283 | */ | ||
284 | public NotificationChain basicSetIndividual_A(Physical_Person newIndividual_A, NotificationChain msgs) { | ||
285 | Physical_Person oldIndividual_A = individual_A; | ||
286 | individual_A = newIndividual_A; | ||
287 | if (eNotificationRequired()) { | ||
288 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A, oldIndividual_A, newIndividual_A); | ||
289 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
290 | } | ||
291 | return msgs; | ||
292 | } | ||
293 | |||
294 | /** | ||
295 | * <!-- begin-user-doc --> | ||
296 | * <!-- end-user-doc --> | ||
297 | * @generated | ||
298 | */ | ||
299 | @Override | ||
300 | public void setIndividual_A(Physical_Person newIndividual_A) { | ||
301 | if (newIndividual_A != individual_A) { | ||
302 | NotificationChain msgs = null; | ||
303 | if (individual_A != null) | ||
304 | msgs = ((InternalEObject)individual_A).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A, null, msgs); | ||
305 | if (newIndividual_A != null) | ||
306 | msgs = ((InternalEObject)newIndividual_A).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A, null, msgs); | ||
307 | msgs = basicSetIndividual_A(newIndividual_A, msgs); | ||
308 | if (msgs != null) msgs.dispatch(); | ||
309 | } | ||
310 | else if (eNotificationRequired()) | ||
311 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A, newIndividual_A, newIndividual_A)); | ||
312 | } | ||
313 | |||
314 | /** | ||
315 | * <!-- begin-user-doc --> | ||
316 | * <!-- end-user-doc --> | ||
317 | * @generated | ||
318 | */ | ||
319 | @Override | ||
320 | public EList<Physical_Person> getIndividual_B() { | ||
321 | if (individual_B == null) { | ||
322 | individual_B = new EObjectContainmentEList<Physical_Person>(Physical_Person.class, this, TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_B); | ||
323 | } | ||
324 | return individual_B; | ||
325 | } | ||
326 | |||
327 | /** | ||
328 | * <!-- begin-user-doc --> | ||
329 | * <!-- end-user-doc --> | ||
330 | * @generated | ||
331 | */ | ||
332 | @Override | ||
333 | public EList<Tax_Property> getProperties() { | ||
334 | if (properties == null) { | ||
335 | properties = new EObjectContainmentWithInverseEList<Tax_Property>(Tax_Property.class, this, TaxationPackage.LEGAL_UNION_RECORD__PROPERTIES, TaxationPackage.TAX_PROPERTY__UNION_RECORD); | ||
336 | } | ||
337 | return properties; | ||
338 | } | ||
339 | |||
340 | /** | ||
341 | * <!-- begin-user-doc --> | ||
342 | * <!-- end-user-doc --> | ||
343 | * @generated | ||
344 | */ | ||
345 | @Override | ||
346 | public boolean isMutual_agreement() { | ||
347 | return mutual_agreement; | ||
348 | } | ||
349 | |||
350 | /** | ||
351 | * <!-- begin-user-doc --> | ||
352 | * <!-- end-user-doc --> | ||
353 | * @generated | ||
354 | */ | ||
355 | @Override | ||
356 | public void setMutual_agreement(boolean newMutual_agreement) { | ||
357 | boolean oldMutual_agreement = mutual_agreement; | ||
358 | mutual_agreement = newMutual_agreement; | ||
359 | if (eNotificationRequired()) | ||
360 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.LEGAL_UNION_RECORD__MUTUAL_AGREEMENT, oldMutual_agreement, mutual_agreement)); | ||
361 | } | ||
362 | |||
363 | /** | ||
364 | * <!-- begin-user-doc --> | ||
365 | * <!-- end-user-doc --> | ||
366 | * @generated | ||
367 | */ | ||
368 | @Override | ||
369 | public String getId9() { | ||
370 | return id9; | ||
371 | } | ||
372 | |||
373 | /** | ||
374 | * <!-- begin-user-doc --> | ||
375 | * <!-- end-user-doc --> | ||
376 | * @generated | ||
377 | */ | ||
378 | @Override | ||
379 | public void setId9(String newId9) { | ||
380 | String oldId9 = id9; | ||
381 | id9 = newId9; | ||
382 | if (eNotificationRequired()) | ||
383 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.LEGAL_UNION_RECORD__ID9, oldId9, id9)); | ||
384 | } | ||
385 | |||
386 | /** | ||
387 | * <!-- begin-user-doc --> | ||
388 | * <!-- end-user-doc --> | ||
389 | * @generated | ||
390 | */ | ||
391 | @Override | ||
392 | public Household getHousehold() { | ||
393 | if (eContainerFeatureID() != TaxationPackage.LEGAL_UNION_RECORD__HOUSEHOLD) return null; | ||
394 | return (Household)eInternalContainer(); | ||
395 | } | ||
396 | |||
397 | /** | ||
398 | * <!-- begin-user-doc --> | ||
399 | * <!-- end-user-doc --> | ||
400 | * @generated | ||
401 | */ | ||
402 | public NotificationChain basicSetHousehold(Household newHousehold, NotificationChain msgs) { | ||
403 | msgs = eBasicSetContainer((InternalEObject)newHousehold, TaxationPackage.LEGAL_UNION_RECORD__HOUSEHOLD, msgs); | ||
404 | return msgs; | ||
405 | } | ||
406 | |||
407 | /** | ||
408 | * <!-- begin-user-doc --> | ||
409 | * <!-- end-user-doc --> | ||
410 | * @generated | ||
411 | */ | ||
412 | @Override | ||
413 | public void setHousehold(Household newHousehold) { | ||
414 | if (newHousehold != eInternalContainer() || (eContainerFeatureID() != TaxationPackage.LEGAL_UNION_RECORD__HOUSEHOLD && newHousehold != null)) { | ||
415 | if (EcoreUtil.isAncestor(this, newHousehold)) | ||
416 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); | ||
417 | NotificationChain msgs = null; | ||
418 | if (eInternalContainer() != null) | ||
419 | msgs = eBasicRemoveFromContainer(msgs); | ||
420 | if (newHousehold != null) | ||
421 | msgs = ((InternalEObject)newHousehold).eInverseAdd(this, TaxationPackage.HOUSEHOLD__PARENTS, Household.class, msgs); | ||
422 | msgs = basicSetHousehold(newHousehold, msgs); | ||
423 | if (msgs != null) msgs.dispatch(); | ||
424 | } | ||
425 | else if (eNotificationRequired()) | ||
426 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.LEGAL_UNION_RECORD__HOUSEHOLD, newHousehold, newHousehold)); | ||
427 | } | ||
428 | |||
429 | /** | ||
430 | * <!-- begin-user-doc --> | ||
431 | * <!-- end-user-doc --> | ||
432 | * @generated | ||
433 | */ | ||
434 | @SuppressWarnings("unchecked") | ||
435 | @Override | ||
436 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
437 | switch (featureID) { | ||
438 | case TaxationPackage.LEGAL_UNION_RECORD__PROPERTIES: | ||
439 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getProperties()).basicAdd(otherEnd, msgs); | ||
440 | case TaxationPackage.LEGAL_UNION_RECORD__HOUSEHOLD: | ||
441 | if (eInternalContainer() != null) | ||
442 | msgs = eBasicRemoveFromContainer(msgs); | ||
443 | return basicSetHousehold((Household)otherEnd, msgs); | ||
444 | } | ||
445 | return super.eInverseAdd(otherEnd, featureID, msgs); | ||
446 | } | ||
447 | |||
448 | /** | ||
449 | * <!-- begin-user-doc --> | ||
450 | * <!-- end-user-doc --> | ||
451 | * @generated | ||
452 | */ | ||
453 | @Override | ||
454 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
455 | switch (featureID) { | ||
456 | case TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A: | ||
457 | return basicSetIndividual_A(null, msgs); | ||
458 | case TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_B: | ||
459 | return ((InternalEList<?>)getIndividual_B()).basicRemove(otherEnd, msgs); | ||
460 | case TaxationPackage.LEGAL_UNION_RECORD__PROPERTIES: | ||
461 | return ((InternalEList<?>)getProperties()).basicRemove(otherEnd, msgs); | ||
462 | case TaxationPackage.LEGAL_UNION_RECORD__HOUSEHOLD: | ||
463 | return basicSetHousehold(null, msgs); | ||
464 | } | ||
465 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
466 | } | ||
467 | |||
468 | /** | ||
469 | * <!-- begin-user-doc --> | ||
470 | * <!-- end-user-doc --> | ||
471 | * @generated | ||
472 | */ | ||
473 | @Override | ||
474 | public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { | ||
475 | switch (eContainerFeatureID()) { | ||
476 | case TaxationPackage.LEGAL_UNION_RECORD__HOUSEHOLD: | ||
477 | return eInternalContainer().eInverseRemove(this, TaxationPackage.HOUSEHOLD__PARENTS, Household.class, msgs); | ||
478 | } | ||
479 | return super.eBasicRemoveFromContainerFeature(msgs); | ||
480 | } | ||
481 | |||
482 | /** | ||
483 | * <!-- begin-user-doc --> | ||
484 | * <!-- end-user-doc --> | ||
485 | * @generated | ||
486 | */ | ||
487 | @Override | ||
488 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
489 | switch (featureID) { | ||
490 | case TaxationPackage.LEGAL_UNION_RECORD__START_YEAR: | ||
491 | return getStart_year(); | ||
492 | case TaxationPackage.LEGAL_UNION_RECORD__END_YEAR: | ||
493 | return getEnd_year(); | ||
494 | case TaxationPackage.LEGAL_UNION_RECORD__SEPARATION_CAUSE: | ||
495 | return getSeparation_cause(); | ||
496 | case TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A: | ||
497 | return getIndividual_A(); | ||
498 | case TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_B: | ||
499 | return getIndividual_B(); | ||
500 | case TaxationPackage.LEGAL_UNION_RECORD__PROPERTIES: | ||
501 | return getProperties(); | ||
502 | case TaxationPackage.LEGAL_UNION_RECORD__MUTUAL_AGREEMENT: | ||
503 | return isMutual_agreement(); | ||
504 | case TaxationPackage.LEGAL_UNION_RECORD__ID9: | ||
505 | return getId9(); | ||
506 | case TaxationPackage.LEGAL_UNION_RECORD__HOUSEHOLD: | ||
507 | return getHousehold(); | ||
508 | } | ||
509 | return super.eGet(featureID, resolve, coreType); | ||
510 | } | ||
511 | |||
512 | /** | ||
513 | * <!-- begin-user-doc --> | ||
514 | * <!-- end-user-doc --> | ||
515 | * @generated | ||
516 | */ | ||
517 | @SuppressWarnings("unchecked") | ||
518 | @Override | ||
519 | public void eSet(int featureID, Object newValue) { | ||
520 | switch (featureID) { | ||
521 | case TaxationPackage.LEGAL_UNION_RECORD__START_YEAR: | ||
522 | setStart_year((Integer)newValue); | ||
523 | return; | ||
524 | case TaxationPackage.LEGAL_UNION_RECORD__END_YEAR: | ||
525 | setEnd_year((Integer)newValue); | ||
526 | return; | ||
527 | case TaxationPackage.LEGAL_UNION_RECORD__SEPARATION_CAUSE: | ||
528 | setSeparation_cause((Separation_Causes)newValue); | ||
529 | return; | ||
530 | case TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A: | ||
531 | setIndividual_A((Physical_Person)newValue); | ||
532 | return; | ||
533 | case TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_B: | ||
534 | getIndividual_B().clear(); | ||
535 | getIndividual_B().addAll((Collection<? extends Physical_Person>)newValue); | ||
536 | return; | ||
537 | case TaxationPackage.LEGAL_UNION_RECORD__PROPERTIES: | ||
538 | getProperties().clear(); | ||
539 | getProperties().addAll((Collection<? extends Tax_Property>)newValue); | ||
540 | return; | ||
541 | case TaxationPackage.LEGAL_UNION_RECORD__MUTUAL_AGREEMENT: | ||
542 | setMutual_agreement((Boolean)newValue); | ||
543 | return; | ||
544 | case TaxationPackage.LEGAL_UNION_RECORD__ID9: | ||
545 | setId9((String)newValue); | ||
546 | return; | ||
547 | case TaxationPackage.LEGAL_UNION_RECORD__HOUSEHOLD: | ||
548 | setHousehold((Household)newValue); | ||
549 | return; | ||
550 | } | ||
551 | super.eSet(featureID, newValue); | ||
552 | } | ||
553 | |||
554 | /** | ||
555 | * <!-- begin-user-doc --> | ||
556 | * <!-- end-user-doc --> | ||
557 | * @generated | ||
558 | */ | ||
559 | @Override | ||
560 | public void eUnset(int featureID) { | ||
561 | switch (featureID) { | ||
562 | case TaxationPackage.LEGAL_UNION_RECORD__START_YEAR: | ||
563 | setStart_year(START_YEAR_EDEFAULT); | ||
564 | return; | ||
565 | case TaxationPackage.LEGAL_UNION_RECORD__END_YEAR: | ||
566 | setEnd_year(END_YEAR_EDEFAULT); | ||
567 | return; | ||
568 | case TaxationPackage.LEGAL_UNION_RECORD__SEPARATION_CAUSE: | ||
569 | setSeparation_cause(SEPARATION_CAUSE_EDEFAULT); | ||
570 | return; | ||
571 | case TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A: | ||
572 | setIndividual_A((Physical_Person)null); | ||
573 | return; | ||
574 | case TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_B: | ||
575 | getIndividual_B().clear(); | ||
576 | return; | ||
577 | case TaxationPackage.LEGAL_UNION_RECORD__PROPERTIES: | ||
578 | getProperties().clear(); | ||
579 | return; | ||
580 | case TaxationPackage.LEGAL_UNION_RECORD__MUTUAL_AGREEMENT: | ||
581 | setMutual_agreement(MUTUAL_AGREEMENT_EDEFAULT); | ||
582 | return; | ||
583 | case TaxationPackage.LEGAL_UNION_RECORD__ID9: | ||
584 | setId9(ID9_EDEFAULT); | ||
585 | return; | ||
586 | case TaxationPackage.LEGAL_UNION_RECORD__HOUSEHOLD: | ||
587 | setHousehold((Household)null); | ||
588 | return; | ||
589 | } | ||
590 | super.eUnset(featureID); | ||
591 | } | ||
592 | |||
593 | /** | ||
594 | * <!-- begin-user-doc --> | ||
595 | * <!-- end-user-doc --> | ||
596 | * @generated | ||
597 | */ | ||
598 | @Override | ||
599 | public boolean eIsSet(int featureID) { | ||
600 | switch (featureID) { | ||
601 | case TaxationPackage.LEGAL_UNION_RECORD__START_YEAR: | ||
602 | return start_year != START_YEAR_EDEFAULT; | ||
603 | case TaxationPackage.LEGAL_UNION_RECORD__END_YEAR: | ||
604 | return end_year != END_YEAR_EDEFAULT; | ||
605 | case TaxationPackage.LEGAL_UNION_RECORD__SEPARATION_CAUSE: | ||
606 | return separation_cause != SEPARATION_CAUSE_EDEFAULT; | ||
607 | case TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_A: | ||
608 | return individual_A != null; | ||
609 | case TaxationPackage.LEGAL_UNION_RECORD__INDIVIDUAL_B: | ||
610 | return individual_B != null && !individual_B.isEmpty(); | ||
611 | case TaxationPackage.LEGAL_UNION_RECORD__PROPERTIES: | ||
612 | return properties != null && !properties.isEmpty(); | ||
613 | case TaxationPackage.LEGAL_UNION_RECORD__MUTUAL_AGREEMENT: | ||
614 | return mutual_agreement != MUTUAL_AGREEMENT_EDEFAULT; | ||
615 | case TaxationPackage.LEGAL_UNION_RECORD__ID9: | ||
616 | return ID9_EDEFAULT == null ? id9 != null : !ID9_EDEFAULT.equals(id9); | ||
617 | case TaxationPackage.LEGAL_UNION_RECORD__HOUSEHOLD: | ||
618 | return getHousehold() != null; | ||
619 | } | ||
620 | return super.eIsSet(featureID); | ||
621 | } | ||
622 | |||
623 | /** | ||
624 | * <!-- begin-user-doc --> | ||
625 | * <!-- end-user-doc --> | ||
626 | * @generated | ||
627 | */ | ||
628 | @Override | ||
629 | public String toString() { | ||
630 | if (eIsProxy()) return super.toString(); | ||
631 | |||
632 | StringBuilder result = new StringBuilder(super.toString()); | ||
633 | result.append(" (start_year: "); | ||
634 | result.append(start_year); | ||
635 | result.append(", end_year: "); | ||
636 | result.append(end_year); | ||
637 | result.append(", separation_cause: "); | ||
638 | result.append(separation_cause); | ||
639 | result.append(", mutual_agreement: "); | ||
640 | result.append(mutual_agreement); | ||
641 | result.append(", id9: "); | ||
642 | result.append(id9); | ||
643 | result.append(')'); | ||
644 | return result.toString(); | ||
645 | } | ||
646 | |||
647 | } //Legal_Union_RecordImpl | ||