aboutsummaryrefslogtreecommitdiffstats
path: root/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/PartialRelationInterpretationImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/PartialRelationInterpretationImpl.java')
-rw-r--r--Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/PartialRelationInterpretationImpl.java337
1 files changed, 337 insertions, 0 deletions
diff --git a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/PartialRelationInterpretationImpl.java b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/PartialRelationInterpretationImpl.java
new file mode 100644
index 00000000..71aef9af
--- /dev/null
+++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/PartialRelationInterpretationImpl.java
@@ -0,0 +1,337 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl;
4
5import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.RelationDeclaration;
6
7import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.TypeReference;
8import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PartialRelationInterpretation;
9import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PartialinterpretationPackage;
10import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.RelationLink;
11
12import java.util.Collection;
13
14import org.eclipse.emf.common.notify.Notification;
15import org.eclipse.emf.common.notify.NotificationChain;
16
17import org.eclipse.emf.common.util.EList;
18
19import org.eclipse.emf.ecore.EClass;
20import org.eclipse.emf.ecore.InternalEObject;
21
22import org.eclipse.emf.ecore.impl.ENotificationImpl;
23import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
24
25import org.eclipse.emf.ecore.util.EObjectContainmentEList;
26import org.eclipse.emf.ecore.util.InternalEList;
27
28/**
29 * <!-- begin-user-doc -->
30 * An implementation of the model object '<em><b>Partial Relation Interpretation</b></em>'.
31 * <!-- end-user-doc -->
32 * <p>
33 * The following features are implemented:
34 * </p>
35 * <ul>
36 * <li>{@link hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl.PartialRelationInterpretationImpl#getInterpretationOf <em>Interpretation Of</em>}</li>
37 * <li>{@link hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl.PartialRelationInterpretationImpl#getRelationlinks <em>Relationlinks</em>}</li>
38 * <li>{@link hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl.PartialRelationInterpretationImpl#getParam1 <em>Param1</em>}</li>
39 * <li>{@link hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl.PartialRelationInterpretationImpl#getParam2 <em>Param2</em>}</li>
40 * </ul>
41 *
42 * @generated
43 */
44public class PartialRelationInterpretationImpl extends MinimalEObjectImpl.Container implements PartialRelationInterpretation {
45 /**
46 * The cached value of the '{@link #getInterpretationOf() <em>Interpretation Of</em>}' reference.
47 * <!-- begin-user-doc -->
48 * <!-- end-user-doc -->
49 * @see #getInterpretationOf()
50 * @generated
51 * @ordered
52 */
53 protected RelationDeclaration interpretationOf;
54
55 /**
56 * The cached value of the '{@link #getRelationlinks() <em>Relationlinks</em>}' containment reference list.
57 * <!-- begin-user-doc -->
58 * <!-- end-user-doc -->
59 * @see #getRelationlinks()
60 * @generated
61 * @ordered
62 */
63 protected EList<RelationLink> relationlinks;
64
65 /**
66 * The cached value of the '{@link #getParam1() <em>Param1</em>}' reference.
67 * <!-- begin-user-doc -->
68 * <!-- end-user-doc -->
69 * @see #getParam1()
70 * @generated
71 * @ordered
72 */
73 protected TypeReference param1;
74
75 /**
76 * The cached value of the '{@link #getParam2() <em>Param2</em>}' reference.
77 * <!-- begin-user-doc -->
78 * <!-- end-user-doc -->
79 * @see #getParam2()
80 * @generated
81 * @ordered
82 */
83 protected TypeReference param2;
84
85 /**
86 * <!-- begin-user-doc -->
87 * <!-- end-user-doc -->
88 * @generated
89 */
90 protected PartialRelationInterpretationImpl() {
91 super();
92 }
93
94 /**
95 * <!-- begin-user-doc -->
96 * <!-- end-user-doc -->
97 * @generated
98 */
99 @Override
100 protected EClass eStaticClass() {
101 return PartialinterpretationPackage.Literals.PARTIAL_RELATION_INTERPRETATION;
102 }
103
104 /**
105 * <!-- begin-user-doc -->
106 * <!-- end-user-doc -->
107 * @generated
108 */
109 public RelationDeclaration getInterpretationOf() {
110 if (interpretationOf != null && interpretationOf.eIsProxy()) {
111 InternalEObject oldInterpretationOf = (InternalEObject)interpretationOf;
112 interpretationOf = (RelationDeclaration)eResolveProxy(oldInterpretationOf);
113 if (interpretationOf != oldInterpretationOf) {
114 if (eNotificationRequired())
115 eNotify(new ENotificationImpl(this, Notification.RESOLVE, PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__INTERPRETATION_OF, oldInterpretationOf, interpretationOf));
116 }
117 }
118 return interpretationOf;
119 }
120
121 /**
122 * <!-- begin-user-doc -->
123 * <!-- end-user-doc -->
124 * @generated
125 */
126 public RelationDeclaration basicGetInterpretationOf() {
127 return interpretationOf;
128 }
129
130 /**
131 * <!-- begin-user-doc -->
132 * <!-- end-user-doc -->
133 * @generated
134 */
135 public void setInterpretationOf(RelationDeclaration newInterpretationOf) {
136 RelationDeclaration oldInterpretationOf = interpretationOf;
137 interpretationOf = newInterpretationOf;
138 if (eNotificationRequired())
139 eNotify(new ENotificationImpl(this, Notification.SET, PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__INTERPRETATION_OF, oldInterpretationOf, interpretationOf));
140 }
141
142 /**
143 * <!-- begin-user-doc -->
144 * <!-- end-user-doc -->
145 * @generated
146 */
147 public EList<RelationLink> getRelationlinks() {
148 if (relationlinks == null) {
149 relationlinks = new EObjectContainmentEList<RelationLink>(RelationLink.class, this, PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__RELATIONLINKS);
150 }
151 return relationlinks;
152 }
153
154 /**
155 * <!-- begin-user-doc -->
156 * <!-- end-user-doc -->
157 * @generated
158 */
159 public TypeReference getParam1() {
160 if (param1 != null && param1.eIsProxy()) {
161 InternalEObject oldParam1 = (InternalEObject)param1;
162 param1 = (TypeReference)eResolveProxy(oldParam1);
163 if (param1 != oldParam1) {
164 if (eNotificationRequired())
165 eNotify(new ENotificationImpl(this, Notification.RESOLVE, PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__PARAM1, oldParam1, param1));
166 }
167 }
168 return param1;
169 }
170
171 /**
172 * <!-- begin-user-doc -->
173 * <!-- end-user-doc -->
174 * @generated
175 */
176 public TypeReference basicGetParam1() {
177 return param1;
178 }
179
180 /**
181 * <!-- begin-user-doc -->
182 * <!-- end-user-doc -->
183 * @generated
184 */
185 public void setParam1(TypeReference newParam1) {
186 TypeReference oldParam1 = param1;
187 param1 = newParam1;
188 if (eNotificationRequired())
189 eNotify(new ENotificationImpl(this, Notification.SET, PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__PARAM1, oldParam1, param1));
190 }
191
192 /**
193 * <!-- begin-user-doc -->
194 * <!-- end-user-doc -->
195 * @generated
196 */
197 public TypeReference getParam2() {
198 if (param2 != null && param2.eIsProxy()) {
199 InternalEObject oldParam2 = (InternalEObject)param2;
200 param2 = (TypeReference)eResolveProxy(oldParam2);
201 if (param2 != oldParam2) {
202 if (eNotificationRequired())
203 eNotify(new ENotificationImpl(this, Notification.RESOLVE, PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__PARAM2, oldParam2, param2));
204 }
205 }
206 return param2;
207 }
208
209 /**
210 * <!-- begin-user-doc -->
211 * <!-- end-user-doc -->
212 * @generated
213 */
214 public TypeReference basicGetParam2() {
215 return param2;
216 }
217
218 /**
219 * <!-- begin-user-doc -->
220 * <!-- end-user-doc -->
221 * @generated
222 */
223 public void setParam2(TypeReference newParam2) {
224 TypeReference oldParam2 = param2;
225 param2 = newParam2;
226 if (eNotificationRequired())
227 eNotify(new ENotificationImpl(this, Notification.SET, PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__PARAM2, oldParam2, param2));
228 }
229
230 /**
231 * <!-- begin-user-doc -->
232 * <!-- end-user-doc -->
233 * @generated
234 */
235 @Override
236 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
237 switch (featureID) {
238 case PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__RELATIONLINKS:
239 return ((InternalEList<?>)getRelationlinks()).basicRemove(otherEnd, msgs);
240 }
241 return super.eInverseRemove(otherEnd, featureID, msgs);
242 }
243
244 /**
245 * <!-- begin-user-doc -->
246 * <!-- end-user-doc -->
247 * @generated
248 */
249 @Override
250 public Object eGet(int featureID, boolean resolve, boolean coreType) {
251 switch (featureID) {
252 case PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__INTERPRETATION_OF:
253 if (resolve) return getInterpretationOf();
254 return basicGetInterpretationOf();
255 case PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__RELATIONLINKS:
256 return getRelationlinks();
257 case PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__PARAM1:
258 if (resolve) return getParam1();
259 return basicGetParam1();
260 case PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__PARAM2:
261 if (resolve) return getParam2();
262 return basicGetParam2();
263 }
264 return super.eGet(featureID, resolve, coreType);
265 }
266
267 /**
268 * <!-- begin-user-doc -->
269 * <!-- end-user-doc -->
270 * @generated
271 */
272 @SuppressWarnings("unchecked")
273 @Override
274 public void eSet(int featureID, Object newValue) {
275 switch (featureID) {
276 case PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__INTERPRETATION_OF:
277 setInterpretationOf((RelationDeclaration)newValue);
278 return;
279 case PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__RELATIONLINKS:
280 getRelationlinks().clear();
281 getRelationlinks().addAll((Collection<? extends RelationLink>)newValue);
282 return;
283 case PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__PARAM1:
284 setParam1((TypeReference)newValue);
285 return;
286 case PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__PARAM2:
287 setParam2((TypeReference)newValue);
288 return;
289 }
290 super.eSet(featureID, newValue);
291 }
292
293 /**
294 * <!-- begin-user-doc -->
295 * <!-- end-user-doc -->
296 * @generated
297 */
298 @Override
299 public void eUnset(int featureID) {
300 switch (featureID) {
301 case PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__INTERPRETATION_OF:
302 setInterpretationOf((RelationDeclaration)null);
303 return;
304 case PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__RELATIONLINKS:
305 getRelationlinks().clear();
306 return;
307 case PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__PARAM1:
308 setParam1((TypeReference)null);
309 return;
310 case PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__PARAM2:
311 setParam2((TypeReference)null);
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 switch (featureID) {
325 case PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__INTERPRETATION_OF:
326 return interpretationOf != null;
327 case PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__RELATIONLINKS:
328 return relationlinks != null && !relationlinks.isEmpty();
329 case PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__PARAM1:
330 return param1 != null;
331 case PartialinterpretationPackage.PARTIAL_RELATION_INTERPRETATION__PARAM2:
332 return param2 != null;
333 }
334 return super.eIsSet(featureID);
335 }
336
337} //PartialRelationInterpretationImpl