diff options
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnnamedErrorPredicateDefintionImpl.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnnamedErrorPredicateDefintionImpl.java | 262 |
1 files changed, 262 insertions, 0 deletions
diff --git a/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnnamedErrorPredicateDefintionImpl.java b/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnnamedErrorPredicateDefintionImpl.java new file mode 100644 index 00000000..87f259a0 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/UnnamedErrorPredicateDefintionImpl.java | |||
@@ -0,0 +1,262 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Notification; | ||
6 | import org.eclipse.emf.common.notify.NotificationChain; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.InternalEObject; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
12 | |||
13 | import org.eclipse.viatra.solver.language.solverLanguage.ArgumentList; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.Expression; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
16 | import org.eclipse.viatra.solver.language.solverLanguage.UnnamedErrorPredicateDefintion; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Unnamed Error Predicate Defintion</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.UnnamedErrorPredicateDefintionImpl#getArgumentList <em>Argument List</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.UnnamedErrorPredicateDefintionImpl#getBody <em>Body</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class UnnamedErrorPredicateDefintionImpl extends StatementImpl implements UnnamedErrorPredicateDefintion { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getArgumentList() <em>Argument List</em>}' containment reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getArgumentList() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected ArgumentList argumentList; | ||
42 | |||
43 | /** | ||
44 | * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getBody() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected Expression body; | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | protected UnnamedErrorPredicateDefintionImpl() { | ||
59 | super(); | ||
60 | } | ||
61 | |||
62 | /** | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @generated | ||
66 | */ | ||
67 | @Override | ||
68 | protected EClass eStaticClass() { | ||
69 | return SolverLanguagePackage.Literals.UNNAMED_ERROR_PREDICATE_DEFINTION; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | public ArgumentList getArgumentList() { | ||
78 | return argumentList; | ||
79 | } | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | public NotificationChain basicSetArgumentList(ArgumentList newArgumentList, NotificationChain msgs) { | ||
87 | ArgumentList oldArgumentList = argumentList; | ||
88 | argumentList = newArgumentList; | ||
89 | if (eNotificationRequired()) { | ||
90 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
91 | SolverLanguagePackage.UNNAMED_ERROR_PREDICATE_DEFINTION__ARGUMENT_LIST, oldArgumentList, | ||
92 | newArgumentList); | ||
93 | if (msgs == null) | ||
94 | msgs = notification; | ||
95 | else | ||
96 | msgs.add(notification); | ||
97 | } | ||
98 | return msgs; | ||
99 | } | ||
100 | |||
101 | /** | ||
102 | * <!-- begin-user-doc --> | ||
103 | * <!-- end-user-doc --> | ||
104 | * @generated | ||
105 | */ | ||
106 | public void setArgumentList(ArgumentList newArgumentList) { | ||
107 | if (newArgumentList != argumentList) { | ||
108 | NotificationChain msgs = null; | ||
109 | if (argumentList != null) | ||
110 | msgs = ((InternalEObject) argumentList).eInverseRemove(this, | ||
111 | EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.UNNAMED_ERROR_PREDICATE_DEFINTION__ARGUMENT_LIST, | ||
112 | null, msgs); | ||
113 | if (newArgumentList != null) | ||
114 | msgs = ((InternalEObject) newArgumentList).eInverseAdd(this, | ||
115 | EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.UNNAMED_ERROR_PREDICATE_DEFINTION__ARGUMENT_LIST, | ||
116 | null, msgs); | ||
117 | msgs = basicSetArgumentList(newArgumentList, msgs); | ||
118 | if (msgs != null) | ||
119 | msgs.dispatch(); | ||
120 | } else if (eNotificationRequired()) | ||
121 | eNotify(new ENotificationImpl(this, Notification.SET, | ||
122 | SolverLanguagePackage.UNNAMED_ERROR_PREDICATE_DEFINTION__ARGUMENT_LIST, newArgumentList, | ||
123 | newArgumentList)); | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | public Expression getBody() { | ||
132 | return body; | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | public NotificationChain basicSetBody(Expression newBody, NotificationChain msgs) { | ||
141 | Expression oldBody = body; | ||
142 | body = newBody; | ||
143 | if (eNotificationRequired()) { | ||
144 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
145 | SolverLanguagePackage.UNNAMED_ERROR_PREDICATE_DEFINTION__BODY, oldBody, newBody); | ||
146 | if (msgs == null) | ||
147 | msgs = notification; | ||
148 | else | ||
149 | msgs.add(notification); | ||
150 | } | ||
151 | return msgs; | ||
152 | } | ||
153 | |||
154 | /** | ||
155 | * <!-- begin-user-doc --> | ||
156 | * <!-- end-user-doc --> | ||
157 | * @generated | ||
158 | */ | ||
159 | public void setBody(Expression newBody) { | ||
160 | if (newBody != body) { | ||
161 | NotificationChain msgs = null; | ||
162 | if (body != null) | ||
163 | msgs = ((InternalEObject) body).eInverseRemove(this, | ||
164 | EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.UNNAMED_ERROR_PREDICATE_DEFINTION__BODY, null, | ||
165 | msgs); | ||
166 | if (newBody != null) | ||
167 | msgs = ((InternalEObject) newBody).eInverseAdd(this, | ||
168 | EOPPOSITE_FEATURE_BASE - SolverLanguagePackage.UNNAMED_ERROR_PREDICATE_DEFINTION__BODY, null, | ||
169 | msgs); | ||
170 | msgs = basicSetBody(newBody, msgs); | ||
171 | if (msgs != null) | ||
172 | msgs.dispatch(); | ||
173 | } else if (eNotificationRequired()) | ||
174 | eNotify(new ENotificationImpl(this, Notification.SET, | ||
175 | SolverLanguagePackage.UNNAMED_ERROR_PREDICATE_DEFINTION__BODY, newBody, newBody)); | ||
176 | } | ||
177 | |||
178 | /** | ||
179 | * <!-- begin-user-doc --> | ||
180 | * <!-- end-user-doc --> | ||
181 | * @generated | ||
182 | */ | ||
183 | @Override | ||
184 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
185 | switch (featureID) { | ||
186 | case SolverLanguagePackage.UNNAMED_ERROR_PREDICATE_DEFINTION__ARGUMENT_LIST: | ||
187 | return basicSetArgumentList(null, msgs); | ||
188 | case SolverLanguagePackage.UNNAMED_ERROR_PREDICATE_DEFINTION__BODY: | ||
189 | return basicSetBody(null, msgs); | ||
190 | } | ||
191 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
192 | } | ||
193 | |||
194 | /** | ||
195 | * <!-- begin-user-doc --> | ||
196 | * <!-- end-user-doc --> | ||
197 | * @generated | ||
198 | */ | ||
199 | @Override | ||
200 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
201 | switch (featureID) { | ||
202 | case SolverLanguagePackage.UNNAMED_ERROR_PREDICATE_DEFINTION__ARGUMENT_LIST: | ||
203 | return getArgumentList(); | ||
204 | case SolverLanguagePackage.UNNAMED_ERROR_PREDICATE_DEFINTION__BODY: | ||
205 | return getBody(); | ||
206 | } | ||
207 | return super.eGet(featureID, resolve, coreType); | ||
208 | } | ||
209 | |||
210 | /** | ||
211 | * <!-- begin-user-doc --> | ||
212 | * <!-- end-user-doc --> | ||
213 | * @generated | ||
214 | */ | ||
215 | @Override | ||
216 | public void eSet(int featureID, Object newValue) { | ||
217 | switch (featureID) { | ||
218 | case SolverLanguagePackage.UNNAMED_ERROR_PREDICATE_DEFINTION__ARGUMENT_LIST: | ||
219 | setArgumentList((ArgumentList) newValue); | ||
220 | return; | ||
221 | case SolverLanguagePackage.UNNAMED_ERROR_PREDICATE_DEFINTION__BODY: | ||
222 | setBody((Expression) newValue); | ||
223 | return; | ||
224 | } | ||
225 | super.eSet(featureID, newValue); | ||
226 | } | ||
227 | |||
228 | /** | ||
229 | * <!-- begin-user-doc --> | ||
230 | * <!-- end-user-doc --> | ||
231 | * @generated | ||
232 | */ | ||
233 | @Override | ||
234 | public void eUnset(int featureID) { | ||
235 | switch (featureID) { | ||
236 | case SolverLanguagePackage.UNNAMED_ERROR_PREDICATE_DEFINTION__ARGUMENT_LIST: | ||
237 | setArgumentList((ArgumentList) null); | ||
238 | return; | ||
239 | case SolverLanguagePackage.UNNAMED_ERROR_PREDICATE_DEFINTION__BODY: | ||
240 | setBody((Expression) null); | ||
241 | return; | ||
242 | } | ||
243 | super.eUnset(featureID); | ||
244 | } | ||
245 | |||
246 | /** | ||
247 | * <!-- begin-user-doc --> | ||
248 | * <!-- end-user-doc --> | ||
249 | * @generated | ||
250 | */ | ||
251 | @Override | ||
252 | public boolean eIsSet(int featureID) { | ||
253 | switch (featureID) { | ||
254 | case SolverLanguagePackage.UNNAMED_ERROR_PREDICATE_DEFINTION__ARGUMENT_LIST: | ||
255 | return argumentList != null; | ||
256 | case SolverLanguagePackage.UNNAMED_ERROR_PREDICATE_DEFINTION__BODY: | ||
257 | return body != null; | ||
258 | } | ||
259 | return super.eIsSet(featureID); | ||
260 | } | ||
261 | |||
262 | } //UnnamedErrorPredicateDefintionImpl | ||