aboutsummaryrefslogtreecommitdiffstats
path: root/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/TypeScopeImpl.java
diff options
context:
space:
mode:
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.java650
1 files changed, 328 insertions, 322 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 9ae4fe6e..de983d7b 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
@@ -1,322 +1,328 @@
1/** 1/**
2 * generated by Xtext 2.12.0 2 * generated by Xtext 2.21.0
3 */ 3 */
4package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; 4package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl;
5 5
6import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; 6import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage;
7import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.NumberSpecification; 7import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.NumberSpecification;
8import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.TypeScope; 8import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.TypeScope;
9 9
10import org.eclipse.emf.common.notify.Notification; 10import org.eclipse.emf.common.notify.Notification;
11import org.eclipse.emf.common.notify.NotificationChain; 11import org.eclipse.emf.common.notify.NotificationChain;
12 12
13import org.eclipse.emf.ecore.EClass; 13import org.eclipse.emf.ecore.EClass;
14import org.eclipse.emf.ecore.InternalEObject; 14import org.eclipse.emf.ecore.InternalEObject;
15 15
16import org.eclipse.emf.ecore.impl.ENotificationImpl; 16import org.eclipse.emf.ecore.impl.ENotificationImpl;
17import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; 17import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
18 18
19/** 19/**
20 * <!-- begin-user-doc --> 20 * <!-- begin-user-doc -->
21 * An implementation of the model object '<em><b>Type Scope</b></em>'. 21 * An implementation of the model object '<em><b>Type Scope</b></em>'.
22 * <!-- end-user-doc --> 22 * <!-- end-user-doc -->
23 * <p> 23 * <p>
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#isSetsNew <em>Sets New</em>}</li> 27 * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.TypeScopeImpl#isSetsNew <em>Sets New</em>}</li>
28 * <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>
29 * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.TypeScopeImpl#getNumber <em>Number</em>}</li> 29 * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.TypeScopeImpl#getNumber <em>Number</em>}</li>
30 * </ul> 30 * </ul>
31 * 31 *
32 * @generated 32 * @generated
33 */ 33 */
34public class TypeScopeImpl extends MinimalEObjectImpl.Container implements TypeScope 34public class TypeScopeImpl extends MinimalEObjectImpl.Container implements TypeScope
35{ 35{
36 /** 36 /**
37 * 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.
38 * <!-- begin-user-doc --> 38 * <!-- begin-user-doc -->
39 * <!-- end-user-doc --> 39 * <!-- end-user-doc -->
40 * @see #isSetsNew() 40 * @see #isSetsNew()
41 * @generated 41 * @generated
42 * @ordered 42 * @ordered
43 */ 43 */
44 protected static final boolean SETS_NEW_EDEFAULT = false; 44 protected static final boolean SETS_NEW_EDEFAULT = false;
45 45
46 /** 46 /**
47 * The cached value of the '{@link #isSetsNew() <em>Sets New</em>}' attribute. 47 * The cached value of the '{@link #isSetsNew() <em>Sets New</em>}' attribute.
48 * <!-- begin-user-doc --> 48 * <!-- begin-user-doc -->
49 * <!-- end-user-doc --> 49 * <!-- end-user-doc -->
50 * @see #isSetsNew() 50 * @see #isSetsNew()
51 * @generated 51 * @generated
52 * @ordered 52 * @ordered
53 */ 53 */
54 protected boolean setsNew = SETS_NEW_EDEFAULT; 54 protected boolean setsNew = SETS_NEW_EDEFAULT;
55 55
56 /** 56 /**
57 * The default value of the '{@link #isSetsSum() <em>Sets Sum</em>}' attribute. 57 * The default value of the '{@link #isSetsSum() <em>Sets Sum</em>}' attribute.
58 * <!-- begin-user-doc --> 58 * <!-- begin-user-doc -->
59 * <!-- end-user-doc --> 59 * <!-- end-user-doc -->
60 * @see #isSetsSum() 60 * @see #isSetsSum()
61 * @generated 61 * @generated
62 * @ordered 62 * @ordered
63 */ 63 */
64 protected static final boolean SETS_SUM_EDEFAULT = false; 64 protected static final boolean SETS_SUM_EDEFAULT = false;
65 65
66 /** 66 /**
67 * The cached value of the '{@link #isSetsSum() <em>Sets Sum</em>}' attribute. 67 * The cached value of the '{@link #isSetsSum() <em>Sets Sum</em>}' attribute.
68 * <!-- begin-user-doc --> 68 * <!-- begin-user-doc -->
69 * <!-- end-user-doc --> 69 * <!-- end-user-doc -->
70 * @see #isSetsSum() 70 * @see #isSetsSum()
71 * @generated 71 * @generated
72 * @ordered 72 * @ordered
73 */ 73 */
74 protected boolean setsSum = SETS_SUM_EDEFAULT; 74 protected boolean setsSum = SETS_SUM_EDEFAULT;
75 75
76 /** 76 /**
77 * The cached value of the '{@link #getNumber() <em>Number</em>}' containment reference. 77 * The cached value of the '{@link #getNumber() <em>Number</em>}' containment reference.
78 * <!-- begin-user-doc --> 78 * <!-- begin-user-doc -->
79 * <!-- end-user-doc --> 79 * <!-- end-user-doc -->
80 * @see #getNumber() 80 * @see #getNumber()
81 * @generated 81 * @generated
82 * @ordered 82 * @ordered
83 */ 83 */
84 protected NumberSpecification number; 84 protected NumberSpecification number;
85 85
86 /** 86 /**
87 * <!-- begin-user-doc --> 87 * <!-- begin-user-doc -->
88 * <!-- end-user-doc --> 88 * <!-- end-user-doc -->
89 * @generated 89 * @generated
90 */ 90 */
91 protected TypeScopeImpl() 91 protected TypeScopeImpl()
92 { 92 {
93 super(); 93 super();
94 } 94 }
95 95
96 /** 96 /**
97 * <!-- begin-user-doc --> 97 * <!-- begin-user-doc -->
98 * <!-- end-user-doc --> 98 * <!-- end-user-doc -->
99 * @generated 99 * @generated
100 */ 100 */
101 @Override 101 @Override
102 protected EClass eStaticClass() 102 protected EClass eStaticClass()
103 { 103 {
104 return ApplicationConfigurationPackage.Literals.TYPE_SCOPE; 104 return ApplicationConfigurationPackage.Literals.TYPE_SCOPE;
105 } 105 }
106 106
107 /** 107 /**
108 * <!-- begin-user-doc --> 108 * <!-- begin-user-doc -->
109 * <!-- end-user-doc --> 109 * <!-- end-user-doc -->
110 * @generated 110 * @generated
111 */ 111 */
112 public boolean isSetsNew() 112 @Override
113 { 113 public boolean isSetsNew()
114 return setsNew; 114 {
115 } 115 return setsNew;
116 116 }
117 /** 117
118 * <!-- begin-user-doc --> 118 /**
119 * <!-- end-user-doc --> 119 * <!-- begin-user-doc -->
120 * @generated 120 * <!-- end-user-doc -->
121 */ 121 * @generated
122 public void setSetsNew(boolean newSetsNew) 122 */
123 { 123 @Override
124 boolean oldSetsNew = setsNew; 124 public void setSetsNew(boolean newSetsNew)
125 setsNew = newSetsNew; 125 {
126 if (eNotificationRequired()) 126 boolean oldSetsNew = setsNew;
127 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW, oldSetsNew, setsNew)); 127 setsNew = newSetsNew;
128 } 128 if (eNotificationRequired())
129 129 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW, oldSetsNew, setsNew));
130 /** 130 }
131 * <!-- begin-user-doc --> 131
132 * <!-- end-user-doc --> 132 /**
133 * @generated 133 * <!-- begin-user-doc -->
134 */ 134 * <!-- end-user-doc -->
135 public boolean isSetsSum() 135 * @generated
136 { 136 */
137 return setsSum; 137 @Override
138 } 138 public boolean isSetsSum()
139 139 {
140 /** 140 return setsSum;
141 * <!-- begin-user-doc --> 141 }
142 * <!-- end-user-doc --> 142
143 * @generated 143 /**
144 */ 144 * <!-- begin-user-doc -->
145 public void setSetsSum(boolean newSetsSum) 145 * <!-- end-user-doc -->
146 { 146 * @generated
147 boolean oldSetsSum = setsSum; 147 */
148 setsSum = newSetsSum; 148 @Override
149 if (eNotificationRequired()) 149 public void setSetsSum(boolean newSetsSum)
150 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM, oldSetsSum, setsSum)); 150 {
151 } 151 boolean oldSetsSum = setsSum;
152 152 setsSum = newSetsSum;
153 /** 153 if (eNotificationRequired())
154 * <!-- begin-user-doc --> 154 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM, oldSetsSum, setsSum));
155 * <!-- end-user-doc --> 155 }
156 * @generated 156
157 */ 157 /**
158 public NumberSpecification getNumber() 158 * <!-- begin-user-doc -->
159 { 159 * <!-- end-user-doc -->
160 return number; 160 * @generated
161 } 161 */
162 162 @Override
163 /** 163 public NumberSpecification getNumber()
164 * <!-- begin-user-doc --> 164 {
165 * <!-- end-user-doc --> 165 return number;
166 * @generated 166 }
167 */ 167
168 public NotificationChain basicSetNumber(NumberSpecification newNumber, NotificationChain msgs) 168 /**
169 { 169 * <!-- begin-user-doc -->
170 NumberSpecification oldNumber = number; 170 * <!-- end-user-doc -->
171 number = newNumber; 171 * @generated
172 if (eNotificationRequired()) 172 */
173 { 173 public NotificationChain basicSetNumber(NumberSpecification newNumber, NotificationChain msgs)
174 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER, oldNumber, newNumber); 174 {
175 if (msgs == null) msgs = notification; else msgs.add(notification); 175 NumberSpecification oldNumber = number;
176 } 176 number = newNumber;
177 return msgs; 177 if (eNotificationRequired())
178 } 178 {
179 179 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER, oldNumber, newNumber);
180 /** 180 if (msgs == null) msgs = notification; else msgs.add(notification);
181 * <!-- begin-user-doc --> 181 }
182 * <!-- end-user-doc --> 182 return msgs;
183 * @generated 183 }
184 */ 184
185 public void setNumber(NumberSpecification newNumber) 185 /**
186 { 186 * <!-- begin-user-doc -->
187 if (newNumber != number) 187 * <!-- end-user-doc -->
188 { 188 * @generated
189 NotificationChain msgs = null; 189 */
190 if (number != null) 190 @Override
191 msgs = ((InternalEObject)number).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER, null, msgs); 191 public void setNumber(NumberSpecification newNumber)
192 if (newNumber != null) 192 {
193 msgs = ((InternalEObject)newNumber).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER, null, msgs); 193 if (newNumber != number)
194 msgs = basicSetNumber(newNumber, msgs); 194 {
195 if (msgs != null) msgs.dispatch(); 195 NotificationChain msgs = null;
196 } 196 if (number != null)
197 else if (eNotificationRequired()) 197 msgs = ((InternalEObject)number).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER, null, msgs);
198 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER, newNumber, newNumber)); 198 if (newNumber != null)
199 } 199 msgs = ((InternalEObject)newNumber).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER, null, msgs);
200 200 msgs = basicSetNumber(newNumber, msgs);
201 /** 201 if (msgs != null) msgs.dispatch();
202 * <!-- begin-user-doc --> 202 }
203 * <!-- end-user-doc --> 203 else if (eNotificationRequired())
204 * @generated 204 eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER, newNumber, newNumber));
205 */ 205 }
206 @Override 206
207 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) 207 /**
208 { 208 * <!-- begin-user-doc -->
209 switch (featureID) 209 * <!-- end-user-doc -->
210 { 210 * @generated
211 case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER: 211 */
212 return basicSetNumber(null, msgs); 212 @Override
213 } 213 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
214 return super.eInverseRemove(otherEnd, featureID, msgs); 214 {
215 } 215 switch (featureID)
216 216 {
217 /** 217 case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER:
218 * <!-- begin-user-doc --> 218 return basicSetNumber(null, msgs);
219 * <!-- end-user-doc --> 219 }
220 * @generated 220 return super.eInverseRemove(otherEnd, featureID, msgs);
221 */ 221 }
222 @Override 222
223 public Object eGet(int featureID, boolean resolve, boolean coreType) 223 /**
224 { 224 * <!-- begin-user-doc -->
225 switch (featureID) 225 * <!-- end-user-doc -->
226 { 226 * @generated
227 case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: 227 */
228 return isSetsNew(); 228 @Override
229 case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: 229 public Object eGet(int featureID, boolean resolve, boolean coreType)
230 return isSetsSum(); 230 {
231 case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER: 231 switch (featureID)
232 return getNumber(); 232 {
233 } 233 case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW:
234 return super.eGet(featureID, resolve, coreType); 234 return isSetsNew();
235 } 235 case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM:
236 236 return isSetsSum();
237 /** 237 case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER:
238 * <!-- begin-user-doc --> 238 return getNumber();
239 * <!-- end-user-doc --> 239 }
240 * @generated 240 return super.eGet(featureID, resolve, coreType);
241 */ 241 }
242 @Override 242
243 public void eSet(int featureID, Object newValue) 243 /**
244 { 244 * <!-- begin-user-doc -->
245 switch (featureID) 245 * <!-- end-user-doc -->
246 { 246 * @generated
247 case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: 247 */
248 setSetsNew((Boolean)newValue); 248 @Override
249 return; 249 public void eSet(int featureID, Object newValue)
250 case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: 250 {
251 setSetsSum((Boolean)newValue); 251 switch (featureID)
252 return; 252 {
253 case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER: 253 case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW:
254 setNumber((NumberSpecification)newValue); 254 setSetsNew((Boolean)newValue);
255 return; 255 return;
256 } 256 case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM:
257 super.eSet(featureID, newValue); 257 setSetsSum((Boolean)newValue);
258 } 258 return;
259 259 case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER:
260 /** 260 setNumber((NumberSpecification)newValue);
261 * <!-- begin-user-doc --> 261 return;
262 * <!-- end-user-doc --> 262 }
263 * @generated 263 super.eSet(featureID, newValue);
264 */ 264 }
265 @Override 265
266 public void eUnset(int featureID) 266 /**
267 { 267 * <!-- begin-user-doc -->
268 switch (featureID) 268 * <!-- end-user-doc -->
269 { 269 * @generated
270 case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: 270 */
271 setSetsNew(SETS_NEW_EDEFAULT); 271 @Override
272 return; 272 public void eUnset(int featureID)
273 case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: 273 {
274 setSetsSum(SETS_SUM_EDEFAULT); 274 switch (featureID)
275 return; 275 {
276 case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER: 276 case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW:
277 setNumber((NumberSpecification)null); 277 setSetsNew(SETS_NEW_EDEFAULT);
278 return; 278 return;
279 } 279 case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM:
280 super.eUnset(featureID); 280 setSetsSum(SETS_SUM_EDEFAULT);
281 } 281 return;
282 282 case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER:
283 /** 283 setNumber((NumberSpecification)null);
284 * <!-- begin-user-doc --> 284 return;
285 * <!-- end-user-doc --> 285 }
286 * @generated 286 super.eUnset(featureID);
287 */ 287 }
288 @Override 288
289 public boolean eIsSet(int featureID) 289 /**
290 { 290 * <!-- begin-user-doc -->
291 switch (featureID) 291 * <!-- end-user-doc -->
292 { 292 * @generated
293 case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW: 293 */
294 return setsNew != SETS_NEW_EDEFAULT; 294 @Override
295 case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM: 295 public boolean eIsSet(int featureID)
296 return setsSum != SETS_SUM_EDEFAULT; 296 {
297 case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER: 297 switch (featureID)
298 return number != null; 298 {
299 } 299 case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_NEW:
300 return super.eIsSet(featureID); 300 return setsNew != SETS_NEW_EDEFAULT;
301 } 301 case ApplicationConfigurationPackage.TYPE_SCOPE__SETS_SUM:
302 302 return setsSum != SETS_SUM_EDEFAULT;
303 /** 303 case ApplicationConfigurationPackage.TYPE_SCOPE__NUMBER:
304 * <!-- begin-user-doc --> 304 return number != null;
305 * <!-- end-user-doc --> 305 }
306 * @generated 306 return super.eIsSet(featureID);
307 */ 307 }
308 @Override 308
309 public String toString() 309 /**
310 { 310 * <!-- begin-user-doc -->
311 if (eIsProxy()) return super.toString(); 311 * <!-- end-user-doc -->
312 312 * @generated
313 StringBuffer result = new StringBuffer(super.toString()); 313 */
314 result.append(" (setsNew: "); 314 @Override
315 result.append(setsNew); 315 public String toString()
316 result.append(", setsSum: "); 316 {
317 result.append(setsSum); 317 if (eIsProxy()) return super.toString();
318 result.append(')'); 318
319 return result.toString(); 319 StringBuilder result = new StringBuilder(super.toString());
320 } 320 result.append(" (setsNew: ");
321 321 result.append(setsNew);
322} //TypeScopeImpl 322 result.append(", setsSum: ");
323 result.append(setsSum);
324 result.append(')');
325 return result.toString();
326 }
327
328} //TypeScopeImpl