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