diff options
author | 2020-02-03 15:20:02 -0500 | |
---|---|---|
committer | 2020-06-07 19:44:44 -0400 | |
commit | 8e461ef60f59a2cb57ddca31a0b785c1b046e63a (patch) | |
tree | ff27d80e7fc391a155fe70c0bd46d6da028c4b37 /Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalDataImpl.java | |
parent | VAMPIRE: Further Post-submission updates (diff) | |
download | VIATRA-Generator-8e461ef60f59a2cb57ddca31a0b785c1b046e63a.tar.gz VIATRA-Generator-8e461ef60f59a2cb57ddca31a0b785c1b046e63a.tar.zst VIATRA-Generator-8e461ef60f59a2cb57ddca31a0b785c1b046e63a.zip |
VAMPIRE: last commit
Diffstat (limited to 'Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalDataImpl.java')
-rw-r--r-- | Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalDataImpl.java | 86 |
1 files changed, 76 insertions, 10 deletions
diff --git a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalDataImpl.java b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalDataImpl.java index 10937e8d..ecab54af 100644 --- a/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalDataImpl.java +++ b/Domains/Examples/ModelGenExampleFAM_plugin/ecore-gen/functionalarchitecture/impl/FunctionalDataImpl.java | |||
@@ -4,7 +4,6 @@ package functionalarchitecture.impl; | |||
4 | 4 | ||
5 | import functionalarchitecture.FAMTerminator; | 5 | import functionalarchitecture.FAMTerminator; |
6 | import functionalarchitecture.FunctionalData; | 6 | import functionalarchitecture.FunctionalData; |
7 | import functionalarchitecture.FunctionalInterface; | ||
8 | import functionalarchitecture.FunctionalarchitecturePackage; | 7 | import functionalarchitecture.FunctionalarchitecturePackage; |
9 | 8 | ||
10 | import org.eclipse.emf.common.notify.Notification; | 9 | import org.eclipse.emf.common.notify.Notification; |
@@ -28,6 +27,7 @@ import org.eclipse.emf.ecore.util.EcoreUtil; | |||
28 | * <ul> | 27 | * <ul> |
29 | * <li>{@link functionalarchitecture.impl.FunctionalDataImpl#getTerminator <em>Terminator</em>}</li> | 28 | * <li>{@link functionalarchitecture.impl.FunctionalDataImpl#getTerminator <em>Terminator</em>}</li> |
30 | * <li>{@link functionalarchitecture.impl.FunctionalDataImpl#getInterface <em>Interface</em>}</li> | 29 | * <li>{@link functionalarchitecture.impl.FunctionalDataImpl#getInterface <em>Interface</em>}</li> |
30 | * <li>{@link functionalarchitecture.impl.FunctionalDataImpl#getValue <em>Value</em>}</li> | ||
31 | * </ul> | 31 | * </ul> |
32 | * | 32 | * |
33 | * @generated | 33 | * @generated |
@@ -44,6 +44,25 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
44 | protected FAMTerminator terminator; | 44 | protected FAMTerminator terminator; |
45 | 45 | ||
46 | /** | 46 | /** |
47 | * The default value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @see #getValue() | ||
51 | * @generated | ||
52 | * @ordered | ||
53 | */ | ||
54 | protected static final int VALUE_EDEFAULT = 0; | ||
55 | /** | ||
56 | * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @see #getValue() | ||
60 | * @generated | ||
61 | * @ordered | ||
62 | */ | ||
63 | protected int value = VALUE_EDEFAULT; | ||
64 | |||
65 | /** | ||
47 | * <!-- begin-user-doc --> | 66 | * <!-- begin-user-doc --> |
48 | * <!-- end-user-doc --> | 67 | * <!-- end-user-doc --> |
49 | * @generated | 68 | * @generated |
@@ -110,9 +129,9 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
110 | * <!-- end-user-doc --> | 129 | * <!-- end-user-doc --> |
111 | * @generated | 130 | * @generated |
112 | */ | 131 | */ |
113 | public FunctionalInterface getInterface() { | 132 | public functionalarchitecture.FunctionalInterface getInterface() { |
114 | if (eContainerFeatureID() != FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE) return null; | 133 | if (eContainerFeatureID() != FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE) return null; |
115 | return (FunctionalInterface)eInternalContainer(); | 134 | return (functionalarchitecture.FunctionalInterface)eInternalContainer(); |
116 | } | 135 | } |
117 | 136 | ||
118 | /** | 137 | /** |
@@ -120,7 +139,7 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
120 | * <!-- end-user-doc --> | 139 | * <!-- end-user-doc --> |
121 | * @generated | 140 | * @generated |
122 | */ | 141 | */ |
123 | public NotificationChain basicSetInterface(FunctionalInterface newInterface, NotificationChain msgs) { | 142 | public NotificationChain basicSetInterface(functionalarchitecture.FunctionalInterface newInterface, NotificationChain msgs) { |
124 | msgs = eBasicSetContainer((InternalEObject)newInterface, FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE, msgs); | 143 | msgs = eBasicSetContainer((InternalEObject)newInterface, FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE, msgs); |
125 | return msgs; | 144 | return msgs; |
126 | } | 145 | } |
@@ -130,7 +149,7 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
130 | * <!-- end-user-doc --> | 149 | * <!-- end-user-doc --> |
131 | * @generated | 150 | * @generated |
132 | */ | 151 | */ |
133 | public void setInterface(FunctionalInterface newInterface) { | 152 | public void setInterface(functionalarchitecture.FunctionalInterface newInterface) { |
134 | if (newInterface != eInternalContainer() || (eContainerFeatureID() != FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE && newInterface != null)) { | 153 | if (newInterface != eInternalContainer() || (eContainerFeatureID() != FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE && newInterface != null)) { |
135 | if (EcoreUtil.isAncestor(this, newInterface)) | 154 | if (EcoreUtil.isAncestor(this, newInterface)) |
136 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); | 155 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); |
@@ -138,7 +157,7 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
138 | if (eInternalContainer() != null) | 157 | if (eInternalContainer() != null) |
139 | msgs = eBasicRemoveFromContainer(msgs); | 158 | msgs = eBasicRemoveFromContainer(msgs); |
140 | if (newInterface != null) | 159 | if (newInterface != null) |
141 | msgs = ((InternalEObject)newInterface).eInverseAdd(this, FunctionalarchitecturePackage.FUNCTIONAL_INTERFACE__DATA, FunctionalInterface.class, msgs); | 160 | msgs = ((InternalEObject)newInterface).eInverseAdd(this, FunctionalarchitecturePackage.FUNCTIONAL_INTERFACE__DATA, functionalarchitecture.FunctionalInterface.class, msgs); |
142 | msgs = basicSetInterface(newInterface, msgs); | 161 | msgs = basicSetInterface(newInterface, msgs); |
143 | if (msgs != null) msgs.dispatch(); | 162 | if (msgs != null) msgs.dispatch(); |
144 | } | 163 | } |
@@ -151,6 +170,27 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
151 | * <!-- end-user-doc --> | 170 | * <!-- end-user-doc --> |
152 | * @generated | 171 | * @generated |
153 | */ | 172 | */ |
173 | public int getValue() { | ||
174 | return value; | ||
175 | } | ||
176 | |||
177 | /** | ||
178 | * <!-- begin-user-doc --> | ||
179 | * <!-- end-user-doc --> | ||
180 | * @generated | ||
181 | */ | ||
182 | public void setValue(int newValue) { | ||
183 | int oldValue = value; | ||
184 | value = newValue; | ||
185 | if (eNotificationRequired()) | ||
186 | eNotify(new ENotificationImpl(this, Notification.SET, FunctionalarchitecturePackage.FUNCTIONAL_DATA__VALUE, oldValue, value)); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
154 | @Override | 194 | @Override |
155 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 195 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
156 | switch (featureID) { | 196 | switch (featureID) { |
@@ -161,7 +201,7 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
161 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: | 201 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: |
162 | if (eInternalContainer() != null) | 202 | if (eInternalContainer() != null) |
163 | msgs = eBasicRemoveFromContainer(msgs); | 203 | msgs = eBasicRemoveFromContainer(msgs); |
164 | return basicSetInterface((FunctionalInterface)otherEnd, msgs); | 204 | return basicSetInterface((functionalarchitecture.FunctionalInterface)otherEnd, msgs); |
165 | } | 205 | } |
166 | return super.eInverseAdd(otherEnd, featureID, msgs); | 206 | return super.eInverseAdd(otherEnd, featureID, msgs); |
167 | } | 207 | } |
@@ -191,7 +231,7 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
191 | public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { | 231 | public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { |
192 | switch (eContainerFeatureID()) { | 232 | switch (eContainerFeatureID()) { |
193 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: | 233 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: |
194 | return eInternalContainer().eInverseRemove(this, FunctionalarchitecturePackage.FUNCTIONAL_INTERFACE__DATA, FunctionalInterface.class, msgs); | 234 | return eInternalContainer().eInverseRemove(this, FunctionalarchitecturePackage.FUNCTIONAL_INTERFACE__DATA, functionalarchitecture.FunctionalInterface.class, msgs); |
195 | } | 235 | } |
196 | return super.eBasicRemoveFromContainerFeature(msgs); | 236 | return super.eBasicRemoveFromContainerFeature(msgs); |
197 | } | 237 | } |
@@ -208,6 +248,8 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
208 | return getTerminator(); | 248 | return getTerminator(); |
209 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: | 249 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: |
210 | return getInterface(); | 250 | return getInterface(); |
251 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__VALUE: | ||
252 | return getValue(); | ||
211 | } | 253 | } |
212 | return super.eGet(featureID, resolve, coreType); | 254 | return super.eGet(featureID, resolve, coreType); |
213 | } | 255 | } |
@@ -224,7 +266,10 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
224 | setTerminator((FAMTerminator)newValue); | 266 | setTerminator((FAMTerminator)newValue); |
225 | return; | 267 | return; |
226 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: | 268 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: |
227 | setInterface((FunctionalInterface)newValue); | 269 | setInterface((functionalarchitecture.FunctionalInterface)newValue); |
270 | return; | ||
271 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__VALUE: | ||
272 | setValue((Integer)newValue); | ||
228 | return; | 273 | return; |
229 | } | 274 | } |
230 | super.eSet(featureID, newValue); | 275 | super.eSet(featureID, newValue); |
@@ -242,7 +287,10 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
242 | setTerminator((FAMTerminator)null); | 287 | setTerminator((FAMTerminator)null); |
243 | return; | 288 | return; |
244 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: | 289 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: |
245 | setInterface((FunctionalInterface)null); | 290 | setInterface((functionalarchitecture.FunctionalInterface)null); |
291 | return; | ||
292 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__VALUE: | ||
293 | setValue(VALUE_EDEFAULT); | ||
246 | return; | 294 | return; |
247 | } | 295 | } |
248 | super.eUnset(featureID); | 296 | super.eUnset(featureID); |
@@ -260,8 +308,26 @@ public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container im | |||
260 | return terminator != null; | 308 | return terminator != null; |
261 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: | 309 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__INTERFACE: |
262 | return getInterface() != null; | 310 | return getInterface() != null; |
311 | case FunctionalarchitecturePackage.FUNCTIONAL_DATA__VALUE: | ||
312 | return value != VALUE_EDEFAULT; | ||
263 | } | 313 | } |
264 | return super.eIsSet(featureID); | 314 | return super.eIsSet(featureID); |
265 | } | 315 | } |
266 | 316 | ||
317 | /** | ||
318 | * <!-- begin-user-doc --> | ||
319 | * <!-- end-user-doc --> | ||
320 | * @generated | ||
321 | */ | ||
322 | @Override | ||
323 | public String toString() { | ||
324 | if (eIsProxy()) return super.toString(); | ||
325 | |||
326 | StringBuilder result = new StringBuilder(super.toString()); | ||
327 | result.append(" (value: "); | ||
328 | result.append(value); | ||
329 | result.append(')'); | ||
330 | return result.toString(); | ||
331 | } | ||
332 | |||
267 | } //FunctionalDataImpl | 333 | } //FunctionalDataImpl |