diff options
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/FromAgentImpl.java')
-rw-r--r-- | Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/FromAgentImpl.java | 505 |
1 files changed, 505 insertions, 0 deletions
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/FromAgentImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/FromAgentImpl.java new file mode 100644 index 00000000..930a23de --- /dev/null +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/FromAgentImpl.java | |||
@@ -0,0 +1,505 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package Taxation.impl; | ||
4 | |||
5 | import Taxation.Dependent; | ||
6 | import Taxation.Expense; | ||
7 | import Taxation.FromAgent; | ||
8 | import Taxation.Tax_Payer; | ||
9 | import Taxation.TaxationPackage; | ||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EClass; | ||
14 | import org.eclipse.emf.ecore.InternalEObject; | ||
15 | |||
16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
17 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
18 | |||
19 | import org.eclipse.emf.ecore.util.EcoreUtil; | ||
20 | |||
21 | /** | ||
22 | * <!-- begin-user-doc --> | ||
23 | * An implementation of the model object '<em><b>From Agent</b></em>'. | ||
24 | * <!-- end-user-doc --> | ||
25 | * <p> | ||
26 | * The following features are implemented: | ||
27 | * </p> | ||
28 | * <ul> | ||
29 | * <li>{@link Taxation.impl.FromAgentImpl#getTaxPayer <em>Tax Payer</em>}</li> | ||
30 | * <li>{@link Taxation.impl.FromAgentImpl#isIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care <em>Is dependent eligible for CE Not In Houshold Children Care</em>}</li> | ||
31 | * <li>{@link Taxation.impl.FromAgentImpl#getExpense <em>Expense</em>}</li> | ||
32 | * <li>{@link Taxation.impl.FromAgentImpl#isIs_eligible_debt <em>Is eligible debt</em>}</li> | ||
33 | * <li>{@link Taxation.impl.FromAgentImpl#getDependent <em>Dependent</em>}</li> | ||
34 | * </ul> | ||
35 | * | ||
36 | * @generated | ||
37 | */ | ||
38 | public class FromAgentImpl extends MinimalEObjectImpl.Container implements FromAgent { | ||
39 | /** | ||
40 | * The default value of the '{@link #isIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care() <em>Is dependent eligible for CE Not In Houshold Children Care</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #isIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected static final boolean IS_DEPENDENT_ELIGIBLE_FOR_CE_NOT_IN_HOUSHOLD_CHILDREN_CARE_EDEFAULT = false; | ||
48 | |||
49 | /** | ||
50 | * The cached value of the '{@link #isIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care() <em>Is dependent eligible for CE Not In Houshold Children Care</em>}' attribute. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @see #isIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care() | ||
54 | * @generated | ||
55 | * @ordered | ||
56 | */ | ||
57 | protected boolean is_dependent_eligible_for_CE_Not_In_Houshold_Children_Care = IS_DEPENDENT_ELIGIBLE_FOR_CE_NOT_IN_HOUSHOLD_CHILDREN_CARE_EDEFAULT; | ||
58 | |||
59 | /** | ||
60 | * The cached value of the '{@link #getExpense() <em>Expense</em>}' reference. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @see #getExpense() | ||
64 | * @generated | ||
65 | * @ordered | ||
66 | */ | ||
67 | protected Expense expense; | ||
68 | |||
69 | /** | ||
70 | * The default value of the '{@link #isIs_eligible_debt() <em>Is eligible debt</em>}' attribute. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @see #isIs_eligible_debt() | ||
74 | * @generated | ||
75 | * @ordered | ||
76 | */ | ||
77 | protected static final boolean IS_ELIGIBLE_DEBT_EDEFAULT = false; | ||
78 | |||
79 | /** | ||
80 | * The cached value of the '{@link #isIs_eligible_debt() <em>Is eligible debt</em>}' attribute. | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @see #isIs_eligible_debt() | ||
84 | * @generated | ||
85 | * @ordered | ||
86 | */ | ||
87 | protected boolean is_eligible_debt = IS_ELIGIBLE_DEBT_EDEFAULT; | ||
88 | |||
89 | /** | ||
90 | * The cached value of the '{@link #getDependent() <em>Dependent</em>}' reference. | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @see #getDependent() | ||
94 | * @generated | ||
95 | * @ordered | ||
96 | */ | ||
97 | protected Dependent dependent; | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | protected FromAgentImpl() { | ||
105 | super(); | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | @Override | ||
114 | protected EClass eStaticClass() { | ||
115 | return TaxationPackage.Literals.FROM_AGENT; | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public Tax_Payer getTaxPayer() { | ||
125 | if (eContainerFeatureID() != TaxationPackage.FROM_AGENT__TAX_PAYER) return null; | ||
126 | return (Tax_Payer)eInternalContainer(); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | public NotificationChain basicSetTaxPayer(Tax_Payer newTaxPayer, NotificationChain msgs) { | ||
135 | msgs = eBasicSetContainer((InternalEObject)newTaxPayer, TaxationPackage.FROM_AGENT__TAX_PAYER, msgs); | ||
136 | return msgs; | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public void setTaxPayer(Tax_Payer newTaxPayer) { | ||
146 | if (newTaxPayer != eInternalContainer() || (eContainerFeatureID() != TaxationPackage.FROM_AGENT__TAX_PAYER && newTaxPayer != null)) { | ||
147 | if (EcoreUtil.isAncestor(this, newTaxPayer)) | ||
148 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); | ||
149 | NotificationChain msgs = null; | ||
150 | if (eInternalContainer() != null) | ||
151 | msgs = eBasicRemoveFromContainer(msgs); | ||
152 | if (newTaxPayer != null) | ||
153 | msgs = ((InternalEObject)newTaxPayer).eInverseAdd(this, TaxationPackage.TAX_PAYER__FROM_AGENT, Tax_Payer.class, msgs); | ||
154 | msgs = basicSetTaxPayer(newTaxPayer, msgs); | ||
155 | if (msgs != null) msgs.dispatch(); | ||
156 | } | ||
157 | else if (eNotificationRequired()) | ||
158 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.FROM_AGENT__TAX_PAYER, newTaxPayer, newTaxPayer)); | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | @Override | ||
167 | public boolean isIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care() { | ||
168 | return is_dependent_eligible_for_CE_Not_In_Houshold_Children_Care; | ||
169 | } | ||
170 | |||
171 | /** | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @generated | ||
175 | */ | ||
176 | @Override | ||
177 | public void setIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care(boolean newIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care) { | ||
178 | boolean oldIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care = is_dependent_eligible_for_CE_Not_In_Houshold_Children_Care; | ||
179 | is_dependent_eligible_for_CE_Not_In_Houshold_Children_Care = newIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care; | ||
180 | if (eNotificationRequired()) | ||
181 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.FROM_AGENT__IS_DEPENDENT_ELIGIBLE_FOR_CE_NOT_IN_HOUSHOLD_CHILDREN_CARE, oldIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care, is_dependent_eligible_for_CE_Not_In_Houshold_Children_Care)); | ||
182 | } | ||
183 | |||
184 | /** | ||
185 | * <!-- begin-user-doc --> | ||
186 | * <!-- end-user-doc --> | ||
187 | * @generated | ||
188 | */ | ||
189 | @Override | ||
190 | public Expense getExpense() { | ||
191 | if (expense != null && expense.eIsProxy()) { | ||
192 | InternalEObject oldExpense = (InternalEObject)expense; | ||
193 | expense = (Expense)eResolveProxy(oldExpense); | ||
194 | if (expense != oldExpense) { | ||
195 | if (eNotificationRequired()) | ||
196 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationPackage.FROM_AGENT__EXPENSE, oldExpense, expense)); | ||
197 | } | ||
198 | } | ||
199 | return expense; | ||
200 | } | ||
201 | |||
202 | /** | ||
203 | * <!-- begin-user-doc --> | ||
204 | * <!-- end-user-doc --> | ||
205 | * @generated | ||
206 | */ | ||
207 | public Expense basicGetExpense() { | ||
208 | return expense; | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | public NotificationChain basicSetExpense(Expense newExpense, NotificationChain msgs) { | ||
217 | Expense oldExpense = expense; | ||
218 | expense = newExpense; | ||
219 | if (eNotificationRequired()) { | ||
220 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationPackage.FROM_AGENT__EXPENSE, oldExpense, newExpense); | ||
221 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
222 | } | ||
223 | return msgs; | ||
224 | } | ||
225 | |||
226 | /** | ||
227 | * <!-- begin-user-doc --> | ||
228 | * <!-- end-user-doc --> | ||
229 | * @generated | ||
230 | */ | ||
231 | @Override | ||
232 | public void setExpense(Expense newExpense) { | ||
233 | if (newExpense != expense) { | ||
234 | NotificationChain msgs = null; | ||
235 | if (expense != null) | ||
236 | msgs = ((InternalEObject)expense).eInverseRemove(this, TaxationPackage.EXPENSE__FROM_AGENT, Expense.class, msgs); | ||
237 | if (newExpense != null) | ||
238 | msgs = ((InternalEObject)newExpense).eInverseAdd(this, TaxationPackage.EXPENSE__FROM_AGENT, Expense.class, msgs); | ||
239 | msgs = basicSetExpense(newExpense, msgs); | ||
240 | if (msgs != null) msgs.dispatch(); | ||
241 | } | ||
242 | else if (eNotificationRequired()) | ||
243 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.FROM_AGENT__EXPENSE, newExpense, newExpense)); | ||
244 | } | ||
245 | |||
246 | /** | ||
247 | * <!-- begin-user-doc --> | ||
248 | * <!-- end-user-doc --> | ||
249 | * @generated | ||
250 | */ | ||
251 | @Override | ||
252 | public boolean isIs_eligible_debt() { | ||
253 | return is_eligible_debt; | ||
254 | } | ||
255 | |||
256 | /** | ||
257 | * <!-- begin-user-doc --> | ||
258 | * <!-- end-user-doc --> | ||
259 | * @generated | ||
260 | */ | ||
261 | @Override | ||
262 | public void setIs_eligible_debt(boolean newIs_eligible_debt) { | ||
263 | boolean oldIs_eligible_debt = is_eligible_debt; | ||
264 | is_eligible_debt = newIs_eligible_debt; | ||
265 | if (eNotificationRequired()) | ||
266 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.FROM_AGENT__IS_ELIGIBLE_DEBT, oldIs_eligible_debt, is_eligible_debt)); | ||
267 | } | ||
268 | |||
269 | /** | ||
270 | * <!-- begin-user-doc --> | ||
271 | * <!-- end-user-doc --> | ||
272 | * @generated | ||
273 | */ | ||
274 | @Override | ||
275 | public Dependent getDependent() { | ||
276 | if (dependent != null && dependent.eIsProxy()) { | ||
277 | InternalEObject oldDependent = (InternalEObject)dependent; | ||
278 | dependent = (Dependent)eResolveProxy(oldDependent); | ||
279 | if (dependent != oldDependent) { | ||
280 | if (eNotificationRequired()) | ||
281 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationPackage.FROM_AGENT__DEPENDENT, oldDependent, dependent)); | ||
282 | } | ||
283 | } | ||
284 | return dependent; | ||
285 | } | ||
286 | |||
287 | /** | ||
288 | * <!-- begin-user-doc --> | ||
289 | * <!-- end-user-doc --> | ||
290 | * @generated | ||
291 | */ | ||
292 | public Dependent basicGetDependent() { | ||
293 | return dependent; | ||
294 | } | ||
295 | |||
296 | /** | ||
297 | * <!-- begin-user-doc --> | ||
298 | * <!-- end-user-doc --> | ||
299 | * @generated | ||
300 | */ | ||
301 | public NotificationChain basicSetDependent(Dependent newDependent, NotificationChain msgs) { | ||
302 | Dependent oldDependent = dependent; | ||
303 | dependent = newDependent; | ||
304 | if (eNotificationRequired()) { | ||
305 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationPackage.FROM_AGENT__DEPENDENT, oldDependent, newDependent); | ||
306 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
307 | } | ||
308 | return msgs; | ||
309 | } | ||
310 | |||
311 | /** | ||
312 | * <!-- begin-user-doc --> | ||
313 | * <!-- end-user-doc --> | ||
314 | * @generated | ||
315 | */ | ||
316 | @Override | ||
317 | public void setDependent(Dependent newDependent) { | ||
318 | if (newDependent != dependent) { | ||
319 | NotificationChain msgs = null; | ||
320 | if (dependent != null) | ||
321 | msgs = ((InternalEObject)dependent).eInverseRemove(this, TaxationPackage.DEPENDENT__FROM_AGENT, Dependent.class, msgs); | ||
322 | if (newDependent != null) | ||
323 | msgs = ((InternalEObject)newDependent).eInverseAdd(this, TaxationPackage.DEPENDENT__FROM_AGENT, Dependent.class, msgs); | ||
324 | msgs = basicSetDependent(newDependent, msgs); | ||
325 | if (msgs != null) msgs.dispatch(); | ||
326 | } | ||
327 | else if (eNotificationRequired()) | ||
328 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.FROM_AGENT__DEPENDENT, newDependent, newDependent)); | ||
329 | } | ||
330 | |||
331 | /** | ||
332 | * <!-- begin-user-doc --> | ||
333 | * <!-- end-user-doc --> | ||
334 | * @generated | ||
335 | */ | ||
336 | @Override | ||
337 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
338 | switch (featureID) { | ||
339 | case TaxationPackage.FROM_AGENT__TAX_PAYER: | ||
340 | if (eInternalContainer() != null) | ||
341 | msgs = eBasicRemoveFromContainer(msgs); | ||
342 | return basicSetTaxPayer((Tax_Payer)otherEnd, msgs); | ||
343 | case TaxationPackage.FROM_AGENT__EXPENSE: | ||
344 | if (expense != null) | ||
345 | msgs = ((InternalEObject)expense).eInverseRemove(this, TaxationPackage.EXPENSE__FROM_AGENT, Expense.class, msgs); | ||
346 | return basicSetExpense((Expense)otherEnd, msgs); | ||
347 | case TaxationPackage.FROM_AGENT__DEPENDENT: | ||
348 | if (dependent != null) | ||
349 | msgs = ((InternalEObject)dependent).eInverseRemove(this, TaxationPackage.DEPENDENT__FROM_AGENT, Dependent.class, msgs); | ||
350 | return basicSetDependent((Dependent)otherEnd, msgs); | ||
351 | } | ||
352 | return super.eInverseAdd(otherEnd, featureID, msgs); | ||
353 | } | ||
354 | |||
355 | /** | ||
356 | * <!-- begin-user-doc --> | ||
357 | * <!-- end-user-doc --> | ||
358 | * @generated | ||
359 | */ | ||
360 | @Override | ||
361 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
362 | switch (featureID) { | ||
363 | case TaxationPackage.FROM_AGENT__TAX_PAYER: | ||
364 | return basicSetTaxPayer(null, msgs); | ||
365 | case TaxationPackage.FROM_AGENT__EXPENSE: | ||
366 | return basicSetExpense(null, msgs); | ||
367 | case TaxationPackage.FROM_AGENT__DEPENDENT: | ||
368 | return basicSetDependent(null, msgs); | ||
369 | } | ||
370 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
371 | } | ||
372 | |||
373 | /** | ||
374 | * <!-- begin-user-doc --> | ||
375 | * <!-- end-user-doc --> | ||
376 | * @generated | ||
377 | */ | ||
378 | @Override | ||
379 | public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { | ||
380 | switch (eContainerFeatureID()) { | ||
381 | case TaxationPackage.FROM_AGENT__TAX_PAYER: | ||
382 | return eInternalContainer().eInverseRemove(this, TaxationPackage.TAX_PAYER__FROM_AGENT, Tax_Payer.class, msgs); | ||
383 | } | ||
384 | return super.eBasicRemoveFromContainerFeature(msgs); | ||
385 | } | ||
386 | |||
387 | /** | ||
388 | * <!-- begin-user-doc --> | ||
389 | * <!-- end-user-doc --> | ||
390 | * @generated | ||
391 | */ | ||
392 | @Override | ||
393 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
394 | switch (featureID) { | ||
395 | case TaxationPackage.FROM_AGENT__TAX_PAYER: | ||
396 | return getTaxPayer(); | ||
397 | case TaxationPackage.FROM_AGENT__IS_DEPENDENT_ELIGIBLE_FOR_CE_NOT_IN_HOUSHOLD_CHILDREN_CARE: | ||
398 | return isIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care(); | ||
399 | case TaxationPackage.FROM_AGENT__EXPENSE: | ||
400 | if (resolve) return getExpense(); | ||
401 | return basicGetExpense(); | ||
402 | case TaxationPackage.FROM_AGENT__IS_ELIGIBLE_DEBT: | ||
403 | return isIs_eligible_debt(); | ||
404 | case TaxationPackage.FROM_AGENT__DEPENDENT: | ||
405 | if (resolve) return getDependent(); | ||
406 | return basicGetDependent(); | ||
407 | } | ||
408 | return super.eGet(featureID, resolve, coreType); | ||
409 | } | ||
410 | |||
411 | /** | ||
412 | * <!-- begin-user-doc --> | ||
413 | * <!-- end-user-doc --> | ||
414 | * @generated | ||
415 | */ | ||
416 | @Override | ||
417 | public void eSet(int featureID, Object newValue) { | ||
418 | switch (featureID) { | ||
419 | case TaxationPackage.FROM_AGENT__TAX_PAYER: | ||
420 | setTaxPayer((Tax_Payer)newValue); | ||
421 | return; | ||
422 | case TaxationPackage.FROM_AGENT__IS_DEPENDENT_ELIGIBLE_FOR_CE_NOT_IN_HOUSHOLD_CHILDREN_CARE: | ||
423 | setIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care((Boolean)newValue); | ||
424 | return; | ||
425 | case TaxationPackage.FROM_AGENT__EXPENSE: | ||
426 | setExpense((Expense)newValue); | ||
427 | return; | ||
428 | case TaxationPackage.FROM_AGENT__IS_ELIGIBLE_DEBT: | ||
429 | setIs_eligible_debt((Boolean)newValue); | ||
430 | return; | ||
431 | case TaxationPackage.FROM_AGENT__DEPENDENT: | ||
432 | setDependent((Dependent)newValue); | ||
433 | return; | ||
434 | } | ||
435 | super.eSet(featureID, newValue); | ||
436 | } | ||
437 | |||
438 | /** | ||
439 | * <!-- begin-user-doc --> | ||
440 | * <!-- end-user-doc --> | ||
441 | * @generated | ||
442 | */ | ||
443 | @Override | ||
444 | public void eUnset(int featureID) { | ||
445 | switch (featureID) { | ||
446 | case TaxationPackage.FROM_AGENT__TAX_PAYER: | ||
447 | setTaxPayer((Tax_Payer)null); | ||
448 | return; | ||
449 | case TaxationPackage.FROM_AGENT__IS_DEPENDENT_ELIGIBLE_FOR_CE_NOT_IN_HOUSHOLD_CHILDREN_CARE: | ||
450 | setIs_dependent_eligible_for_CE_Not_In_Houshold_Children_Care(IS_DEPENDENT_ELIGIBLE_FOR_CE_NOT_IN_HOUSHOLD_CHILDREN_CARE_EDEFAULT); | ||
451 | return; | ||
452 | case TaxationPackage.FROM_AGENT__EXPENSE: | ||
453 | setExpense((Expense)null); | ||
454 | return; | ||
455 | case TaxationPackage.FROM_AGENT__IS_ELIGIBLE_DEBT: | ||
456 | setIs_eligible_debt(IS_ELIGIBLE_DEBT_EDEFAULT); | ||
457 | return; | ||
458 | case TaxationPackage.FROM_AGENT__DEPENDENT: | ||
459 | setDependent((Dependent)null); | ||
460 | return; | ||
461 | } | ||
462 | super.eUnset(featureID); | ||
463 | } | ||
464 | |||
465 | /** | ||
466 | * <!-- begin-user-doc --> | ||
467 | * <!-- end-user-doc --> | ||
468 | * @generated | ||
469 | */ | ||
470 | @Override | ||
471 | public boolean eIsSet(int featureID) { | ||
472 | switch (featureID) { | ||
473 | case TaxationPackage.FROM_AGENT__TAX_PAYER: | ||
474 | return getTaxPayer() != null; | ||
475 | case TaxationPackage.FROM_AGENT__IS_DEPENDENT_ELIGIBLE_FOR_CE_NOT_IN_HOUSHOLD_CHILDREN_CARE: | ||
476 | return is_dependent_eligible_for_CE_Not_In_Houshold_Children_Care != IS_DEPENDENT_ELIGIBLE_FOR_CE_NOT_IN_HOUSHOLD_CHILDREN_CARE_EDEFAULT; | ||
477 | case TaxationPackage.FROM_AGENT__EXPENSE: | ||
478 | return expense != null; | ||
479 | case TaxationPackage.FROM_AGENT__IS_ELIGIBLE_DEBT: | ||
480 | return is_eligible_debt != IS_ELIGIBLE_DEBT_EDEFAULT; | ||
481 | case TaxationPackage.FROM_AGENT__DEPENDENT: | ||
482 | return dependent != null; | ||
483 | } | ||
484 | return super.eIsSet(featureID); | ||
485 | } | ||
486 | |||
487 | /** | ||
488 | * <!-- begin-user-doc --> | ||
489 | * <!-- end-user-doc --> | ||
490 | * @generated | ||
491 | */ | ||
492 | @Override | ||
493 | public String toString() { | ||
494 | if (eIsProxy()) return super.toString(); | ||
495 | |||
496 | StringBuilder result = new StringBuilder(super.toString()); | ||
497 | result.append(" (is_dependent_eligible_for_CE_Not_In_Houshold_Children_Care: "); | ||
498 | result.append(is_dependent_eligible_for_CE_Not_In_Houshold_Children_Care); | ||
499 | result.append(", is_eligible_debt: "); | ||
500 | result.append(is_eligible_debt); | ||
501 | result.append(')'); | ||
502 | return result.toString(); | ||
503 | } | ||
504 | |||
505 | } //FromAgentImpl | ||