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 | 490 |
1 files changed, 490 insertions, 0 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 new file mode 100644 index 00000000..0cc0e0bf --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/TypeScopeImpl.java | |||
@@ -0,0 +1,490 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.TypeReference; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.TypeScope; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EClass; | ||
14 | import org.eclipse.emf.ecore.InternalEObject; | ||
15 | |||
16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
17 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Type Scope</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
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> | ||
29 | * <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> | ||
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> | ||
34 | * | ||
35 | * @generated | ||
36 | */ | ||
37 | public class TypeScopeImpl extends MinimalEObjectImpl.Container implements TypeScope | ||
38 | { | ||
39 | /** | ||
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. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @see #isSetsNew() | ||
54 | * @generated | ||
55 | * @ordered | ||
56 | */ | ||
57 | protected static final boolean SETS_NEW_EDEFAULT = false; | ||
58 | |||
59 | /** | ||
60 | * The cached value of the '{@link #isSetsNew() <em>Sets New</em>}' attribute. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @see #isSetsNew() | ||
64 | * @generated | ||
65 | * @ordered | ||
66 | */ | ||
67 | protected boolean setsNew = SETS_NEW_EDEFAULT; | ||
68 | |||
69 | /** | ||
70 | * The default value of the '{@link #isSetsSum() <em>Sets Sum</em>}' attribute. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @see #isSetsSum() | ||
74 | * @generated | ||
75 | * @ordered | ||
76 | */ | ||
77 | protected static final boolean SETS_SUM_EDEFAULT = false; | ||
78 | |||
79 | /** | ||
80 | * The cached value of the '{@link #isSetsSum() <em>Sets Sum</em>}' attribute. | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @see #isSetsSum() | ||
84 | * @generated | ||
85 | * @ordered | ||
86 | */ | ||
87 | protected boolean setsSum = SETS_SUM_EDEFAULT; | ||
88 | |||
89 | /** | ||
90 | * The default value of the '{@link #getMin() <em>Min</em>}' attribute. | ||
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 --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @see #isMaxUnlimited() | ||
114 | * @generated | ||
115 | * @ordered | ||
116 | */ | ||
117 | protected static final boolean MAX_UNLIMITED_EDEFAULT = false; | ||
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 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | protected TypeScopeImpl() | ||
155 | { | ||
156 | super(); | ||
157 | } | ||
158 | |||
159 | /** | ||
160 | * <!-- begin-user-doc --> | ||
161 | * <!-- end-user-doc --> | ||
162 | * @generated | ||
163 | */ | ||
164 | @Override | ||
165 | protected EClass eStaticClass() | ||
166 | { | ||
167 | return ApplicationConfigurationPackage.Literals.TYPE_SCOPE; | ||
168 | } | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
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() | ||
224 | { | ||
225 | return setsNew; | ||
226 | } | ||
227 | |||
228 | /** | ||
229 | * <!-- begin-user-doc --> | ||
230 | * <!-- end-user-doc --> | ||
231 | * @generated | ||
232 | */ | ||
233 | public void setSetsNew(boolean newSetsNew) | ||
234 | { | ||
235 | boolean oldSetsNew = setsNew; | ||
236 | setsNew = newSetsNew; | ||
237 | if (eNotificationRequired()) | ||
238 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW, oldSetsNew, setsNew)); | ||
239 | } | ||
240 | |||
241 | /** | ||
242 | * <!-- begin-user-doc --> | ||
243 | * <!-- end-user-doc --> | ||
244 | * @generated | ||
245 | */ | ||
246 | public boolean isSetsSum() | ||
247 | { | ||
248 | return setsSum; | ||
249 | } | ||
250 | |||
251 | /** | ||
252 | * <!-- begin-user-doc --> | ||
253 | * <!-- end-user-doc --> | ||
254 | * @generated | ||
255 | */ | ||
256 | public void setSetsSum(boolean newSetsSum) | ||
257 | { | ||
258 | boolean oldSetsSum = setsSum; | ||
259 | setsSum = newSetsSum; | ||
260 | if (eNotificationRequired()) | ||
261 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM, oldSetsSum, setsSum)); | ||
262 | } | ||
263 | |||
264 | /** | ||
265 | * <!-- begin-user-doc --> | ||
266 | * <!-- end-user-doc --> | ||
267 | * @generated | ||
268 | */ | ||
269 | public int getMin() | ||
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 | { | ||
294 | return maxUnlimited; | ||
295 | } | ||
296 | |||
297 | /** | ||
298 | * <!-- begin-user-doc --> | ||
299 | * <!-- end-user-doc --> | ||
300 | * @generated | ||
301 | */ | ||
302 | public void setMaxUnlimited(boolean newMaxUnlimited) | ||
303 | { | ||
304 | boolean oldMaxUnlimited = maxUnlimited; | ||
305 | maxUnlimited = newMaxUnlimited; | ||
306 | if (eNotificationRequired()) | ||
307 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__MAX_UNLIMITED, oldMaxUnlimited, maxUnlimited)); | ||
308 | } | ||
309 | |||
310 | /** | ||
311 | * <!-- begin-user-doc --> | ||
312 | * <!-- end-user-doc --> | ||
313 | * @generated | ||
314 | */ | ||
315 | public int getMax() | ||
316 | { | ||
317 | return max; | ||
318 | } | ||
319 | |||
320 | /** | ||
321 | * <!-- begin-user-doc --> | ||
322 | * <!-- end-user-doc --> | ||
323 | * @generated | ||
324 | */ | ||
325 | public void setMax(int newMax) | ||
326 | { | ||
327 | int oldMax = max; | ||
328 | max = newMax; | ||
329 | if (eNotificationRequired()) | ||
330 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__MAX, oldMax, max)); | ||
331 | } | ||
332 | |||
333 | /** | ||
334 | * <!-- begin-user-doc --> | ||
335 | * <!-- end-user-doc --> | ||
336 | * @generated | ||
337 | */ | ||
338 | @Override | ||
339 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
340 | { | ||
341 | switch (featureID) | ||
342 | { | ||
343 | case ApplicationConfigurationPackage.TYPE_SCOPE__TYPE: | ||
344 | return basicSetType(null, msgs); | ||
345 | } | ||
346 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
347 | } | ||
348 | |||
349 | /** | ||
350 | * <!-- begin-user-doc --> | ||
351 | * <!-- end-user-doc --> | ||
352 | * @generated | ||
353 | */ | ||
354 | @Override | ||
355 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
356 | { | ||
357 | switch (featureID) | ||
358 | { | ||
359 | case ApplicationConfigurationPackage.TYPE_SCOPE__TYPE: | ||
360 | return getType(); | ||
361 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: | ||
362 | return isSetsNew(); | ||
363 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: | ||
364 | return isSetsSum(); | ||
365 | case ApplicationConfigurationPackage.TYPE_SCOPE__MIN: | ||
366 | return getMin(); | ||
367 | case ApplicationConfigurationPackage.TYPE_SCOPE__MAX_UNLIMITED: | ||
368 | return isMaxUnlimited(); | ||
369 | case ApplicationConfigurationPackage.TYPE_SCOPE__MAX: | ||
370 | return getMax(); | ||
371 | } | ||
372 | return super.eGet(featureID, resolve, coreType); | ||
373 | } | ||
374 | |||
375 | /** | ||
376 | * <!-- begin-user-doc --> | ||
377 | * <!-- end-user-doc --> | ||
378 | * @generated | ||
379 | */ | ||
380 | @Override | ||
381 | public void eSet(int featureID, Object newValue) | ||
382 | { | ||
383 | switch (featureID) | ||
384 | { | ||
385 | case ApplicationConfigurationPackage.TYPE_SCOPE__TYPE: | ||
386 | setType((TypeReference)newValue); | ||
387 | return; | ||
388 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: | ||
389 | setSetsNew((Boolean)newValue); | ||
390 | return; | ||
391 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: | ||
392 | setSetsSum((Boolean)newValue); | ||
393 | return; | ||
394 | case ApplicationConfigurationPackage.TYPE_SCOPE__MIN: | ||
395 | setMin((Integer)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; | ||
403 | } | ||
404 | super.eSet(featureID, newValue); | ||
405 | } | ||
406 | |||
407 | /** | ||
408 | * <!-- begin-user-doc --> | ||
409 | * <!-- end-user-doc --> | ||
410 | * @generated | ||
411 | */ | ||
412 | @Override | ||
413 | public void eUnset(int featureID) | ||
414 | { | ||
415 | switch (featureID) | ||
416 | { | ||
417 | case ApplicationConfigurationPackage.TYPE_SCOPE__TYPE: | ||
418 | setType((TypeReference)null); | ||
419 | return; | ||
420 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: | ||
421 | setSetsNew(SETS_NEW_EDEFAULT); | ||
422 | return; | ||
423 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: | ||
424 | setSetsSum(SETS_SUM_EDEFAULT); | ||
425 | return; | ||
426 | case ApplicationConfigurationPackage.TYPE_SCOPE__MIN: | ||
427 | setMin(MIN_EDEFAULT); | ||
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; | ||
435 | } | ||
436 | super.eUnset(featureID); | ||
437 | } | ||
438 | |||
439 | /** | ||
440 | * <!-- begin-user-doc --> | ||
441 | * <!-- end-user-doc --> | ||
442 | * @generated | ||
443 | */ | ||
444 | @Override | ||
445 | public boolean eIsSet(int featureID) | ||
446 | { | ||
447 | switch (featureID) | ||
448 | { | ||
449 | case ApplicationConfigurationPackage.TYPE_SCOPE__TYPE: | ||
450 | return type != null; | ||
451 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: | ||
452 | return setsNew != SETS_NEW_EDEFAULT; | ||
453 | case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: | ||
454 | return setsSum != SETS_SUM_EDEFAULT; | ||
455 | case ApplicationConfigurationPackage.TYPE_SCOPE__MIN: | ||
456 | return min != MIN_EDEFAULT; | ||
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 | } | ||
462 | return super.eIsSet(featureID); | ||
463 | } | ||
464 | |||
465 | /** | ||
466 | * <!-- begin-user-doc --> | ||
467 | * <!-- end-user-doc --> | ||
468 | * @generated | ||
469 | */ | ||
470 | @Override | ||
471 | public String toString() | ||
472 | { | ||
473 | if (eIsProxy()) return super.toString(); | ||
474 | |||
475 | StringBuffer result = new StringBuffer(super.toString()); | ||
476 | result.append(" (setsNew: "); | ||
477 | result.append(setsNew); | ||
478 | result.append(", setsSum: "); | ||
479 | 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(')'); | ||
487 | return result.toString(); | ||
488 | } | ||
489 | |||
490 | } //TypeScopeImpl | ||