diff options
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/TypeScopeImpl.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/TypeScopeImpl.java | 244 |
1 files changed, 38 insertions, 206 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/TypeScopeImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/TypeScopeImpl.java index 0cc0e0bf..cbce6d18 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/TypeScopeImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/TypeScopeImpl.java | |||
@@ -4,7 +4,7 @@ | |||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | 4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; |
5 | 5 | ||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | 6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; |
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.TypeReference; | 7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.NumberSpecification; |
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.TypeScope; | 8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.TypeScope; |
9 | 9 | ||
10 | import org.eclipse.emf.common.notify.Notification; | 10 | import org.eclipse.emf.common.notify.Notification; |
@@ -24,12 +24,9 @@ import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | |||
24 | * The following features are implemented: | 24 | * The following features are implemented: |
25 | * </p> | 25 | * </p> |
26 | * <ul> | 26 | * <ul> |
27 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.TypeScopeImpl#getType <em>Type</em>}</li> | ||
28 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.TypeScopeImpl#isSetsNew <em>Sets New</em>}</li> | 27 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.TypeScopeImpl#isSetsNew <em>Sets New</em>}</li> |
29 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.TypeScopeImpl#isSetsSum <em>Sets Sum</em>}</li> | 28 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.TypeScopeImpl#isSetsSum <em>Sets Sum</em>}</li> |
30 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.TypeScopeImpl#getMin <em>Min</em>}</li> | 29 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.TypeScopeImpl#getNumber <em>Number</em>}</li> |
31 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.TypeScopeImpl#isMaxUnlimited <em>Max Unlimited</em>}</li> | ||
32 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.TypeScopeImpl#getMax <em>Max</em>}</li> | ||
33 | * </ul> | 30 | * </ul> |
34 | * | 31 | * |
35 | * @generated | 32 | * @generated |
@@ -37,16 +34,6 @@ import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | |||
37 | public class TypeScopeImpl extends MinimalEObjectImpl.Container implements TypeScope | 34 | public class TypeScopeImpl extends MinimalEObjectImpl.Container implements TypeScope |
38 | { | 35 | { |
39 | /** | 36 | /** |
40 | * The cached value of the '{@link #getType() <em>Type</em>}' containment reference. | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @see #getType() | ||
44 | * @generated | ||
45 | * @ordered | ||
46 | */ | ||
47 | protected TypeReference type; | ||
48 | |||
49 | /** | ||
50 | * The default value of the '{@link #isSetsNew() <em>Sets New</em>}' attribute. | 37 | * The default value of the '{@link #isSetsNew() <em>Sets New</em>}' attribute. |
51 | * <!-- begin-user-doc --> | 38 | * <!-- begin-user-doc --> |
52 | * <!-- end-user-doc --> | 39 | * <!-- end-user-doc --> |
@@ -87,64 +74,14 @@ public class TypeScopeImpl extends MinimalEObjectImpl.Container implements TypeS | |||
87 | protected boolean setsSum = SETS_SUM_EDEFAULT; | 74 | protected boolean setsSum = SETS_SUM_EDEFAULT; |
88 | 75 | ||
89 | /** | 76 | /** |
90 | * The default value of the '{@link #getMin() <em>Min</em>}' attribute. | 77 | * The cached value of the '{@link #getNumber() <em>Number</em>}' containment reference. |
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @see #getMin() | ||
94 | * @generated | ||
95 | * @ordered | ||
96 | */ | ||
97 | protected static final int MIN_EDEFAULT = 0; | ||
98 | |||
99 | /** | ||
100 | * The cached value of the '{@link #getMin() <em>Min</em>}' attribute. | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @see #getMin() | ||
104 | * @generated | ||
105 | * @ordered | ||
106 | */ | ||
107 | protected int min = MIN_EDEFAULT; | ||
108 | |||
109 | /** | ||
110 | * The default value of the '{@link #isMaxUnlimited() <em>Max Unlimited</em>}' attribute. | ||
111 | * <!-- begin-user-doc --> | 78 | * <!-- begin-user-doc --> |
112 | * <!-- end-user-doc --> | 79 | * <!-- end-user-doc --> |
113 | * @see #isMaxUnlimited() | 80 | * @see #getNumber() |
114 | * @generated | 81 | * @generated |
115 | * @ordered | 82 | * @ordered |
116 | */ | 83 | */ |
117 | protected static final boolean MAX_UNLIMITED_EDEFAULT = false; | 84 | protected NumberSpecification number; |
118 | |||
119 | /** | ||
120 | * The cached value of the '{@link #isMaxUnlimited() <em>Max Unlimited</em>}' attribute. | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @see #isMaxUnlimited() | ||
124 | * @generated | ||
125 | * @ordered | ||
126 | */ | ||
127 | protected boolean maxUnlimited = MAX_UNLIMITED_EDEFAULT; | ||
128 | |||
129 | /** | ||
130 | * The default value of the '{@link #getMax() <em>Max</em>}' attribute. | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @see #getMax() | ||
134 | * @generated | ||
135 | * @ordered | ||
136 | */ | ||
137 | protected static final int MAX_EDEFAULT = 0; | ||
138 | |||
139 | /** | ||
140 | * The cached value of the '{@link #getMax() <em>Max</em>}' attribute. | ||
141 | * <!-- begin-user-doc --> | ||
142 | * <!-- end-user-doc --> | ||
143 | * @see #getMax() | ||
144 | * @generated | ||
145 | * @ordered | ||
146 | */ | ||
147 | protected int max = MAX_EDEFAULT; | ||
148 | 85 | ||
149 | /** | 86 | /** |
150 | * <!-- begin-user-doc --> | 87 | * <!-- begin-user-doc --> |
@@ -172,54 +109,6 @@ public class TypeScopeImpl extends MinimalEObjectImpl.Container implements TypeS | |||
172 | * <!-- end-user-doc --> | 109 | * <!-- end-user-doc --> |
173 | * @generated | 110 | * @generated |
174 | */ | 111 | */ |
175 | public TypeReference getType() | ||
176 | { | ||
177 | return type; | ||
178 | } | ||
179 | |||
180 | /** | ||
181 | * <!-- begin-user-doc --> | ||
182 | * <!-- end-user-doc --> | ||
183 | * @generated | ||
184 | */ | ||
185 | public NotificationChain basicSetType(TypeReference newType, NotificationChain msgs) | ||
186 | { | ||
187 | TypeReference oldType = type; | ||
188 | type = newType; | ||
189 | if (eNotificationRequired()) | ||
190 | { | ||
191 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__TYPE, oldType, newType); | ||
192 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
193 | } | ||
194 | return msgs; | ||
195 | } | ||
196 | |||
197 | /** | ||
198 | * <!-- begin-user-doc --> | ||
199 | * <!-- end-user-doc --> | ||
200 | * @generated | ||
201 | */ | ||
202 | public void setType(TypeReference newType) | ||
203 | { | ||
204 | if (newType != type) | ||
205 | { | ||
206 | NotificationChain msgs = null; | ||
207 | if (type != null) | ||
208 | msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.TYPE_SCOPE__TYPE, null, msgs); | ||
209 | if (newType != null) | ||
210 | msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.TYPE_SCOPE__TYPE, null, msgs); | ||
211 | msgs = basicSetType(newType, msgs); | ||
212 | if (msgs != null) msgs.dispatch(); | ||
213 | } | ||
214 | else if (eNotificationRequired()) | ||
215 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__TYPE, newType, newType)); | ||
216 | } | ||
217 | |||
218 | /** | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | */ | ||
223 | public boolean isSetsNew() | 112 | public boolean isSetsNew() |
224 | { | 113 | { |
225 | return setsNew; | 114 | return setsNew; |
@@ -266,32 +155,9 @@ public class TypeScopeImpl extends MinimalEObjectImpl.Container implements TypeS | |||
266 | * <!-- end-user-doc --> | 155 | * <!-- end-user-doc --> |
267 | * @generated | 156 | * @generated |
268 | */ | 157 | */ |
269 | public int getMin() | 158 | public NumberSpecification getNumber() |
270 | { | ||
271 | return min; | ||
272 | } | ||
273 | |||
274 | /** | ||
275 | * <!-- begin-user-doc --> | ||
276 | * <!-- end-user-doc --> | ||
277 | * @generated | ||
278 | */ | ||
279 | public void setMin(int newMin) | ||
280 | { | ||
281 | int oldMin = min; | ||
282 | min = newMin; | ||
283 | if (eNotificationRequired()) | ||
284 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__MIN, oldMin, min)); | ||
285 | } | ||
286 | |||
287 | /** | ||
288 | * <!-- begin-user-doc --> | ||
289 | * <!-- end-user-doc --> | ||
290 | * @generated | ||
291 | */ | ||
292 | public boolean isMaxUnlimited() | ||
293 | { | 159 | { |
294 | return maxUnlimited; | 160 | return number; |
295 | } | 161 | } |
296 | 162 | ||
297 | /** | 163 | /** |
@@ -299,22 +165,16 @@ public class TypeScopeImpl extends MinimalEObjectImpl.Container implements TypeS | |||
299 | * <!-- end-user-doc --> | 165 | * <!-- end-user-doc --> |
300 | * @generated | 166 | * @generated |
301 | */ | 167 | */ |
302 | public void setMaxUnlimited(boolean newMaxUnlimited) | 168 | public NotificationChain basicSetNumber(NumberSpecification newNumber, NotificationChain msgs) |
303 | { | 169 | { |
304 | boolean oldMaxUnlimited = maxUnlimited; | 170 | NumberSpecification oldNumber = number; |
305 | maxUnlimited = newMaxUnlimited; | 171 | number = newNumber; |
306 | if (eNotificationRequired()) | 172 | if (eNotificationRequired()) |
307 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__MAX_UNLIMITED, oldMaxUnlimited, maxUnlimited)); | 173 | { |
308 | } | 174 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER, oldNumber, newNumber); |
309 | 175 | if (msgs == null) msgs = notification; else msgs.add(notification); | |
310 | /** | 176 | } |
311 | * <!-- begin-user-doc --> | 177 | return msgs; |
312 | * <!-- end-user-doc --> | ||
313 | * @generated | ||
314 | */ | ||
315 | public int getMax() | ||
316 | { | ||
317 | return max; | ||
318 | } | 178 | } |
319 | 179 | ||
320 | /** | 180 | /** |
@@ -322,12 +182,20 @@ public class TypeScopeImpl extends MinimalEObjectImpl.Container implements TypeS | |||
322 | * <!-- end-user-doc --> | 182 | * <!-- end-user-doc --> |
323 | * @generated | 183 | * @generated |
324 | */ | 184 | */ |
325 | public void setMax(int newMax) | 185 | public void setNumber(NumberSpecification newNumber) |
326 | { | 186 | { |
327 | int oldMax = max; | 187 | if (newNumber != number) |
328 | max = newMax; | 188 | { |
329 | if (eNotificationRequired()) | 189 | NotificationChain msgs = null; |
330 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__MAX, oldMax, max)); | 190 | if (number != null) |
191 | msgs = ((InternalEObject)number).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER, null, msgs); | ||
192 | if (newNumber != null) | ||
193 | msgs = ((InternalEObject)newNumber).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER, null, msgs); | ||
194 | msgs = basicSetNumber(newNumber, msgs); | ||
195 | if (msgs != null) msgs.dispatch(); | ||
196 | } | ||
197 | else if (eNotificationRequired()) | ||
198 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER, newNumber, newNumber)); | ||
331 | } | 199 | } |
332 | 200 | ||
333 | /** | 201 | /** |
@@ -340,8 +208,8 @@ public class TypeScopeImpl extends MinimalEObjectImpl.Container implements TypeS | |||
340 | { | 208 | { |
341 | switch (featureID) | 209 | switch (featureID) |
342 | { | 210 | { |
343 | case ApplicationConfigurationPackage.TYPE_SCOPE__TYPE: | 211 | case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER: |
344 | return basicSetType(null, msgs); | 212 | return basicSetNumber(null, msgs); |
345 | } | 213 | } |
346 | return super.eInverseRemove(otherEnd, featureID, msgs); | 214 | return super.eInverseRemove(otherEnd, featureID, msgs); |
347 | } | 215 | } |
@@ -356,18 +224,12 @@ public class TypeScopeImpl extends MinimalEObjectImpl.Container implements TypeS | |||
356 | { | 224 | { |
357 | switch (featureID) | 225 | switch (featureID) |
358 | { | 226 | { |
359 | case ApplicationConfigurationPackage.TYPE_SCOPE__TYPE: | ||
360 | return getType(); | ||
361 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: | 227 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: |
362 | return isSetsNew(); | 228 | return isSetsNew(); |
363 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: | 229 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: |
364 | return isSetsSum(); | 230 | return isSetsSum(); |
365 | case ApplicationConfigurationPackage.TYPE_SCOPE__MIN: | 231 | case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER: |
366 | return getMin(); | 232 | return getNumber(); |
367 | case ApplicationConfigurationPackage.TYPE_SCOPE__MAX_UNLIMITED: | ||
368 | return isMaxUnlimited(); | ||
369 | case ApplicationConfigurationPackage.TYPE_SCOPE__MAX: | ||
370 | return getMax(); | ||
371 | } | 233 | } |
372 | return super.eGet(featureID, resolve, coreType); | 234 | return super.eGet(featureID, resolve, coreType); |
373 | } | 235 | } |
@@ -382,23 +244,14 @@ public class TypeScopeImpl extends MinimalEObjectImpl.Container implements TypeS | |||
382 | { | 244 | { |
383 | switch (featureID) | 245 | switch (featureID) |
384 | { | 246 | { |
385 | case ApplicationConfigurationPackage.TYPE_SCOPE__TYPE: | ||
386 | setType((TypeReference)newValue); | ||
387 | return; | ||
388 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: | 247 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: |
389 | setSetsNew((Boolean)newValue); | 248 | setSetsNew((Boolean)newValue); |
390 | return; | 249 | return; |
391 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: | 250 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: |
392 | setSetsSum((Boolean)newValue); | 251 | setSetsSum((Boolean)newValue); |
393 | return; | 252 | return; |
394 | case ApplicationConfigurationPackage.TYPE_SCOPE__MIN: | 253 | case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER: |
395 | setMin((Integer)newValue); | 254 | setNumber((NumberSpecification)newValue); |
396 | return; | ||
397 | case ApplicationConfigurationPackage.TYPE_SCOPE__MAX_UNLIMITED: | ||
398 | setMaxUnlimited((Boolean)newValue); | ||
399 | return; | ||
400 | case ApplicationConfigurationPackage.TYPE_SCOPE__MAX: | ||
401 | setMax((Integer)newValue); | ||
402 | return; | 255 | return; |
403 | } | 256 | } |
404 | super.eSet(featureID, newValue); | 257 | super.eSet(featureID, newValue); |
@@ -414,23 +267,14 @@ public class TypeScopeImpl extends MinimalEObjectImpl.Container implements TypeS | |||
414 | { | 267 | { |
415 | switch (featureID) | 268 | switch (featureID) |
416 | { | 269 | { |
417 | case ApplicationConfigurationPackage.TYPE_SCOPE__TYPE: | ||
418 | setType((TypeReference)null); | ||
419 | return; | ||
420 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: | 270 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: |
421 | setSetsNew(SETS_NEW_EDEFAULT); | 271 | setSetsNew(SETS_NEW_EDEFAULT); |
422 | return; | 272 | return; |
423 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: | 273 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: |
424 | setSetsSum(SETS_SUM_EDEFAULT); | 274 | setSetsSum(SETS_SUM_EDEFAULT); |
425 | return; | 275 | return; |
426 | case ApplicationConfigurationPackage.TYPE_SCOPE__MIN: | 276 | case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER: |
427 | setMin(MIN_EDEFAULT); | 277 | setNumber((NumberSpecification)null); |
428 | return; | ||
429 | case ApplicationConfigurationPackage.TYPE_SCOPE__MAX_UNLIMITED: | ||
430 | setMaxUnlimited(MAX_UNLIMITED_EDEFAULT); | ||
431 | return; | ||
432 | case ApplicationConfigurationPackage.TYPE_SCOPE__MAX: | ||
433 | setMax(MAX_EDEFAULT); | ||
434 | return; | 278 | return; |
435 | } | 279 | } |
436 | super.eUnset(featureID); | 280 | super.eUnset(featureID); |
@@ -446,18 +290,12 @@ public class TypeScopeImpl extends MinimalEObjectImpl.Container implements TypeS | |||
446 | { | 290 | { |
447 | switch (featureID) | 291 | switch (featureID) |
448 | { | 292 | { |
449 | case ApplicationConfigurationPackage.TYPE_SCOPE__TYPE: | ||
450 | return type != null; | ||
451 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: | 293 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: |
452 | return setsNew != SETS_NEW_EDEFAULT; | 294 | return setsNew != SETS_NEW_EDEFAULT; |
453 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: | 295 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: |
454 | return setsSum != SETS_SUM_EDEFAULT; | 296 | return setsSum != SETS_SUM_EDEFAULT; |
455 | case ApplicationConfigurationPackage.TYPE_SCOPE__MIN: | 297 | case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER: |
456 | return min != MIN_EDEFAULT; | 298 | return number != null; |
457 | case ApplicationConfigurationPackage.TYPE_SCOPE__MAX_UNLIMITED: | ||
458 | return maxUnlimited != MAX_UNLIMITED_EDEFAULT; | ||
459 | case ApplicationConfigurationPackage.TYPE_SCOPE__MAX: | ||
460 | return max != MAX_EDEFAULT; | ||
461 | } | 299 | } |
462 | return super.eIsSet(featureID); | 300 | return super.eIsSet(featureID); |
463 | } | 301 | } |
@@ -477,12 +315,6 @@ public class TypeScopeImpl extends MinimalEObjectImpl.Container implements TypeS | |||
477 | result.append(setsNew); | 315 | result.append(setsNew); |
478 | result.append(", setsSum: "); | 316 | result.append(", setsSum: "); |
479 | result.append(setsSum); | 317 | result.append(setsSum); |
480 | result.append(", min: "); | ||
481 | result.append(min); | ||
482 | result.append(", maxUnlimited: "); | ||
483 | result.append(maxUnlimited); | ||
484 | result.append(", max: "); | ||
485 | result.append(max); | ||
486 | result.append(')'); | 318 | result.append(')'); |
487 | return result.toString(); | 319 | return result.toString(); |
488 | } | 320 | } |