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