diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentDefinitionImpl.java')
-rw-r--r-- | Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentDefinitionImpl.java | 323 |
1 files changed, 0 insertions, 323 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentDefinitionImpl.java deleted file mode 100644 index 4633d839..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentDefinitionImpl.java +++ /dev/null | |||
@@ -1,323 +0,0 @@ | |||
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.ComponentDefinition; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent; | ||
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.EObjectResolvingEList; | ||
27 | import org.eclipse.emf.ecore.util.InternalEList; | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * An implementation of the model object '<em><b>Component Definition</b></em>'. | ||
32 | * <!-- end-user-doc --> | ||
33 | * <p> | ||
34 | * The following features are implemented: | ||
35 | * </p> | ||
36 | * <ul> | ||
37 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl#getName <em>Name</em>}</li> | ||
38 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl#getInputEvents <em>Input Events</em>}</li> | ||
39 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl#getOutputEvents <em>Output Events</em>}</li> | ||
40 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl#getEventDefinitions <em>Event Definitions</em>}</li> | ||
41 | * </ul> | ||
42 | * | ||
43 | * @generated | ||
44 | */ | ||
45 | public class ComponentDefinitionImpl extends MinimalEObjectImpl.Container implements ComponentDefinition | ||
46 | { | ||
47 | /** | ||
48 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #getName() | ||
52 | * @generated | ||
53 | * @ordered | ||
54 | */ | ||
55 | protected static final String NAME_EDEFAULT = null; | ||
56 | |||
57 | /** | ||
58 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @see #getName() | ||
62 | * @generated | ||
63 | * @ordered | ||
64 | */ | ||
65 | protected String name = NAME_EDEFAULT; | ||
66 | |||
67 | /** | ||
68 | * The cached value of the '{@link #getInputEvents() <em>Input Events</em>}' containment reference list. | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @see #getInputEvents() | ||
72 | * @generated | ||
73 | * @ordered | ||
74 | */ | ||
75 | protected EList<InputEvent> inputEvents; | ||
76 | |||
77 | /** | ||
78 | * The cached value of the '{@link #getOutputEvents() <em>Output Events</em>}' reference list. | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @see #getOutputEvents() | ||
82 | * @generated | ||
83 | * @ordered | ||
84 | */ | ||
85 | protected EList<EventDeclaration> outputEvents; | ||
86 | |||
87 | /** | ||
88 | * The cached value of the '{@link #getEventDefinitions() <em>Event Definitions</em>}' containment reference list. | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @see #getEventDefinitions() | ||
92 | * @generated | ||
93 | * @ordered | ||
94 | */ | ||
95 | protected EList<EventDefinition> eventDefinitions; | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | protected ComponentDefinitionImpl() | ||
103 | { | ||
104 | super(); | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | @Override | ||
113 | protected EClass eStaticClass() | ||
114 | { | ||
115 | return CftLanguagePackage.Literals.COMPONENT_DEFINITION; | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public String getName() | ||
125 | { | ||
126 | return name; | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void setName(String newName) | ||
136 | { | ||
137 | String oldName = name; | ||
138 | name = newName; | ||
139 | if (eNotificationRequired()) | ||
140 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.COMPONENT_DEFINITION__NAME, oldName, name)); | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @Override | ||
149 | public EList<InputEvent> getInputEvents() | ||
150 | { | ||
151 | if (inputEvents == null) | ||
152 | { | ||
153 | inputEvents = new EObjectContainmentEList<InputEvent>(InputEvent.class, this, CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS); | ||
154 | } | ||
155 | return inputEvents; | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @generated | ||
162 | */ | ||
163 | @Override | ||
164 | public EList<EventDeclaration> getOutputEvents() | ||
165 | { | ||
166 | if (outputEvents == null) | ||
167 | { | ||
168 | outputEvents = new EObjectResolvingEList<EventDeclaration>(EventDeclaration.class, this, CftLanguagePackage.COMPONENT_DEFINITION__OUTPUT_EVENTS); | ||
169 | } | ||
170 | return outputEvents; | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @generated | ||
177 | */ | ||
178 | @Override | ||
179 | public EList<EventDefinition> getEventDefinitions() | ||
180 | { | ||
181 | if (eventDefinitions == null) | ||
182 | { | ||
183 | eventDefinitions = new EObjectContainmentEList<EventDefinition>(EventDefinition.class, this, CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS); | ||
184 | } | ||
185 | return eventDefinitions; | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * <!-- begin-user-doc --> | ||
190 | * <!-- end-user-doc --> | ||
191 | * @generated | ||
192 | */ | ||
193 | @Override | ||
194 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
195 | { | ||
196 | switch (featureID) | ||
197 | { | ||
198 | case CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
199 | return ((InternalEList<?>)getInputEvents()).basicRemove(otherEnd, msgs); | ||
200 | case CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
201 | return ((InternalEList<?>)getEventDefinitions()).basicRemove(otherEnd, msgs); | ||
202 | } | ||
203 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
213 | { | ||
214 | switch (featureID) | ||
215 | { | ||
216 | case CftLanguagePackage.COMPONENT_DEFINITION__NAME: | ||
217 | return getName(); | ||
218 | case CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
219 | return getInputEvents(); | ||
220 | case CftLanguagePackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
221 | return getOutputEvents(); | ||
222 | case CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
223 | return getEventDefinitions(); | ||
224 | } | ||
225 | return super.eGet(featureID, resolve, coreType); | ||
226 | } | ||
227 | |||
228 | /** | ||
229 | * <!-- begin-user-doc --> | ||
230 | * <!-- end-user-doc --> | ||
231 | * @generated | ||
232 | */ | ||
233 | @SuppressWarnings("unchecked") | ||
234 | @Override | ||
235 | public void eSet(int featureID, Object newValue) | ||
236 | { | ||
237 | switch (featureID) | ||
238 | { | ||
239 | case CftLanguagePackage.COMPONENT_DEFINITION__NAME: | ||
240 | setName((String)newValue); | ||
241 | return; | ||
242 | case CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
243 | getInputEvents().clear(); | ||
244 | getInputEvents().addAll((Collection<? extends InputEvent>)newValue); | ||
245 | return; | ||
246 | case CftLanguagePackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
247 | getOutputEvents().clear(); | ||
248 | getOutputEvents().addAll((Collection<? extends EventDeclaration>)newValue); | ||
249 | return; | ||
250 | case CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
251 | getEventDefinitions().clear(); | ||
252 | getEventDefinitions().addAll((Collection<? extends EventDefinition>)newValue); | ||
253 | return; | ||
254 | } | ||
255 | super.eSet(featureID, newValue); | ||
256 | } | ||
257 | |||
258 | /** | ||
259 | * <!-- begin-user-doc --> | ||
260 | * <!-- end-user-doc --> | ||
261 | * @generated | ||
262 | */ | ||
263 | @Override | ||
264 | public void eUnset(int featureID) | ||
265 | { | ||
266 | switch (featureID) | ||
267 | { | ||
268 | case CftLanguagePackage.COMPONENT_DEFINITION__NAME: | ||
269 | setName(NAME_EDEFAULT); | ||
270 | return; | ||
271 | case CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
272 | getInputEvents().clear(); | ||
273 | return; | ||
274 | case CftLanguagePackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
275 | getOutputEvents().clear(); | ||
276 | return; | ||
277 | case CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
278 | getEventDefinitions().clear(); | ||
279 | return; | ||
280 | } | ||
281 | super.eUnset(featureID); | ||
282 | } | ||
283 | |||
284 | /** | ||
285 | * <!-- begin-user-doc --> | ||
286 | * <!-- end-user-doc --> | ||
287 | * @generated | ||
288 | */ | ||
289 | @Override | ||
290 | public boolean eIsSet(int featureID) | ||
291 | { | ||
292 | switch (featureID) | ||
293 | { | ||
294 | case CftLanguagePackage.COMPONENT_DEFINITION__NAME: | ||
295 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
296 | case CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
297 | return inputEvents != null && !inputEvents.isEmpty(); | ||
298 | case CftLanguagePackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
299 | return outputEvents != null && !outputEvents.isEmpty(); | ||
300 | case CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
301 | return eventDefinitions != null && !eventDefinitions.isEmpty(); | ||
302 | } | ||
303 | return super.eIsSet(featureID); | ||
304 | } | ||
305 | |||
306 | /** | ||
307 | * <!-- begin-user-doc --> | ||
308 | * <!-- end-user-doc --> | ||
309 | * @generated | ||
310 | */ | ||
311 | @Override | ||
312 | public String toString() | ||
313 | { | ||
314 | if (eIsProxy()) return super.toString(); | ||
315 | |||
316 | StringBuilder result = new StringBuilder(super.toString()); | ||
317 | result.append(" (name: "); | ||
318 | result.append(name); | ||
319 | result.append(')'); | ||
320 | return result.toString(); | ||
321 | } | ||
322 | |||
323 | } //ComponentDefinitionImpl | ||