diff options
Diffstat (limited to 'Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/PartialTypeInterpratationImpl.java')
1 files changed, 1 insertions, 102 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/PartialTypeInterpratationImpl.java b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/PartialTypeInterpratationImpl.java index 1090aaf7..beb45529 100644 --- a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/PartialTypeInterpratationImpl.java +++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/PartialTypeInterpratationImpl.java | |||
@@ -3,19 +3,12 @@ | |||
3 | package hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl; | 3 | package hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl; |
4 | 4 | ||
5 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.DefinedElement; | 5 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.DefinedElement; |
6 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.TypeDeclaration; | ||
7 | |||
8 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PartialTypeInterpratation; | 6 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PartialTypeInterpratation; |
9 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PartialinterpretationPackage; | 7 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PartialinterpretationPackage; |
10 | 8 | ||
11 | import java.util.Collection; | 9 | import java.util.Collection; |
12 | import org.eclipse.emf.common.notify.Notification; | ||
13 | |||
14 | import org.eclipse.emf.common.util.EList; | 10 | import org.eclipse.emf.common.util.EList; |
15 | import org.eclipse.emf.ecore.EClass; | 11 | import org.eclipse.emf.ecore.EClass; |
16 | import org.eclipse.emf.ecore.InternalEObject; | ||
17 | |||
18 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
19 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | 12 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; |
20 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | 13 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; |
21 | 14 | ||
@@ -27,24 +20,12 @@ import org.eclipse.emf.ecore.util.EObjectResolvingEList; | |||
27 | * The following features are implemented: | 20 | * The following features are implemented: |
28 | * </p> | 21 | * </p> |
29 | * <ul> | 22 | * <ul> |
30 | * <li>{@link hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl.PartialTypeInterpratationImpl#getInterpretationOf <em>Interpretation Of</em>}</li> | ||
31 | * <li>{@link hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl.PartialTypeInterpratationImpl#getElements <em>Elements</em>}</li> | 23 | * <li>{@link hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl.PartialTypeInterpratationImpl#getElements <em>Elements</em>}</li> |
32 | * <li>{@link hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl.PartialTypeInterpratationImpl#getSupertypeInterpretation <em>Supertype Interpretation</em>}</li> | ||
33 | * </ul> | 24 | * </ul> |
34 | * | 25 | * |
35 | * @generated | 26 | * @generated |
36 | */ | 27 | */ |
37 | public class PartialTypeInterpratationImpl extends MinimalEObjectImpl.Container implements PartialTypeInterpratation { | 28 | public abstract class PartialTypeInterpratationImpl extends MinimalEObjectImpl.Container implements PartialTypeInterpratation { |
38 | /** | ||
39 | * The cached value of the '{@link #getInterpretationOf() <em>Interpretation Of</em>}' reference. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #getInterpretationOf() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected TypeDeclaration interpretationOf; | ||
47 | |||
48 | /** | 29 | /** |
49 | * The cached value of the '{@link #getElements() <em>Elements</em>}' reference list. | 30 | * The cached value of the '{@link #getElements() <em>Elements</em>}' reference list. |
50 | * <!-- begin-user-doc --> | 31 | * <!-- begin-user-doc --> |
@@ -56,16 +37,6 @@ public class PartialTypeInterpratationImpl extends MinimalEObjectImpl.Container | |||
56 | protected EList<DefinedElement> elements; | 37 | protected EList<DefinedElement> elements; |
57 | 38 | ||
58 | /** | 39 | /** |
59 | * The cached value of the '{@link #getSupertypeInterpretation() <em>Supertype Interpretation</em>}' reference list. | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @see #getSupertypeInterpretation() | ||
63 | * @generated | ||
64 | * @ordered | ||
65 | */ | ||
66 | protected EList<PartialTypeInterpratation> supertypeInterpretation; | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | 40 | * <!-- begin-user-doc --> |
70 | * <!-- end-user-doc --> | 41 | * <!-- end-user-doc --> |
71 | * @generated | 42 | * @generated |
@@ -89,44 +60,6 @@ public class PartialTypeInterpratationImpl extends MinimalEObjectImpl.Container | |||
89 | * <!-- end-user-doc --> | 60 | * <!-- end-user-doc --> |
90 | * @generated | 61 | * @generated |
91 | */ | 62 | */ |
92 | public TypeDeclaration getInterpretationOf() { | ||
93 | if (interpretationOf != null && interpretationOf.eIsProxy()) { | ||
94 | InternalEObject oldInterpretationOf = (InternalEObject)interpretationOf; | ||
95 | interpretationOf = (TypeDeclaration)eResolveProxy(oldInterpretationOf); | ||
96 | if (interpretationOf != oldInterpretationOf) { | ||
97 | if (eNotificationRequired()) | ||
98 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__INTERPRETATION_OF, oldInterpretationOf, interpretationOf)); | ||
99 | } | ||
100 | } | ||
101 | return interpretationOf; | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | public TypeDeclaration basicGetInterpretationOf() { | ||
110 | return interpretationOf; | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | public void setInterpretationOf(TypeDeclaration newInterpretationOf) { | ||
119 | TypeDeclaration oldInterpretationOf = interpretationOf; | ||
120 | interpretationOf = newInterpretationOf; | ||
121 | if (eNotificationRequired()) | ||
122 | eNotify(new ENotificationImpl(this, Notification.SET, PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__INTERPRETATION_OF, oldInterpretationOf, interpretationOf)); | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | public EList<DefinedElement> getElements() { | 63 | public EList<DefinedElement> getElements() { |
131 | if (elements == null) { | 64 | if (elements == null) { |
132 | elements = new EObjectResolvingEList<DefinedElement>(DefinedElement.class, this, PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__ELEMENTS); | 65 | elements = new EObjectResolvingEList<DefinedElement>(DefinedElement.class, this, PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__ELEMENTS); |
@@ -139,28 +72,11 @@ public class PartialTypeInterpratationImpl extends MinimalEObjectImpl.Container | |||
139 | * <!-- end-user-doc --> | 72 | * <!-- end-user-doc --> |
140 | * @generated | 73 | * @generated |
141 | */ | 74 | */ |
142 | public EList<PartialTypeInterpratation> getSupertypeInterpretation() { | ||
143 | if (supertypeInterpretation == null) { | ||
144 | supertypeInterpretation = new EObjectResolvingEList<PartialTypeInterpratation>(PartialTypeInterpratation.class, this, PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__SUPERTYPE_INTERPRETATION); | ||
145 | } | ||
146 | return supertypeInterpretation; | ||
147 | } | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | @Override | 75 | @Override |
155 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 76 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
156 | switch (featureID) { | 77 | switch (featureID) { |
157 | case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__INTERPRETATION_OF: | ||
158 | if (resolve) return getInterpretationOf(); | ||
159 | return basicGetInterpretationOf(); | ||
160 | case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__ELEMENTS: | 78 | case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__ELEMENTS: |
161 | return getElements(); | 79 | return getElements(); |
162 | case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__SUPERTYPE_INTERPRETATION: | ||
163 | return getSupertypeInterpretation(); | ||
164 | } | 80 | } |
165 | return super.eGet(featureID, resolve, coreType); | 81 | return super.eGet(featureID, resolve, coreType); |
166 | } | 82 | } |
@@ -174,17 +90,10 @@ public class PartialTypeInterpratationImpl extends MinimalEObjectImpl.Container | |||
174 | @Override | 90 | @Override |
175 | public void eSet(int featureID, Object newValue) { | 91 | public void eSet(int featureID, Object newValue) { |
176 | switch (featureID) { | 92 | switch (featureID) { |
177 | case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__INTERPRETATION_OF: | ||
178 | setInterpretationOf((TypeDeclaration)newValue); | ||
179 | return; | ||
180 | case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__ELEMENTS: | 93 | case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__ELEMENTS: |
181 | getElements().clear(); | 94 | getElements().clear(); |
182 | getElements().addAll((Collection<? extends DefinedElement>)newValue); | 95 | getElements().addAll((Collection<? extends DefinedElement>)newValue); |
183 | return; | 96 | return; |
184 | case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__SUPERTYPE_INTERPRETATION: | ||
185 | getSupertypeInterpretation().clear(); | ||
186 | getSupertypeInterpretation().addAll((Collection<? extends PartialTypeInterpratation>)newValue); | ||
187 | return; | ||
188 | } | 97 | } |
189 | super.eSet(featureID, newValue); | 98 | super.eSet(featureID, newValue); |
190 | } | 99 | } |
@@ -197,15 +106,9 @@ public class PartialTypeInterpratationImpl extends MinimalEObjectImpl.Container | |||
197 | @Override | 106 | @Override |
198 | public void eUnset(int featureID) { | 107 | public void eUnset(int featureID) { |
199 | switch (featureID) { | 108 | switch (featureID) { |
200 | case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__INTERPRETATION_OF: | ||
201 | setInterpretationOf((TypeDeclaration)null); | ||
202 | return; | ||
203 | case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__ELEMENTS: | 109 | case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__ELEMENTS: |
204 | getElements().clear(); | 110 | getElements().clear(); |
205 | return; | 111 | return; |
206 | case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__SUPERTYPE_INTERPRETATION: | ||
207 | getSupertypeInterpretation().clear(); | ||
208 | return; | ||
209 | } | 112 | } |
210 | super.eUnset(featureID); | 113 | super.eUnset(featureID); |
211 | } | 114 | } |
@@ -218,12 +121,8 @@ public class PartialTypeInterpratationImpl extends MinimalEObjectImpl.Container | |||
218 | @Override | 121 | @Override |
219 | public boolean eIsSet(int featureID) { | 122 | public boolean eIsSet(int featureID) { |
220 | switch (featureID) { | 123 | switch (featureID) { |
221 | case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__INTERPRETATION_OF: | ||
222 | return interpretationOf != null; | ||
223 | case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__ELEMENTS: | 124 | case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__ELEMENTS: |
224 | return elements != null && !elements.isEmpty(); | 125 | return elements != null && !elements.isEmpty(); |
225 | case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__SUPERTYPE_INTERPRETATION: | ||
226 | return supertypeInterpretation != null && !supertypeInterpretation.isEmpty(); | ||
227 | } | 126 | } |
228 | return super.eIsSet(featureID); | 127 | return super.eIsSet(featureID); |
229 | } | 128 | } |