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