diff options
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelElementImpl.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelElementImpl.java | 239 |
1 files changed, 239 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelElementImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelElementImpl.java new file mode 100644 index 00000000..9daa07d6 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelElementImpl.java | |||
@@ -0,0 +1,239 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | import org.eclipse.emf.ecore.EClassifier; | ||
13 | import org.eclipse.emf.ecore.ENamedElement; | ||
14 | import org.eclipse.emf.ecore.InternalEObject; | ||
15 | |||
16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Metamodel Element</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelElementImpl#getClassifier <em>Classifier</em>}</li> | ||
27 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelElementImpl#getFeature <em>Feature</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class MetamodelElementImpl extends MetamodelEntryImpl implements MetamodelElement | ||
33 | { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getClassifier() <em>Classifier</em>}' reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getClassifier() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected EClassifier classifier; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getFeature() <em>Feature</em>}' reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getFeature() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected ENamedElement feature; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected MetamodelElementImpl() | ||
60 | { | ||
61 | super(); | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | protected EClass eStaticClass() | ||
71 | { | ||
72 | return ApplicationConfigurationPackage.Literals.METAMODEL_ELEMENT; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public EClassifier getClassifier() | ||
81 | { | ||
82 | if (classifier != null && classifier.eIsProxy()) | ||
83 | { | ||
84 | InternalEObject oldClassifier = (InternalEObject)classifier; | ||
85 | classifier = (EClassifier)eResolveProxy(oldClassifier); | ||
86 | if (classifier != oldClassifier) | ||
87 | { | ||
88 | if (eNotificationRequired()) | ||
89 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER, oldClassifier, classifier)); | ||
90 | } | ||
91 | } | ||
92 | return classifier; | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | public EClassifier basicGetClassifier() | ||
101 | { | ||
102 | return classifier; | ||
103 | } | ||
104 | |||
105 | /** | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @generated | ||
109 | */ | ||
110 | public void setClassifier(EClassifier newClassifier) | ||
111 | { | ||
112 | EClassifier oldClassifier = classifier; | ||
113 | classifier = newClassifier; | ||
114 | if (eNotificationRequired()) | ||
115 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER, oldClassifier, classifier)); | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | public ENamedElement getFeature() | ||
124 | { | ||
125 | if (feature != null && feature.eIsProxy()) | ||
126 | { | ||
127 | InternalEObject oldFeature = (InternalEObject)feature; | ||
128 | feature = (ENamedElement)eResolveProxy(oldFeature); | ||
129 | if (feature != oldFeature) | ||
130 | { | ||
131 | if (eNotificationRequired()) | ||
132 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE, oldFeature, feature)); | ||
133 | } | ||
134 | } | ||
135 | return feature; | ||
136 | } | ||
137 | |||
138 | /** | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @generated | ||
142 | */ | ||
143 | public ENamedElement basicGetFeature() | ||
144 | { | ||
145 | return feature; | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | public void setFeature(ENamedElement newFeature) | ||
154 | { | ||
155 | ENamedElement oldFeature = feature; | ||
156 | feature = newFeature; | ||
157 | if (eNotificationRequired()) | ||
158 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE, oldFeature, feature)); | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | @Override | ||
167 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
168 | { | ||
169 | switch (featureID) | ||
170 | { | ||
171 | case ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER: | ||
172 | if (resolve) return getClassifier(); | ||
173 | return basicGetClassifier(); | ||
174 | case ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE: | ||
175 | if (resolve) return getFeature(); | ||
176 | return basicGetFeature(); | ||
177 | } | ||
178 | return super.eGet(featureID, resolve, coreType); | ||
179 | } | ||
180 | |||
181 | /** | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | */ | ||
186 | @Override | ||
187 | public void eSet(int featureID, Object newValue) | ||
188 | { | ||
189 | switch (featureID) | ||
190 | { | ||
191 | case ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER: | ||
192 | setClassifier((EClassifier)newValue); | ||
193 | return; | ||
194 | case ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE: | ||
195 | setFeature((ENamedElement)newValue); | ||
196 | return; | ||
197 | } | ||
198 | super.eSet(featureID, newValue); | ||
199 | } | ||
200 | |||
201 | /** | ||
202 | * <!-- begin-user-doc --> | ||
203 | * <!-- end-user-doc --> | ||
204 | * @generated | ||
205 | */ | ||
206 | @Override | ||
207 | public void eUnset(int featureID) | ||
208 | { | ||
209 | switch (featureID) | ||
210 | { | ||
211 | case ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER: | ||
212 | setClassifier((EClassifier)null); | ||
213 | return; | ||
214 | case ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE: | ||
215 | setFeature((ENamedElement)null); | ||
216 | return; | ||
217 | } | ||
218 | super.eUnset(featureID); | ||
219 | } | ||
220 | |||
221 | /** | ||
222 | * <!-- begin-user-doc --> | ||
223 | * <!-- end-user-doc --> | ||
224 | * @generated | ||
225 | */ | ||
226 | @Override | ||
227 | public boolean eIsSet(int featureID) | ||
228 | { | ||
229 | switch (featureID) | ||
230 | { | ||
231 | case ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER: | ||
232 | return classifier != null; | ||
233 | case ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE: | ||
234 | return feature != null; | ||
235 | } | ||
236 | return super.eIsSet(featureID); | ||
237 | } | ||
238 | |||
239 | } //MetamodelElementImpl | ||