diff options
author | 2020-05-19 21:18:06 +0200 | |
---|---|---|
committer | 2020-05-19 21:18:06 +0200 | |
commit | b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b (patch) | |
tree | ad3222182065b8fac7d9b3d528c4efabf2aa0dd2 /Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MemberDefinitionImpl.java | |
parent | Merge branch 'master' of github.com:viatra/VIATRA-Generator (diff) | |
download | VIATRA-Generator-b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b.tar.gz VIATRA-Generator-b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b.tar.zst VIATRA-Generator-b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b.zip |
Config language WIP
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MemberDefinitionImpl.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MemberDefinitionImpl.java | 463 |
1 files changed, 0 insertions, 463 deletions
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MemberDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MemberDefinitionImpl.java deleted file mode 100644 index 69021347..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/MemberDefinitionImpl.java +++ /dev/null | |||
@@ -1,463 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
7 | import org.eclipse.emf.common.notify.NotificationChain; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | import org.eclipse.emf.ecore.InternalEObject; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
13 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
14 | |||
15 | import org.eclipse.viatra.solver.language.solverLanguage.MemberDefinition; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.Multiplicity; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
18 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
19 | |||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * An implementation of the model object '<em><b>Member Definition</b></em>'. | ||
23 | * <!-- end-user-doc --> | ||
24 | * <p> | ||
25 | * The following features are implemented: | ||
26 | * </p> | ||
27 | * <ul> | ||
28 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MemberDefinitionImpl#isContainment <em>Containment</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MemberDefinitionImpl#getType <em>Type</em>}</li> | ||
30 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MemberDefinitionImpl#getMultiplicity <em>Multiplicity</em>}</li> | ||
31 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MemberDefinitionImpl#getName <em>Name</em>}</li> | ||
32 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.MemberDefinitionImpl#getOpposite <em>Opposite</em>}</li> | ||
33 | * </ul> | ||
34 | * | ||
35 | * @generated | ||
36 | */ | ||
37 | public class MemberDefinitionImpl extends MinimalEObjectImpl.Container implements MemberDefinition | ||
38 | { | ||
39 | /** | ||
40 | * The default value of the '{@link #isContainment() <em>Containment</em>}' attribute. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #isContainment() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected static final boolean CONTAINMENT_EDEFAULT = false; | ||
48 | |||
49 | /** | ||
50 | * The cached value of the '{@link #isContainment() <em>Containment</em>}' attribute. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @see #isContainment() | ||
54 | * @generated | ||
55 | * @ordered | ||
56 | */ | ||
57 | protected boolean containment = CONTAINMENT_EDEFAULT; | ||
58 | |||
59 | /** | ||
60 | * The cached value of the '{@link #getType() <em>Type</em>}' reference. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @see #getType() | ||
64 | * @generated | ||
65 | * @ordered | ||
66 | */ | ||
67 | protected NamedElement type; | ||
68 | |||
69 | /** | ||
70 | * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' containment reference. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @see #getMultiplicity() | ||
74 | * @generated | ||
75 | * @ordered | ||
76 | */ | ||
77 | protected Multiplicity multiplicity; | ||
78 | |||
79 | /** | ||
80 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @see #getName() | ||
84 | * @generated | ||
85 | * @ordered | ||
86 | */ | ||
87 | protected static final String NAME_EDEFAULT = null; | ||
88 | |||
89 | /** | ||
90 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @see #getName() | ||
94 | * @generated | ||
95 | * @ordered | ||
96 | */ | ||
97 | protected String name = NAME_EDEFAULT; | ||
98 | |||
99 | /** | ||
100 | * The cached value of the '{@link #getOpposite() <em>Opposite</em>}' reference. | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @see #getOpposite() | ||
104 | * @generated | ||
105 | * @ordered | ||
106 | */ | ||
107 | protected NamedElement opposite; | ||
108 | |||
109 | /** | ||
110 | * <!-- begin-user-doc --> | ||
111 | * <!-- end-user-doc --> | ||
112 | * @generated | ||
113 | */ | ||
114 | protected MemberDefinitionImpl() | ||
115 | { | ||
116 | super(); | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | protected EClass eStaticClass() | ||
126 | { | ||
127 | return SolverLanguagePackage.Literals.MEMBER_DEFINITION; | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public boolean isContainment() | ||
137 | { | ||
138 | return containment; | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | @Override | ||
147 | public void setContainment(boolean newContainment) | ||
148 | { | ||
149 | boolean oldContainment = containment; | ||
150 | containment = newContainment; | ||
151 | if (eNotificationRequired()) | ||
152 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MEMBER_DEFINITION__CONTAINMENT, oldContainment, containment)); | ||
153 | } | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | @Override | ||
161 | public NamedElement getType() | ||
162 | { | ||
163 | if (type != null && type.eIsProxy()) | ||
164 | { | ||
165 | InternalEObject oldType = (InternalEObject)type; | ||
166 | type = (NamedElement)eResolveProxy(oldType); | ||
167 | if (type != oldType) | ||
168 | { | ||
169 | if (eNotificationRequired()) | ||
170 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.MEMBER_DEFINITION__TYPE, oldType, type)); | ||
171 | } | ||
172 | } | ||
173 | return type; | ||
174 | } | ||
175 | |||
176 | /** | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @generated | ||
180 | */ | ||
181 | public NamedElement basicGetType() | ||
182 | { | ||
183 | return type; | ||
184 | } | ||
185 | |||
186 | /** | ||
187 | * <!-- begin-user-doc --> | ||
188 | * <!-- end-user-doc --> | ||
189 | * @generated | ||
190 | */ | ||
191 | @Override | ||
192 | public void setType(NamedElement newType) | ||
193 | { | ||
194 | NamedElement oldType = type; | ||
195 | type = newType; | ||
196 | if (eNotificationRequired()) | ||
197 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MEMBER_DEFINITION__TYPE, oldType, type)); | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public Multiplicity getMultiplicity() | ||
207 | { | ||
208 | return multiplicity; | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | public NotificationChain basicSetMultiplicity(Multiplicity newMultiplicity, NotificationChain msgs) | ||
217 | { | ||
218 | Multiplicity oldMultiplicity = multiplicity; | ||
219 | multiplicity = newMultiplicity; | ||
220 | if (eNotificationRequired()) | ||
221 | { | ||
222 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY, oldMultiplicity, newMultiplicity); | ||
223 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
224 | } | ||
225 | return msgs; | ||
226 | } | ||
227 | |||
228 | /** | ||
229 | * <!-- begin-user-doc --> | ||
230 | * <!-- end-user-doc --> | ||
231 | * @generated | ||
232 | */ | ||
233 | @Override | ||
234 | public void setMultiplicity(Multiplicity newMultiplicity) | ||
235 | { | ||
236 | if (newMultiplicity != multiplicity) | ||
237 | { | ||
238 | NotificationChain msgs = null; | ||
239 | if (multiplicity != null) | ||
240 | msgs = ((InternalEObject)multiplicity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY, null, msgs); | ||
241 | if (newMultiplicity != null) | ||
242 | msgs = ((InternalEObject)newMultiplicity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY, null, msgs); | ||
243 | msgs = basicSetMultiplicity(newMultiplicity, msgs); | ||
244 | if (msgs != null) msgs.dispatch(); | ||
245 | } | ||
246 | else if (eNotificationRequired()) | ||
247 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY, newMultiplicity, newMultiplicity)); | ||
248 | } | ||
249 | |||
250 | /** | ||
251 | * <!-- begin-user-doc --> | ||
252 | * <!-- end-user-doc --> | ||
253 | * @generated | ||
254 | */ | ||
255 | @Override | ||
256 | public String getName() | ||
257 | { | ||
258 | return name; | ||
259 | } | ||
260 | |||
261 | /** | ||
262 | * <!-- begin-user-doc --> | ||
263 | * <!-- end-user-doc --> | ||
264 | * @generated | ||
265 | */ | ||
266 | @Override | ||
267 | public void setName(String newName) | ||
268 | { | ||
269 | String oldName = name; | ||
270 | name = newName; | ||
271 | if (eNotificationRequired()) | ||
272 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MEMBER_DEFINITION__NAME, oldName, name)); | ||
273 | } | ||
274 | |||
275 | /** | ||
276 | * <!-- begin-user-doc --> | ||
277 | * <!-- end-user-doc --> | ||
278 | * @generated | ||
279 | */ | ||
280 | @Override | ||
281 | public NamedElement getOpposite() | ||
282 | { | ||
283 | if (opposite != null && opposite.eIsProxy()) | ||
284 | { | ||
285 | InternalEObject oldOpposite = (InternalEObject)opposite; | ||
286 | opposite = (NamedElement)eResolveProxy(oldOpposite); | ||
287 | if (opposite != oldOpposite) | ||
288 | { | ||
289 | if (eNotificationRequired()) | ||
290 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.MEMBER_DEFINITION__OPPOSITE, oldOpposite, opposite)); | ||
291 | } | ||
292 | } | ||
293 | return opposite; | ||
294 | } | ||
295 | |||
296 | /** | ||
297 | * <!-- begin-user-doc --> | ||
298 | * <!-- end-user-doc --> | ||
299 | * @generated | ||
300 | */ | ||
301 | public NamedElement basicGetOpposite() | ||
302 | { | ||
303 | return opposite; | ||
304 | } | ||
305 | |||
306 | /** | ||
307 | * <!-- begin-user-doc --> | ||
308 | * <!-- end-user-doc --> | ||
309 | * @generated | ||
310 | */ | ||
311 | @Override | ||
312 | public void setOpposite(NamedElement newOpposite) | ||
313 | { | ||
314 | NamedElement oldOpposite = opposite; | ||
315 | opposite = newOpposite; | ||
316 | if (eNotificationRequired()) | ||
317 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.MEMBER_DEFINITION__OPPOSITE, oldOpposite, opposite)); | ||
318 | } | ||
319 | |||
320 | /** | ||
321 | * <!-- begin-user-doc --> | ||
322 | * <!-- end-user-doc --> | ||
323 | * @generated | ||
324 | */ | ||
325 | @Override | ||
326 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
327 | { | ||
328 | switch (featureID) | ||
329 | { | ||
330 | case SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY: | ||
331 | return basicSetMultiplicity(null, msgs); | ||
332 | } | ||
333 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
334 | } | ||
335 | |||
336 | /** | ||
337 | * <!-- begin-user-doc --> | ||
338 | * <!-- end-user-doc --> | ||
339 | * @generated | ||
340 | */ | ||
341 | @Override | ||
342 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
343 | { | ||
344 | switch (featureID) | ||
345 | { | ||
346 | case SolverLanguagePackage.MEMBER_DEFINITION__CONTAINMENT: | ||
347 | return isContainment(); | ||
348 | case SolverLanguagePackage.MEMBER_DEFINITION__TYPE: | ||
349 | if (resolve) return getType(); | ||
350 | return basicGetType(); | ||
351 | case SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY: | ||
352 | return getMultiplicity(); | ||
353 | case SolverLanguagePackage.MEMBER_DEFINITION__NAME: | ||
354 | return getName(); | ||
355 | case SolverLanguagePackage.MEMBER_DEFINITION__OPPOSITE: | ||
356 | if (resolve) return getOpposite(); | ||
357 | return basicGetOpposite(); | ||
358 | } | ||
359 | return super.eGet(featureID, resolve, coreType); | ||
360 | } | ||
361 | |||
362 | /** | ||
363 | * <!-- begin-user-doc --> | ||
364 | * <!-- end-user-doc --> | ||
365 | * @generated | ||
366 | */ | ||
367 | @Override | ||
368 | public void eSet(int featureID, Object newValue) | ||
369 | { | ||
370 | switch (featureID) | ||
371 | { | ||
372 | case SolverLanguagePackage.MEMBER_DEFINITION__CONTAINMENT: | ||
373 | setContainment((Boolean)newValue); | ||
374 | return; | ||
375 | case SolverLanguagePackage.MEMBER_DEFINITION__TYPE: | ||
376 | setType((NamedElement)newValue); | ||
377 | return; | ||
378 | case SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY: | ||
379 | setMultiplicity((Multiplicity)newValue); | ||
380 | return; | ||
381 | case SolverLanguagePackage.MEMBER_DEFINITION__NAME: | ||
382 | setName((String)newValue); | ||
383 | return; | ||
384 | case SolverLanguagePackage.MEMBER_DEFINITION__OPPOSITE: | ||
385 | setOpposite((NamedElement)newValue); | ||
386 | return; | ||
387 | } | ||
388 | super.eSet(featureID, newValue); | ||
389 | } | ||
390 | |||
391 | /** | ||
392 | * <!-- begin-user-doc --> | ||
393 | * <!-- end-user-doc --> | ||
394 | * @generated | ||
395 | */ | ||
396 | @Override | ||
397 | public void eUnset(int featureID) | ||
398 | { | ||
399 | switch (featureID) | ||
400 | { | ||
401 | case SolverLanguagePackage.MEMBER_DEFINITION__CONTAINMENT: | ||
402 | setContainment(CONTAINMENT_EDEFAULT); | ||
403 | return; | ||
404 | case SolverLanguagePackage.MEMBER_DEFINITION__TYPE: | ||
405 | setType((NamedElement)null); | ||
406 | return; | ||
407 | case SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY: | ||
408 | setMultiplicity((Multiplicity)null); | ||
409 | return; | ||
410 | case SolverLanguagePackage.MEMBER_DEFINITION__NAME: | ||
411 | setName(NAME_EDEFAULT); | ||
412 | return; | ||
413 | case SolverLanguagePackage.MEMBER_DEFINITION__OPPOSITE: | ||
414 | setOpposite((NamedElement)null); | ||
415 | return; | ||
416 | } | ||
417 | super.eUnset(featureID); | ||
418 | } | ||
419 | |||
420 | /** | ||
421 | * <!-- begin-user-doc --> | ||
422 | * <!-- end-user-doc --> | ||
423 | * @generated | ||
424 | */ | ||
425 | @Override | ||
426 | public boolean eIsSet(int featureID) | ||
427 | { | ||
428 | switch (featureID) | ||
429 | { | ||
430 | case SolverLanguagePackage.MEMBER_DEFINITION__CONTAINMENT: | ||
431 | return containment != CONTAINMENT_EDEFAULT; | ||
432 | case SolverLanguagePackage.MEMBER_DEFINITION__TYPE: | ||
433 | return type != null; | ||
434 | case SolverLanguagePackage.MEMBER_DEFINITION__MULTIPLICITY: | ||
435 | return multiplicity != null; | ||
436 | case SolverLanguagePackage.MEMBER_DEFINITION__NAME: | ||
437 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
438 | case SolverLanguagePackage.MEMBER_DEFINITION__OPPOSITE: | ||
439 | return opposite != null; | ||
440 | } | ||
441 | return super.eIsSet(featureID); | ||
442 | } | ||
443 | |||
444 | /** | ||
445 | * <!-- begin-user-doc --> | ||
446 | * <!-- end-user-doc --> | ||
447 | * @generated | ||
448 | */ | ||
449 | @Override | ||
450 | public String toString() | ||
451 | { | ||
452 | if (eIsProxy()) return super.toString(); | ||
453 | |||
454 | StringBuilder result = new StringBuilder(super.toString()); | ||
455 | result.append(" (containment: "); | ||
456 | result.append(containment); | ||
457 | result.append(", name: "); | ||
458 | result.append(name); | ||
459 | result.append(')'); | ||
460 | return result.toString(); | ||
461 | } | ||
462 | |||
463 | } //MemberDefinitionImpl | ||