aboutsummaryrefslogtreecommitdiffstats
path: root/Domains/crossingScenario/ecore-gen/crossingScenario/impl/RelationImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'Domains/crossingScenario/ecore-gen/crossingScenario/impl/RelationImpl.java')
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/impl/RelationImpl.java62
1 files changed, 62 insertions, 0 deletions
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/RelationImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/RelationImpl.java
index 5b8ec921..97131c99 100644
--- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/RelationImpl.java
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/RelationImpl.java
@@ -23,6 +23,7 @@ import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
23 * </p> 23 * </p>
24 * <ul> 24 * <ul>
25 * <li>{@link crossingScenario.impl.RelationImpl#getTarget <em>Target</em>}</li> 25 * <li>{@link crossingScenario.impl.RelationImpl#getTarget <em>Target</em>}</li>
26 * <li>{@link crossingScenario.impl.RelationImpl#getSource <em>Source</em>}</li>
26 * </ul> 27 * </ul>
27 * 28 *
28 * @generated 29 * @generated
@@ -39,6 +40,16 @@ public abstract class RelationImpl extends MinimalEObjectImpl.Container implemen
39 protected Actor target; 40 protected Actor target;
40 41
41 /** 42 /**
43 * The cached value of the '{@link #getSource() <em>Source</em>}' reference.
44 * <!-- begin-user-doc -->
45 * <!-- end-user-doc -->
46 * @see #getSource()
47 * @generated
48 * @ordered
49 */
50 protected Actor source;
51
52 /**
42 * <!-- begin-user-doc --> 53 * <!-- begin-user-doc -->
43 * <!-- end-user-doc --> 54 * <!-- end-user-doc -->
44 * @generated 55 * @generated
@@ -103,11 +114,54 @@ public abstract class RelationImpl extends MinimalEObjectImpl.Container implemen
103 * @generated 114 * @generated
104 */ 115 */
105 @Override 116 @Override
117 public Actor getSource() {
118 if (source != null && source.eIsProxy()) {
119 InternalEObject oldSource = (InternalEObject)source;
120 source = (Actor)eResolveProxy(oldSource);
121 if (source != oldSource) {
122 if (eNotificationRequired())
123 eNotify(new ENotificationImpl(this, Notification.RESOLVE, CrossingScenarioPackage.RELATION__SOURCE, oldSource, source));
124 }
125 }
126 return source;
127 }
128
129 /**
130 * <!-- begin-user-doc -->
131 * <!-- end-user-doc -->
132 * @generated
133 */
134 public Actor basicGetSource() {
135 return source;
136 }
137
138 /**
139 * <!-- begin-user-doc -->
140 * <!-- end-user-doc -->
141 * @generated
142 */
143 @Override
144 public void setSource(Actor newSource) {
145 Actor oldSource = source;
146 source = newSource;
147 if (eNotificationRequired())
148 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.RELATION__SOURCE, oldSource, source));
149 }
150
151 /**
152 * <!-- begin-user-doc -->
153 * <!-- end-user-doc -->
154 * @generated
155 */
156 @Override
106 public Object eGet(int featureID, boolean resolve, boolean coreType) { 157 public Object eGet(int featureID, boolean resolve, boolean coreType) {
107 switch (featureID) { 158 switch (featureID) {
108 case CrossingScenarioPackage.RELATION__TARGET: 159 case CrossingScenarioPackage.RELATION__TARGET:
109 if (resolve) return getTarget(); 160 if (resolve) return getTarget();
110 return basicGetTarget(); 161 return basicGetTarget();
162 case CrossingScenarioPackage.RELATION__SOURCE:
163 if (resolve) return getSource();
164 return basicGetSource();
111 } 165 }
112 return super.eGet(featureID, resolve, coreType); 166 return super.eGet(featureID, resolve, coreType);
113 } 167 }
@@ -123,6 +177,9 @@ public abstract class RelationImpl extends MinimalEObjectImpl.Container implemen
123 case CrossingScenarioPackage.RELATION__TARGET: 177 case CrossingScenarioPackage.RELATION__TARGET:
124 setTarget((Actor)newValue); 178 setTarget((Actor)newValue);
125 return; 179 return;
180 case CrossingScenarioPackage.RELATION__SOURCE:
181 setSource((Actor)newValue);
182 return;
126 } 183 }
127 super.eSet(featureID, newValue); 184 super.eSet(featureID, newValue);
128 } 185 }
@@ -138,6 +195,9 @@ public abstract class RelationImpl extends MinimalEObjectImpl.Container implemen
138 case CrossingScenarioPackage.RELATION__TARGET: 195 case CrossingScenarioPackage.RELATION__TARGET:
139 setTarget((Actor)null); 196 setTarget((Actor)null);
140 return; 197 return;
198 case CrossingScenarioPackage.RELATION__SOURCE:
199 setSource((Actor)null);
200 return;
141 } 201 }
142 super.eUnset(featureID); 202 super.eUnset(featureID);
143 } 203 }
@@ -152,6 +212,8 @@ public abstract class RelationImpl extends MinimalEObjectImpl.Container implemen
152 switch (featureID) { 212 switch (featureID) {
153 case CrossingScenarioPackage.RELATION__TARGET: 213 case CrossingScenarioPackage.RELATION__TARGET:
154 return target != null; 214 return target != null;
215 case CrossingScenarioPackage.RELATION__SOURCE:
216 return source != null;
155 } 217 }
156 return super.eIsSet(featureID); 218 return super.eIsSet(featureID);
157 } 219 }