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