aboutsummaryrefslogtreecommitdiffstats
path: root/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Tax_PropertyImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Tax_PropertyImpl.java')
-rw-r--r--Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Tax_PropertyImpl.java323
1 files changed, 323 insertions, 0 deletions
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Tax_PropertyImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Tax_PropertyImpl.java
new file mode 100644
index 00000000..e1ed46e4
--- /dev/null
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/Tax_PropertyImpl.java
@@ -0,0 +1,323 @@
1/**
2 */
3package Taxation.impl;
4
5import Taxation.Legal_Union_Record;
6import Taxation.Tax_Property;
7import Taxation.TaxationPackage;
8import org.eclipse.emf.common.notify.Notification;
9import org.eclipse.emf.common.notify.NotificationChain;
10
11import org.eclipse.emf.ecore.EClass;
12import org.eclipse.emf.ecore.InternalEObject;
13
14import org.eclipse.emf.ecore.impl.ENotificationImpl;
15import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
16
17import org.eclipse.emf.ecore.util.EcoreUtil;
18
19/**
20 * <!-- begin-user-doc -->
21 * An implementation of the model object '<em><b>Tax Property</b></em>'.
22 * <!-- end-user-doc -->
23 * <p>
24 * The following features are implemented:
25 * </p>
26 * <ul>
27 * <li>{@link Taxation.impl.Tax_PropertyImpl#getStarting_year <em>Starting year</em>}</li>
28 * <li>{@link Taxation.impl.Tax_PropertyImpl#getId10 <em>Id10</em>}</li>
29 * <li>{@link Taxation.impl.Tax_PropertyImpl#getUnion_record <em>Union record</em>}</li>
30 * </ul>
31 *
32 * @generated
33 */
34public class Tax_PropertyImpl extends MinimalEObjectImpl.Container implements Tax_Property {
35 /**
36 * The default value of the '{@link #getStarting_year() <em>Starting year</em>}' attribute.
37 * <!-- begin-user-doc -->
38 * <!-- end-user-doc -->
39 * @see #getStarting_year()
40 * @generated
41 * @ordered
42 */
43 protected static final int STARTING_YEAR_EDEFAULT = 0;
44
45 /**
46 * The cached value of the '{@link #getStarting_year() <em>Starting year</em>}' attribute.
47 * <!-- begin-user-doc -->
48 * <!-- end-user-doc -->
49 * @see #getStarting_year()
50 * @generated
51 * @ordered
52 */
53 protected int starting_year = STARTING_YEAR_EDEFAULT;
54
55 /**
56 * The default value of the '{@link #getId10() <em>Id10</em>}' attribute.
57 * <!-- begin-user-doc -->
58 * <!-- end-user-doc -->
59 * @see #getId10()
60 * @generated
61 * @ordered
62 */
63 protected static final String ID10_EDEFAULT = null;
64
65 /**
66 * The cached value of the '{@link #getId10() <em>Id10</em>}' attribute.
67 * <!-- begin-user-doc -->
68 * <!-- end-user-doc -->
69 * @see #getId10()
70 * @generated
71 * @ordered
72 */
73 protected String id10 = ID10_EDEFAULT;
74
75 /**
76 * <!-- begin-user-doc -->
77 * <!-- end-user-doc -->
78 * @generated
79 */
80 protected Tax_PropertyImpl() {
81 super();
82 }
83
84 /**
85 * <!-- begin-user-doc -->
86 * <!-- end-user-doc -->
87 * @generated
88 */
89 @Override
90 protected EClass eStaticClass() {
91 return TaxationPackage.Literals.TAX_PROPERTY;
92 }
93
94 /**
95 * <!-- begin-user-doc -->
96 * <!-- end-user-doc -->
97 * @generated
98 */
99 @Override
100 public int getStarting_year() {
101 return starting_year;
102 }
103
104 /**
105 * <!-- begin-user-doc -->
106 * <!-- end-user-doc -->
107 * @generated
108 */
109 @Override
110 public void setStarting_year(int newStarting_year) {
111 int oldStarting_year = starting_year;
112 starting_year = newStarting_year;
113 if (eNotificationRequired())
114 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.TAX_PROPERTY__STARTING_YEAR, oldStarting_year, starting_year));
115 }
116
117 /**
118 * <!-- begin-user-doc -->
119 * <!-- end-user-doc -->
120 * @generated
121 */
122 @Override
123 public String getId10() {
124 return id10;
125 }
126
127 /**
128 * <!-- begin-user-doc -->
129 * <!-- end-user-doc -->
130 * @generated
131 */
132 @Override
133 public void setId10(String newId10) {
134 String oldId10 = id10;
135 id10 = newId10;
136 if (eNotificationRequired())
137 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.TAX_PROPERTY__ID10, oldId10, id10));
138 }
139
140 /**
141 * <!-- begin-user-doc -->
142 * <!-- end-user-doc -->
143 * @generated
144 */
145 @Override
146 public Legal_Union_Record getUnion_record() {
147 if (eContainerFeatureID() != TaxationPackage.TAX_PROPERTY__UNION_RECORD) return null;
148 return (Legal_Union_Record)eInternalContainer();
149 }
150
151 /**
152 * <!-- begin-user-doc -->
153 * <!-- end-user-doc -->
154 * @generated
155 */
156 public NotificationChain basicSetUnion_record(Legal_Union_Record newUnion_record, NotificationChain msgs) {
157 msgs = eBasicSetContainer((InternalEObject)newUnion_record, TaxationPackage.TAX_PROPERTY__UNION_RECORD, msgs);
158 return msgs;
159 }
160
161 /**
162 * <!-- begin-user-doc -->
163 * <!-- end-user-doc -->
164 * @generated
165 */
166 @Override
167 public void setUnion_record(Legal_Union_Record newUnion_record) {
168 if (newUnion_record != eInternalContainer() || (eContainerFeatureID() != TaxationPackage.TAX_PROPERTY__UNION_RECORD && newUnion_record != null)) {
169 if (EcoreUtil.isAncestor(this, newUnion_record))
170 throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
171 NotificationChain msgs = null;
172 if (eInternalContainer() != null)
173 msgs = eBasicRemoveFromContainer(msgs);
174 if (newUnion_record != null)
175 msgs = ((InternalEObject)newUnion_record).eInverseAdd(this, TaxationPackage.LEGAL_UNION_RECORD__PROPERTIES, Legal_Union_Record.class, msgs);
176 msgs = basicSetUnion_record(newUnion_record, msgs);
177 if (msgs != null) msgs.dispatch();
178 }
179 else if (eNotificationRequired())
180 eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.TAX_PROPERTY__UNION_RECORD, newUnion_record, newUnion_record));
181 }
182
183 /**
184 * <!-- begin-user-doc -->
185 * <!-- end-user-doc -->
186 * @generated
187 */
188 @Override
189 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
190 switch (featureID) {
191 case TaxationPackage.TAX_PROPERTY__UNION_RECORD:
192 if (eInternalContainer() != null)
193 msgs = eBasicRemoveFromContainer(msgs);
194 return basicSetUnion_record((Legal_Union_Record)otherEnd, msgs);
195 }
196 return super.eInverseAdd(otherEnd, featureID, msgs);
197 }
198
199 /**
200 * <!-- begin-user-doc -->
201 * <!-- end-user-doc -->
202 * @generated
203 */
204 @Override
205 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
206 switch (featureID) {
207 case TaxationPackage.TAX_PROPERTY__UNION_RECORD:
208 return basicSetUnion_record(null, msgs);
209 }
210 return super.eInverseRemove(otherEnd, featureID, msgs);
211 }
212
213 /**
214 * <!-- begin-user-doc -->
215 * <!-- end-user-doc -->
216 * @generated
217 */
218 @Override
219 public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
220 switch (eContainerFeatureID()) {
221 case TaxationPackage.TAX_PROPERTY__UNION_RECORD:
222 return eInternalContainer().eInverseRemove(this, TaxationPackage.LEGAL_UNION_RECORD__PROPERTIES, Legal_Union_Record.class, msgs);
223 }
224 return super.eBasicRemoveFromContainerFeature(msgs);
225 }
226
227 /**
228 * <!-- begin-user-doc -->
229 * <!-- end-user-doc -->
230 * @generated
231 */
232 @Override
233 public Object eGet(int featureID, boolean resolve, boolean coreType) {
234 switch (featureID) {
235 case TaxationPackage.TAX_PROPERTY__STARTING_YEAR:
236 return getStarting_year();
237 case TaxationPackage.TAX_PROPERTY__ID10:
238 return getId10();
239 case TaxationPackage.TAX_PROPERTY__UNION_RECORD:
240 return getUnion_record();
241 }
242 return super.eGet(featureID, resolve, coreType);
243 }
244
245 /**
246 * <!-- begin-user-doc -->
247 * <!-- end-user-doc -->
248 * @generated
249 */
250 @Override
251 public void eSet(int featureID, Object newValue) {
252 switch (featureID) {
253 case TaxationPackage.TAX_PROPERTY__STARTING_YEAR:
254 setStarting_year((Integer)newValue);
255 return;
256 case TaxationPackage.TAX_PROPERTY__ID10:
257 setId10((String)newValue);
258 return;
259 case TaxationPackage.TAX_PROPERTY__UNION_RECORD:
260 setUnion_record((Legal_Union_Record)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.TAX_PROPERTY__STARTING_YEAR:
275 setStarting_year(STARTING_YEAR_EDEFAULT);
276 return;
277 case TaxationPackage.TAX_PROPERTY__ID10:
278 setId10(ID10_EDEFAULT);
279 return;
280 case TaxationPackage.TAX_PROPERTY__UNION_RECORD:
281 setUnion_record((Legal_Union_Record)null);
282 return;
283 }
284 super.eUnset(featureID);
285 }
286
287 /**
288 * <!-- begin-user-doc -->
289 * <!-- end-user-doc -->
290 * @generated
291 */
292 @Override
293 public boolean eIsSet(int featureID) {
294 switch (featureID) {
295 case TaxationPackage.TAX_PROPERTY__STARTING_YEAR:
296 return starting_year != STARTING_YEAR_EDEFAULT;
297 case TaxationPackage.TAX_PROPERTY__ID10:
298 return ID10_EDEFAULT == null ? id10 != null : !ID10_EDEFAULT.equals(id10);
299 case TaxationPackage.TAX_PROPERTY__UNION_RECORD:
300 return getUnion_record() != null;
301 }
302 return super.eIsSet(featureID);
303 }
304
305 /**
306 * <!-- begin-user-doc -->
307 * <!-- end-user-doc -->
308 * @generated
309 */
310 @Override
311 public String toString() {
312 if (eIsProxy()) return super.toString();
313
314 StringBuilder result = new StringBuilder(super.toString());
315 result.append(" (starting_year: ");
316 result.append(starting_year);
317 result.append(", id10: ");
318 result.append(id10);
319 result.append(')');
320 return result.toString();
321 }
322
323} //Tax_PropertyImpl