diff options
author | 2020-05-19 21:18:06 +0200 | |
---|---|---|
committer | 2020-05-19 21:18:06 +0200 | |
commit | b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b (patch) | |
tree | ad3222182065b8fac7d9b3d528c4efabf2aa0dd2 /Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternAggregatorDefinitionImpl.java | |
parent | Merge branch 'master' of github.com:viatra/VIATRA-Generator (diff) | |
download | VIATRA-Generator-b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b.tar.gz VIATRA-Generator-b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b.tar.zst VIATRA-Generator-b3c1c5b30ae8ea7ebad391c9250b4509d5a4cc9b.zip |
Config language WIP
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternAggregatorDefinitionImpl.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternAggregatorDefinitionImpl.java | 291 |
1 files changed, 291 insertions, 0 deletions
diff --git a/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternAggregatorDefinitionImpl.java b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternAggregatorDefinitionImpl.java new file mode 100644 index 00000000..2b4efc07 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language/ecore-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/ExternAggregatorDefinitionImpl.java | |||
@@ -0,0 +1,291 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.solverLanguage.impl; | ||
5 | |||
6 | import org.eclipse.emf.common.notify.Notification; | ||
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.ExternAggregatorDefinition; | ||
14 | import org.eclipse.viatra.solver.language.solverLanguage.NamedElement; | ||
15 | import org.eclipse.viatra.solver.language.solverLanguage.SolverLanguagePackage; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Extern Aggregator Definition</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExternAggregatorDefinitionImpl#getType <em>Type</em>}</li> | ||
26 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExternAggregatorDefinitionImpl#getName <em>Name</em>}</li> | ||
27 | * <li>{@link org.eclipse.viatra.solver.language.solverLanguage.impl.ExternAggregatorDefinitionImpl#getInputType <em>Input Type</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class ExternAggregatorDefinitionImpl extends StatementImpl implements ExternAggregatorDefinition { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getType() <em>Type</em>}' reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getType() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected NamedElement type; | ||
42 | |||
43 | /** | ||
44 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getName() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected static final String NAME_EDEFAULT = null; | ||
52 | |||
53 | /** | ||
54 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @see #getName() | ||
58 | * @generated | ||
59 | * @ordered | ||
60 | */ | ||
61 | protected String name = NAME_EDEFAULT; | ||
62 | |||
63 | /** | ||
64 | * The cached value of the '{@link #getInputType() <em>Input Type</em>}' reference. | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @see #getInputType() | ||
68 | * @generated | ||
69 | * @ordered | ||
70 | */ | ||
71 | protected NamedElement inputType; | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | protected ExternAggregatorDefinitionImpl() { | ||
79 | super(); | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | protected EClass eStaticClass() { | ||
89 | return SolverLanguagePackage.Literals.EXTERN_AGGREGATOR_DEFINITION; | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | @Override | ||
98 | public NamedElement getType() { | ||
99 | if (type != null && type.eIsProxy()) { | ||
100 | InternalEObject oldType = (InternalEObject)type; | ||
101 | type = (NamedElement)eResolveProxy(oldType); | ||
102 | if (type != oldType) { | ||
103 | if (eNotificationRequired()) | ||
104 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__TYPE, oldType, type)); | ||
105 | } | ||
106 | } | ||
107 | return type; | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | public NamedElement basicGetType() { | ||
116 | return type; | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public void setType(NamedElement newType) { | ||
126 | NamedElement oldType = type; | ||
127 | type = newType; | ||
128 | if (eNotificationRequired()) | ||
129 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__TYPE, oldType, type)); | ||
130 | } | ||
131 | |||
132 | /** | ||
133 | * <!-- begin-user-doc --> | ||
134 | * <!-- end-user-doc --> | ||
135 | * @generated | ||
136 | */ | ||
137 | @Override | ||
138 | public String getName() { | ||
139 | return name; | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public void setName(String newName) { | ||
149 | String oldName = name; | ||
150 | name = newName; | ||
151 | if (eNotificationRequired()) | ||
152 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__NAME, oldName, name)); | ||
153 | } | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | @Override | ||
161 | public NamedElement getInputType() { | ||
162 | if (inputType != null && inputType.eIsProxy()) { | ||
163 | InternalEObject oldInputType = (InternalEObject)inputType; | ||
164 | inputType = (NamedElement)eResolveProxy(oldInputType); | ||
165 | if (inputType != oldInputType) { | ||
166 | if (eNotificationRequired()) | ||
167 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__INPUT_TYPE, oldInputType, inputType)); | ||
168 | } | ||
169 | } | ||
170 | return inputType; | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @generated | ||
177 | */ | ||
178 | public NamedElement basicGetInputType() { | ||
179 | return inputType; | ||
180 | } | ||
181 | |||
182 | /** | ||
183 | * <!-- begin-user-doc --> | ||
184 | * <!-- end-user-doc --> | ||
185 | * @generated | ||
186 | */ | ||
187 | @Override | ||
188 | public void setInputType(NamedElement newInputType) { | ||
189 | NamedElement oldInputType = inputType; | ||
190 | inputType = newInputType; | ||
191 | if (eNotificationRequired()) | ||
192 | eNotify(new ENotificationImpl(this, Notification.SET, SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__INPUT_TYPE, oldInputType, inputType)); | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * <!-- begin-user-doc --> | ||
197 | * <!-- end-user-doc --> | ||
198 | * @generated | ||
199 | */ | ||
200 | @Override | ||
201 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
202 | switch (featureID) { | ||
203 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__TYPE: | ||
204 | if (resolve) return getType(); | ||
205 | return basicGetType(); | ||
206 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__NAME: | ||
207 | return getName(); | ||
208 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__INPUT_TYPE: | ||
209 | if (resolve) return getInputType(); | ||
210 | return basicGetInputType(); | ||
211 | } | ||
212 | return super.eGet(featureID, resolve, coreType); | ||
213 | } | ||
214 | |||
215 | /** | ||
216 | * <!-- begin-user-doc --> | ||
217 | * <!-- end-user-doc --> | ||
218 | * @generated | ||
219 | */ | ||
220 | @Override | ||
221 | public void eSet(int featureID, Object newValue) { | ||
222 | switch (featureID) { | ||
223 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__TYPE: | ||
224 | setType((NamedElement)newValue); | ||
225 | return; | ||
226 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__NAME: | ||
227 | setName((String)newValue); | ||
228 | return; | ||
229 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__INPUT_TYPE: | ||
230 | setInputType((NamedElement)newValue); | ||
231 | return; | ||
232 | } | ||
233 | super.eSet(featureID, newValue); | ||
234 | } | ||
235 | |||
236 | /** | ||
237 | * <!-- begin-user-doc --> | ||
238 | * <!-- end-user-doc --> | ||
239 | * @generated | ||
240 | */ | ||
241 | @Override | ||
242 | public void eUnset(int featureID) { | ||
243 | switch (featureID) { | ||
244 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__TYPE: | ||
245 | setType((NamedElement)null); | ||
246 | return; | ||
247 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__NAME: | ||
248 | setName(NAME_EDEFAULT); | ||
249 | return; | ||
250 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__INPUT_TYPE: | ||
251 | setInputType((NamedElement)null); | ||
252 | return; | ||
253 | } | ||
254 | super.eUnset(featureID); | ||
255 | } | ||
256 | |||
257 | /** | ||
258 | * <!-- begin-user-doc --> | ||
259 | * <!-- end-user-doc --> | ||
260 | * @generated | ||
261 | */ | ||
262 | @Override | ||
263 | public boolean eIsSet(int featureID) { | ||
264 | switch (featureID) { | ||
265 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__TYPE: | ||
266 | return type != null; | ||
267 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__NAME: | ||
268 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
269 | case SolverLanguagePackage.EXTERN_AGGREGATOR_DEFINITION__INPUT_TYPE: | ||
270 | return inputType != null; | ||
271 | } | ||
272 | return super.eIsSet(featureID); | ||
273 | } | ||
274 | |||
275 | /** | ||
276 | * <!-- begin-user-doc --> | ||
277 | * <!-- end-user-doc --> | ||
278 | * @generated | ||
279 | */ | ||
280 | @Override | ||
281 | public String toString() { | ||
282 | if (eIsProxy()) return super.toString(); | ||
283 | |||
284 | StringBuilder result = new StringBuilder(super.toString()); | ||
285 | result.append(" (name: "); | ||
286 | result.append(name); | ||
287 | result.append(')'); | ||
288 | return result.toString(); | ||
289 | } | ||
290 | |||
291 | } //ExternAggregatorDefinitionImpl | ||