diff options
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_Tax_CreditImpl.java')
-rw-r--r-- | Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_Tax_CreditImpl.java | 626 |
1 files changed, 626 insertions, 0 deletions
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_Tax_CreditImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_Tax_CreditImpl.java new file mode 100644 index 00000000..4e7a317a --- /dev/null +++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Income_Tax_CreditImpl.java | |||
@@ -0,0 +1,626 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package TaxationWithRoot.impl; | ||
4 | |||
5 | import TaxationWithRoot.Grantor; | ||
6 | import TaxationWithRoot.Income_Tax_Credit; | ||
7 | import TaxationWithRoot.Tax_Card; | ||
8 | import TaxationWithRoot.Tax_Payer; | ||
9 | import TaxationWithRoot.TaxationWithRootPackage; | ||
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 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * An implementation of the model object '<em><b>Income Tax Credit</b></em>'. | ||
23 | * <!-- end-user-doc --> | ||
24 | * <p> | ||
25 | * The following features are implemented: | ||
26 | * </p> | ||
27 | * <ul> | ||
28 | * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getGrantedBy <em>Granted By</em>}</li> | ||
29 | * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getTaxPayer <em>Tax Payer</em>}</li> | ||
30 | * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getTax_year <em>Tax year</em>}</li> | ||
31 | * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getYearly <em>Yearly</em>}</li> | ||
32 | * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getMonthly <em>Monthly</em>}</li> | ||
33 | * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getDaily <em>Daily</em>}</li> | ||
34 | * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getId7 <em>Id7</em>}</li> | ||
35 | * <li>{@link TaxationWithRoot.impl.Income_Tax_CreditImpl#getTaxation_Frame <em>Taxation Frame</em>}</li> | ||
36 | * </ul> | ||
37 | * | ||
38 | * @generated | ||
39 | */ | ||
40 | public class Income_Tax_CreditImpl extends MinimalEObjectImpl.Container implements Income_Tax_Credit { | ||
41 | /** | ||
42 | * The default value of the '{@link #getGrantedBy() <em>Granted By</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getGrantedBy() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected static final Grantor GRANTED_BY_EDEFAULT = Grantor.WWW; | ||
50 | |||
51 | /** | ||
52 | * The cached value of the '{@link #getGrantedBy() <em>Granted By</em>}' attribute. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #getGrantedBy() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected Grantor grantedBy = GRANTED_BY_EDEFAULT; | ||
60 | |||
61 | /** | ||
62 | * The cached value of the '{@link #getTaxPayer() <em>Tax Payer</em>}' reference. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @see #getTaxPayer() | ||
66 | * @generated | ||
67 | * @ordered | ||
68 | */ | ||
69 | protected Tax_Payer taxPayer; | ||
70 | |||
71 | /** | ||
72 | * The default value of the '{@link #getTax_year() <em>Tax year</em>}' attribute. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @see #getTax_year() | ||
76 | * @generated | ||
77 | * @ordered | ||
78 | */ | ||
79 | protected static final int TAX_YEAR_EDEFAULT = 0; | ||
80 | |||
81 | /** | ||
82 | * The cached value of the '{@link #getTax_year() <em>Tax year</em>}' attribute. | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @see #getTax_year() | ||
86 | * @generated | ||
87 | * @ordered | ||
88 | */ | ||
89 | protected int tax_year = TAX_YEAR_EDEFAULT; | ||
90 | |||
91 | /** | ||
92 | * The default value of the '{@link #getYearly() <em>Yearly</em>}' attribute. | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @see #getYearly() | ||
96 | * @generated | ||
97 | * @ordered | ||
98 | */ | ||
99 | protected static final double YEARLY_EDEFAULT = 300.0; | ||
100 | |||
101 | /** | ||
102 | * The cached value of the '{@link #getYearly() <em>Yearly</em>}' attribute. | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @see #getYearly() | ||
106 | * @generated | ||
107 | * @ordered | ||
108 | */ | ||
109 | protected double yearly = YEARLY_EDEFAULT; | ||
110 | |||
111 | /** | ||
112 | * The default value of the '{@link #getMonthly() <em>Monthly</em>}' attribute. | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @see #getMonthly() | ||
116 | * @generated | ||
117 | * @ordered | ||
118 | */ | ||
119 | protected static final double MONTHLY_EDEFAULT = 25.0; | ||
120 | |||
121 | /** | ||
122 | * The cached value of the '{@link #getMonthly() <em>Monthly</em>}' attribute. | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @see #getMonthly() | ||
126 | * @generated | ||
127 | * @ordered | ||
128 | */ | ||
129 | protected double monthly = MONTHLY_EDEFAULT; | ||
130 | |||
131 | /** | ||
132 | * The default value of the '{@link #getDaily() <em>Daily</em>}' attribute. | ||
133 | * <!-- begin-user-doc --> | ||
134 | * <!-- end-user-doc --> | ||
135 | * @see #getDaily() | ||
136 | * @generated | ||
137 | * @ordered | ||
138 | */ | ||
139 | protected static final double DAILY_EDEFAULT = 1.0; | ||
140 | |||
141 | /** | ||
142 | * The cached value of the '{@link #getDaily() <em>Daily</em>}' attribute. | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @see #getDaily() | ||
146 | * @generated | ||
147 | * @ordered | ||
148 | */ | ||
149 | protected double daily = DAILY_EDEFAULT; | ||
150 | |||
151 | /** | ||
152 | * The default value of the '{@link #getId7() <em>Id7</em>}' attribute. | ||
153 | * <!-- begin-user-doc --> | ||
154 | * <!-- end-user-doc --> | ||
155 | * @see #getId7() | ||
156 | * @generated | ||
157 | * @ordered | ||
158 | */ | ||
159 | protected static final String ID7_EDEFAULT = null; | ||
160 | |||
161 | /** | ||
162 | * The cached value of the '{@link #getId7() <em>Id7</em>}' attribute. | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @see #getId7() | ||
166 | * @generated | ||
167 | * @ordered | ||
168 | */ | ||
169 | protected String id7 = ID7_EDEFAULT; | ||
170 | |||
171 | /** | ||
172 | * The cached value of the '{@link #getTaxation_Frame() <em>Taxation Frame</em>}' reference. | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @see #getTaxation_Frame() | ||
176 | * @generated | ||
177 | * @ordered | ||
178 | */ | ||
179 | protected Tax_Card taxation_Frame; | ||
180 | |||
181 | /** | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | */ | ||
186 | protected Income_Tax_CreditImpl() { | ||
187 | super(); | ||
188 | } | ||
189 | |||
190 | /** | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @generated | ||
194 | */ | ||
195 | @Override | ||
196 | protected EClass eStaticClass() { | ||
197 | return TaxationWithRootPackage.Literals.INCOME_TAX_CREDIT; | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public Grantor getGrantedBy() { | ||
207 | return grantedBy; | ||
208 | } | ||
209 | |||
210 | /** | ||
211 | * <!-- begin-user-doc --> | ||
212 | * <!-- end-user-doc --> | ||
213 | * @generated | ||
214 | */ | ||
215 | @Override | ||
216 | public void setGrantedBy(Grantor newGrantedBy) { | ||
217 | Grantor oldGrantedBy = grantedBy; | ||
218 | grantedBy = newGrantedBy == null ? GRANTED_BY_EDEFAULT : newGrantedBy; | ||
219 | if (eNotificationRequired()) | ||
220 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX_CREDIT__GRANTED_BY, oldGrantedBy, grantedBy)); | ||
221 | } | ||
222 | |||
223 | /** | ||
224 | * <!-- begin-user-doc --> | ||
225 | * <!-- end-user-doc --> | ||
226 | * @generated | ||
227 | */ | ||
228 | @Override | ||
229 | public Tax_Payer getTaxPayer() { | ||
230 | if (taxPayer != null && taxPayer.eIsProxy()) { | ||
231 | InternalEObject oldTaxPayer = (InternalEObject)taxPayer; | ||
232 | taxPayer = (Tax_Payer)eResolveProxy(oldTaxPayer); | ||
233 | if (taxPayer != oldTaxPayer) { | ||
234 | if (eNotificationRequired()) | ||
235 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_PAYER, oldTaxPayer, taxPayer)); | ||
236 | } | ||
237 | } | ||
238 | return taxPayer; | ||
239 | } | ||
240 | |||
241 | /** | ||
242 | * <!-- begin-user-doc --> | ||
243 | * <!-- end-user-doc --> | ||
244 | * @generated | ||
245 | */ | ||
246 | public Tax_Payer basicGetTaxPayer() { | ||
247 | return taxPayer; | ||
248 | } | ||
249 | |||
250 | /** | ||
251 | * <!-- begin-user-doc --> | ||
252 | * <!-- end-user-doc --> | ||
253 | * @generated | ||
254 | */ | ||
255 | @Override | ||
256 | public void setTaxPayer(Tax_Payer newTaxPayer) { | ||
257 | Tax_Payer oldTaxPayer = taxPayer; | ||
258 | taxPayer = newTaxPayer; | ||
259 | if (eNotificationRequired()) | ||
260 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_PAYER, oldTaxPayer, taxPayer)); | ||
261 | } | ||
262 | |||
263 | /** | ||
264 | * <!-- begin-user-doc --> | ||
265 | * <!-- end-user-doc --> | ||
266 | * @generated | ||
267 | */ | ||
268 | @Override | ||
269 | public int getTax_year() { | ||
270 | return tax_year; | ||
271 | } | ||
272 | |||
273 | /** | ||
274 | * <!-- begin-user-doc --> | ||
275 | * <!-- end-user-doc --> | ||
276 | * @generated | ||
277 | */ | ||
278 | @Override | ||
279 | public void setTax_year(int newTax_year) { | ||
280 | int oldTax_year = tax_year; | ||
281 | tax_year = newTax_year; | ||
282 | if (eNotificationRequired()) | ||
283 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_YEAR, oldTax_year, tax_year)); | ||
284 | } | ||
285 | |||
286 | /** | ||
287 | * <!-- begin-user-doc --> | ||
288 | * <!-- end-user-doc --> | ||
289 | * @generated | ||
290 | */ | ||
291 | @Override | ||
292 | public double getYearly() { | ||
293 | return yearly; | ||
294 | } | ||
295 | |||
296 | /** | ||
297 | * <!-- begin-user-doc --> | ||
298 | * <!-- end-user-doc --> | ||
299 | * @generated | ||
300 | */ | ||
301 | @Override | ||
302 | public void setYearly(double newYearly) { | ||
303 | double oldYearly = yearly; | ||
304 | yearly = newYearly; | ||
305 | if (eNotificationRequired()) | ||
306 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX_CREDIT__YEARLY, oldYearly, yearly)); | ||
307 | } | ||
308 | |||
309 | /** | ||
310 | * <!-- begin-user-doc --> | ||
311 | * <!-- end-user-doc --> | ||
312 | * @generated | ||
313 | */ | ||
314 | @Override | ||
315 | public double getMonthly() { | ||
316 | return monthly; | ||
317 | } | ||
318 | |||
319 | /** | ||
320 | * <!-- begin-user-doc --> | ||
321 | * <!-- end-user-doc --> | ||
322 | * @generated | ||
323 | */ | ||
324 | @Override | ||
325 | public void setMonthly(double newMonthly) { | ||
326 | double oldMonthly = monthly; | ||
327 | monthly = newMonthly; | ||
328 | if (eNotificationRequired()) | ||
329 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX_CREDIT__MONTHLY, oldMonthly, monthly)); | ||
330 | } | ||
331 | |||
332 | /** | ||
333 | * <!-- begin-user-doc --> | ||
334 | * <!-- end-user-doc --> | ||
335 | * @generated | ||
336 | */ | ||
337 | @Override | ||
338 | public double getDaily() { | ||
339 | return daily; | ||
340 | } | ||
341 | |||
342 | /** | ||
343 | * <!-- begin-user-doc --> | ||
344 | * <!-- end-user-doc --> | ||
345 | * @generated | ||
346 | */ | ||
347 | @Override | ||
348 | public void setDaily(double newDaily) { | ||
349 | double oldDaily = daily; | ||
350 | daily = newDaily; | ||
351 | if (eNotificationRequired()) | ||
352 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX_CREDIT__DAILY, oldDaily, daily)); | ||
353 | } | ||
354 | |||
355 | /** | ||
356 | * <!-- begin-user-doc --> | ||
357 | * <!-- end-user-doc --> | ||
358 | * @generated | ||
359 | */ | ||
360 | @Override | ||
361 | public String getId7() { | ||
362 | return id7; | ||
363 | } | ||
364 | |||
365 | /** | ||
366 | * <!-- begin-user-doc --> | ||
367 | * <!-- end-user-doc --> | ||
368 | * @generated | ||
369 | */ | ||
370 | @Override | ||
371 | public void setId7(String newId7) { | ||
372 | String oldId7 = id7; | ||
373 | id7 = newId7; | ||
374 | if (eNotificationRequired()) | ||
375 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX_CREDIT__ID7, oldId7, id7)); | ||
376 | } | ||
377 | |||
378 | /** | ||
379 | * <!-- begin-user-doc --> | ||
380 | * <!-- end-user-doc --> | ||
381 | * @generated | ||
382 | */ | ||
383 | @Override | ||
384 | public Tax_Card getTaxation_Frame() { | ||
385 | if (taxation_Frame != null && taxation_Frame.eIsProxy()) { | ||
386 | InternalEObject oldTaxation_Frame = (InternalEObject)taxation_Frame; | ||
387 | taxation_Frame = (Tax_Card)eResolveProxy(oldTaxation_Frame); | ||
388 | if (taxation_Frame != oldTaxation_Frame) { | ||
389 | if (eNotificationRequired()) | ||
390 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationWithRootPackage.INCOME_TAX_CREDIT__TAXATION_FRAME, oldTaxation_Frame, taxation_Frame)); | ||
391 | } | ||
392 | } | ||
393 | return taxation_Frame; | ||
394 | } | ||
395 | |||
396 | /** | ||
397 | * <!-- begin-user-doc --> | ||
398 | * <!-- end-user-doc --> | ||
399 | * @generated | ||
400 | */ | ||
401 | public Tax_Card basicGetTaxation_Frame() { | ||
402 | return taxation_Frame; | ||
403 | } | ||
404 | |||
405 | /** | ||
406 | * <!-- begin-user-doc --> | ||
407 | * <!-- end-user-doc --> | ||
408 | * @generated | ||
409 | */ | ||
410 | public NotificationChain basicSetTaxation_Frame(Tax_Card newTaxation_Frame, NotificationChain msgs) { | ||
411 | Tax_Card oldTaxation_Frame = taxation_Frame; | ||
412 | taxation_Frame = newTaxation_Frame; | ||
413 | if (eNotificationRequired()) { | ||
414 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX_CREDIT__TAXATION_FRAME, oldTaxation_Frame, newTaxation_Frame); | ||
415 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
416 | } | ||
417 | return msgs; | ||
418 | } | ||
419 | |||
420 | /** | ||
421 | * <!-- begin-user-doc --> | ||
422 | * <!-- end-user-doc --> | ||
423 | * @generated | ||
424 | */ | ||
425 | @Override | ||
426 | public void setTaxation_Frame(Tax_Card newTaxation_Frame) { | ||
427 | if (newTaxation_Frame != taxation_Frame) { | ||
428 | NotificationChain msgs = null; | ||
429 | if (taxation_Frame != null) | ||
430 | msgs = ((InternalEObject)taxation_Frame).eInverseRemove(this, TaxationWithRootPackage.TAX_CARD__INCOME_TAX_CREDIT, Tax_Card.class, msgs); | ||
431 | if (newTaxation_Frame != null) | ||
432 | msgs = ((InternalEObject)newTaxation_Frame).eInverseAdd(this, TaxationWithRootPackage.TAX_CARD__INCOME_TAX_CREDIT, Tax_Card.class, msgs); | ||
433 | msgs = basicSetTaxation_Frame(newTaxation_Frame, msgs); | ||
434 | if (msgs != null) msgs.dispatch(); | ||
435 | } | ||
436 | else if (eNotificationRequired()) | ||
437 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.INCOME_TAX_CREDIT__TAXATION_FRAME, newTaxation_Frame, newTaxation_Frame)); | ||
438 | } | ||
439 | |||
440 | /** | ||
441 | * <!-- begin-user-doc --> | ||
442 | * <!-- end-user-doc --> | ||
443 | * @generated | ||
444 | */ | ||
445 | @Override | ||
446 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
447 | switch (featureID) { | ||
448 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAXATION_FRAME: | ||
449 | if (taxation_Frame != null) | ||
450 | msgs = ((InternalEObject)taxation_Frame).eInverseRemove(this, TaxationWithRootPackage.TAX_CARD__INCOME_TAX_CREDIT, Tax_Card.class, msgs); | ||
451 | return basicSetTaxation_Frame((Tax_Card)otherEnd, msgs); | ||
452 | } | ||
453 | return super.eInverseAdd(otherEnd, featureID, msgs); | ||
454 | } | ||
455 | |||
456 | /** | ||
457 | * <!-- begin-user-doc --> | ||
458 | * <!-- end-user-doc --> | ||
459 | * @generated | ||
460 | */ | ||
461 | @Override | ||
462 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
463 | switch (featureID) { | ||
464 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAXATION_FRAME: | ||
465 | return basicSetTaxation_Frame(null, msgs); | ||
466 | } | ||
467 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
468 | } | ||
469 | |||
470 | /** | ||
471 | * <!-- begin-user-doc --> | ||
472 | * <!-- end-user-doc --> | ||
473 | * @generated | ||
474 | */ | ||
475 | @Override | ||
476 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
477 | switch (featureID) { | ||
478 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__GRANTED_BY: | ||
479 | return getGrantedBy(); | ||
480 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_PAYER: | ||
481 | if (resolve) return getTaxPayer(); | ||
482 | return basicGetTaxPayer(); | ||
483 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_YEAR: | ||
484 | return getTax_year(); | ||
485 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__YEARLY: | ||
486 | return getYearly(); | ||
487 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__MONTHLY: | ||
488 | return getMonthly(); | ||
489 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__DAILY: | ||
490 | return getDaily(); | ||
491 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__ID7: | ||
492 | return getId7(); | ||
493 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAXATION_FRAME: | ||
494 | if (resolve) return getTaxation_Frame(); | ||
495 | return basicGetTaxation_Frame(); | ||
496 | } | ||
497 | return super.eGet(featureID, resolve, coreType); | ||
498 | } | ||
499 | |||
500 | /** | ||
501 | * <!-- begin-user-doc --> | ||
502 | * <!-- end-user-doc --> | ||
503 | * @generated | ||
504 | */ | ||
505 | @Override | ||
506 | public void eSet(int featureID, Object newValue) { | ||
507 | switch (featureID) { | ||
508 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__GRANTED_BY: | ||
509 | setGrantedBy((Grantor)newValue); | ||
510 | return; | ||
511 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_PAYER: | ||
512 | setTaxPayer((Tax_Payer)newValue); | ||
513 | return; | ||
514 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_YEAR: | ||
515 | setTax_year((Integer)newValue); | ||
516 | return; | ||
517 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__YEARLY: | ||
518 | setYearly((Double)newValue); | ||
519 | return; | ||
520 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__MONTHLY: | ||
521 | setMonthly((Double)newValue); | ||
522 | return; | ||
523 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__DAILY: | ||
524 | setDaily((Double)newValue); | ||
525 | return; | ||
526 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__ID7: | ||
527 | setId7((String)newValue); | ||
528 | return; | ||
529 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAXATION_FRAME: | ||
530 | setTaxation_Frame((Tax_Card)newValue); | ||
531 | return; | ||
532 | } | ||
533 | super.eSet(featureID, newValue); | ||
534 | } | ||
535 | |||
536 | /** | ||
537 | * <!-- begin-user-doc --> | ||
538 | * <!-- end-user-doc --> | ||
539 | * @generated | ||
540 | */ | ||
541 | @Override | ||
542 | public void eUnset(int featureID) { | ||
543 | switch (featureID) { | ||
544 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__GRANTED_BY: | ||
545 | setGrantedBy(GRANTED_BY_EDEFAULT); | ||
546 | return; | ||
547 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_PAYER: | ||
548 | setTaxPayer((Tax_Payer)null); | ||
549 | return; | ||
550 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_YEAR: | ||
551 | setTax_year(TAX_YEAR_EDEFAULT); | ||
552 | return; | ||
553 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__YEARLY: | ||
554 | setYearly(YEARLY_EDEFAULT); | ||
555 | return; | ||
556 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__MONTHLY: | ||
557 | setMonthly(MONTHLY_EDEFAULT); | ||
558 | return; | ||
559 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__DAILY: | ||
560 | setDaily(DAILY_EDEFAULT); | ||
561 | return; | ||
562 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__ID7: | ||
563 | setId7(ID7_EDEFAULT); | ||
564 | return; | ||
565 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAXATION_FRAME: | ||
566 | setTaxation_Frame((Tax_Card)null); | ||
567 | return; | ||
568 | } | ||
569 | super.eUnset(featureID); | ||
570 | } | ||
571 | |||
572 | /** | ||
573 | * <!-- begin-user-doc --> | ||
574 | * <!-- end-user-doc --> | ||
575 | * @generated | ||
576 | */ | ||
577 | @Override | ||
578 | public boolean eIsSet(int featureID) { | ||
579 | switch (featureID) { | ||
580 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__GRANTED_BY: | ||
581 | return grantedBy != GRANTED_BY_EDEFAULT; | ||
582 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_PAYER: | ||
583 | return taxPayer != null; | ||
584 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAX_YEAR: | ||
585 | return tax_year != TAX_YEAR_EDEFAULT; | ||
586 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__YEARLY: | ||
587 | return yearly != YEARLY_EDEFAULT; | ||
588 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__MONTHLY: | ||
589 | return monthly != MONTHLY_EDEFAULT; | ||
590 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__DAILY: | ||
591 | return daily != DAILY_EDEFAULT; | ||
592 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__ID7: | ||
593 | return ID7_EDEFAULT == null ? id7 != null : !ID7_EDEFAULT.equals(id7); | ||
594 | case TaxationWithRootPackage.INCOME_TAX_CREDIT__TAXATION_FRAME: | ||
595 | return taxation_Frame != null; | ||
596 | } | ||
597 | return super.eIsSet(featureID); | ||
598 | } | ||
599 | |||
600 | /** | ||
601 | * <!-- begin-user-doc --> | ||
602 | * <!-- end-user-doc --> | ||
603 | * @generated | ||
604 | */ | ||
605 | @Override | ||
606 | public String toString() { | ||
607 | if (eIsProxy()) return super.toString(); | ||
608 | |||
609 | StringBuilder result = new StringBuilder(super.toString()); | ||
610 | result.append(" (grantedBy: "); | ||
611 | result.append(grantedBy); | ||
612 | result.append(", tax_year: "); | ||
613 | result.append(tax_year); | ||
614 | result.append(", yearly: "); | ||
615 | result.append(yearly); | ||
616 | result.append(", monthly: "); | ||
617 | result.append(monthly); | ||
618 | result.append(", daily: "); | ||
619 | result.append(daily); | ||
620 | result.append(", id7: "); | ||
621 | result.append(id7); | ||
622 | result.append(')'); | ||
623 | return result.toString(); | ||
624 | } | ||
625 | |||
626 | } //Income_Tax_CreditImpl | ||