aboutsummaryrefslogtreecommitdiffstats
path: root/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/TransitionImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/TransitionImpl.java')
-rw-r--r--Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/TransitionImpl.java54
1 files changed, 27 insertions, 27 deletions
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/TransitionImpl.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/TransitionImpl.java
index ea1677ee..dfbca048 100644
--- a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/TransitionImpl.java
+++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/yakindu/impl/TransitionImpl.java
@@ -4,7 +4,7 @@ package ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.impl;
4 4
5import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Transition; 5import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Transition;
6import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Vertex; 6import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.Vertex;
7import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.yakinduPackage; 7import ca.mcgill.ecse.dslreasoner.standalone.test.yakindu.YakinduPackage;
8 8
9import org.eclipse.emf.common.notify.Notification; 9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.notify.NotificationChain; 10import org.eclipse.emf.common.notify.NotificationChain;
@@ -58,7 +58,7 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran
58 */ 58 */
59 @Override 59 @Override
60 protected EClass eStaticClass() { 60 protected EClass eStaticClass() {
61 return yakinduPackage.Literals.TRANSITION; 61 return YakinduPackage.Literals.TRANSITION;
62 } 62 }
63 63
64 /** 64 /**
@@ -72,7 +72,7 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran
72 target = (Vertex)eResolveProxy(oldTarget); 72 target = (Vertex)eResolveProxy(oldTarget);
73 if (target != oldTarget) { 73 if (target != oldTarget) {
74 if (eNotificationRequired()) 74 if (eNotificationRequired())
75 eNotify(new ENotificationImpl(this, Notification.RESOLVE, yakinduPackage.TRANSITION__TARGET, oldTarget, target)); 75 eNotify(new ENotificationImpl(this, Notification.RESOLVE, YakinduPackage.TRANSITION__TARGET, oldTarget, target));
76 } 76 }
77 } 77 }
78 return target; 78 return target;
@@ -96,7 +96,7 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran
96 Vertex oldTarget = target; 96 Vertex oldTarget = target;
97 target = newTarget; 97 target = newTarget;
98 if (eNotificationRequired()) { 98 if (eNotificationRequired()) {
99 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, yakinduPackage.TRANSITION__TARGET, oldTarget, newTarget); 99 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, YakinduPackage.TRANSITION__TARGET, oldTarget, newTarget);
100 if (msgs == null) msgs = notification; else msgs.add(notification); 100 if (msgs == null) msgs = notification; else msgs.add(notification);
101 } 101 }
102 return msgs; 102 return msgs;
@@ -111,14 +111,14 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran
111 if (newTarget != target) { 111 if (newTarget != target) {
112 NotificationChain msgs = null; 112 NotificationChain msgs = null;
113 if (target != null) 113 if (target != null)
114 msgs = ((InternalEObject)target).eInverseRemove(this, yakinduPackage.VERTEX__INCOMING_TRANSITIONS, Vertex.class, msgs); 114 msgs = ((InternalEObject)target).eInverseRemove(this, YakinduPackage.VERTEX__INCOMING_TRANSITIONS, Vertex.class, msgs);
115 if (newTarget != null) 115 if (newTarget != null)
116 msgs = ((InternalEObject)newTarget).eInverseAdd(this, yakinduPackage.VERTEX__INCOMING_TRANSITIONS, Vertex.class, msgs); 116 msgs = ((InternalEObject)newTarget).eInverseAdd(this, YakinduPackage.VERTEX__INCOMING_TRANSITIONS, Vertex.class, msgs);
117 msgs = basicSetTarget(newTarget, msgs); 117 msgs = basicSetTarget(newTarget, msgs);
118 if (msgs != null) msgs.dispatch(); 118 if (msgs != null) msgs.dispatch();
119 } 119 }
120 else if (eNotificationRequired()) 120 else if (eNotificationRequired())
121 eNotify(new ENotificationImpl(this, Notification.SET, yakinduPackage.TRANSITION__TARGET, newTarget, newTarget)); 121 eNotify(new ENotificationImpl(this, Notification.SET, YakinduPackage.TRANSITION__TARGET, newTarget, newTarget));
122 } 122 }
123 123
124 /** 124 /**
@@ -127,7 +127,7 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran
127 * @generated 127 * @generated
128 */ 128 */
129 public Vertex getSource() { 129 public Vertex getSource() {
130 if (eContainerFeatureID() != yakinduPackage.TRANSITION__SOURCE) return null; 130 if (eContainerFeatureID() != YakinduPackage.TRANSITION__SOURCE) return null;
131 return (Vertex)eInternalContainer(); 131 return (Vertex)eInternalContainer();
132 } 132 }
133 133
@@ -137,7 +137,7 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran
137 * @generated 137 * @generated
138 */ 138 */
139 public NotificationChain basicSetSource(Vertex newSource, NotificationChain msgs) { 139 public NotificationChain basicSetSource(Vertex newSource, NotificationChain msgs) {
140 msgs = eBasicSetContainer((InternalEObject)newSource, yakinduPackage.TRANSITION__SOURCE, msgs); 140 msgs = eBasicSetContainer((InternalEObject)newSource, YakinduPackage.TRANSITION__SOURCE, msgs);
141 return msgs; 141 return msgs;
142 } 142 }
143 143
@@ -147,19 +147,19 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran
147 * @generated 147 * @generated
148 */ 148 */
149 public void setSource(Vertex newSource) { 149 public void setSource(Vertex newSource) {
150 if (newSource != eInternalContainer() || (eContainerFeatureID() != yakinduPackage.TRANSITION__SOURCE && newSource != null)) { 150 if (newSource != eInternalContainer() || (eContainerFeatureID() != YakinduPackage.TRANSITION__SOURCE && newSource != null)) {
151 if (EcoreUtil.isAncestor(this, newSource)) 151 if (EcoreUtil.isAncestor(this, newSource))
152 throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); 152 throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
153 NotificationChain msgs = null; 153 NotificationChain msgs = null;
154 if (eInternalContainer() != null) 154 if (eInternalContainer() != null)
155 msgs = eBasicRemoveFromContainer(msgs); 155 msgs = eBasicRemoveFromContainer(msgs);
156 if (newSource != null) 156 if (newSource != null)
157 msgs = ((InternalEObject)newSource).eInverseAdd(this, yakinduPackage.VERTEX__OUTGOING_TRANSITIONS, Vertex.class, msgs); 157 msgs = ((InternalEObject)newSource).eInverseAdd(this, YakinduPackage.VERTEX__OUTGOING_TRANSITIONS, Vertex.class, msgs);
158 msgs = basicSetSource(newSource, msgs); 158 msgs = basicSetSource(newSource, msgs);
159 if (msgs != null) msgs.dispatch(); 159 if (msgs != null) msgs.dispatch();
160 } 160 }
161 else if (eNotificationRequired()) 161 else if (eNotificationRequired())
162 eNotify(new ENotificationImpl(this, Notification.SET, yakinduPackage.TRANSITION__SOURCE, newSource, newSource)); 162 eNotify(new ENotificationImpl(this, Notification.SET, YakinduPackage.TRANSITION__SOURCE, newSource, newSource));
163 } 163 }
164 164
165 /** 165 /**
@@ -170,11 +170,11 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran
170 @Override 170 @Override
171 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { 171 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
172 switch (featureID) { 172 switch (featureID) {
173 case yakinduPackage.TRANSITION__TARGET: 173 case YakinduPackage.TRANSITION__TARGET:
174 if (target != null) 174 if (target != null)
175 msgs = ((InternalEObject)target).eInverseRemove(this, yakinduPackage.VERTEX__INCOMING_TRANSITIONS, Vertex.class, msgs); 175 msgs = ((InternalEObject)target).eInverseRemove(this, YakinduPackage.VERTEX__INCOMING_TRANSITIONS, Vertex.class, msgs);
176 return basicSetTarget((Vertex)otherEnd, msgs); 176 return basicSetTarget((Vertex)otherEnd, msgs);
177 case yakinduPackage.TRANSITION__SOURCE: 177 case YakinduPackage.TRANSITION__SOURCE:
178 if (eInternalContainer() != null) 178 if (eInternalContainer() != null)
179 msgs = eBasicRemoveFromContainer(msgs); 179 msgs = eBasicRemoveFromContainer(msgs);
180 return basicSetSource((Vertex)otherEnd, msgs); 180 return basicSetSource((Vertex)otherEnd, msgs);
@@ -190,9 +190,9 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran
190 @Override 190 @Override
191 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { 191 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
192 switch (featureID) { 192 switch (featureID) {
193 case yakinduPackage.TRANSITION__TARGET: 193 case YakinduPackage.TRANSITION__TARGET:
194 return basicSetTarget(null, msgs); 194 return basicSetTarget(null, msgs);
195 case yakinduPackage.TRANSITION__SOURCE: 195 case YakinduPackage.TRANSITION__SOURCE:
196 return basicSetSource(null, msgs); 196 return basicSetSource(null, msgs);
197 } 197 }
198 return super.eInverseRemove(otherEnd, featureID, msgs); 198 return super.eInverseRemove(otherEnd, featureID, msgs);
@@ -206,8 +206,8 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran
206 @Override 206 @Override
207 public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { 207 public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
208 switch (eContainerFeatureID()) { 208 switch (eContainerFeatureID()) {
209 case yakinduPackage.TRANSITION__SOURCE: 209 case YakinduPackage.TRANSITION__SOURCE:
210 return eInternalContainer().eInverseRemove(this, yakinduPackage.VERTEX__OUTGOING_TRANSITIONS, Vertex.class, msgs); 210 return eInternalContainer().eInverseRemove(this, YakinduPackage.VERTEX__OUTGOING_TRANSITIONS, Vertex.class, msgs);
211 } 211 }
212 return super.eBasicRemoveFromContainerFeature(msgs); 212 return super.eBasicRemoveFromContainerFeature(msgs);
213 } 213 }
@@ -220,10 +220,10 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran
220 @Override 220 @Override
221 public Object eGet(int featureID, boolean resolve, boolean coreType) { 221 public Object eGet(int featureID, boolean resolve, boolean coreType) {
222 switch (featureID) { 222 switch (featureID) {
223 case yakinduPackage.TRANSITION__TARGET: 223 case YakinduPackage.TRANSITION__TARGET:
224 if (resolve) return getTarget(); 224 if (resolve) return getTarget();
225 return basicGetTarget(); 225 return basicGetTarget();
226 case yakinduPackage.TRANSITION__SOURCE: 226 case YakinduPackage.TRANSITION__SOURCE:
227 return getSource(); 227 return getSource();
228 } 228 }
229 return super.eGet(featureID, resolve, coreType); 229 return super.eGet(featureID, resolve, coreType);
@@ -237,10 +237,10 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran
237 @Override 237 @Override
238 public void eSet(int featureID, Object newValue) { 238 public void eSet(int featureID, Object newValue) {
239 switch (featureID) { 239 switch (featureID) {
240 case yakinduPackage.TRANSITION__TARGET: 240 case YakinduPackage.TRANSITION__TARGET:
241 setTarget((Vertex)newValue); 241 setTarget((Vertex)newValue);
242 return; 242 return;
243 case yakinduPackage.TRANSITION__SOURCE: 243 case YakinduPackage.TRANSITION__SOURCE:
244 setSource((Vertex)newValue); 244 setSource((Vertex)newValue);
245 return; 245 return;
246 } 246 }
@@ -255,10 +255,10 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran
255 @Override 255 @Override
256 public void eUnset(int featureID) { 256 public void eUnset(int featureID) {
257 switch (featureID) { 257 switch (featureID) {
258 case yakinduPackage.TRANSITION__TARGET: 258 case YakinduPackage.TRANSITION__TARGET:
259 setTarget((Vertex)null); 259 setTarget((Vertex)null);
260 return; 260 return;
261 case yakinduPackage.TRANSITION__SOURCE: 261 case YakinduPackage.TRANSITION__SOURCE:
262 setSource((Vertex)null); 262 setSource((Vertex)null);
263 return; 263 return;
264 } 264 }
@@ -273,9 +273,9 @@ public class TransitionImpl extends MinimalEObjectImpl.Container implements Tran
273 @Override 273 @Override
274 public boolean eIsSet(int featureID) { 274 public boolean eIsSet(int featureID) {
275 switch (featureID) { 275 switch (featureID) {
276 case yakinduPackage.TRANSITION__TARGET: 276 case YakinduPackage.TRANSITION__TARGET:
277 return target != null; 277 return target != null;
278 case yakinduPackage.TRANSITION__SOURCE: 278 case YakinduPackage.TRANSITION__SOURCE:
279 return getSource() != null; 279 return getSource() != null;
280 } 280 }
281 return super.eIsSet(featureID); 281 return super.eIsSet(featureID);