aboutsummaryrefslogtreecommitdiffstats
path: root/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/DependentImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/DependentImpl.java')
-rw-r--r--Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/DependentImpl.java599
1 files changed, 599 insertions, 0 deletions
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/DependentImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/DependentImpl.java
new file mode 100644
index 00000000..f6111014
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/DependentImpl.java
@@ -0,0 +1,599 @@
1/**
2 */
3package TaxationWithRoot.impl;
4
5import TaxationWithRoot.Dependent;
6import TaxationWithRoot.Dependent_Type;
7import TaxationWithRoot.Expense;
8import TaxationWithRoot.External_Allowance;
9import TaxationWithRoot.FromAgent;
10import TaxationWithRoot.Household;
11import TaxationWithRoot.Tax_Payer;
12import TaxationWithRoot.TaxationWithRootPackage;
13
14import java.util.Collection;
15
16import org.eclipse.emf.common.notify.Notification;
17import org.eclipse.emf.common.notify.NotificationChain;
18
19import org.eclipse.emf.common.util.EList;
20
21import org.eclipse.emf.ecore.EClass;
22import org.eclipse.emf.ecore.InternalEObject;
23
24import org.eclipse.emf.ecore.impl.ENotificationImpl;
25
26import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList;
27import org.eclipse.emf.ecore.util.EcoreUtil;
28import org.eclipse.emf.ecore.util.InternalEList;
29
30/**
31 * <!-- begin-user-doc -->
32 * An implementation of the model object '<em><b>Dependent</b></em>'.
33 * <!-- end-user-doc -->
34 * <p>
35 * The following features are implemented:
36 * </p>
37 * <ul>
38 * <li>{@link TaxationWithRoot.impl.DependentImpl#getDependent_type <em>Dependent type</em>}</li>
39 * <li>{@link TaxationWithRoot.impl.DependentImpl#getResponsible_person <em>Responsible person</em>}</li>
40 * <li>{@link TaxationWithRoot.impl.DependentImpl#isContinued_studies <em>Continued studies</em>}</li>
41 * <li>{@link TaxationWithRoot.impl.DependentImpl#getAllowances <em>Allowances</em>}</li>
42 * <li>{@link TaxationWithRoot.impl.DependentImpl#getHousehold <em>Household</em>}</li>
43 * <li>{@link TaxationWithRoot.impl.DependentImpl#getFrom_agent <em>From agent</em>}</li>
44 * <li>{@link TaxationWithRoot.impl.DependentImpl#getExpense <em>Expense</em>}</li>
45 * </ul>
46 *
47 * @generated
48 */
49public class DependentImpl extends Physical_PersonImpl implements Dependent {
50 /**
51 * The default value of the '{@link #getDependent_type() <em>Dependent type</em>}' attribute.
52 * <!-- begin-user-doc -->
53 * <!-- end-user-doc -->
54 * @see #getDependent_type()
55 * @generated
56 * @ordered
57 */
58 protected static final Dependent_Type DEPENDENT_TYPE_EDEFAULT = Dependent_Type.CHILD;
59
60 /**
61 * The cached value of the '{@link #getDependent_type() <em>Dependent type</em>}' attribute.
62 * <!-- begin-user-doc -->
63 * <!-- end-user-doc -->
64 * @see #getDependent_type()
65 * @generated
66 * @ordered
67 */
68 protected Dependent_Type dependent_type = DEPENDENT_TYPE_EDEFAULT;
69
70 /**
71 * The default value of the '{@link #isContinued_studies() <em>Continued studies</em>}' attribute.
72 * <!-- begin-user-doc -->
73 * <!-- end-user-doc -->
74 * @see #isContinued_studies()
75 * @generated
76 * @ordered
77 */
78 protected static final boolean CONTINUED_STUDIES_EDEFAULT = false;
79
80 /**
81 * The cached value of the '{@link #isContinued_studies() <em>Continued studies</em>}' attribute.
82 * <!-- begin-user-doc -->
83 * <!-- end-user-doc -->
84 * @see #isContinued_studies()
85 * @generated
86 * @ordered
87 */
88 protected boolean continued_studies = CONTINUED_STUDIES_EDEFAULT;
89
90 /**
91 * The cached value of the '{@link #getAllowances() <em>Allowances</em>}' containment reference.
92 * <!-- begin-user-doc -->
93 * <!-- end-user-doc -->
94 * @see #getAllowances()
95 * @generated
96 * @ordered
97 */
98 protected External_Allowance allowances;
99
100 /**
101 * The cached value of the '{@link #getFrom_agent() <em>From agent</em>}' reference.
102 * <!-- begin-user-doc -->
103 * <!-- end-user-doc -->
104 * @see #getFrom_agent()
105 * @generated
106 * @ordered
107 */
108 protected FromAgent from_agent;
109
110 /**
111 * The cached value of the '{@link #getExpense() <em>Expense</em>}' reference list.
112 * <!-- begin-user-doc -->
113 * <!-- end-user-doc -->
114 * @see #getExpense()
115 * @generated
116 * @ordered
117 */
118 protected EList<Expense> expense;
119
120 /**
121 * <!-- begin-user-doc -->
122 * <!-- end-user-doc -->
123 * @generated
124 */
125 protected DependentImpl() {
126 super();
127 }
128
129 /**
130 * <!-- begin-user-doc -->
131 * <!-- end-user-doc -->
132 * @generated
133 */
134 @Override
135 protected EClass eStaticClass() {
136 return TaxationWithRootPackage.Literals.DEPENDENT;
137 }
138
139 /**
140 * <!-- begin-user-doc -->
141 * <!-- end-user-doc -->
142 * @generated
143 */
144 @Override
145 public Dependent_Type getDependent_type() {
146 return dependent_type;
147 }
148
149 /**
150 * <!-- begin-user-doc -->
151 * <!-- end-user-doc -->
152 * @generated
153 */
154 @Override
155 public void setDependent_type(Dependent_Type newDependent_type) {
156 Dependent_Type oldDependent_type = dependent_type;
157 dependent_type = newDependent_type == null ? DEPENDENT_TYPE_EDEFAULT : newDependent_type;
158 if (eNotificationRequired())
159 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.DEPENDENT__DEPENDENT_TYPE, oldDependent_type, dependent_type));
160 }
161
162 /**
163 * <!-- begin-user-doc -->
164 * <!-- end-user-doc -->
165 * @generated
166 */
167 @Override
168 public Tax_Payer getResponsible_person() {
169 if (eContainerFeatureID() != TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON) return null;
170 return (Tax_Payer)eInternalContainer();
171 }
172
173 /**
174 * <!-- begin-user-doc -->
175 * <!-- end-user-doc -->
176 * @generated
177 */
178 public NotificationChain basicSetResponsible_person(Tax_Payer newResponsible_person, NotificationChain msgs) {
179 msgs = eBasicSetContainer((InternalEObject)newResponsible_person, TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON, msgs);
180 return msgs;
181 }
182
183 /**
184 * <!-- begin-user-doc -->
185 * <!-- end-user-doc -->
186 * @generated
187 */
188 @Override
189 public void setResponsible_person(Tax_Payer newResponsible_person) {
190 if (newResponsible_person != eInternalContainer() || (eContainerFeatureID() != TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON && newResponsible_person != null)) {
191 if (EcoreUtil.isAncestor(this, newResponsible_person))
192 throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
193 NotificationChain msgs = null;
194 if (eInternalContainer() != null)
195 msgs = eBasicRemoveFromContainer(msgs);
196 if (newResponsible_person != null)
197 msgs = ((InternalEObject)newResponsible_person).eInverseAdd(this, TaxationWithRootPackage.TAX_PAYER__DEPENDENTS, Tax_Payer.class, msgs);
198 msgs = basicSetResponsible_person(newResponsible_person, msgs);
199 if (msgs != null) msgs.dispatch();
200 }
201 else if (eNotificationRequired())
202 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON, newResponsible_person, newResponsible_person));
203 }
204
205 /**
206 * <!-- begin-user-doc -->
207 * <!-- end-user-doc -->
208 * @generated
209 */
210 @Override
211 public boolean isContinued_studies() {
212 return continued_studies;
213 }
214
215 /**
216 * <!-- begin-user-doc -->
217 * <!-- end-user-doc -->
218 * @generated
219 */
220 @Override
221 public void setContinued_studies(boolean newContinued_studies) {
222 boolean oldContinued_studies = continued_studies;
223 continued_studies = newContinued_studies;
224 if (eNotificationRequired())
225 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.DEPENDENT__CONTINUED_STUDIES, oldContinued_studies, continued_studies));
226 }
227
228 /**
229 * <!-- begin-user-doc -->
230 * <!-- end-user-doc -->
231 * @generated
232 */
233 @Override
234 public External_Allowance getAllowances() {
235 return allowances;
236 }
237
238 /**
239 * <!-- begin-user-doc -->
240 * <!-- end-user-doc -->
241 * @generated
242 */
243 public NotificationChain basicSetAllowances(External_Allowance newAllowances, NotificationChain msgs) {
244 External_Allowance oldAllowances = allowances;
245 allowances = newAllowances;
246 if (eNotificationRequired()) {
247 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.DEPENDENT__ALLOWANCES, oldAllowances, newAllowances);
248 if (msgs == null) msgs = notification; else msgs.add(notification);
249 }
250 return msgs;
251 }
252
253 /**
254 * <!-- begin-user-doc -->
255 * <!-- end-user-doc -->
256 * @generated
257 */
258 @Override
259 public void setAllowances(External_Allowance newAllowances) {
260 if (newAllowances != allowances) {
261 NotificationChain msgs = null;
262 if (allowances != null)
263 msgs = ((InternalEObject)allowances).eInverseRemove(this, TaxationWithRootPackage.EXTERNAL_ALLOWANCE__PERSON, External_Allowance.class, msgs);
264 if (newAllowances != null)
265 msgs = ((InternalEObject)newAllowances).eInverseAdd(this, TaxationWithRootPackage.EXTERNAL_ALLOWANCE__PERSON, External_Allowance.class, msgs);
266 msgs = basicSetAllowances(newAllowances, msgs);
267 if (msgs != null) msgs.dispatch();
268 }
269 else if (eNotificationRequired())
270 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.DEPENDENT__ALLOWANCES, newAllowances, newAllowances));
271 }
272
273 /**
274 * <!-- begin-user-doc -->
275 * <!-- end-user-doc -->
276 * @generated
277 */
278 @Override
279 public Household getHousehold() {
280 if (eContainerFeatureID() != TaxationWithRootPackage.DEPENDENT__HOUSEHOLD) return null;
281 return (Household)eInternalContainer();
282 }
283
284 /**
285 * <!-- begin-user-doc -->
286 * <!-- end-user-doc -->
287 * @generated
288 */
289 public NotificationChain basicSetHousehold(Household newHousehold, NotificationChain msgs) {
290 msgs = eBasicSetContainer((InternalEObject)newHousehold, TaxationWithRootPackage.DEPENDENT__HOUSEHOLD, msgs);
291 return msgs;
292 }
293
294 /**
295 * <!-- begin-user-doc -->
296 * <!-- end-user-doc -->
297 * @generated
298 */
299 @Override
300 public void setHousehold(Household newHousehold) {
301 if (newHousehold != eInternalContainer() || (eContainerFeatureID() != TaxationWithRootPackage.DEPENDENT__HOUSEHOLD && newHousehold != null)) {
302 if (EcoreUtil.isAncestor(this, newHousehold))
303 throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
304 NotificationChain msgs = null;
305 if (eInternalContainer() != null)
306 msgs = eBasicRemoveFromContainer(msgs);
307 if (newHousehold != null)
308 msgs = ((InternalEObject)newHousehold).eInverseAdd(this, TaxationWithRootPackage.HOUSEHOLD__CHILDREN, Household.class, msgs);
309 msgs = basicSetHousehold(newHousehold, msgs);
310 if (msgs != null) msgs.dispatch();
311 }
312 else if (eNotificationRequired())
313 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.DEPENDENT__HOUSEHOLD, newHousehold, newHousehold));
314 }
315
316 /**
317 * <!-- begin-user-doc -->
318 * <!-- end-user-doc -->
319 * @generated
320 */
321 @Override
322 public FromAgent getFrom_agent() {
323 if (from_agent != null && from_agent.eIsProxy()) {
324 InternalEObject oldFrom_agent = (InternalEObject)from_agent;
325 from_agent = (FromAgent)eResolveProxy(oldFrom_agent);
326 if (from_agent != oldFrom_agent) {
327 if (eNotificationRequired())
328 eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationWithRootPackage.DEPENDENT__FROM_AGENT, oldFrom_agent, from_agent));
329 }
330 }
331 return from_agent;
332 }
333
334 /**
335 * <!-- begin-user-doc -->
336 * <!-- end-user-doc -->
337 * @generated
338 */
339 public FromAgent basicGetFrom_agent() {
340 return from_agent;
341 }
342
343 /**
344 * <!-- begin-user-doc -->
345 * <!-- end-user-doc -->
346 * @generated
347 */
348 public NotificationChain basicSetFrom_agent(FromAgent newFrom_agent, NotificationChain msgs) {
349 FromAgent oldFrom_agent = from_agent;
350 from_agent = newFrom_agent;
351 if (eNotificationRequired()) {
352 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.DEPENDENT__FROM_AGENT, oldFrom_agent, newFrom_agent);
353 if (msgs == null) msgs = notification; else msgs.add(notification);
354 }
355 return msgs;
356 }
357
358 /**
359 * <!-- begin-user-doc -->
360 * <!-- end-user-doc -->
361 * @generated
362 */
363 @Override
364 public void setFrom_agent(FromAgent newFrom_agent) {
365 if (newFrom_agent != from_agent) {
366 NotificationChain msgs = null;
367 if (from_agent != null)
368 msgs = ((InternalEObject)from_agent).eInverseRemove(this, TaxationWithRootPackage.FROM_AGENT__DEPENDENT, FromAgent.class, msgs);
369 if (newFrom_agent != null)
370 msgs = ((InternalEObject)newFrom_agent).eInverseAdd(this, TaxationWithRootPackage.FROM_AGENT__DEPENDENT, FromAgent.class, msgs);
371 msgs = basicSetFrom_agent(newFrom_agent, msgs);
372 if (msgs != null) msgs.dispatch();
373 }
374 else if (eNotificationRequired())
375 eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.DEPENDENT__FROM_AGENT, newFrom_agent, newFrom_agent));
376 }
377
378 /**
379 * <!-- begin-user-doc -->
380 * <!-- end-user-doc -->
381 * @generated
382 */
383 @Override
384 public EList<Expense> getExpense() {
385 if (expense == null) {
386 expense = new EObjectWithInverseResolvingEList<Expense>(Expense.class, this, TaxationWithRootPackage.DEPENDENT__EXPENSE, TaxationWithRootPackage.EXPENSE__DEPENDENT);
387 }
388 return expense;
389 }
390
391 /**
392 * <!-- begin-user-doc -->
393 * <!-- end-user-doc -->
394 * @generated
395 */
396 @SuppressWarnings("unchecked")
397 @Override
398 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
399 switch (featureID) {
400 case TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON:
401 if (eInternalContainer() != null)
402 msgs = eBasicRemoveFromContainer(msgs);
403 return basicSetResponsible_person((Tax_Payer)otherEnd, msgs);
404 case TaxationWithRootPackage.DEPENDENT__ALLOWANCES:
405 if (allowances != null)
406 msgs = ((InternalEObject)allowances).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TaxationWithRootPackage.DEPENDENT__ALLOWANCES, null, msgs);
407 return basicSetAllowances((External_Allowance)otherEnd, msgs);
408 case TaxationWithRootPackage.DEPENDENT__HOUSEHOLD:
409 if (eInternalContainer() != null)
410 msgs = eBasicRemoveFromContainer(msgs);
411 return basicSetHousehold((Household)otherEnd, msgs);
412 case TaxationWithRootPackage.DEPENDENT__FROM_AGENT:
413 if (from_agent != null)
414 msgs = ((InternalEObject)from_agent).eInverseRemove(this, TaxationWithRootPackage.FROM_AGENT__DEPENDENT, FromAgent.class, msgs);
415 return basicSetFrom_agent((FromAgent)otherEnd, msgs);
416 case TaxationWithRootPackage.DEPENDENT__EXPENSE:
417 return ((InternalEList<InternalEObject>)(InternalEList<?>)getExpense()).basicAdd(otherEnd, msgs);
418 }
419 return super.eInverseAdd(otherEnd, featureID, msgs);
420 }
421
422 /**
423 * <!-- begin-user-doc -->
424 * <!-- end-user-doc -->
425 * @generated
426 */
427 @Override
428 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
429 switch (featureID) {
430 case TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON:
431 return basicSetResponsible_person(null, msgs);
432 case TaxationWithRootPackage.DEPENDENT__ALLOWANCES:
433 return basicSetAllowances(null, msgs);
434 case TaxationWithRootPackage.DEPENDENT__HOUSEHOLD:
435 return basicSetHousehold(null, msgs);
436 case TaxationWithRootPackage.DEPENDENT__FROM_AGENT:
437 return basicSetFrom_agent(null, msgs);
438 case TaxationWithRootPackage.DEPENDENT__EXPENSE:
439 return ((InternalEList<?>)getExpense()).basicRemove(otherEnd, msgs);
440 }
441 return super.eInverseRemove(otherEnd, featureID, msgs);
442 }
443
444 /**
445 * <!-- begin-user-doc -->
446 * <!-- end-user-doc -->
447 * @generated
448 */
449 @Override
450 public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
451 switch (eContainerFeatureID()) {
452 case TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON:
453 return eInternalContainer().eInverseRemove(this, TaxationWithRootPackage.TAX_PAYER__DEPENDENTS, Tax_Payer.class, msgs);
454 case TaxationWithRootPackage.DEPENDENT__HOUSEHOLD:
455 return eInternalContainer().eInverseRemove(this, TaxationWithRootPackage.HOUSEHOLD__CHILDREN, Household.class, msgs);
456 }
457 return super.eBasicRemoveFromContainerFeature(msgs);
458 }
459
460 /**
461 * <!-- begin-user-doc -->
462 * <!-- end-user-doc -->
463 * @generated
464 */
465 @Override
466 public Object eGet(int featureID, boolean resolve, boolean coreType) {
467 switch (featureID) {
468 case TaxationWithRootPackage.DEPENDENT__DEPENDENT_TYPE:
469 return getDependent_type();
470 case TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON:
471 return getResponsible_person();
472 case TaxationWithRootPackage.DEPENDENT__CONTINUED_STUDIES:
473 return isContinued_studies();
474 case TaxationWithRootPackage.DEPENDENT__ALLOWANCES:
475 return getAllowances();
476 case TaxationWithRootPackage.DEPENDENT__HOUSEHOLD:
477 return getHousehold();
478 case TaxationWithRootPackage.DEPENDENT__FROM_AGENT:
479 if (resolve) return getFrom_agent();
480 return basicGetFrom_agent();
481 case TaxationWithRootPackage.DEPENDENT__EXPENSE:
482 return getExpense();
483 }
484 return super.eGet(featureID, resolve, coreType);
485 }
486
487 /**
488 * <!-- begin-user-doc -->
489 * <!-- end-user-doc -->
490 * @generated
491 */
492 @SuppressWarnings("unchecked")
493 @Override
494 public void eSet(int featureID, Object newValue) {
495 switch (featureID) {
496 case TaxationWithRootPackage.DEPENDENT__DEPENDENT_TYPE:
497 setDependent_type((Dependent_Type)newValue);
498 return;
499 case TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON:
500 setResponsible_person((Tax_Payer)newValue);
501 return;
502 case TaxationWithRootPackage.DEPENDENT__CONTINUED_STUDIES:
503 setContinued_studies((Boolean)newValue);
504 return;
505 case TaxationWithRootPackage.DEPENDENT__ALLOWANCES:
506 setAllowances((External_Allowance)newValue);
507 return;
508 case TaxationWithRootPackage.DEPENDENT__HOUSEHOLD:
509 setHousehold((Household)newValue);
510 return;
511 case TaxationWithRootPackage.DEPENDENT__FROM_AGENT:
512 setFrom_agent((FromAgent)newValue);
513 return;
514 case TaxationWithRootPackage.DEPENDENT__EXPENSE:
515 getExpense().clear();
516 getExpense().addAll((Collection<? extends Expense>)newValue);
517 return;
518 }
519 super.eSet(featureID, newValue);
520 }
521
522 /**
523 * <!-- begin-user-doc -->
524 * <!-- end-user-doc -->
525 * @generated
526 */
527 @Override
528 public void eUnset(int featureID) {
529 switch (featureID) {
530 case TaxationWithRootPackage.DEPENDENT__DEPENDENT_TYPE:
531 setDependent_type(DEPENDENT_TYPE_EDEFAULT);
532 return;
533 case TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON:
534 setResponsible_person((Tax_Payer)null);
535 return;
536 case TaxationWithRootPackage.DEPENDENT__CONTINUED_STUDIES:
537 setContinued_studies(CONTINUED_STUDIES_EDEFAULT);
538 return;
539 case TaxationWithRootPackage.DEPENDENT__ALLOWANCES:
540 setAllowances((External_Allowance)null);
541 return;
542 case TaxationWithRootPackage.DEPENDENT__HOUSEHOLD:
543 setHousehold((Household)null);
544 return;
545 case TaxationWithRootPackage.DEPENDENT__FROM_AGENT:
546 setFrom_agent((FromAgent)null);
547 return;
548 case TaxationWithRootPackage.DEPENDENT__EXPENSE:
549 getExpense().clear();
550 return;
551 }
552 super.eUnset(featureID);
553 }
554
555 /**
556 * <!-- begin-user-doc -->
557 * <!-- end-user-doc -->
558 * @generated
559 */
560 @Override
561 public boolean eIsSet(int featureID) {
562 switch (featureID) {
563 case TaxationWithRootPackage.DEPENDENT__DEPENDENT_TYPE:
564 return dependent_type != DEPENDENT_TYPE_EDEFAULT;
565 case TaxationWithRootPackage.DEPENDENT__RESPONSIBLE_PERSON:
566 return getResponsible_person() != null;
567 case TaxationWithRootPackage.DEPENDENT__CONTINUED_STUDIES:
568 return continued_studies != CONTINUED_STUDIES_EDEFAULT;
569 case TaxationWithRootPackage.DEPENDENT__ALLOWANCES:
570 return allowances != null;
571 case TaxationWithRootPackage.DEPENDENT__HOUSEHOLD:
572 return getHousehold() != null;
573 case TaxationWithRootPackage.DEPENDENT__FROM_AGENT:
574 return from_agent != null;
575 case TaxationWithRootPackage.DEPENDENT__EXPENSE:
576 return expense != null && !expense.isEmpty();
577 }
578 return super.eIsSet(featureID);
579 }
580
581 /**
582 * <!-- begin-user-doc -->
583 * <!-- end-user-doc -->
584 * @generated
585 */
586 @Override
587 public String toString() {
588 if (eIsProxy()) return super.toString();
589
590 StringBuilder result = new StringBuilder(super.toString());
591 result.append(" (dependent_type: ");
592 result.append(dependent_type);
593 result.append(", continued_studies: ");
594 result.append(continued_studies);
595 result.append(')');
596 return result.toString();
597 }
598
599} //DependentImpl