diff options
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.transima.fam/ecore-gen/hu/bme/mit/inf/dslreasomer/domains/transima/fam/FunctionalArchitecture/impl/FunctionalDataImpl.java')
-rw-r--r-- | Domains/hu.bme.mit.inf.dslreasoner.domains.transima.fam/ecore-gen/hu/bme/mit/inf/dslreasomer/domains/transima/fam/FunctionalArchitecture/impl/FunctionalDataImpl.java | 275 |
1 files changed, 275 insertions, 0 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.transima.fam/ecore-gen/hu/bme/mit/inf/dslreasomer/domains/transima/fam/FunctionalArchitecture/impl/FunctionalDataImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.transima.fam/ecore-gen/hu/bme/mit/inf/dslreasomer/domains/transima/fam/FunctionalArchitecture/impl/FunctionalDataImpl.java new file mode 100644 index 00000000..8c04ed53 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.transima.fam/ecore-gen/hu/bme/mit/inf/dslreasomer/domains/transima/fam/FunctionalArchitecture/impl/FunctionalDataImpl.java | |||
@@ -0,0 +1,275 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasomer.domains.transima.fam.FunctionalArchitecture.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasomer.domains.transima.fam.FunctionalArchitecture.FAMTerminator; | ||
6 | import hu.bme.mit.inf.dslreasomer.domains.transima.fam.FunctionalArchitecture.FunctionalArchitecturePackage; | ||
7 | import hu.bme.mit.inf.dslreasomer.domains.transima.fam.FunctionalArchitecture.FunctionalData; | ||
8 | import hu.bme.mit.inf.dslreasomer.domains.transima.fam.FunctionalArchitecture.FunctionalInterface; | ||
9 | |||
10 | import java.util.Collection; | ||
11 | |||
12 | import org.eclipse.emf.common.notify.Notification; | ||
13 | import org.eclipse.emf.common.notify.NotificationChain; | ||
14 | |||
15 | import org.eclipse.emf.common.util.EList; | ||
16 | |||
17 | import org.eclipse.emf.ecore.EClass; | ||
18 | import org.eclipse.emf.ecore.InternalEObject; | ||
19 | |||
20 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
21 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
22 | |||
23 | import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; | ||
24 | import org.eclipse.emf.ecore.util.EcoreUtil; | ||
25 | import org.eclipse.emf.ecore.util.InternalEList; | ||
26 | |||
27 | /** | ||
28 | * <!-- begin-user-doc --> | ||
29 | * An implementation of the model object '<em><b>Functional Data</b></em>'. | ||
30 | * <!-- end-user-doc --> | ||
31 | * <p> | ||
32 | * The following features are implemented: | ||
33 | * </p> | ||
34 | * <ul> | ||
35 | * <li>{@link hu.bme.mit.inf.dslreasomer.domains.transima.fam.FunctionalArchitecture.impl.FunctionalDataImpl#getTerminator <em>Terminator</em>}</li> | ||
36 | * <li>{@link hu.bme.mit.inf.dslreasomer.domains.transima.fam.FunctionalArchitecture.impl.FunctionalDataImpl#getInterface <em>Interface</em>}</li> | ||
37 | * </ul> | ||
38 | * | ||
39 | * @generated | ||
40 | */ | ||
41 | public abstract class FunctionalDataImpl extends MinimalEObjectImpl.Container implements FunctionalData { | ||
42 | /** | ||
43 | * The cached value of the '{@link #getTerminator() <em>Terminator</em>}' containment reference. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @see #getTerminator() | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | protected FAMTerminator terminator; | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | protected FunctionalDataImpl() { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() { | ||
68 | return FunctionalArchitecturePackage.Literals.FUNCTIONAL_DATA; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | public FAMTerminator getTerminator() { | ||
77 | return terminator; | ||
78 | } | ||
79 | |||
80 | /** | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | */ | ||
85 | public NotificationChain basicSetTerminator(FAMTerminator newTerminator, NotificationChain msgs) { | ||
86 | FAMTerminator oldTerminator = terminator; | ||
87 | terminator = newTerminator; | ||
88 | if (eNotificationRequired()) { | ||
89 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FunctionalArchitecturePackage.FUNCTIONAL_DATA__TERMINATOR, oldTerminator, newTerminator); | ||
90 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
91 | } | ||
92 | return msgs; | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | public void setTerminator(FAMTerminator newTerminator) { | ||
101 | if (newTerminator != terminator) { | ||
102 | NotificationChain msgs = null; | ||
103 | if (terminator != null) | ||
104 | msgs = ((InternalEObject)terminator).eInverseRemove(this, FunctionalArchitecturePackage.FAM_TERMINATOR__DATA, FAMTerminator.class, msgs); | ||
105 | if (newTerminator != null) | ||
106 | msgs = ((InternalEObject)newTerminator).eInverseAdd(this, FunctionalArchitecturePackage.FAM_TERMINATOR__DATA, FAMTerminator.class, msgs); | ||
107 | msgs = basicSetTerminator(newTerminator, msgs); | ||
108 | if (msgs != null) msgs.dispatch(); | ||
109 | } | ||
110 | else if (eNotificationRequired()) | ||
111 | eNotify(new ENotificationImpl(this, Notification.SET, FunctionalArchitecturePackage.FUNCTIONAL_DATA__TERMINATOR, newTerminator, newTerminator)); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | public FunctionalInterface getInterface() { | ||
120 | if (eContainerFeatureID() != FunctionalArchitecturePackage.FUNCTIONAL_DATA__INTERFACE) return null; | ||
121 | return (FunctionalInterface)eInternalContainer(); | ||
122 | } | ||
123 | |||
124 | /** | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @generated | ||
128 | */ | ||
129 | public NotificationChain basicSetInterface(FunctionalInterface newInterface, NotificationChain msgs) { | ||
130 | msgs = eBasicSetContainer((InternalEObject)newInterface, FunctionalArchitecturePackage.FUNCTIONAL_DATA__INTERFACE, msgs); | ||
131 | return msgs; | ||
132 | } | ||
133 | |||
134 | /** | ||
135 | * <!-- begin-user-doc --> | ||
136 | * <!-- end-user-doc --> | ||
137 | * @generated | ||
138 | */ | ||
139 | public void setInterface(FunctionalInterface newInterface) { | ||
140 | if (newInterface != eInternalContainer() || (eContainerFeatureID() != FunctionalArchitecturePackage.FUNCTIONAL_DATA__INTERFACE && newInterface != null)) { | ||
141 | if (EcoreUtil.isAncestor(this, newInterface)) | ||
142 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); | ||
143 | NotificationChain msgs = null; | ||
144 | if (eInternalContainer() != null) | ||
145 | msgs = eBasicRemoveFromContainer(msgs); | ||
146 | if (newInterface != null) | ||
147 | msgs = ((InternalEObject)newInterface).eInverseAdd(this, FunctionalArchitecturePackage.FUNCTIONAL_INTERFACE__DATA, FunctionalInterface.class, msgs); | ||
148 | msgs = basicSetInterface(newInterface, msgs); | ||
149 | if (msgs != null) msgs.dispatch(); | ||
150 | } | ||
151 | else if (eNotificationRequired()) | ||
152 | eNotify(new ENotificationImpl(this, Notification.SET, FunctionalArchitecturePackage.FUNCTIONAL_DATA__INTERFACE, newInterface, newInterface)); | ||
153 | } | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | @SuppressWarnings("unchecked") | ||
161 | @Override | ||
162 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
163 | switch (featureID) { | ||
164 | case FunctionalArchitecturePackage.FUNCTIONAL_DATA__TERMINATOR: | ||
165 | if (terminator != null) | ||
166 | msgs = ((InternalEObject)terminator).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FunctionalArchitecturePackage.FUNCTIONAL_DATA__TERMINATOR, null, msgs); | ||
167 | return basicSetTerminator((FAMTerminator)otherEnd, msgs); | ||
168 | case FunctionalArchitecturePackage.FUNCTIONAL_DATA__INTERFACE: | ||
169 | if (eInternalContainer() != null) | ||
170 | msgs = eBasicRemoveFromContainer(msgs); | ||
171 | return basicSetInterface((FunctionalInterface)otherEnd, msgs); | ||
172 | } | ||
173 | return super.eInverseAdd(otherEnd, featureID, msgs); | ||
174 | } | ||
175 | |||
176 | /** | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @generated | ||
180 | */ | ||
181 | @Override | ||
182 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
183 | switch (featureID) { | ||
184 | case FunctionalArchitecturePackage.FUNCTIONAL_DATA__TERMINATOR: | ||
185 | return basicSetTerminator(null, msgs); | ||
186 | case FunctionalArchitecturePackage.FUNCTIONAL_DATA__INTERFACE: | ||
187 | return basicSetInterface(null, msgs); | ||
188 | } | ||
189 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
190 | } | ||
191 | |||
192 | /** | ||
193 | * <!-- begin-user-doc --> | ||
194 | * <!-- end-user-doc --> | ||
195 | * @generated | ||
196 | */ | ||
197 | @Override | ||
198 | public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { | ||
199 | switch (eContainerFeatureID()) { | ||
200 | case FunctionalArchitecturePackage.FUNCTIONAL_DATA__INTERFACE: | ||
201 | return eInternalContainer().eInverseRemove(this, FunctionalArchitecturePackage.FUNCTIONAL_INTERFACE__DATA, FunctionalInterface.class, msgs); | ||
202 | } | ||
203 | return super.eBasicRemoveFromContainerFeature(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 | switch (featureID) { | ||
214 | case FunctionalArchitecturePackage.FUNCTIONAL_DATA__TERMINATOR: | ||
215 | return getTerminator(); | ||
216 | case FunctionalArchitecturePackage.FUNCTIONAL_DATA__INTERFACE: | ||
217 | return getInterface(); | ||
218 | } | ||
219 | return super.eGet(featureID, resolve, coreType); | ||
220 | } | ||
221 | |||
222 | /** | ||
223 | * <!-- begin-user-doc --> | ||
224 | * <!-- end-user-doc --> | ||
225 | * @generated | ||
226 | */ | ||
227 | @SuppressWarnings("unchecked") | ||
228 | @Override | ||
229 | public void eSet(int featureID, Object newValue) { | ||
230 | switch (featureID) { | ||
231 | case FunctionalArchitecturePackage.FUNCTIONAL_DATA__TERMINATOR: | ||
232 | setTerminator((FAMTerminator)newValue); | ||
233 | return; | ||
234 | case FunctionalArchitecturePackage.FUNCTIONAL_DATA__INTERFACE: | ||
235 | setInterface((FunctionalInterface)newValue); | ||
236 | return; | ||
237 | } | ||
238 | super.eSet(featureID, newValue); | ||
239 | } | ||
240 | |||
241 | /** | ||
242 | * <!-- begin-user-doc --> | ||
243 | * <!-- end-user-doc --> | ||
244 | * @generated | ||
245 | */ | ||
246 | @Override | ||
247 | public void eUnset(int featureID) { | ||
248 | switch (featureID) { | ||
249 | case FunctionalArchitecturePackage.FUNCTIONAL_DATA__TERMINATOR: | ||
250 | setTerminator((FAMTerminator)null); | ||
251 | return; | ||
252 | case FunctionalArchitecturePackage.FUNCTIONAL_DATA__INTERFACE: | ||
253 | setInterface((FunctionalInterface)null); | ||
254 | return; | ||
255 | } | ||
256 | super.eUnset(featureID); | ||
257 | } | ||
258 | |||
259 | /** | ||
260 | * <!-- begin-user-doc --> | ||
261 | * <!-- end-user-doc --> | ||
262 | * @generated | ||
263 | */ | ||
264 | @Override | ||
265 | public boolean eIsSet(int featureID) { | ||
266 | switch (featureID) { | ||
267 | case FunctionalArchitecturePackage.FUNCTIONAL_DATA__TERMINATOR: | ||
268 | return terminator != null; | ||
269 | case FunctionalArchitecturePackage.FUNCTIONAL_DATA__INTERFACE: | ||
270 | return getInterface() != null; | ||
271 | } | ||
272 | return super.eIsSet(featureID); | ||
273 | } | ||
274 | |||
275 | } //FunctionalDataImpl | ||