diff options
author | 2019-02-05 23:54:03 +0100 | |
---|---|---|
committer | 2019-02-19 19:18:25 +0100 | |
commit | 7f7f934fe6ad11df96906d009eec68583fd46660 (patch) | |
tree | 17828b0e833bc89b2b796fcc7da6cb74d6ec3e9c /Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftModelImpl.java | |
parent | Generated files change (diff) | |
download | VIATRA-Generator-7f7f934fe6ad11df96906d009eec68583fd46660.tar.gz VIATRA-Generator-7f7f934fe6ad11df96906d009eec68583fd46660.tar.zst VIATRA-Generator-7f7f934fe6ad11df96906d009eec68583fd46660.zip |
[Stochastic] Fault tree transformation langauge
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftModelImpl.java')
-rw-r--r-- | Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftModelImpl.java | 324 |
1 files changed, 324 insertions, 0 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftModelImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftModelImpl.java new file mode 100644 index 00000000..b51f54ab --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftModelImpl.java | |||
@@ -0,0 +1,324 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | ||
11 | |||
12 | import java.util.Collection; | ||
13 | |||
14 | import org.eclipse.emf.common.notify.Notification; | ||
15 | import org.eclipse.emf.common.notify.NotificationChain; | ||
16 | |||
17 | import org.eclipse.emf.common.util.EList; | ||
18 | |||
19 | import org.eclipse.emf.ecore.EClass; | ||
20 | import org.eclipse.emf.ecore.InternalEObject; | ||
21 | |||
22 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
23 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
24 | |||
25 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
26 | import org.eclipse.emf.ecore.util.InternalEList; | ||
27 | |||
28 | /** | ||
29 | * <!-- begin-user-doc --> | ||
30 | * An implementation of the model object '<em><b>Cft Model</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.faulttree.components.cftLanguage.impl.CftModelImpl#getPackageName <em>Package Name</em>}</li> | ||
37 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl#getImports <em>Imports</em>}</li> | ||
38 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl#getComponentDefinitions <em>Component Definitions</em>}</li> | ||
39 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl#getTransformationDefinitions <em>Transformation Definitions</em>}</li> | ||
40 | * </ul> | ||
41 | * | ||
42 | * @generated | ||
43 | */ | ||
44 | public class CftModelImpl extends MinimalEObjectImpl.Container implements CftModel | ||
45 | { | ||
46 | /** | ||
47 | * The default value of the '{@link #getPackageName() <em>Package Name</em>}' attribute. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @see #getPackageName() | ||
51 | * @generated | ||
52 | * @ordered | ||
53 | */ | ||
54 | protected static final String PACKAGE_NAME_EDEFAULT = null; | ||
55 | |||
56 | /** | ||
57 | * The cached value of the '{@link #getPackageName() <em>Package Name</em>}' attribute. | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @see #getPackageName() | ||
61 | * @generated | ||
62 | * @ordered | ||
63 | */ | ||
64 | protected String packageName = PACKAGE_NAME_EDEFAULT; | ||
65 | |||
66 | /** | ||
67 | * The cached value of the '{@link #getImports() <em>Imports</em>}' containment reference list. | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @see #getImports() | ||
71 | * @generated | ||
72 | * @ordered | ||
73 | */ | ||
74 | protected EList<ImportDeclaration> imports; | ||
75 | |||
76 | /** | ||
77 | * The cached value of the '{@link #getComponentDefinitions() <em>Component Definitions</em>}' containment reference list. | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @see #getComponentDefinitions() | ||
81 | * @generated | ||
82 | * @ordered | ||
83 | */ | ||
84 | protected EList<ComponentDefinition> componentDefinitions; | ||
85 | |||
86 | /** | ||
87 | * The cached value of the '{@link #getTransformationDefinitions() <em>Transformation Definitions</em>}' containment reference list. | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @see #getTransformationDefinitions() | ||
91 | * @generated | ||
92 | * @ordered | ||
93 | */ | ||
94 | protected EList<TransformationDefinition> transformationDefinitions; | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | protected CftModelImpl() | ||
102 | { | ||
103 | super(); | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @Override | ||
112 | protected EClass eStaticClass() | ||
113 | { | ||
114 | return CftLanguagePackage.Literals.CFT_MODEL; | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @Override | ||
123 | public String getPackageName() | ||
124 | { | ||
125 | return packageName; | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | @Override | ||
134 | public void setPackageName(String newPackageName) | ||
135 | { | ||
136 | String oldPackageName = packageName; | ||
137 | packageName = newPackageName; | ||
138 | if (eNotificationRequired()) | ||
139 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.CFT_MODEL__PACKAGE_NAME, oldPackageName, packageName)); | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public EList<ImportDeclaration> getImports() | ||
149 | { | ||
150 | if (imports == null) | ||
151 | { | ||
152 | imports = new EObjectContainmentEList<ImportDeclaration>(ImportDeclaration.class, this, CftLanguagePackage.CFT_MODEL__IMPORTS); | ||
153 | } | ||
154 | return imports; | ||
155 | } | ||
156 | |||
157 | /** | ||
158 | * <!-- begin-user-doc --> | ||
159 | * <!-- end-user-doc --> | ||
160 | * @generated | ||
161 | */ | ||
162 | @Override | ||
163 | public EList<ComponentDefinition> getComponentDefinitions() | ||
164 | { | ||
165 | if (componentDefinitions == null) | ||
166 | { | ||
167 | componentDefinitions = new EObjectContainmentEList<ComponentDefinition>(ComponentDefinition.class, this, CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS); | ||
168 | } | ||
169 | return componentDefinitions; | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | @Override | ||
178 | public EList<TransformationDefinition> getTransformationDefinitions() | ||
179 | { | ||
180 | if (transformationDefinitions == null) | ||
181 | { | ||
182 | transformationDefinitions = new EObjectContainmentEList<TransformationDefinition>(TransformationDefinition.class, this, CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS); | ||
183 | } | ||
184 | return transformationDefinitions; | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
194 | { | ||
195 | switch (featureID) | ||
196 | { | ||
197 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
198 | return ((InternalEList<?>)getImports()).basicRemove(otherEnd, msgs); | ||
199 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
200 | return ((InternalEList<?>)getComponentDefinitions()).basicRemove(otherEnd, msgs); | ||
201 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
202 | return ((InternalEList<?>)getTransformationDefinitions()).basicRemove(otherEnd, msgs); | ||
203 | } | ||
204 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
214 | { | ||
215 | switch (featureID) | ||
216 | { | ||
217 | case CftLanguagePackage.CFT_MODEL__PACKAGE_NAME: | ||
218 | return getPackageName(); | ||
219 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
220 | return getImports(); | ||
221 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
222 | return getComponentDefinitions(); | ||
223 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
224 | return getTransformationDefinitions(); | ||
225 | } | ||
226 | return super.eGet(featureID, resolve, coreType); | ||
227 | } | ||
228 | |||
229 | /** | ||
230 | * <!-- begin-user-doc --> | ||
231 | * <!-- end-user-doc --> | ||
232 | * @generated | ||
233 | */ | ||
234 | @SuppressWarnings("unchecked") | ||
235 | @Override | ||
236 | public void eSet(int featureID, Object newValue) | ||
237 | { | ||
238 | switch (featureID) | ||
239 | { | ||
240 | case CftLanguagePackage.CFT_MODEL__PACKAGE_NAME: | ||
241 | setPackageName((String)newValue); | ||
242 | return; | ||
243 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
244 | getImports().clear(); | ||
245 | getImports().addAll((Collection<? extends ImportDeclaration>)newValue); | ||
246 | return; | ||
247 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
248 | getComponentDefinitions().clear(); | ||
249 | getComponentDefinitions().addAll((Collection<? extends ComponentDefinition>)newValue); | ||
250 | return; | ||
251 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
252 | getTransformationDefinitions().clear(); | ||
253 | getTransformationDefinitions().addAll((Collection<? extends TransformationDefinition>)newValue); | ||
254 | return; | ||
255 | } | ||
256 | super.eSet(featureID, newValue); | ||
257 | } | ||
258 | |||
259 | /** | ||
260 | * <!-- begin-user-doc --> | ||
261 | * <!-- end-user-doc --> | ||
262 | * @generated | ||
263 | */ | ||
264 | @Override | ||
265 | public void eUnset(int featureID) | ||
266 | { | ||
267 | switch (featureID) | ||
268 | { | ||
269 | case CftLanguagePackage.CFT_MODEL__PACKAGE_NAME: | ||
270 | setPackageName(PACKAGE_NAME_EDEFAULT); | ||
271 | return; | ||
272 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
273 | getImports().clear(); | ||
274 | return; | ||
275 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
276 | getComponentDefinitions().clear(); | ||
277 | return; | ||
278 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
279 | getTransformationDefinitions().clear(); | ||
280 | return; | ||
281 | } | ||
282 | super.eUnset(featureID); | ||
283 | } | ||
284 | |||
285 | /** | ||
286 | * <!-- begin-user-doc --> | ||
287 | * <!-- end-user-doc --> | ||
288 | * @generated | ||
289 | */ | ||
290 | @Override | ||
291 | public boolean eIsSet(int featureID) | ||
292 | { | ||
293 | switch (featureID) | ||
294 | { | ||
295 | case CftLanguagePackage.CFT_MODEL__PACKAGE_NAME: | ||
296 | return PACKAGE_NAME_EDEFAULT == null ? packageName != null : !PACKAGE_NAME_EDEFAULT.equals(packageName); | ||
297 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
298 | return imports != null && !imports.isEmpty(); | ||
299 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
300 | return componentDefinitions != null && !componentDefinitions.isEmpty(); | ||
301 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
302 | return transformationDefinitions != null && !transformationDefinitions.isEmpty(); | ||
303 | } | ||
304 | return super.eIsSet(featureID); | ||
305 | } | ||
306 | |||
307 | /** | ||
308 | * <!-- begin-user-doc --> | ||
309 | * <!-- end-user-doc --> | ||
310 | * @generated | ||
311 | */ | ||
312 | @Override | ||
313 | public String toString() | ||
314 | { | ||
315 | if (eIsProxy()) return super.toString(); | ||
316 | |||
317 | StringBuilder result = new StringBuilder(super.toString()); | ||
318 | result.append(" (packageName: "); | ||
319 | result.append(packageName); | ||
320 | result.append(')'); | ||
321 | return result.toString(); | ||
322 | } | ||
323 | |||
324 | } //CftModelImpl | ||