diff options
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/External_AllowanceImpl.java')
-rw-r--r-- | Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/External_AllowanceImpl.java | 555 |
1 files changed, 555 insertions, 0 deletions
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/External_AllowanceImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/External_AllowanceImpl.java new file mode 100644 index 00000000..0d0119a5 --- /dev/null +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/External_AllowanceImpl.java | |||
@@ -0,0 +1,555 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package Taxation.impl; | ||
4 | |||
5 | import Taxation.Dependent; | ||
6 | import Taxation.External_Allowance; | ||
7 | import Taxation.Grantor; | ||
8 | import Taxation.Physical_Person; | ||
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>External Allowance</b></em>'. | ||
24 | * <!-- end-user-doc --> | ||
25 | * <p> | ||
26 | * The following features are implemented: | ||
27 | * </p> | ||
28 | * <ul> | ||
29 | * <li>{@link Taxation.impl.External_AllowanceImpl#getAmount <em>Amount</em>}</li> | ||
30 | * <li>{@link Taxation.impl.External_AllowanceImpl#getGrantor <em>Grantor</em>}</li> | ||
31 | * <li>{@link Taxation.impl.External_AllowanceImpl#getStarting_year <em>Starting year</em>}</li> | ||
32 | * <li>{@link Taxation.impl.External_AllowanceImpl#getEnding_year <em>Ending year</em>}</li> | ||
33 | * <li>{@link Taxation.impl.External_AllowanceImpl#getReciver <em>Reciver</em>}</li> | ||
34 | * <li>{@link Taxation.impl.External_AllowanceImpl#getId5 <em>Id5</em>}</li> | ||
35 | * <li>{@link Taxation.impl.External_AllowanceImpl#getPerson <em>Person</em>}</li> | ||
36 | * </ul> | ||
37 | * | ||
38 | * @generated | ||
39 | */ | ||
40 | public class External_AllowanceImpl extends MinimalEObjectImpl.Container implements External_Allowance { | ||
41 | /** | ||
42 | * The default value of the '{@link #getAmount() <em>Amount</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getAmount() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected static final double AMOUNT_EDEFAULT = 0.0; | ||
50 | |||
51 | /** | ||
52 | * The cached value of the '{@link #getAmount() <em>Amount</em>}' attribute. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #getAmount() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected double amount = AMOUNT_EDEFAULT; | ||
60 | |||
61 | /** | ||
62 | * The default value of the '{@link #getGrantor() <em>Grantor</em>}' attribute. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @see #getGrantor() | ||
66 | * @generated | ||
67 | * @ordered | ||
68 | */ | ||
69 | protected static final Grantor GRANTOR_EDEFAULT = Grantor.WWW; | ||
70 | |||
71 | /** | ||
72 | * The cached value of the '{@link #getGrantor() <em>Grantor</em>}' attribute. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @see #getGrantor() | ||
76 | * @generated | ||
77 | * @ordered | ||
78 | */ | ||
79 | protected Grantor grantor = GRANTOR_EDEFAULT; | ||
80 | |||
81 | /** | ||
82 | * The default value of the '{@link #getStarting_year() <em>Starting year</em>}' attribute. | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @see #getStarting_year() | ||
86 | * @generated | ||
87 | * @ordered | ||
88 | */ | ||
89 | protected static final int STARTING_YEAR_EDEFAULT = 0; | ||
90 | |||
91 | /** | ||
92 | * The cached value of the '{@link #getStarting_year() <em>Starting year</em>}' attribute. | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @see #getStarting_year() | ||
96 | * @generated | ||
97 | * @ordered | ||
98 | */ | ||
99 | protected int starting_year = STARTING_YEAR_EDEFAULT; | ||
100 | |||
101 | /** | ||
102 | * The default value of the '{@link #getEnding_year() <em>Ending year</em>}' attribute. | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @see #getEnding_year() | ||
106 | * @generated | ||
107 | * @ordered | ||
108 | */ | ||
109 | protected static final int ENDING_YEAR_EDEFAULT = 0; | ||
110 | |||
111 | /** | ||
112 | * The cached value of the '{@link #getEnding_year() <em>Ending year</em>}' attribute. | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @see #getEnding_year() | ||
116 | * @generated | ||
117 | * @ordered | ||
118 | */ | ||
119 | protected int ending_year = ENDING_YEAR_EDEFAULT; | ||
120 | |||
121 | /** | ||
122 | * The cached value of the '{@link #getReciver() <em>Reciver</em>}' reference. | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @see #getReciver() | ||
126 | * @generated | ||
127 | * @ordered | ||
128 | */ | ||
129 | protected Physical_Person reciver; | ||
130 | |||
131 | /** | ||
132 | * The default value of the '{@link #getId5() <em>Id5</em>}' attribute. | ||
133 | * <!-- begin-user-doc --> | ||
134 | * <!-- end-user-doc --> | ||
135 | * @see #getId5() | ||
136 | * @generated | ||
137 | * @ordered | ||
138 | */ | ||
139 | protected static final String ID5_EDEFAULT = null; | ||
140 | |||
141 | /** | ||
142 | * The cached value of the '{@link #getId5() <em>Id5</em>}' attribute. | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @see #getId5() | ||
146 | * @generated | ||
147 | * @ordered | ||
148 | */ | ||
149 | protected String id5 = ID5_EDEFAULT; | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | protected External_AllowanceImpl() { | ||
157 | super(); | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | @Override | ||
166 | protected EClass eStaticClass() { | ||
167 | return TaxationPackage.Literals.EXTERNAL_ALLOWANCE; | ||
168 | } | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | @Override | ||
176 | public double getAmount() { | ||
177 | return amount; | ||
178 | } | ||
179 | |||
180 | /** | ||
181 | * <!-- begin-user-doc --> | ||
182 | * <!-- end-user-doc --> | ||
183 | * @generated | ||
184 | */ | ||
185 | @Override | ||
186 | public void setAmount(double newAmount) { | ||
187 | double oldAmount = amount; | ||
188 | amount = newAmount; | ||
189 | if (eNotificationRequired()) | ||
190 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.EXTERNAL_ALLOWANCE__AMOUNT, oldAmount, amount)); | ||
191 | } | ||
192 | |||
193 | /** | ||
194 | * <!-- begin-user-doc --> | ||
195 | * <!-- end-user-doc --> | ||
196 | * @generated | ||
197 | */ | ||
198 | @Override | ||
199 | public Grantor getGrantor() { | ||
200 | return grantor; | ||
201 | } | ||
202 | |||
203 | /** | ||
204 | * <!-- begin-user-doc --> | ||
205 | * <!-- end-user-doc --> | ||
206 | * @generated | ||
207 | */ | ||
208 | @Override | ||
209 | public void setGrantor(Grantor newGrantor) { | ||
210 | Grantor oldGrantor = grantor; | ||
211 | grantor = newGrantor == null ? GRANTOR_EDEFAULT : newGrantor; | ||
212 | if (eNotificationRequired()) | ||
213 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.EXTERNAL_ALLOWANCE__GRANTOR, oldGrantor, grantor)); | ||
214 | } | ||
215 | |||
216 | /** | ||
217 | * <!-- begin-user-doc --> | ||
218 | * <!-- end-user-doc --> | ||
219 | * @generated | ||
220 | */ | ||
221 | @Override | ||
222 | public int getStarting_year() { | ||
223 | return starting_year; | ||
224 | } | ||
225 | |||
226 | /** | ||
227 | * <!-- begin-user-doc --> | ||
228 | * <!-- end-user-doc --> | ||
229 | * @generated | ||
230 | */ | ||
231 | @Override | ||
232 | public void setStarting_year(int newStarting_year) { | ||
233 | int oldStarting_year = starting_year; | ||
234 | starting_year = newStarting_year; | ||
235 | if (eNotificationRequired()) | ||
236 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.EXTERNAL_ALLOWANCE__STARTING_YEAR, oldStarting_year, starting_year)); | ||
237 | } | ||
238 | |||
239 | /** | ||
240 | * <!-- begin-user-doc --> | ||
241 | * <!-- end-user-doc --> | ||
242 | * @generated | ||
243 | */ | ||
244 | @Override | ||
245 | public int getEnding_year() { | ||
246 | return ending_year; | ||
247 | } | ||
248 | |||
249 | /** | ||
250 | * <!-- begin-user-doc --> | ||
251 | * <!-- end-user-doc --> | ||
252 | * @generated | ||
253 | */ | ||
254 | @Override | ||
255 | public void setEnding_year(int newEnding_year) { | ||
256 | int oldEnding_year = ending_year; | ||
257 | ending_year = newEnding_year; | ||
258 | if (eNotificationRequired()) | ||
259 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.EXTERNAL_ALLOWANCE__ENDING_YEAR, oldEnding_year, ending_year)); | ||
260 | } | ||
261 | |||
262 | /** | ||
263 | * <!-- begin-user-doc --> | ||
264 | * <!-- end-user-doc --> | ||
265 | * @generated | ||
266 | */ | ||
267 | @Override | ||
268 | public Physical_Person getReciver() { | ||
269 | if (reciver != null && reciver.eIsProxy()) { | ||
270 | InternalEObject oldReciver = (InternalEObject)reciver; | ||
271 | reciver = (Physical_Person)eResolveProxy(oldReciver); | ||
272 | if (reciver != oldReciver) { | ||
273 | if (eNotificationRequired()) | ||
274 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, TaxationPackage.EXTERNAL_ALLOWANCE__RECIVER, oldReciver, reciver)); | ||
275 | } | ||
276 | } | ||
277 | return reciver; | ||
278 | } | ||
279 | |||
280 | /** | ||
281 | * <!-- begin-user-doc --> | ||
282 | * <!-- end-user-doc --> | ||
283 | * @generated | ||
284 | */ | ||
285 | public Physical_Person basicGetReciver() { | ||
286 | return reciver; | ||
287 | } | ||
288 | |||
289 | /** | ||
290 | * <!-- begin-user-doc --> | ||
291 | * <!-- end-user-doc --> | ||
292 | * @generated | ||
293 | */ | ||
294 | @Override | ||
295 | public void setReciver(Physical_Person newReciver) { | ||
296 | Physical_Person oldReciver = reciver; | ||
297 | reciver = newReciver; | ||
298 | if (eNotificationRequired()) | ||
299 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.EXTERNAL_ALLOWANCE__RECIVER, oldReciver, reciver)); | ||
300 | } | ||
301 | |||
302 | /** | ||
303 | * <!-- begin-user-doc --> | ||
304 | * <!-- end-user-doc --> | ||
305 | * @generated | ||
306 | */ | ||
307 | @Override | ||
308 | public String getId5() { | ||
309 | return id5; | ||
310 | } | ||
311 | |||
312 | /** | ||
313 | * <!-- begin-user-doc --> | ||
314 | * <!-- end-user-doc --> | ||
315 | * @generated | ||
316 | */ | ||
317 | @Override | ||
318 | public void setId5(String newId5) { | ||
319 | String oldId5 = id5; | ||
320 | id5 = newId5; | ||
321 | if (eNotificationRequired()) | ||
322 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.EXTERNAL_ALLOWANCE__ID5, oldId5, id5)); | ||
323 | } | ||
324 | |||
325 | /** | ||
326 | * <!-- begin-user-doc --> | ||
327 | * <!-- end-user-doc --> | ||
328 | * @generated | ||
329 | */ | ||
330 | @Override | ||
331 | public Dependent getPerson() { | ||
332 | if (eContainerFeatureID() != TaxationPackage.EXTERNAL_ALLOWANCE__PERSON) return null; | ||
333 | return (Dependent)eInternalContainer(); | ||
334 | } | ||
335 | |||
336 | /** | ||
337 | * <!-- begin-user-doc --> | ||
338 | * <!-- end-user-doc --> | ||
339 | * @generated | ||
340 | */ | ||
341 | public NotificationChain basicSetPerson(Dependent newPerson, NotificationChain msgs) { | ||
342 | msgs = eBasicSetContainer((InternalEObject)newPerson, TaxationPackage.EXTERNAL_ALLOWANCE__PERSON, msgs); | ||
343 | return msgs; | ||
344 | } | ||
345 | |||
346 | /** | ||
347 | * <!-- begin-user-doc --> | ||
348 | * <!-- end-user-doc --> | ||
349 | * @generated | ||
350 | */ | ||
351 | @Override | ||
352 | public void setPerson(Dependent newPerson) { | ||
353 | if (newPerson != eInternalContainer() || (eContainerFeatureID() != TaxationPackage.EXTERNAL_ALLOWANCE__PERSON && newPerson != null)) { | ||
354 | if (EcoreUtil.isAncestor(this, newPerson)) | ||
355 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); | ||
356 | NotificationChain msgs = null; | ||
357 | if (eInternalContainer() != null) | ||
358 | msgs = eBasicRemoveFromContainer(msgs); | ||
359 | if (newPerson != null) | ||
360 | msgs = ((InternalEObject)newPerson).eInverseAdd(this, TaxationPackage.DEPENDENT__ALLOWANCES, Dependent.class, msgs); | ||
361 | msgs = basicSetPerson(newPerson, msgs); | ||
362 | if (msgs != null) msgs.dispatch(); | ||
363 | } | ||
364 | else if (eNotificationRequired()) | ||
365 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.EXTERNAL_ALLOWANCE__PERSON, newPerson, newPerson)); | ||
366 | } | ||
367 | |||
368 | /** | ||
369 | * <!-- begin-user-doc --> | ||
370 | * <!-- end-user-doc --> | ||
371 | * @generated | ||
372 | */ | ||
373 | @Override | ||
374 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
375 | switch (featureID) { | ||
376 | case TaxationPackage.EXTERNAL_ALLOWANCE__PERSON: | ||
377 | if (eInternalContainer() != null) | ||
378 | msgs = eBasicRemoveFromContainer(msgs); | ||
379 | return basicSetPerson((Dependent)otherEnd, msgs); | ||
380 | } | ||
381 | return super.eInverseAdd(otherEnd, featureID, msgs); | ||
382 | } | ||
383 | |||
384 | /** | ||
385 | * <!-- begin-user-doc --> | ||
386 | * <!-- end-user-doc --> | ||
387 | * @generated | ||
388 | */ | ||
389 | @Override | ||
390 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
391 | switch (featureID) { | ||
392 | case TaxationPackage.EXTERNAL_ALLOWANCE__PERSON: | ||
393 | return basicSetPerson(null, msgs); | ||
394 | } | ||
395 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
396 | } | ||
397 | |||
398 | /** | ||
399 | * <!-- begin-user-doc --> | ||
400 | * <!-- end-user-doc --> | ||
401 | * @generated | ||
402 | */ | ||
403 | @Override | ||
404 | public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { | ||
405 | switch (eContainerFeatureID()) { | ||
406 | case TaxationPackage.EXTERNAL_ALLOWANCE__PERSON: | ||
407 | return eInternalContainer().eInverseRemove(this, TaxationPackage.DEPENDENT__ALLOWANCES, Dependent.class, msgs); | ||
408 | } | ||
409 | return super.eBasicRemoveFromContainerFeature(msgs); | ||
410 | } | ||
411 | |||
412 | /** | ||
413 | * <!-- begin-user-doc --> | ||
414 | * <!-- end-user-doc --> | ||
415 | * @generated | ||
416 | */ | ||
417 | @Override | ||
418 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
419 | switch (featureID) { | ||
420 | case TaxationPackage.EXTERNAL_ALLOWANCE__AMOUNT: | ||
421 | return getAmount(); | ||
422 | case TaxationPackage.EXTERNAL_ALLOWANCE__GRANTOR: | ||
423 | return getGrantor(); | ||
424 | case TaxationPackage.EXTERNAL_ALLOWANCE__STARTING_YEAR: | ||
425 | return getStarting_year(); | ||
426 | case TaxationPackage.EXTERNAL_ALLOWANCE__ENDING_YEAR: | ||
427 | return getEnding_year(); | ||
428 | case TaxationPackage.EXTERNAL_ALLOWANCE__RECIVER: | ||
429 | if (resolve) return getReciver(); | ||
430 | return basicGetReciver(); | ||
431 | case TaxationPackage.EXTERNAL_ALLOWANCE__ID5: | ||
432 | return getId5(); | ||
433 | case TaxationPackage.EXTERNAL_ALLOWANCE__PERSON: | ||
434 | return getPerson(); | ||
435 | } | ||
436 | return super.eGet(featureID, resolve, coreType); | ||
437 | } | ||
438 | |||
439 | /** | ||
440 | * <!-- begin-user-doc --> | ||
441 | * <!-- end-user-doc --> | ||
442 | * @generated | ||
443 | */ | ||
444 | @Override | ||
445 | public void eSet(int featureID, Object newValue) { | ||
446 | switch (featureID) { | ||
447 | case TaxationPackage.EXTERNAL_ALLOWANCE__AMOUNT: | ||
448 | setAmount((Double)newValue); | ||
449 | return; | ||
450 | case TaxationPackage.EXTERNAL_ALLOWANCE__GRANTOR: | ||
451 | setGrantor((Grantor)newValue); | ||
452 | return; | ||
453 | case TaxationPackage.EXTERNAL_ALLOWANCE__STARTING_YEAR: | ||
454 | setStarting_year((Integer)newValue); | ||
455 | return; | ||
456 | case TaxationPackage.EXTERNAL_ALLOWANCE__ENDING_YEAR: | ||
457 | setEnding_year((Integer)newValue); | ||
458 | return; | ||
459 | case TaxationPackage.EXTERNAL_ALLOWANCE__RECIVER: | ||
460 | setReciver((Physical_Person)newValue); | ||
461 | return; | ||
462 | case TaxationPackage.EXTERNAL_ALLOWANCE__ID5: | ||
463 | setId5((String)newValue); | ||
464 | return; | ||
465 | case TaxationPackage.EXTERNAL_ALLOWANCE__PERSON: | ||
466 | setPerson((Dependent)newValue); | ||
467 | return; | ||
468 | } | ||
469 | super.eSet(featureID, newValue); | ||
470 | } | ||
471 | |||
472 | /** | ||
473 | * <!-- begin-user-doc --> | ||
474 | * <!-- end-user-doc --> | ||
475 | * @generated | ||
476 | */ | ||
477 | @Override | ||
478 | public void eUnset(int featureID) { | ||
479 | switch (featureID) { | ||
480 | case TaxationPackage.EXTERNAL_ALLOWANCE__AMOUNT: | ||
481 | setAmount(AMOUNT_EDEFAULT); | ||
482 | return; | ||
483 | case TaxationPackage.EXTERNAL_ALLOWANCE__GRANTOR: | ||
484 | setGrantor(GRANTOR_EDEFAULT); | ||
485 | return; | ||
486 | case TaxationPackage.EXTERNAL_ALLOWANCE__STARTING_YEAR: | ||
487 | setStarting_year(STARTING_YEAR_EDEFAULT); | ||
488 | return; | ||
489 | case TaxationPackage.EXTERNAL_ALLOWANCE__ENDING_YEAR: | ||
490 | setEnding_year(ENDING_YEAR_EDEFAULT); | ||
491 | return; | ||
492 | case TaxationPackage.EXTERNAL_ALLOWANCE__RECIVER: | ||
493 | setReciver((Physical_Person)null); | ||
494 | return; | ||
495 | case TaxationPackage.EXTERNAL_ALLOWANCE__ID5: | ||
496 | setId5(ID5_EDEFAULT); | ||
497 | return; | ||
498 | case TaxationPackage.EXTERNAL_ALLOWANCE__PERSON: | ||
499 | setPerson((Dependent)null); | ||
500 | return; | ||
501 | } | ||
502 | super.eUnset(featureID); | ||
503 | } | ||
504 | |||
505 | /** | ||
506 | * <!-- begin-user-doc --> | ||
507 | * <!-- end-user-doc --> | ||
508 | * @generated | ||
509 | */ | ||
510 | @Override | ||
511 | public boolean eIsSet(int featureID) { | ||
512 | switch (featureID) { | ||
513 | case TaxationPackage.EXTERNAL_ALLOWANCE__AMOUNT: | ||
514 | return amount != AMOUNT_EDEFAULT; | ||
515 | case TaxationPackage.EXTERNAL_ALLOWANCE__GRANTOR: | ||
516 | return grantor != GRANTOR_EDEFAULT; | ||
517 | case TaxationPackage.EXTERNAL_ALLOWANCE__STARTING_YEAR: | ||
518 | return starting_year != STARTING_YEAR_EDEFAULT; | ||
519 | case TaxationPackage.EXTERNAL_ALLOWANCE__ENDING_YEAR: | ||
520 | return ending_year != ENDING_YEAR_EDEFAULT; | ||
521 | case TaxationPackage.EXTERNAL_ALLOWANCE__RECIVER: | ||
522 | return reciver != null; | ||
523 | case TaxationPackage.EXTERNAL_ALLOWANCE__ID5: | ||
524 | return ID5_EDEFAULT == null ? id5 != null : !ID5_EDEFAULT.equals(id5); | ||
525 | case TaxationPackage.EXTERNAL_ALLOWANCE__PERSON: | ||
526 | return getPerson() != null; | ||
527 | } | ||
528 | return super.eIsSet(featureID); | ||
529 | } | ||
530 | |||
531 | /** | ||
532 | * <!-- begin-user-doc --> | ||
533 | * <!-- end-user-doc --> | ||
534 | * @generated | ||
535 | */ | ||
536 | @Override | ||
537 | public String toString() { | ||
538 | if (eIsProxy()) return super.toString(); | ||
539 | |||
540 | StringBuilder result = new StringBuilder(super.toString()); | ||
541 | result.append(" (amount: "); | ||
542 | result.append(amount); | ||
543 | result.append(", grantor: "); | ||
544 | result.append(grantor); | ||
545 | result.append(", starting_year: "); | ||
546 | result.append(starting_year); | ||
547 | result.append(", ending_year: "); | ||
548 | result.append(ending_year); | ||
549 | result.append(", id5: "); | ||
550 | result.append(id5); | ||
551 | result.append(')'); | ||
552 | return result.toString(); | ||
553 | } | ||
554 | |||
555 | } //External_AllowanceImpl | ||