aboutsummaryrefslogtreecommitdiffstats
path: root/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/PartialTypeInterpratationImpl.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/PartialTypeInterpratationImpl.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/PartialTypeInterpratationImpl.java231
1 files changed, 231 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/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
new file mode 100644
index 00000000..1090aaf7
--- /dev/null
+++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partialinterpretation/impl/PartialTypeInterpratationImpl.java
@@ -0,0 +1,231 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl;
4
5import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.DefinedElement;
6import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.TypeDeclaration;
7
8import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PartialTypeInterpratation;
9import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PartialinterpretationPackage;
10
11import java.util.Collection;
12import org.eclipse.emf.common.notify.Notification;
13
14import org.eclipse.emf.common.util.EList;
15import org.eclipse.emf.ecore.EClass;
16import org.eclipse.emf.ecore.InternalEObject;
17
18import org.eclipse.emf.ecore.impl.ENotificationImpl;
19import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
20import org.eclipse.emf.ecore.util.EObjectResolvingEList;
21
22/**
23 * <!-- begin-user-doc -->
24 * An implementation of the model object '<em><b>Partial Type Interpratation</b></em>'.
25 * <!-- end-user-doc -->
26 * <p>
27 * The following features are implemented:
28 * </p>
29 * <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>
32 * <li>{@link hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.impl.PartialTypeInterpratationImpl#getSupertypeInterpretation <em>Supertype Interpretation</em>}</li>
33 * </ul>
34 *
35 * @generated
36 */
37public 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 /**
49 * The cached value of the '{@link #getElements() <em>Elements</em>}' reference list.
50 * <!-- begin-user-doc -->
51 * <!-- end-user-doc -->
52 * @see #getElements()
53 * @generated
54 * @ordered
55 */
56 protected EList<DefinedElement> elements;
57
58 /**
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 -->
70 * <!-- end-user-doc -->
71 * @generated
72 */
73 protected PartialTypeInterpratationImpl() {
74 super();
75 }
76
77 /**
78 * <!-- begin-user-doc -->
79 * <!-- end-user-doc -->
80 * @generated
81 */
82 @Override
83 protected EClass eStaticClass() {
84 return PartialinterpretationPackage.Literals.PARTIAL_TYPE_INTERPRATATION;
85 }
86
87 /**
88 * <!-- begin-user-doc -->
89 * <!-- end-user-doc -->
90 * @generated
91 */
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() {
131 if (elements == null) {
132 elements = new EObjectResolvingEList<DefinedElement>(DefinedElement.class, this, PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__ELEMENTS);
133 }
134 return elements;
135 }
136
137 /**
138 * <!-- begin-user-doc -->
139 * <!-- end-user-doc -->
140 * @generated
141 */
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
155 public Object eGet(int featureID, boolean resolve, boolean coreType) {
156 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:
161 return getElements();
162 case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__SUPERTYPE_INTERPRETATION:
163 return getSupertypeInterpretation();
164 }
165 return super.eGet(featureID, resolve, coreType);
166 }
167
168 /**
169 * <!-- begin-user-doc -->
170 * <!-- end-user-doc -->
171 * @generated
172 */
173 @SuppressWarnings("unchecked")
174 @Override
175 public void eSet(int featureID, Object newValue) {
176 switch (featureID) {
177 case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__INTERPRETATION_OF:
178 setInterpretationOf((TypeDeclaration)newValue);
179 return;
180 case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__ELEMENTS:
181 getElements().clear();
182 getElements().addAll((Collection<? extends DefinedElement>)newValue);
183 return;
184 case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__SUPERTYPE_INTERPRETATION:
185 getSupertypeInterpretation().clear();
186 getSupertypeInterpretation().addAll((Collection<? extends PartialTypeInterpratation>)newValue);
187 return;
188 }
189 super.eSet(featureID, newValue);
190 }
191
192 /**
193 * <!-- begin-user-doc -->
194 * <!-- end-user-doc -->
195 * @generated
196 */
197 @Override
198 public void eUnset(int featureID) {
199 switch (featureID) {
200 case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__INTERPRETATION_OF:
201 setInterpretationOf((TypeDeclaration)null);
202 return;
203 case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__ELEMENTS:
204 getElements().clear();
205 return;
206 case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__SUPERTYPE_INTERPRETATION:
207 getSupertypeInterpretation().clear();
208 return;
209 }
210 super.eUnset(featureID);
211 }
212
213 /**
214 * <!-- begin-user-doc -->
215 * <!-- end-user-doc -->
216 * @generated
217 */
218 @Override
219 public boolean eIsSet(int featureID) {
220 switch (featureID) {
221 case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__INTERPRETATION_OF:
222 return interpretationOf != null;
223 case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__ELEMENTS:
224 return elements != null && !elements.isEmpty();
225 case PartialinterpretationPackage.PARTIAL_TYPE_INTERPRATATION__SUPERTYPE_INTERPRETATION:
226 return supertypeInterpretation != null && !supertypeInterpretation.isEmpty();
227 }
228 return super.eIsSet(featureID);
229 }
230
231} //PartialTypeInterpratationImpl