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