diff options
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Health_and_Pension_InsuranceImpl.java')
-rw-r--r-- | Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Health_and_Pension_InsuranceImpl.java | 221 |
1 files changed, 221 insertions, 0 deletions
diff --git a/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Health_and_Pension_InsuranceImpl.java b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Health_and_Pension_InsuranceImpl.java new file mode 100644 index 00000000..2e2346b7 --- /dev/null +++ b/Tests/MODELS2020-CaseStudies/models20.diversity-calculator/src/TaxationWithRoot/impl/Health_and_Pension_InsuranceImpl.java | |||
@@ -0,0 +1,221 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package TaxationWithRoot.impl; | ||
4 | |||
5 | import TaxationWithRoot.Category_of_Health_and_Pension_Insurances; | ||
6 | import TaxationWithRoot.Health_and_Pension_Insurance; | ||
7 | import TaxationWithRoot.TaxationWithRootPackage; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Health and Pension Insurance</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link TaxationWithRoot.impl.Health_and_Pension_InsuranceImpl#getCategory <em>Category</em>}</li> | ||
24 | * <li>{@link TaxationWithRoot.impl.Health_and_Pension_InsuranceImpl#isIs_related_to_additional_salary <em>Is related to additional salary</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class Health_and_Pension_InsuranceImpl extends Special_Expense_DSImpl implements Health_and_Pension_Insurance { | ||
30 | /** | ||
31 | * The default value of the '{@link #getCategory() <em>Category</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getCategory() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final Category_of_Health_and_Pension_Insurances CATEGORY_EDEFAULT = Category_of_Health_and_Pension_Insurances.MANDATORY_HEALTH_AND_PENSION_INSURANCE; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getCategory() <em>Category</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getCategory() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected Category_of_Health_and_Pension_Insurances category = CATEGORY_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * The default value of the '{@link #isIs_related_to_additional_salary() <em>Is related to additional salary</em>}' attribute. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @see #isIs_related_to_additional_salary() | ||
55 | * @generated | ||
56 | * @ordered | ||
57 | */ | ||
58 | protected static final boolean IS_RELATED_TO_ADDITIONAL_SALARY_EDEFAULT = false; | ||
59 | |||
60 | /** | ||
61 | * The cached value of the '{@link #isIs_related_to_additional_salary() <em>Is related to additional salary</em>}' attribute. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @see #isIs_related_to_additional_salary() | ||
65 | * @generated | ||
66 | * @ordered | ||
67 | */ | ||
68 | protected boolean is_related_to_additional_salary = IS_RELATED_TO_ADDITIONAL_SALARY_EDEFAULT; | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | protected Health_and_Pension_InsuranceImpl() { | ||
76 | super(); | ||
77 | } | ||
78 | |||
79 | /** | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @generated | ||
83 | */ | ||
84 | @Override | ||
85 | protected EClass eStaticClass() { | ||
86 | return TaxationWithRootPackage.Literals.HEALTH_AND_PENSION_INSURANCE; | ||
87 | } | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | @Override | ||
95 | public Category_of_Health_and_Pension_Insurances getCategory() { | ||
96 | return category; | ||
97 | } | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | @Override | ||
105 | public void setCategory(Category_of_Health_and_Pension_Insurances newCategory) { | ||
106 | Category_of_Health_and_Pension_Insurances oldCategory = category; | ||
107 | category = newCategory == null ? CATEGORY_EDEFAULT : newCategory; | ||
108 | if (eNotificationRequired()) | ||
109 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE__CATEGORY, oldCategory, category)); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public boolean isIs_related_to_additional_salary() { | ||
119 | return is_related_to_additional_salary; | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | @Override | ||
128 | public void setIs_related_to_additional_salary(boolean newIs_related_to_additional_salary) { | ||
129 | boolean oldIs_related_to_additional_salary = is_related_to_additional_salary; | ||
130 | is_related_to_additional_salary = newIs_related_to_additional_salary; | ||
131 | if (eNotificationRequired()) | ||
132 | eNotify(new ENotificationImpl(this, Notification.SET, TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE__IS_RELATED_TO_ADDITIONAL_SALARY, oldIs_related_to_additional_salary, is_related_to_additional_salary)); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | @Override | ||
141 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
142 | switch (featureID) { | ||
143 | case TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE__CATEGORY: | ||
144 | return getCategory(); | ||
145 | case TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE__IS_RELATED_TO_ADDITIONAL_SALARY: | ||
146 | return isIs_related_to_additional_salary(); | ||
147 | } | ||
148 | return super.eGet(featureID, resolve, coreType); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public void eSet(int featureID, Object newValue) { | ||
158 | switch (featureID) { | ||
159 | case TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE__CATEGORY: | ||
160 | setCategory((Category_of_Health_and_Pension_Insurances)newValue); | ||
161 | return; | ||
162 | case TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE__IS_RELATED_TO_ADDITIONAL_SALARY: | ||
163 | setIs_related_to_additional_salary((Boolean)newValue); | ||
164 | return; | ||
165 | } | ||
166 | super.eSet(featureID, newValue); | ||
167 | } | ||
168 | |||
169 | /** | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @generated | ||
173 | */ | ||
174 | @Override | ||
175 | public void eUnset(int featureID) { | ||
176 | switch (featureID) { | ||
177 | case TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE__CATEGORY: | ||
178 | setCategory(CATEGORY_EDEFAULT); | ||
179 | return; | ||
180 | case TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE__IS_RELATED_TO_ADDITIONAL_SALARY: | ||
181 | setIs_related_to_additional_salary(IS_RELATED_TO_ADDITIONAL_SALARY_EDEFAULT); | ||
182 | return; | ||
183 | } | ||
184 | super.eUnset(featureID); | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public boolean eIsSet(int featureID) { | ||
194 | switch (featureID) { | ||
195 | case TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE__CATEGORY: | ||
196 | return category != CATEGORY_EDEFAULT; | ||
197 | case TaxationWithRootPackage.HEALTH_AND_PENSION_INSURANCE__IS_RELATED_TO_ADDITIONAL_SALARY: | ||
198 | return is_related_to_additional_salary != IS_RELATED_TO_ADDITIONAL_SALARY_EDEFAULT; | ||
199 | } | ||
200 | return super.eIsSet(featureID); | ||
201 | } | ||
202 | |||
203 | /** | ||
204 | * <!-- begin-user-doc --> | ||
205 | * <!-- end-user-doc --> | ||
206 | * @generated | ||
207 | */ | ||
208 | @Override | ||
209 | public String toString() { | ||
210 | if (eIsProxy()) return super.toString(); | ||
211 | |||
212 | StringBuilder result = new StringBuilder(super.toString()); | ||
213 | result.append(" (category: "); | ||
214 | result.append(category); | ||
215 | result.append(", is_related_to_additional_salary: "); | ||
216 | result.append(is_related_to_additional_salary); | ||
217 | result.append(')'); | ||
218 | return result.toString(); | ||
219 | } | ||
220 | |||
221 | } //Health_and_Pension_InsuranceImpl | ||