diff options
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/ClassDeclarationImpl.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/ClassDeclarationImpl.java | 74 |
1 files changed, 74 insertions, 0 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/ClassDeclarationImpl.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/ClassDeclarationImpl.java index e1d07071..89de4d01 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/ClassDeclarationImpl.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/ClassDeclarationImpl.java | |||
@@ -19,6 +19,7 @@ import org.eclipse.emf.ecore.util.EObjectResolvingEList; | |||
19 | import org.eclipse.emf.ecore.util.InternalEList; | 19 | import org.eclipse.emf.ecore.util.InternalEList; |
20 | 20 | ||
21 | import org.eclipse.viatra.solver.language.model.problem.ClassDeclaration; | 21 | import org.eclipse.viatra.solver.language.model.problem.ClassDeclaration; |
22 | import org.eclipse.viatra.solver.language.model.problem.Node; | ||
22 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | 23 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; |
23 | import org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration; | 24 | import org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration; |
24 | 25 | ||
@@ -33,6 +34,7 @@ import org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration; | |||
33 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ClassDeclarationImpl#isAbstract <em>Abstract</em>}</li> | 34 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ClassDeclarationImpl#isAbstract <em>Abstract</em>}</li> |
34 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ClassDeclarationImpl#getSuperTypes <em>Super Types</em>}</li> | 35 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ClassDeclarationImpl#getSuperTypes <em>Super Types</em>}</li> |
35 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ClassDeclarationImpl#getReferenceDeclarations <em>Reference Declarations</em>}</li> | 36 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ClassDeclarationImpl#getReferenceDeclarations <em>Reference Declarations</em>}</li> |
37 | * <li>{@link org.eclipse.viatra.solver.language.model.problem.impl.ClassDeclarationImpl#getNewNode <em>New Node</em>}</li> | ||
36 | * </ul> | 38 | * </ul> |
37 | * | 39 | * |
38 | * @generated | 40 | * @generated |
@@ -79,6 +81,16 @@ public class ClassDeclarationImpl extends RelationImpl implements ClassDeclarati | |||
79 | protected EList<ReferenceDeclaration> referenceDeclarations; | 81 | protected EList<ReferenceDeclaration> referenceDeclarations; |
80 | 82 | ||
81 | /** | 83 | /** |
84 | * The cached value of the '{@link #getNewNode() <em>New Node</em>}' containment reference. | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @see #getNewNode() | ||
88 | * @generated | ||
89 | * @ordered | ||
90 | */ | ||
91 | protected Node newNode; | ||
92 | |||
93 | /** | ||
82 | * <!-- begin-user-doc --> | 94 | * <!-- begin-user-doc --> |
83 | * <!-- end-user-doc --> | 95 | * <!-- end-user-doc --> |
84 | * @generated | 96 | * @generated |
@@ -150,11 +162,63 @@ public class ClassDeclarationImpl extends RelationImpl implements ClassDeclarati | |||
150 | * <!-- end-user-doc --> | 162 | * <!-- end-user-doc --> |
151 | * @generated | 163 | * @generated |
152 | */ | 164 | */ |
165 | public Node getNewNode() { | ||
166 | return newNode; | ||
167 | } | ||
168 | |||
169 | /** | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @generated | ||
173 | */ | ||
174 | public NotificationChain basicSetNewNode(Node newNewNode, NotificationChain msgs) { | ||
175 | Node oldNewNode = newNode; | ||
176 | newNode = newNewNode; | ||
177 | if (eNotificationRequired()) { | ||
178 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
179 | ProblemPackage.CLASS_DECLARATION__NEW_NODE, oldNewNode, newNewNode); | ||
180 | if (msgs == null) | ||
181 | msgs = notification; | ||
182 | else | ||
183 | msgs.add(notification); | ||
184 | } | ||
185 | return msgs; | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * <!-- begin-user-doc --> | ||
190 | * <!-- end-user-doc --> | ||
191 | * @generated | ||
192 | */ | ||
193 | public void setNewNode(Node newNewNode) { | ||
194 | if (newNewNode != newNode) { | ||
195 | NotificationChain msgs = null; | ||
196 | if (newNode != null) | ||
197 | msgs = ((InternalEObject) newNode).eInverseRemove(this, | ||
198 | EOPPOSITE_FEATURE_BASE - ProblemPackage.CLASS_DECLARATION__NEW_NODE, null, msgs); | ||
199 | if (newNewNode != null) | ||
200 | msgs = ((InternalEObject) newNewNode).eInverseAdd(this, | ||
201 | EOPPOSITE_FEATURE_BASE - ProblemPackage.CLASS_DECLARATION__NEW_NODE, null, msgs); | ||
202 | msgs = basicSetNewNode(newNewNode, msgs); | ||
203 | if (msgs != null) | ||
204 | msgs.dispatch(); | ||
205 | } else if (eNotificationRequired()) | ||
206 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.CLASS_DECLARATION__NEW_NODE, | ||
207 | newNewNode, newNewNode)); | ||
208 | } | ||
209 | |||
210 | /** | ||
211 | * <!-- begin-user-doc --> | ||
212 | * <!-- end-user-doc --> | ||
213 | * @generated | ||
214 | */ | ||
153 | @Override | 215 | @Override |
154 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 216 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
155 | switch (featureID) { | 217 | switch (featureID) { |
156 | case ProblemPackage.CLASS_DECLARATION__REFERENCE_DECLARATIONS: | 218 | case ProblemPackage.CLASS_DECLARATION__REFERENCE_DECLARATIONS: |
157 | return ((InternalEList<?>) getReferenceDeclarations()).basicRemove(otherEnd, msgs); | 219 | return ((InternalEList<?>) getReferenceDeclarations()).basicRemove(otherEnd, msgs); |
220 | case ProblemPackage.CLASS_DECLARATION__NEW_NODE: | ||
221 | return basicSetNewNode(null, msgs); | ||
158 | } | 222 | } |
159 | return super.eInverseRemove(otherEnd, featureID, msgs); | 223 | return super.eInverseRemove(otherEnd, featureID, msgs); |
160 | } | 224 | } |
@@ -173,6 +237,8 @@ public class ClassDeclarationImpl extends RelationImpl implements ClassDeclarati | |||
173 | return getSuperTypes(); | 237 | return getSuperTypes(); |
174 | case ProblemPackage.CLASS_DECLARATION__REFERENCE_DECLARATIONS: | 238 | case ProblemPackage.CLASS_DECLARATION__REFERENCE_DECLARATIONS: |
175 | return getReferenceDeclarations(); | 239 | return getReferenceDeclarations(); |
240 | case ProblemPackage.CLASS_DECLARATION__NEW_NODE: | ||
241 | return getNewNode(); | ||
176 | } | 242 | } |
177 | return super.eGet(featureID, resolve, coreType); | 243 | return super.eGet(featureID, resolve, coreType); |
178 | } | 244 | } |
@@ -197,6 +263,9 @@ public class ClassDeclarationImpl extends RelationImpl implements ClassDeclarati | |||
197 | getReferenceDeclarations().clear(); | 263 | getReferenceDeclarations().clear(); |
198 | getReferenceDeclarations().addAll((Collection<? extends ReferenceDeclaration>) newValue); | 264 | getReferenceDeclarations().addAll((Collection<? extends ReferenceDeclaration>) newValue); |
199 | return; | 265 | return; |
266 | case ProblemPackage.CLASS_DECLARATION__NEW_NODE: | ||
267 | setNewNode((Node) newValue); | ||
268 | return; | ||
200 | } | 269 | } |
201 | super.eSet(featureID, newValue); | 270 | super.eSet(featureID, newValue); |
202 | } | 271 | } |
@@ -218,6 +287,9 @@ public class ClassDeclarationImpl extends RelationImpl implements ClassDeclarati | |||
218 | case ProblemPackage.CLASS_DECLARATION__REFERENCE_DECLARATIONS: | 287 | case ProblemPackage.CLASS_DECLARATION__REFERENCE_DECLARATIONS: |
219 | getReferenceDeclarations().clear(); | 288 | getReferenceDeclarations().clear(); |
220 | return; | 289 | return; |
290 | case ProblemPackage.CLASS_DECLARATION__NEW_NODE: | ||
291 | setNewNode((Node) null); | ||
292 | return; | ||
221 | } | 293 | } |
222 | super.eUnset(featureID); | 294 | super.eUnset(featureID); |
223 | } | 295 | } |
@@ -236,6 +308,8 @@ public class ClassDeclarationImpl extends RelationImpl implements ClassDeclarati | |||
236 | return superTypes != null && !superTypes.isEmpty(); | 308 | return superTypes != null && !superTypes.isEmpty(); |
237 | case ProblemPackage.CLASS_DECLARATION__REFERENCE_DECLARATIONS: | 309 | case ProblemPackage.CLASS_DECLARATION__REFERENCE_DECLARATIONS: |
238 | return referenceDeclarations != null && !referenceDeclarations.isEmpty(); | 310 | return referenceDeclarations != null && !referenceDeclarations.isEmpty(); |
311 | case ProblemPackage.CLASS_DECLARATION__NEW_NODE: | ||
312 | return newNode != null; | ||
239 | } | 313 | } |
240 | return super.eIsSet(featureID); | 314 | return super.eIsSet(featureID); |
241 | } | 315 | } |