diff options
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/GlobalRelationInterpretationImpl.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/GlobalRelationInterpretationImpl.java | 563 |
1 files changed, 0 insertions, 563 deletions
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/GlobalRelationInterpretationImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/GlobalRelationInterpretationImpl.java deleted file mode 100644 index 52f7a67d..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/GlobalRelationInterpretationImpl.java +++ /dev/null | |||
@@ -1,563 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
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 | |||
14 | import org.eclipse.viatra.solver.language.solverLanguage.GlobalRelationInterpretation; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.ModelSymbol; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.MultiplicityDefinition; | ||
17 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
18 | import org.eclipse.viatra.solver.language.solverLanguage.Symbol; | ||
19 | |||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * An implementation of the model object '<em><b>Global Relation Interpretation</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.GlobalRelationInterpretationImpl#isContainment <em>Containment</em>}</li> | ||
29 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.GlobalRelationInterpretationImpl#getSymbol <em>Symbol</em>}</li> | ||
30 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.GlobalRelationInterpretationImpl#getSourceMultiplicity <em>Source Multiplicity</em>}</li> | ||
31 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.GlobalRelationInterpretationImpl#getSource <em>Source</em>}</li> | ||
32 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.GlobalRelationInterpretationImpl#getTargetMultiplicity <em>Target Multiplicity</em>}</li> | ||
33 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.GlobalRelationInterpretationImpl#getTarget <em>Target</em>}</li> | ||
34 | * </ul> | ||
35 | * | ||
36 | * @generated | ||
37 | */ | ||
38 | public class GlobalRelationInterpretationImpl extends CDInterpretationImpl implements GlobalRelationInterpretation | ||
39 | { | ||
40 | /** | ||
41 | * The default value of the '{@link #isContainment() <em>Containment</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #isContainment() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected static final boolean CONTAINMENT_EDEFAULT = false; | ||
49 | |||
50 | /** | ||
51 | * The cached value of the '{@link #isContainment() <em>Containment</em>}' attribute. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @see #isContainment() | ||
55 | * @generated | ||
56 | * @ordered | ||
57 | */ | ||
58 | protected boolean containment = CONTAINMENT_EDEFAULT; | ||
59 | |||
60 | /** | ||
61 | * The cached value of the '{@link #getSymbol() <em>Symbol</em>}' containment reference. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @see #getSymbol() | ||
65 | * @generated | ||
66 | * @ordered | ||
67 | */ | ||
68 | protected ModelSymbol symbol; | ||
69 | |||
70 | /** | ||
71 | * The cached value of the '{@link #getSourceMultiplicity() <em>Source Multiplicity</em>}' containment reference. | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @see #getSourceMultiplicity() | ||
75 | * @generated | ||
76 | * @ordered | ||
77 | */ | ||
78 | protected MultiplicityDefinition sourceMultiplicity; | ||
79 | |||
80 | /** | ||
81 | * The cached value of the '{@link #getSource() <em>Source</em>}' containment reference. | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @see #getSource() | ||
85 | * @generated | ||
86 | * @ordered | ||
87 | */ | ||
88 | protected Symbol source; | ||
89 | |||
90 | /** | ||
91 | * The cached value of the '{@link #getTargetMultiplicity() <em>Target Multiplicity</em>}' containment reference. | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @see #getTargetMultiplicity() | ||
95 | * @generated | ||
96 | * @ordered | ||
97 | */ | ||
98 | protected MultiplicityDefinition targetMultiplicity; | ||
99 | |||
100 | /** | ||
101 | * The cached value of the '{@link #getTarget() <em>Target</em>}' containment reference. | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @see #getTarget() | ||
105 | * @generated | ||
106 | * @ordered | ||
107 | */ | ||
108 | protected Symbol target; | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | protected GlobalRelationInterpretationImpl() | ||
116 | { | ||
117 | super(); | ||
118 | } | ||
119 | |||
120 | /** | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @generated | ||
124 | */ | ||
125 | @Override | ||
126 | protected EClass eStaticClass() | ||
127 | { | ||
128 | return SolverLanguagePackage.Literals.GLOBAL_RELATION_INTERPRETATION; | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | @Override | ||
137 | public boolean isContainment() | ||
138 | { | ||
139 | return containment; | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public void setContainment(boolean newContainment) | ||
149 | { | ||
150 | boolean oldContainment = containment; | ||
151 | containment = newContainment; | ||
152 | if (eNotificationRequired()) | ||
153 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__CONTAINMENT, oldContainment, containment)); | ||
154 | } | ||
155 | |||
156 | /** | ||
157 | * <!-- begin-user-doc --> | ||
158 | * <!-- end-user-doc --> | ||
159 | * @generated | ||
160 | */ | ||
161 | @Override | ||
162 | public ModelSymbol getSymbol() | ||
163 | { | ||
164 | return symbol; | ||
165 | } | ||
166 | |||
167 | /** | ||
168 | * <!-- begin-user-doc --> | ||
169 | * <!-- end-user-doc --> | ||
170 | * @generated | ||
171 | */ | ||
172 | public NotificationChain basicSetSymbol(ModelSymbol newSymbol, NotificationChain msgs) | ||
173 | { | ||
174 | ModelSymbol oldSymbol = symbol; | ||
175 | symbol = newSymbol; | ||
176 | if (eNotificationRequired()) | ||
177 | { | ||
178 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SYMBOL, oldSymbol, newSymbol); | ||
179 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
180 | } | ||
181 | return msgs; | ||
182 | } | ||
183 | |||
184 | /** | ||
185 | * <!-- begin-user-doc --> | ||
186 | * <!-- end-user-doc --> | ||
187 | * @generated | ||
188 | */ | ||
189 | @Override | ||
190 | public void setSymbol(ModelSymbol newSymbol) | ||
191 | { | ||
192 | if (newSymbol != symbol) | ||
193 | { | ||
194 | NotificationChain msgs = null; | ||
195 | if (symbol != null) | ||
196 | msgs = ((InternalEObject)symbol).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SYMBOL, null, msgs); | ||
197 | if (newSymbol != null) | ||
198 | msgs = ((InternalEObject)newSymbol).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SYMBOL, null, msgs); | ||
199 | msgs = basicSetSymbol(newSymbol, msgs); | ||
200 | if (msgs != null) msgs.dispatch(); | ||
201 | } | ||
202 | else if (eNotificationRequired()) | ||
203 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SYMBOL, newSymbol, newSymbol)); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public MultiplicityDefinition getSourceMultiplicity() | ||
213 | { | ||
214 | return sourceMultiplicity; | ||
215 | } | ||
216 | |||
217 | /** | ||
218 | * <!-- begin-user-doc --> | ||
219 | * <!-- end-user-doc --> | ||
220 | * @generated | ||
221 | */ | ||
222 | public NotificationChain basicSetSourceMultiplicity(MultiplicityDefinition newSourceMultiplicity, NotificationChain msgs) | ||
223 | { | ||
224 | MultiplicityDefinition oldSourceMultiplicity = sourceMultiplicity; | ||
225 | sourceMultiplicity = newSourceMultiplicity; | ||
226 | if (eNotificationRequired()) | ||
227 | { | ||
228 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE_MULTIPLICITY, oldSourceMultiplicity, newSourceMultiplicity); | ||
229 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
230 | } | ||
231 | return msgs; | ||
232 | } | ||
233 | |||
234 | /** | ||
235 | * <!-- begin-user-doc --> | ||
236 | * <!-- end-user-doc --> | ||
237 | * @generated | ||
238 | */ | ||
239 | @Override | ||
240 | public void setSourceMultiplicity(MultiplicityDefinition newSourceMultiplicity) | ||
241 | { | ||
242 | if (newSourceMultiplicity != sourceMultiplicity) | ||
243 | { | ||
244 | NotificationChain msgs = null; | ||
245 | if (sourceMultiplicity != null) | ||
246 | msgs = ((InternalEObject)sourceMultiplicity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE_MULTIPLICITY, null, msgs); | ||
247 | if (newSourceMultiplicity != null) | ||
248 | msgs = ((InternalEObject)newSourceMultiplicity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE_MULTIPLICITY, null, msgs); | ||
249 | msgs = basicSetSourceMultiplicity(newSourceMultiplicity, msgs); | ||
250 | if (msgs != null) msgs.dispatch(); | ||
251 | } | ||
252 | else if (eNotificationRequired()) | ||
253 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE_MULTIPLICITY, newSourceMultiplicity, newSourceMultiplicity)); | ||
254 | } | ||
255 | |||
256 | /** | ||
257 | * <!-- begin-user-doc --> | ||
258 | * <!-- end-user-doc --> | ||
259 | * @generated | ||
260 | */ | ||
261 | @Override | ||
262 | public Symbol getSource() | ||
263 | { | ||
264 | return source; | ||
265 | } | ||
266 | |||
267 | /** | ||
268 | * <!-- begin-user-doc --> | ||
269 | * <!-- end-user-doc --> | ||
270 | * @generated | ||
271 | */ | ||
272 | public NotificationChain basicSetSource(Symbol newSource, NotificationChain msgs) | ||
273 | { | ||
274 | Symbol oldSource = source; | ||
275 | source = newSource; | ||
276 | if (eNotificationRequired()) | ||
277 | { | ||
278 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE, oldSource, newSource); | ||
279 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
280 | } | ||
281 | return msgs; | ||
282 | } | ||
283 | |||
284 | /** | ||
285 | * <!-- begin-user-doc --> | ||
286 | * <!-- end-user-doc --> | ||
287 | * @generated | ||
288 | */ | ||
289 | @Override | ||
290 | public void setSource(Symbol newSource) | ||
291 | { | ||
292 | if (newSource != source) | ||
293 | { | ||
294 | NotificationChain msgs = null; | ||
295 | if (source != null) | ||
296 | msgs = ((InternalEObject)source).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE, null, msgs); | ||
297 | if (newSource != null) | ||
298 | msgs = ((InternalEObject)newSource).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE, null, msgs); | ||
299 | msgs = basicSetSource(newSource, msgs); | ||
300 | if (msgs != null) msgs.dispatch(); | ||
301 | } | ||
302 | else if (eNotificationRequired()) | ||
303 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE, newSource, newSource)); | ||
304 | } | ||
305 | |||
306 | /** | ||
307 | * <!-- begin-user-doc --> | ||
308 | * <!-- end-user-doc --> | ||
309 | * @generated | ||
310 | */ | ||
311 | @Override | ||
312 | public MultiplicityDefinition getTargetMultiplicity() | ||
313 | { | ||
314 | return targetMultiplicity; | ||
315 | } | ||
316 | |||
317 | /** | ||
318 | * <!-- begin-user-doc --> | ||
319 | * <!-- end-user-doc --> | ||
320 | * @generated | ||
321 | */ | ||
322 | public NotificationChain basicSetTargetMultiplicity(MultiplicityDefinition newTargetMultiplicity, NotificationChain msgs) | ||
323 | { | ||
324 | MultiplicityDefinition oldTargetMultiplicity = targetMultiplicity; | ||
325 | targetMultiplicity = newTargetMultiplicity; | ||
326 | if (eNotificationRequired()) | ||
327 | { | ||
328 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET_MULTIPLICITY, oldTargetMultiplicity, newTargetMultiplicity); | ||
329 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
330 | } | ||
331 | return msgs; | ||
332 | } | ||
333 | |||
334 | /** | ||
335 | * <!-- begin-user-doc --> | ||
336 | * <!-- end-user-doc --> | ||
337 | * @generated | ||
338 | */ | ||
339 | @Override | ||
340 | public void setTargetMultiplicity(MultiplicityDefinition newTargetMultiplicity) | ||
341 | { | ||
342 | if (newTargetMultiplicity != targetMultiplicity) | ||
343 | { | ||
344 | NotificationChain msgs = null; | ||
345 | if (targetMultiplicity != null) | ||
346 | msgs = ((InternalEObject)targetMultiplicity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET_MULTIPLICITY, null, msgs); | ||
347 | if (newTargetMultiplicity != null) | ||
348 | msgs = ((InternalEObject)newTargetMultiplicity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET_MULTIPLICITY, null, msgs); | ||
349 | msgs = basicSetTargetMultiplicity(newTargetMultiplicity, msgs); | ||
350 | if (msgs != null) msgs.dispatch(); | ||
351 | } | ||
352 | else if (eNotificationRequired()) | ||
353 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET_MULTIPLICITY, newTargetMultiplicity, newTargetMultiplicity)); | ||
354 | } | ||
355 | |||
356 | /** | ||
357 | * <!-- begin-user-doc --> | ||
358 | * <!-- end-user-doc --> | ||
359 | * @generated | ||
360 | */ | ||
361 | @Override | ||
362 | public Symbol getTarget() | ||
363 | { | ||
364 | return target; | ||
365 | } | ||
366 | |||
367 | /** | ||
368 | * <!-- begin-user-doc --> | ||
369 | * <!-- end-user-doc --> | ||
370 | * @generated | ||
371 | */ | ||
372 | public NotificationChain basicSetTarget(Symbol newTarget, NotificationChain msgs) | ||
373 | { | ||
374 | Symbol oldTarget = target; | ||
375 | target = newTarget; | ||
376 | if (eNotificationRequired()) | ||
377 | { | ||
378 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET, oldTarget, newTarget); | ||
379 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
380 | } | ||
381 | return msgs; | ||
382 | } | ||
383 | |||
384 | /** | ||
385 | * <!-- begin-user-doc --> | ||
386 | * <!-- end-user-doc --> | ||
387 | * @generated | ||
388 | */ | ||
389 | @Override | ||
390 | public void setTarget(Symbol newTarget) | ||
391 | { | ||
392 | if (newTarget != target) | ||
393 | { | ||
394 | NotificationChain msgs = null; | ||
395 | if (target != null) | ||
396 | msgs = ((InternalEObject)target).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET, null, msgs); | ||
397 | if (newTarget != null) | ||
398 | msgs = ((InternalEObject)newTarget).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET, null, msgs); | ||
399 | msgs = basicSetTarget(newTarget, msgs); | ||
400 | if (msgs != null) msgs.dispatch(); | ||
401 | } | ||
402 | else if (eNotificationRequired()) | ||
403 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET, newTarget, newTarget)); | ||
404 | } | ||
405 | |||
406 | /** | ||
407 | * <!-- begin-user-doc --> | ||
408 | * <!-- end-user-doc --> | ||
409 | * @generated | ||
410 | */ | ||
411 | @Override | ||
412 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
413 | { | ||
414 | switch (featureID) | ||
415 | { | ||
416 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SYMBOL: | ||
417 | return basicSetSymbol(null, msgs); | ||
418 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE_MULTIPLICITY: | ||
419 | return basicSetSourceMultiplicity(null, msgs); | ||
420 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE: | ||
421 | return basicSetSource(null, msgs); | ||
422 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET_MULTIPLICITY: | ||
423 | return basicSetTargetMultiplicity(null, msgs); | ||
424 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET: | ||
425 | return basicSetTarget(null, msgs); | ||
426 | } | ||
427 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
428 | } | ||
429 | |||
430 | /** | ||
431 | * <!-- begin-user-doc --> | ||
432 | * <!-- end-user-doc --> | ||
433 | * @generated | ||
434 | */ | ||
435 | @Override | ||
436 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
437 | { | ||
438 | switch (featureID) | ||
439 | { | ||
440 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__CONTAINMENT: | ||
441 | return isContainment(); | ||
442 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SYMBOL: | ||
443 | return getSymbol(); | ||
444 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE_MULTIPLICITY: | ||
445 | return getSourceMultiplicity(); | ||
446 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE: | ||
447 | return getSource(); | ||
448 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET_MULTIPLICITY: | ||
449 | return getTargetMultiplicity(); | ||
450 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET: | ||
451 | return getTarget(); | ||
452 | } | ||
453 | return super.eGet(featureID, resolve, coreType); | ||
454 | } | ||
455 | |||
456 | /** | ||
457 | * <!-- begin-user-doc --> | ||
458 | * <!-- end-user-doc --> | ||
459 | * @generated | ||
460 | */ | ||
461 | @Override | ||
462 | public void eSet(int featureID, Object newValue) | ||
463 | { | ||
464 | switch (featureID) | ||
465 | { | ||
466 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__CONTAINMENT: | ||
467 | setContainment((Boolean)newValue); | ||
468 | return; | ||
469 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SYMBOL: | ||
470 | setSymbol((ModelSymbol)newValue); | ||
471 | return; | ||
472 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE_MULTIPLICITY: | ||
473 | setSourceMultiplicity((MultiplicityDefinition)newValue); | ||
474 | return; | ||
475 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE: | ||
476 | setSource((Symbol)newValue); | ||
477 | return; | ||
478 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET_MULTIPLICITY: | ||
479 | setTargetMultiplicity((MultiplicityDefinition)newValue); | ||
480 | return; | ||
481 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET: | ||
482 | setTarget((Symbol)newValue); | ||
483 | return; | ||
484 | } | ||
485 | super.eSet(featureID, newValue); | ||
486 | } | ||
487 | |||
488 | /** | ||
489 | * <!-- begin-user-doc --> | ||
490 | * <!-- end-user-doc --> | ||
491 | * @generated | ||
492 | */ | ||
493 | @Override | ||
494 | public void eUnset(int featureID) | ||
495 | { | ||
496 | switch (featureID) | ||
497 | { | ||
498 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__CONTAINMENT: | ||
499 | setContainment(CONTAINMENT_EDEFAULT); | ||
500 | return; | ||
501 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SYMBOL: | ||
502 | setSymbol((ModelSymbol)null); | ||
503 | return; | ||
504 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE_MULTIPLICITY: | ||
505 | setSourceMultiplicity((MultiplicityDefinition)null); | ||
506 | return; | ||
507 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE: | ||
508 | setSource((Symbol)null); | ||
509 | return; | ||
510 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET_MULTIPLICITY: | ||
511 | setTargetMultiplicity((MultiplicityDefinition)null); | ||
512 | return; | ||
513 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET: | ||
514 | setTarget((Symbol)null); | ||
515 | return; | ||
516 | } | ||
517 | super.eUnset(featureID); | ||
518 | } | ||
519 | |||
520 | /** | ||
521 | * <!-- begin-user-doc --> | ||
522 | * <!-- end-user-doc --> | ||
523 | * @generated | ||
524 | */ | ||
525 | @Override | ||
526 | public boolean eIsSet(int featureID) | ||
527 | { | ||
528 | switch (featureID) | ||
529 | { | ||
530 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__CONTAINMENT: | ||
531 | return containment != CONTAINMENT_EDEFAULT; | ||
532 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SYMBOL: | ||
533 | return symbol != null; | ||
534 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE_MULTIPLICITY: | ||
535 | return sourceMultiplicity != null; | ||
536 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__SOURCE: | ||
537 | return source != null; | ||
538 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET_MULTIPLICITY: | ||
539 | return targetMultiplicity != null; | ||
540 | case SolverLanguagePackage.GLOBAL_RELATION_INTERPRETATION__TARGET: | ||
541 | return target != null; | ||
542 | } | ||
543 | return super.eIsSet(featureID); | ||
544 | } | ||
545 | |||
546 | /** | ||
547 | * <!-- begin-user-doc --> | ||
548 | * <!-- end-user-doc --> | ||
549 | * @generated | ||
550 | */ | ||
551 | @Override | ||
552 | public String toString() | ||
553 | { | ||
554 | if (eIsProxy()) return super.toString(); | ||
555 | |||
556 | StringBuilder result = new StringBuilder(super.toString()); | ||
557 | result.append(" (containment: "); | ||
558 | result.append(containment); | ||
559 | result.append(')'); | ||
560 | return result.toString(); | ||
561 | } | ||
562 | |||
563 | } //GlobalRelationInterpretationImpl | ||