aboutsummaryrefslogtreecommitdiffstats
path: root/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Loss_CarryforwardImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Loss_CarryforwardImpl.java')
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Loss_CarryforwardImpl.java296
1 files changed, 0 insertions, 296 deletions
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Loss_CarryforwardImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Loss_CarryforwardImpl.java
index d43422f8..2f578d2c 100644
--- a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Loss_CarryforwardImpl.java
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Loss_CarryforwardImpl.java
@@ -4,111 +4,17 @@ package Taxation.impl;
4 4
5import Taxation.Loss_Carryforward; 5import Taxation.Loss_Carryforward;
6import Taxation.TaxationPackage; 6import Taxation.TaxationPackage;
7
8import org.eclipse.emf.common.notify.Notification;
9
10import org.eclipse.emf.ecore.EClass; 7import org.eclipse.emf.ecore.EClass;
11 8
12import org.eclipse.emf.ecore.impl.ENotificationImpl;
13
14/** 9/**
15 * <!-- begin-user-doc --> 10 * <!-- begin-user-doc -->
16 * An implementation of the model object '<em><b>Loss Carryforward</b></em>'. 11 * An implementation of the model object '<em><b>Loss Carryforward</b></em>'.
17 * <!-- end-user-doc --> 12 * <!-- end-user-doc -->
18 * <p>
19 * The following features are implemented:
20 * </p>
21 * <ul>
22 * <li>{@link Taxation.impl.Loss_CarryforwardImpl#isRegular_accountability <em>Regular accountability</em>}</li>
23 * <li>{@link Taxation.impl.Loss_CarryforwardImpl#isCompensation_by_other_means <em>Compensation by other means</em>}</li>
24 * <li>{@link Taxation.impl.Loss_CarryforwardImpl#isTax_payer_has_inherited_business_ownership <em>Tax payer has inherited business ownership</em>}</li>
25 * <li>{@link Taxation.impl.Loss_CarryforwardImpl#isTax_payer_has_been_partner_in_business <em>Tax payer has been partner in business</em>}</li>
26 * </ul>
27 * 13 *
28 * @generated 14 * @generated
29 */ 15 */
30public class Loss_CarryforwardImpl extends Special_Expense_DSImpl implements Loss_Carryforward { 16public class Loss_CarryforwardImpl extends Special_Expense_DSImpl implements Loss_Carryforward {
31 /** 17 /**
32 * The default value of the '{@link #isRegular_accountability() <em>Regular accountability</em>}' attribute.
33 * <!-- begin-user-doc -->
34 * <!-- end-user-doc -->
35 * @see #isRegular_accountability()
36 * @generated
37 * @ordered
38 */
39 protected static final boolean REGULAR_ACCOUNTABILITY_EDEFAULT = false;
40
41 /**
42 * The cached value of the '{@link #isRegular_accountability() <em>Regular accountability</em>}' attribute.
43 * <!-- begin-user-doc -->
44 * <!-- end-user-doc -->
45 * @see #isRegular_accountability()
46 * @generated
47 * @ordered
48 */
49 protected boolean regular_accountability = REGULAR_ACCOUNTABILITY_EDEFAULT;
50
51 /**
52 * The default value of the '{@link #isCompensation_by_other_means() <em>Compensation by other means</em>}' attribute.
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @see #isCompensation_by_other_means()
56 * @generated
57 * @ordered
58 */
59 protected static final boolean COMPENSATION_BY_OTHER_MEANS_EDEFAULT = false;
60
61 /**
62 * The cached value of the '{@link #isCompensation_by_other_means() <em>Compensation by other means</em>}' attribute.
63 * <!-- begin-user-doc -->
64 * <!-- end-user-doc -->
65 * @see #isCompensation_by_other_means()
66 * @generated
67 * @ordered
68 */
69 protected boolean compensation_by_other_means = COMPENSATION_BY_OTHER_MEANS_EDEFAULT;
70
71 /**
72 * The default value of the '{@link #isTax_payer_has_inherited_business_ownership() <em>Tax payer has inherited business ownership</em>}' attribute.
73 * <!-- begin-user-doc -->
74 * <!-- end-user-doc -->
75 * @see #isTax_payer_has_inherited_business_ownership()
76 * @generated
77 * @ordered
78 */
79 protected static final boolean TAX_PAYER_HAS_INHERITED_BUSINESS_OWNERSHIP_EDEFAULT = false;
80
81 /**
82 * The cached value of the '{@link #isTax_payer_has_inherited_business_ownership() <em>Tax payer has inherited business ownership</em>}' attribute.
83 * <!-- begin-user-doc -->
84 * <!-- end-user-doc -->
85 * @see #isTax_payer_has_inherited_business_ownership()
86 * @generated
87 * @ordered
88 */
89 protected boolean tax_payer_has_inherited_business_ownership = TAX_PAYER_HAS_INHERITED_BUSINESS_OWNERSHIP_EDEFAULT;
90
91 /**
92 * The default value of the '{@link #isTax_payer_has_been_partner_in_business() <em>Tax payer has been partner in business</em>}' attribute.
93 * <!-- begin-user-doc -->
94 * <!-- end-user-doc -->
95 * @see #isTax_payer_has_been_partner_in_business()
96 * @generated
97 * @ordered
98 */
99 protected static final boolean TAX_PAYER_HAS_BEEN_PARTNER_IN_BUSINESS_EDEFAULT = true;
100
101 /**
102 * The cached value of the '{@link #isTax_payer_has_been_partner_in_business() <em>Tax payer has been partner in business</em>}' attribute.
103 * <!-- begin-user-doc -->
104 * <!-- end-user-doc -->
105 * @see #isTax_payer_has_been_partner_in_business()
106 * @generated
107 * @ordered
108 */
109 protected boolean tax_payer_has_been_partner_in_business = TAX_PAYER_HAS_BEEN_PARTNER_IN_BUSINESS_EDEFAULT;
110
111 /**
112 * <!-- begin-user-doc --> 18 * <!-- begin-user-doc -->
113 * <!-- end-user-doc --> 19 * <!-- end-user-doc -->
114 * @generated 20 * @generated
@@ -127,206 +33,4 @@ public class Loss_CarryforwardImpl extends Special_Expense_DSImpl implements Los
127 return TaxationPackage.Literals.LOSS_CARRYFORWARD; 33 return TaxationPackage.Literals.LOSS_CARRYFORWARD;
128 } 34 }
129 35
130 /**
131 * <!-- begin-user-doc -->
132 * <!-- end-user-doc -->
133 * @generated
134 */
135 @Override
136 public boolean isRegular_accountability() {
137 return regular_accountability;
138 }
139
140 /**
141 * <!-- begin-user-doc -->
142 * <!-- end-user-doc -->
143 * @generated
144 */
145 @Override
146 public void setRegular_accountability(boolean newRegular_accountability) {
147 boolean oldRegular_accountability = regular_accountability;
148 regular_accountability = newRegular_accountability;
149 if (eNotificationRequired())
150 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.LOSS_CARRYFORWARD__REGULAR_ACCOUNTABILITY, oldRegular_accountability, regular_accountability));
151 }
152
153 /**
154 * <!-- begin-user-doc -->
155 * <!-- end-user-doc -->
156 * @generated
157 */
158 @Override
159 public boolean isCompensation_by_other_means() {
160 return compensation_by_other_means;
161 }
162
163 /**
164 * <!-- begin-user-doc -->
165 * <!-- end-user-doc -->
166 * @generated
167 */
168 @Override
169 public void setCompensation_by_other_means(boolean newCompensation_by_other_means) {
170 boolean oldCompensation_by_other_means = compensation_by_other_means;
171 compensation_by_other_means = newCompensation_by_other_means;
172 if (eNotificationRequired())
173 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.LOSS_CARRYFORWARD__COMPENSATION_BY_OTHER_MEANS, oldCompensation_by_other_means, compensation_by_other_means));
174 }
175
176 /**
177 * <!-- begin-user-doc -->
178 * <!-- end-user-doc -->
179 * @generated
180 */
181 @Override
182 public boolean isTax_payer_has_inherited_business_ownership() {
183 return tax_payer_has_inherited_business_ownership;
184 }
185
186 /**
187 * <!-- begin-user-doc -->
188 * <!-- end-user-doc -->
189 * @generated
190 */
191 @Override
192 public void setTax_payer_has_inherited_business_ownership(boolean newTax_payer_has_inherited_business_ownership) {
193 boolean oldTax_payer_has_inherited_business_ownership = tax_payer_has_inherited_business_ownership;
194 tax_payer_has_inherited_business_ownership = newTax_payer_has_inherited_business_ownership;
195 if (eNotificationRequired())
196 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.LOSS_CARRYFORWARD__TAX_PAYER_HAS_INHERITED_BUSINESS_OWNERSHIP, oldTax_payer_has_inherited_business_ownership, tax_payer_has_inherited_business_ownership));
197 }
198
199 /**
200 * <!-- begin-user-doc -->
201 * <!-- end-user-doc -->
202 * @generated
203 */
204 @Override
205 public boolean isTax_payer_has_been_partner_in_business() {
206 return tax_payer_has_been_partner_in_business;
207 }
208
209 /**
210 * <!-- begin-user-doc -->
211 * <!-- end-user-doc -->
212 * @generated
213 */
214 @Override
215 public void setTax_payer_has_been_partner_in_business(boolean newTax_payer_has_been_partner_in_business) {
216 boolean oldTax_payer_has_been_partner_in_business = tax_payer_has_been_partner_in_business;
217 tax_payer_has_been_partner_in_business = newTax_payer_has_been_partner_in_business;
218 if (eNotificationRequired())
219 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.LOSS_CARRYFORWARD__TAX_PAYER_HAS_BEEN_PARTNER_IN_BUSINESS, oldTax_payer_has_been_partner_in_business, tax_payer_has_been_partner_in_business));
220 }
221
222 /**
223 * <!-- begin-user-doc -->
224 * <!-- end-user-doc -->
225 * @generated
226 */
227 @Override
228 public Object eGet(int featureID, boolean resolve, boolean coreType) {
229 switch (featureID) {
230 case TaxationPackage.LOSS_CARRYFORWARD__REGULAR_ACCOUNTABILITY:
231 return isRegular_accountability();
232 case TaxationPackage.LOSS_CARRYFORWARD__COMPENSATION_BY_OTHER_MEANS:
233 return isCompensation_by_other_means();
234 case TaxationPackage.LOSS_CARRYFORWARD__TAX_PAYER_HAS_INHERITED_BUSINESS_OWNERSHIP:
235 return isTax_payer_has_inherited_business_ownership();
236 case TaxationPackage.LOSS_CARRYFORWARD__TAX_PAYER_HAS_BEEN_PARTNER_IN_BUSINESS:
237 return isTax_payer_has_been_partner_in_business();
238 }
239 return super.eGet(featureID, resolve, coreType);
240 }
241
242 /**
243 * <!-- begin-user-doc -->
244 * <!-- end-user-doc -->
245 * @generated
246 */
247 @Override
248 public void eSet(int featureID, Object newValue) {
249 switch (featureID) {
250 case TaxationPackage.LOSS_CARRYFORWARD__REGULAR_ACCOUNTABILITY:
251 setRegular_accountability((Boolean)newValue);
252 return;
253 case TaxationPackage.LOSS_CARRYFORWARD__COMPENSATION_BY_OTHER_MEANS:
254 setCompensation_by_other_means((Boolean)newValue);
255 return;
256 case TaxationPackage.LOSS_CARRYFORWARD__TAX_PAYER_HAS_INHERITED_BUSINESS_OWNERSHIP:
257 setTax_payer_has_inherited_business_ownership((Boolean)newValue);
258 return;
259 case TaxationPackage.LOSS_CARRYFORWARD__TAX_PAYER_HAS_BEEN_PARTNER_IN_BUSINESS:
260 setTax_payer_has_been_partner_in_business((Boolean)newValue);
261 return;
262 }
263 super.eSet(featureID, newValue);
264 }
265
266 /**
267 * <!-- begin-user-doc -->
268 * <!-- end-user-doc -->
269 * @generated
270 */
271 @Override
272 public void eUnset(int featureID) {
273 switch (featureID) {
274 case TaxationPackage.LOSS_CARRYFORWARD__REGULAR_ACCOUNTABILITY:
275 setRegular_accountability(REGULAR_ACCOUNTABILITY_EDEFAULT);
276 return;
277 case TaxationPackage.LOSS_CARRYFORWARD__COMPENSATION_BY_OTHER_MEANS:
278 setCompensation_by_other_means(COMPENSATION_BY_OTHER_MEANS_EDEFAULT);
279 return;
280 case TaxationPackage.LOSS_CARRYFORWARD__TAX_PAYER_HAS_INHERITED_BUSINESS_OWNERSHIP:
281 setTax_payer_has_inherited_business_ownership(TAX_PAYER_HAS_INHERITED_BUSINESS_OWNERSHIP_EDEFAULT);
282 return;
283 case TaxationPackage.LOSS_CARRYFORWARD__TAX_PAYER_HAS_BEEN_PARTNER_IN_BUSINESS:
284 setTax_payer_has_been_partner_in_business(TAX_PAYER_HAS_BEEN_PARTNER_IN_BUSINESS_EDEFAULT);
285 return;
286 }
287 super.eUnset(featureID);
288 }
289
290 /**
291 * <!-- begin-user-doc -->
292 * <!-- end-user-doc -->
293 * @generated
294 */
295 @Override
296 public boolean eIsSet(int featureID) {
297 switch (featureID) {
298 case TaxationPackage.LOSS_CARRYFORWARD__REGULAR_ACCOUNTABILITY:
299 return regular_accountability != REGULAR_ACCOUNTABILITY_EDEFAULT;
300 case TaxationPackage.LOSS_CARRYFORWARD__COMPENSATION_BY_OTHER_MEANS:
301 return compensation_by_other_means != COMPENSATION_BY_OTHER_MEANS_EDEFAULT;
302 case TaxationPackage.LOSS_CARRYFORWARD__TAX_PAYER_HAS_INHERITED_BUSINESS_OWNERSHIP:
303 return tax_payer_has_inherited_business_ownership != TAX_PAYER_HAS_INHERITED_BUSINESS_OWNERSHIP_EDEFAULT;
304 case TaxationPackage.LOSS_CARRYFORWARD__TAX_PAYER_HAS_BEEN_PARTNER_IN_BUSINESS:
305 return tax_payer_has_been_partner_in_business != TAX_PAYER_HAS_BEEN_PARTNER_IN_BUSINESS_EDEFAULT;
306 }
307 return super.eIsSet(featureID);
308 }
309
310 /**
311 * <!-- begin-user-doc -->
312 * <!-- end-user-doc -->
313 * @generated
314 */
315 @Override
316 public String toString() {
317 if (eIsProxy()) return super.toString();
318
319 StringBuilder result = new StringBuilder(super.toString());
320 result.append(" (regular_accountability: ");
321 result.append(regular_accountability);
322 result.append(", compensation_by_other_means: ");
323 result.append(compensation_by_other_means);
324 result.append(", tax_payer_has_inherited_business_ownership: ");
325 result.append(tax_payer_has_inherited_business_ownership);
326 result.append(", tax_payer_has_been_partner_in_business: ");
327 result.append(tax_payer_has_been_partner_in_business);
328 result.append(')');
329 return result.toString();
330 }
331
332} //Loss_CarryforwardImpl 36} //Loss_CarryforwardImpl