diff options
author | 2021-06-27 01:43:59 +0200 | |
---|---|---|
committer | 2021-06-27 02:01:19 +0200 | |
commit | b88c842ba625753ea185e6166cd967e694160798 (patch) | |
tree | 51931f892dff12d253f7697179e137bdfe705155 /org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ReferenceDeclarationImpl.java | |
parent | Opposite reference scope (diff) | |
download | refinery-b88c842ba625753ea185e6166cd967e694160798.tar.gz refinery-b88c842ba625753ea185e6166cd967e694160798.tar.zst refinery-b88c842ba625753ea185e6166cd967e694160798.zip |
Add enum support
Diffstat (limited to 'org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ReferenceDeclarationImpl.java')
-rw-r--r-- | org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ReferenceDeclarationImpl.java | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ReferenceDeclarationImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ReferenceDeclarationImpl.java index 424db23d..8df2715f 100644 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ReferenceDeclarationImpl.java +++ b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ReferenceDeclarationImpl.java | |||
@@ -9,11 +9,10 @@ import org.eclipse.emf.ecore.EClass; | |||
9 | import org.eclipse.emf.ecore.InternalEObject; | 9 | import org.eclipse.emf.ecore.InternalEObject; |
10 | 10 | ||
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | 11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
12 | |||
13 | import org.eclipse.viatra.solver.language.model.problem.ClassDeclaration; | ||
14 | import org.eclipse.viatra.solver.language.model.problem.Multiplicity; | 12 | import org.eclipse.viatra.solver.language.model.problem.Multiplicity; |
15 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | 13 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; |
16 | import org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration; | 14 | import org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration; |
15 | import org.eclipse.viatra.solver.language.model.problem.Relation; | ||
17 | 16 | ||
18 | /** | 17 | /** |
19 | * <!-- begin-user-doc --> | 18 | * <!-- begin-user-doc --> |
@@ -40,7 +39,7 @@ public class ReferenceDeclarationImpl extends RelationImpl implements ReferenceD | |||
40 | * @generated | 39 | * @generated |
41 | * @ordered | 40 | * @ordered |
42 | */ | 41 | */ |
43 | protected ClassDeclaration referenceType; | 42 | protected Relation referenceType; |
44 | 43 | ||
45 | /** | 44 | /** |
46 | * The cached value of the '{@link #getOpposite() <em>Opposite</em>}' reference. | 45 | * The cached value of the '{@link #getOpposite() <em>Opposite</em>}' reference. |
@@ -106,10 +105,10 @@ public class ReferenceDeclarationImpl extends RelationImpl implements ReferenceD | |||
106 | * <!-- end-user-doc --> | 105 | * <!-- end-user-doc --> |
107 | * @generated | 106 | * @generated |
108 | */ | 107 | */ |
109 | public ClassDeclaration getReferenceType() { | 108 | public Relation getReferenceType() { |
110 | if (referenceType != null && referenceType.eIsProxy()) { | 109 | if (referenceType != null && referenceType.eIsProxy()) { |
111 | InternalEObject oldReferenceType = (InternalEObject) referenceType; | 110 | InternalEObject oldReferenceType = (InternalEObject) referenceType; |
112 | referenceType = (ClassDeclaration) eResolveProxy(oldReferenceType); | 111 | referenceType = (Relation) eResolveProxy(oldReferenceType); |
113 | if (referenceType != oldReferenceType) { | 112 | if (referenceType != oldReferenceType) { |
114 | if (eNotificationRequired()) | 113 | if (eNotificationRequired()) |
115 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, | 114 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, |
@@ -124,7 +123,7 @@ public class ReferenceDeclarationImpl extends RelationImpl implements ReferenceD | |||
124 | * <!-- end-user-doc --> | 123 | * <!-- end-user-doc --> |
125 | * @generated | 124 | * @generated |
126 | */ | 125 | */ |
127 | public ClassDeclaration basicGetReferenceType() { | 126 | public Relation basicGetReferenceType() { |
128 | return referenceType; | 127 | return referenceType; |
129 | } | 128 | } |
130 | 129 | ||
@@ -133,8 +132,8 @@ public class ReferenceDeclarationImpl extends RelationImpl implements ReferenceD | |||
133 | * <!-- end-user-doc --> | 132 | * <!-- end-user-doc --> |
134 | * @generated | 133 | * @generated |
135 | */ | 134 | */ |
136 | public void setReferenceType(ClassDeclaration newReferenceType) { | 135 | public void setReferenceType(Relation newReferenceType) { |
137 | ClassDeclaration oldReferenceType = referenceType; | 136 | Relation oldReferenceType = referenceType; |
138 | referenceType = newReferenceType; | 137 | referenceType = newReferenceType; |
139 | if (eNotificationRequired()) | 138 | if (eNotificationRequired()) |
140 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.REFERENCE_DECLARATION__REFERENCE_TYPE, | 139 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.REFERENCE_DECLARATION__REFERENCE_TYPE, |
@@ -300,7 +299,7 @@ public class ReferenceDeclarationImpl extends RelationImpl implements ReferenceD | |||
300 | public void eSet(int featureID, Object newValue) { | 299 | public void eSet(int featureID, Object newValue) { |
301 | switch (featureID) { | 300 | switch (featureID) { |
302 | case ProblemPackage.REFERENCE_DECLARATION__REFERENCE_TYPE: | 301 | case ProblemPackage.REFERENCE_DECLARATION__REFERENCE_TYPE: |
303 | setReferenceType((ClassDeclaration) newValue); | 302 | setReferenceType((Relation) newValue); |
304 | return; | 303 | return; |
305 | case ProblemPackage.REFERENCE_DECLARATION__OPPOSITE: | 304 | case ProblemPackage.REFERENCE_DECLARATION__OPPOSITE: |
306 | setOpposite((ReferenceDeclaration) newValue); | 305 | setOpposite((ReferenceDeclaration) newValue); |
@@ -324,7 +323,7 @@ public class ReferenceDeclarationImpl extends RelationImpl implements ReferenceD | |||
324 | public void eUnset(int featureID) { | 323 | public void eUnset(int featureID) { |
325 | switch (featureID) { | 324 | switch (featureID) { |
326 | case ProblemPackage.REFERENCE_DECLARATION__REFERENCE_TYPE: | 325 | case ProblemPackage.REFERENCE_DECLARATION__REFERENCE_TYPE: |
327 | setReferenceType((ClassDeclaration) null); | 326 | setReferenceType((Relation) null); |
328 | return; | 327 | return; |
329 | case ProblemPackage.REFERENCE_DECLARATION__OPPOSITE: | 328 | case ProblemPackage.REFERENCE_DECLARATION__OPPOSITE: |
330 | setOpposite((ReferenceDeclaration) null); | 329 | setOpposite((ReferenceDeclaration) null); |