diff options
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClassInterpretationImpl.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClassInterpretationImpl.java | 356 |
1 files changed, 0 insertions, 356 deletions
diff --git a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClassInterpretationImpl.java b/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClassInterpretationImpl.java deleted file mode 100644 index effc5970..00000000 --- a/Application/org.eclipse.viatra.solver.language/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ClassInterpretationImpl.java +++ /dev/null | |||
@@ -1,356 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.18.0.M3 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Notification; | ||
9 | import org.eclipse.emf.common.notify.NotificationChain; | ||
10 | |||
11 | import org.eclipse.emf.common.util.EList; | ||
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 | |||
18 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
19 | import org.eclipse.emf.ecore.util.InternalEList; | ||
20 | |||
21 | import org.eclipse.viatra.solver.language.solverLanguage.ClassInterpretation; | ||
22 | import org.eclipse.viatra.solver.language.solverLanguage.FieldRelationInterpretation; | ||
23 | import org.eclipse.viatra.solver.language.solverLanguage.ModelSymbol; | ||
24 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
25 | |||
26 | /** | ||
27 | * <!-- begin-user-doc --> | ||
28 | * An implementation of the model object '<em><b>Class Interpretation</b></em>'. | ||
29 | * <!-- end-user-doc --> | ||
30 | * <p> | ||
31 | * The following features are implemented: | ||
32 | * </p> | ||
33 | * <ul> | ||
34 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ClassInterpretationImpl#isAbstract <em>Abstract</em>}</li> | ||
35 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ClassInterpretationImpl#getSymbol <em>Symbol</em>}</li> | ||
36 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ClassInterpretationImpl#getSupertypes <em>Supertypes</em>}</li> | ||
37 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ClassInterpretationImpl#getFielt <em>Fielt</em>}</li> | ||
38 | * </ul> | ||
39 | * | ||
40 | * @generated | ||
41 | */ | ||
42 | public class ClassInterpretationImpl extends CDInterpretationImpl implements ClassInterpretation | ||
43 | { | ||
44 | /** | ||
45 | * The default value of the '{@link #isAbstract() <em>Abstract</em>}' attribute. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #isAbstract() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected static final boolean ABSTRACT_EDEFAULT = false; | ||
53 | |||
54 | /** | ||
55 | * The cached value of the '{@link #isAbstract() <em>Abstract</em>}' attribute. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @see #isAbstract() | ||
59 | * @generated | ||
60 | * @ordered | ||
61 | */ | ||
62 | protected boolean abstract_ = ABSTRACT_EDEFAULT; | ||
63 | |||
64 | /** | ||
65 | * The cached value of the '{@link #getSymbol() <em>Symbol</em>}' containment reference. | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @see #getSymbol() | ||
69 | * @generated | ||
70 | * @ordered | ||
71 | */ | ||
72 | protected ModelSymbol symbol; | ||
73 | |||
74 | /** | ||
75 | * The cached value of the '{@link #getSupertypes() <em>Supertypes</em>}' containment reference list. | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @see #getSupertypes() | ||
79 | * @generated | ||
80 | * @ordered | ||
81 | */ | ||
82 | protected EList<ModelSymbol> supertypes; | ||
83 | |||
84 | /** | ||
85 | * The cached value of the '{@link #getFielt() <em>Fielt</em>}' containment reference list. | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @see #getFielt() | ||
89 | * @generated | ||
90 | * @ordered | ||
91 | */ | ||
92 | protected EList<FieldRelationInterpretation> fielt; | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | protected ClassInterpretationImpl() | ||
100 | { | ||
101 | super(); | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @Override | ||
110 | protected EClass eStaticClass() | ||
111 | { | ||
112 | return SolverLanguagePackage.Literals.CLASS_INTERPRETATION; | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @Override | ||
121 | public boolean isAbstract() | ||
122 | { | ||
123 | return abstract_; | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | @Override | ||
132 | public void setAbstract(boolean newAbstract) | ||
133 | { | ||
134 | boolean oldAbstract = abstract_; | ||
135 | abstract_ = newAbstract; | ||
136 | if (eNotificationRequired()) | ||
137 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CLASS_INTERPRETATION__ABSTRACT, oldAbstract, abstract_)); | ||
138 | } | ||
139 | |||
140 | /** | ||
141 | * <!-- begin-user-doc --> | ||
142 | * <!-- end-user-doc --> | ||
143 | * @generated | ||
144 | */ | ||
145 | @Override | ||
146 | public ModelSymbol getSymbol() | ||
147 | { | ||
148 | return symbol; | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | public NotificationChain basicSetSymbol(ModelSymbol newSymbol, NotificationChain msgs) | ||
157 | { | ||
158 | ModelSymbol oldSymbol = symbol; | ||
159 | symbol = newSymbol; | ||
160 | if (eNotificationRequired()) | ||
161 | { | ||
162 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CLASS_INTERPRETATION__SYMBOL, oldSymbol, newSymbol); | ||
163 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
164 | } | ||
165 | return msgs; | ||
166 | } | ||
167 | |||
168 | /** | ||
169 | * <!-- begin-user-doc --> | ||
170 | * <!-- end-user-doc --> | ||
171 | * @generated | ||
172 | */ | ||
173 | @Override | ||
174 | public void setSymbol(ModelSymbol newSymbol) | ||
175 | { | ||
176 | if (newSymbol != symbol) | ||
177 | { | ||
178 | NotificationChain msgs = null; | ||
179 | if (symbol != null) | ||
180 | msgs = ((InternalEObject)symbol).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CLASS_INTERPRETATION__SYMBOL, null, msgs); | ||
181 | if (newSymbol != null) | ||
182 | msgs = ((InternalEObject)newSymbol).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.CLASS_INTERPRETATION__SYMBOL, null, msgs); | ||
183 | msgs = basicSetSymbol(newSymbol, msgs); | ||
184 | if (msgs != null) msgs.dispatch(); | ||
185 | } | ||
186 | else if (eNotificationRequired()) | ||
187 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.CLASS_INTERPRETATION__SYMBOL, newSymbol, newSymbol)); | ||
188 | } | ||
189 | |||
190 | /** | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @generated | ||
194 | */ | ||
195 | @Override | ||
196 | public EList<ModelSymbol> getSupertypes() | ||
197 | { | ||
198 | if (supertypes == null) | ||
199 | { | ||
200 | supertypes = new EObjectContainmentEList<ModelSymbol>(ModelSymbol.class, this, SolverLanguagePackage.CLASS_INTERPRETATION__SUPERTYPES); | ||
201 | } | ||
202 | return supertypes; | ||
203 | } | ||
204 | |||
205 | /** | ||
206 | * <!-- begin-user-doc --> | ||
207 | * <!-- end-user-doc --> | ||
208 | * @generated | ||
209 | */ | ||
210 | @Override | ||
211 | public EList<FieldRelationInterpretation> getFielt() | ||
212 | { | ||
213 | if (fielt == null) | ||
214 | { | ||
215 | fielt = new EObjectContainmentEList<FieldRelationInterpretation>(FieldRelationInterpretation.class, this, SolverLanguagePackage.CLASS_INTERPRETATION__FIELT); | ||
216 | } | ||
217 | return fielt; | ||
218 | } | ||
219 | |||
220 | /** | ||
221 | * <!-- begin-user-doc --> | ||
222 | * <!-- end-user-doc --> | ||
223 | * @generated | ||
224 | */ | ||
225 | @Override | ||
226 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
227 | { | ||
228 | switch (featureID) | ||
229 | { | ||
230 | case SolverLanguagePackage.CLASS_INTERPRETATION__SYMBOL: | ||
231 | return basicSetSymbol(null, msgs); | ||
232 | case SolverLanguagePackage.CLASS_INTERPRETATION__SUPERTYPES: | ||
233 | return ((InternalEList<?>)getSupertypes()).basicRemove(otherEnd, msgs); | ||
234 | case SolverLanguagePackage.CLASS_INTERPRETATION__FIELT: | ||
235 | return ((InternalEList<?>)getFielt()).basicRemove(otherEnd, msgs); | ||
236 | } | ||
237 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | @Override | ||
246 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
247 | { | ||
248 | switch (featureID) | ||
249 | { | ||
250 | case SolverLanguagePackage.CLASS_INTERPRETATION__ABSTRACT: | ||
251 | return isAbstract(); | ||
252 | case SolverLanguagePackage.CLASS_INTERPRETATION__SYMBOL: | ||
253 | return getSymbol(); | ||
254 | case SolverLanguagePackage.CLASS_INTERPRETATION__SUPERTYPES: | ||
255 | return getSupertypes(); | ||
256 | case SolverLanguagePackage.CLASS_INTERPRETATION__FIELT: | ||
257 | return getFielt(); | ||
258 | } | ||
259 | return super.eGet(featureID, resolve, coreType); | ||
260 | } | ||
261 | |||
262 | /** | ||
263 | * <!-- begin-user-doc --> | ||
264 | * <!-- end-user-doc --> | ||
265 | * @generated | ||
266 | */ | ||
267 | @SuppressWarnings("unchecked") | ||
268 | @Override | ||
269 | public void eSet(int featureID, Object newValue) | ||
270 | { | ||
271 | switch (featureID) | ||
272 | { | ||
273 | case SolverLanguagePackage.CLASS_INTERPRETATION__ABSTRACT: | ||
274 | setAbstract((Boolean)newValue); | ||
275 | return; | ||
276 | case SolverLanguagePackage.CLASS_INTERPRETATION__SYMBOL: | ||
277 | setSymbol((ModelSymbol)newValue); | ||
278 | return; | ||
279 | case SolverLanguagePackage.CLASS_INTERPRETATION__SUPERTYPES: | ||
280 | getSupertypes().clear(); | ||
281 | getSupertypes().addAll((Collection<? extends ModelSymbol>)newValue); | ||
282 | return; | ||
283 | case SolverLanguagePackage.CLASS_INTERPRETATION__FIELT: | ||
284 | getFielt().clear(); | ||
285 | getFielt().addAll((Collection<? extends FieldRelationInterpretation>)newValue); | ||
286 | return; | ||
287 | } | ||
288 | super.eSet(featureID, newValue); | ||
289 | } | ||
290 | |||
291 | /** | ||
292 | * <!-- begin-user-doc --> | ||
293 | * <!-- end-user-doc --> | ||
294 | * @generated | ||
295 | */ | ||
296 | @Override | ||
297 | public void eUnset(int featureID) | ||
298 | { | ||
299 | switch (featureID) | ||
300 | { | ||
301 | case SolverLanguagePackage.CLASS_INTERPRETATION__ABSTRACT: | ||
302 | setAbstract(ABSTRACT_EDEFAULT); | ||
303 | return; | ||
304 | case SolverLanguagePackage.CLASS_INTERPRETATION__SYMBOL: | ||
305 | setSymbol((ModelSymbol)null); | ||
306 | return; | ||
307 | case SolverLanguagePackage.CLASS_INTERPRETATION__SUPERTYPES: | ||
308 | getSupertypes().clear(); | ||
309 | return; | ||
310 | case SolverLanguagePackage.CLASS_INTERPRETATION__FIELT: | ||
311 | getFielt().clear(); | ||
312 | return; | ||
313 | } | ||
314 | super.eUnset(featureID); | ||
315 | } | ||
316 | |||
317 | /** | ||
318 | * <!-- begin-user-doc --> | ||
319 | * <!-- end-user-doc --> | ||
320 | * @generated | ||
321 | */ | ||
322 | @Override | ||
323 | public boolean eIsSet(int featureID) | ||
324 | { | ||
325 | switch (featureID) | ||
326 | { | ||
327 | case SolverLanguagePackage.CLASS_INTERPRETATION__ABSTRACT: | ||
328 | return abstract_ != ABSTRACT_EDEFAULT; | ||
329 | case SolverLanguagePackage.CLASS_INTERPRETATION__SYMBOL: | ||
330 | return symbol != null; | ||
331 | case SolverLanguagePackage.CLASS_INTERPRETATION__SUPERTYPES: | ||
332 | return supertypes != null && !supertypes.isEmpty(); | ||
333 | case SolverLanguagePackage.CLASS_INTERPRETATION__FIELT: | ||
334 | return fielt != null && !fielt.isEmpty(); | ||
335 | } | ||
336 | return super.eIsSet(featureID); | ||
337 | } | ||
338 | |||
339 | /** | ||
340 | * <!-- begin-user-doc --> | ||
341 | * <!-- end-user-doc --> | ||
342 | * @generated | ||
343 | */ | ||
344 | @Override | ||
345 | public String toString() | ||
346 | { | ||
347 | if (eIsProxy()) return super.toString(); | ||
348 | |||
349 | StringBuilder result = new StringBuilder(super.toString()); | ||
350 | result.append(" (abstract: "); | ||
351 | result.append(abstract_); | ||
352 | result.append(')'); | ||
353 | return result.toString(); | ||
354 | } | ||
355 | |||
356 | } //ClassInterpretationImpl | ||