aboutsummaryrefslogtreecommitdiffstats
path: root/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/DonationImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/DonationImpl.java')
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/DonationImpl.java276
1 files changed, 276 insertions, 0 deletions
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/DonationImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/DonationImpl.java
new file mode 100644
index 00000000..e631901a
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/DonationImpl.java
@@ -0,0 +1,276 @@
1/**
2 */
3package Taxation.impl;
4
5import Taxation.Donation;
6import Taxation.TaxationPackage;
7
8import org.eclipse.emf.common.notify.Notification;
9
10import org.eclipse.emf.ecore.EClass;
11
12import org.eclipse.emf.ecore.impl.ENotificationImpl;
13
14/**
15 * <!-- begin-user-doc -->
16 * An implementation of the model object '<em><b>Donation</b></em>'.
17 * <!-- end-user-doc -->
18 * <p>
19 * The following features are implemented:
20 * </p>
21 * <ul>
22 * <li>{@link Taxation.impl.DonationImpl#getBeneficiary1 <em>Beneficiary1</em>}</li>
23 * <li>{@link Taxation.impl.DonationImpl#isIs_beneficiary_eligible <em>Is beneficiary eligible</em>}</li>
24 * <li>{@link Taxation.impl.DonationImpl#isIs_donation_reported <em>Is donation reported</em>}</li>
25 * </ul>
26 *
27 * @generated
28 */
29public class DonationImpl extends Special_Expense_DSImpl implements Donation {
30 /**
31 * The default value of the '{@link #getBeneficiary1() <em>Beneficiary1</em>}' attribute.
32 * <!-- begin-user-doc -->
33 * <!-- end-user-doc -->
34 * @see #getBeneficiary1()
35 * @generated
36 * @ordered
37 */
38 protected static final String BENEFICIARY1_EDEFAULT = null;
39
40 /**
41 * The cached value of the '{@link #getBeneficiary1() <em>Beneficiary1</em>}' attribute.
42 * <!-- begin-user-doc -->
43 * <!-- end-user-doc -->
44 * @see #getBeneficiary1()
45 * @generated
46 * @ordered
47 */
48 protected String beneficiary1 = BENEFICIARY1_EDEFAULT;
49
50 /**
51 * The default value of the '{@link #isIs_beneficiary_eligible() <em>Is beneficiary eligible</em>}' attribute.
52 * <!-- begin-user-doc -->
53 * <!-- end-user-doc -->
54 * @see #isIs_beneficiary_eligible()
55 * @generated
56 * @ordered
57 */
58 protected static final boolean IS_BENEFICIARY_ELIGIBLE_EDEFAULT = false;
59
60 /**
61 * The cached value of the '{@link #isIs_beneficiary_eligible() <em>Is beneficiary eligible</em>}' attribute.
62 * <!-- begin-user-doc -->
63 * <!-- end-user-doc -->
64 * @see #isIs_beneficiary_eligible()
65 * @generated
66 * @ordered
67 */
68 protected boolean is_beneficiary_eligible = IS_BENEFICIARY_ELIGIBLE_EDEFAULT;
69
70 /**
71 * The default value of the '{@link #isIs_donation_reported() <em>Is donation reported</em>}' attribute.
72 * <!-- begin-user-doc -->
73 * <!-- end-user-doc -->
74 * @see #isIs_donation_reported()
75 * @generated
76 * @ordered
77 */
78 protected static final boolean IS_DONATION_REPORTED_EDEFAULT = false;
79
80 /**
81 * The cached value of the '{@link #isIs_donation_reported() <em>Is donation reported</em>}' attribute.
82 * <!-- begin-user-doc -->
83 * <!-- end-user-doc -->
84 * @see #isIs_donation_reported()
85 * @generated
86 * @ordered
87 */
88 protected boolean is_donation_reported = IS_DONATION_REPORTED_EDEFAULT;
89
90 /**
91 * <!-- begin-user-doc -->
92 * <!-- end-user-doc -->
93 * @generated
94 */
95 protected DonationImpl() {
96 super();
97 }
98
99 /**
100 * <!-- begin-user-doc -->
101 * <!-- end-user-doc -->
102 * @generated
103 */
104 @Override
105 protected EClass eStaticClass() {
106 return TaxationPackage.Literals.DONATION;
107 }
108
109 /**
110 * <!-- begin-user-doc -->
111 * <!-- end-user-doc -->
112 * @generated
113 */
114 @Override
115 public String getBeneficiary1() {
116 return beneficiary1;
117 }
118
119 /**
120 * <!-- begin-user-doc -->
121 * <!-- end-user-doc -->
122 * @generated
123 */
124 @Override
125 public void setBeneficiary1(String newBeneficiary1) {
126 String oldBeneficiary1 = beneficiary1;
127 beneficiary1 = newBeneficiary1;
128 if (eNotificationRequired())
129 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.DONATION__BENEFICIARY1, oldBeneficiary1, beneficiary1));
130 }
131
132 /**
133 * <!-- begin-user-doc -->
134 * <!-- end-user-doc -->
135 * @generated
136 */
137 @Override
138 public boolean isIs_beneficiary_eligible() {
139 return is_beneficiary_eligible;
140 }
141
142 /**
143 * <!-- begin-user-doc -->
144 * <!-- end-user-doc -->
145 * @generated
146 */
147 @Override
148 public void setIs_beneficiary_eligible(boolean newIs_beneficiary_eligible) {
149 boolean oldIs_beneficiary_eligible = is_beneficiary_eligible;
150 is_beneficiary_eligible = newIs_beneficiary_eligible;
151 if (eNotificationRequired())
152 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.DONATION__IS_BENEFICIARY_ELIGIBLE, oldIs_beneficiary_eligible, is_beneficiary_eligible));
153 }
154
155 /**
156 * <!-- begin-user-doc -->
157 * <!-- end-user-doc -->
158 * @generated
159 */
160 @Override
161 public boolean isIs_donation_reported() {
162 return is_donation_reported;
163 }
164
165 /**
166 * <!-- begin-user-doc -->
167 * <!-- end-user-doc -->
168 * @generated
169 */
170 @Override
171 public void setIs_donation_reported(boolean newIs_donation_reported) {
172 boolean oldIs_donation_reported = is_donation_reported;
173 is_donation_reported = newIs_donation_reported;
174 if (eNotificationRequired())
175 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.DONATION__IS_DONATION_REPORTED, oldIs_donation_reported, is_donation_reported));
176 }
177
178 /**
179 * <!-- begin-user-doc -->
180 * <!-- end-user-doc -->
181 * @generated
182 */
183 @Override
184 public Object eGet(int featureID, boolean resolve, boolean coreType) {
185 switch (featureID) {
186 case TaxationPackage.DONATION__BENEFICIARY1:
187 return getBeneficiary1();
188 case TaxationPackage.DONATION__IS_BENEFICIARY_ELIGIBLE:
189 return isIs_beneficiary_eligible();
190 case TaxationPackage.DONATION__IS_DONATION_REPORTED:
191 return isIs_donation_reported();
192 }
193 return super.eGet(featureID, resolve, coreType);
194 }
195
196 /**
197 * <!-- begin-user-doc -->
198 * <!-- end-user-doc -->
199 * @generated
200 */
201 @Override
202 public void eSet(int featureID, Object newValue) {
203 switch (featureID) {
204 case TaxationPackage.DONATION__BENEFICIARY1:
205 setBeneficiary1((String)newValue);
206 return;
207 case TaxationPackage.DONATION__IS_BENEFICIARY_ELIGIBLE:
208 setIs_beneficiary_eligible((Boolean)newValue);
209 return;
210 case TaxationPackage.DONATION__IS_DONATION_REPORTED:
211 setIs_donation_reported((Boolean)newValue);
212 return;
213 }
214 super.eSet(featureID, newValue);
215 }
216
217 /**
218 * <!-- begin-user-doc -->
219 * <!-- end-user-doc -->
220 * @generated
221 */
222 @Override
223 public void eUnset(int featureID) {
224 switch (featureID) {
225 case TaxationPackage.DONATION__BENEFICIARY1:
226 setBeneficiary1(BENEFICIARY1_EDEFAULT);
227 return;
228 case TaxationPackage.DONATION__IS_BENEFICIARY_ELIGIBLE:
229 setIs_beneficiary_eligible(IS_BENEFICIARY_ELIGIBLE_EDEFAULT);
230 return;
231 case TaxationPackage.DONATION__IS_DONATION_REPORTED:
232 setIs_donation_reported(IS_DONATION_REPORTED_EDEFAULT);
233 return;
234 }
235 super.eUnset(featureID);
236 }
237
238 /**
239 * <!-- begin-user-doc -->
240 * <!-- end-user-doc -->
241 * @generated
242 */
243 @Override
244 public boolean eIsSet(int featureID) {
245 switch (featureID) {
246 case TaxationPackage.DONATION__BENEFICIARY1:
247 return BENEFICIARY1_EDEFAULT == null ? beneficiary1 != null : !BENEFICIARY1_EDEFAULT.equals(beneficiary1);
248 case TaxationPackage.DONATION__IS_BENEFICIARY_ELIGIBLE:
249 return is_beneficiary_eligible != IS_BENEFICIARY_ELIGIBLE_EDEFAULT;
250 case TaxationPackage.DONATION__IS_DONATION_REPORTED:
251 return is_donation_reported != IS_DONATION_REPORTED_EDEFAULT;
252 }
253 return super.eIsSet(featureID);
254 }
255
256 /**
257 * <!-- begin-user-doc -->
258 * <!-- end-user-doc -->
259 * @generated
260 */
261 @Override
262 public String toString() {
263 if (eIsProxy()) return super.toString();
264
265 StringBuilder result = new StringBuilder(super.toString());
266 result.append(" (beneficiary1: ");
267 result.append(beneficiary1);
268 result.append(", is_beneficiary_eligible: ");
269 result.append(is_beneficiary_eligible);
270 result.append(", is_donation_reported: ");
271 result.append(is_donation_reported);
272 result.append(')');
273 return result.toString();
274 }
275
276} //DonationImpl