1 | /** |
2 | * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany |
3 | * |
4 | * $Id$ |
5 | */ |
6 | package de.uka.ipd.sdq.pcm.resourceenvironment.impl; |
7 | |
8 | import java.util.Collection; |
9 | |
10 | import org.eclipse.emf.common.notify.Notification; |
11 | import org.eclipse.emf.common.notify.NotificationChain; |
12 | import org.eclipse.emf.common.util.EList; |
13 | import org.eclipse.emf.ecore.EClass; |
14 | import org.eclipse.emf.ecore.InternalEObject; |
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
16 | import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; |
17 | import org.eclipse.emf.ecore.util.EcoreUtil; |
18 | import org.eclipse.emf.ecore.util.InternalEList; |
19 | |
20 | import de.uka.ipd.sdq.pcm.core.entity.impl.EntityImpl; |
21 | import de.uka.ipd.sdq.pcm.resourceenvironment.ContainerOperatingSystem; |
22 | import de.uka.ipd.sdq.pcm.resourceenvironment.ProcessingResourceSpecification; |
23 | import de.uka.ipd.sdq.pcm.resourceenvironment.ResourceContainer; |
24 | import de.uka.ipd.sdq.pcm.resourceenvironment.ResourceEnvironment; |
25 | import de.uka.ipd.sdq.pcm.resourceenvironment.ResourceenvironmentPackage; |
26 | |
27 | /** |
28 | * <!-- begin-user-doc --> |
29 | * An implementation of the model object '<em><b>Resource Container</b></em>'. |
30 | * <!-- end-user-doc --> |
31 | * <p> |
32 | * The following features are implemented: |
33 | * <ul> |
34 | * <li>{@link de.uka.ipd.sdq.pcm.resourceenvironment.impl.ResourceContainerImpl#getOperatingSystem_ResourceContainer <em>Operating System Resource Container</em>}</li> |
35 | * <li>{@link de.uka.ipd.sdq.pcm.resourceenvironment.impl.ResourceContainerImpl#getActiveResourceSpecifications_ResourceContainer <em>Active Resource Specifications Resource Container</em>}</li> |
36 | * <li>{@link de.uka.ipd.sdq.pcm.resourceenvironment.impl.ResourceContainerImpl#getResourceEnvironment_ResourceContainer <em>Resource Environment Resource Container</em>}</li> |
37 | * <li>{@link de.uka.ipd.sdq.pcm.resourceenvironment.impl.ResourceContainerImpl#getNestedResourceContainers__ResourceContainer <em>Nested Resource Containers Resource Container</em>}</li> |
38 | * <li>{@link de.uka.ipd.sdq.pcm.resourceenvironment.impl.ResourceContainerImpl#getParentResourceContainer__ResourceContainer <em>Parent Resource Container Resource Container</em>}</li> |
39 | * </ul> |
40 | * </p> |
41 | * |
42 | * @generated |
43 | */ |
44 | public class ResourceContainerImpl extends EntityImpl implements ResourceContainer { |
45 | /** |
46 | * <!-- begin-user-doc --> |
47 | * <!-- end-user-doc --> |
48 | * @generated |
49 | */ |
50 | public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany"; |
51 | |
52 | /** |
53 | * The default value of the '{@link #getOperatingSystem_ResourceContainer() <em>Operating System Resource Container</em>}' attribute. |
54 | * <!-- begin-user-doc --> |
55 | * <!-- end-user-doc --> |
56 | * @see #getOperatingSystem_ResourceContainer() |
57 | * @generated |
58 | * @ordered |
59 | */ |
60 | protected static final ContainerOperatingSystem OPERATING_SYSTEM_RESOURCE_CONTAINER_EDEFAULT = ContainerOperatingSystem.ABSTRACT; |
61 | |
62 | /** |
63 | * The cached value of the '{@link #getOperatingSystem_ResourceContainer() <em>Operating System Resource Container</em>}' attribute. |
64 | * <!-- begin-user-doc --> |
65 | * <!-- end-user-doc --> |
66 | * @see #getOperatingSystem_ResourceContainer() |
67 | * @generated |
68 | * @ordered |
69 | */ |
70 | protected ContainerOperatingSystem operatingSystem_ResourceContainer = OPERATING_SYSTEM_RESOURCE_CONTAINER_EDEFAULT; |
71 | |
72 | /** |
73 | * The cached value of the '{@link #getActiveResourceSpecifications_ResourceContainer() <em>Active Resource Specifications Resource Container</em>}' containment reference list. |
74 | * <!-- begin-user-doc --> |
75 | * <!-- end-user-doc --> |
76 | * @see #getActiveResourceSpecifications_ResourceContainer() |
77 | * @generated |
78 | * @ordered |
79 | */ |
80 | protected EList<ProcessingResourceSpecification> activeResourceSpecifications_ResourceContainer; |
81 | |
82 | /** |
83 | * The cached value of the '{@link #getNestedResourceContainers__ResourceContainer() <em>Nested Resource Containers Resource Container</em>}' containment reference list. |
84 | * <!-- begin-user-doc --> |
85 | * <!-- end-user-doc --> |
86 | * @see #getNestedResourceContainers__ResourceContainer() |
87 | * @generated |
88 | * @ordered |
89 | */ |
90 | protected EList<ResourceContainer> nestedResourceContainers__ResourceContainer; |
91 | |
92 | /** |
93 | * <!-- begin-user-doc --> |
94 | * <!-- end-user-doc --> |
95 | * @generated |
96 | */ |
97 | protected ResourceContainerImpl() { |
98 | super(); |
99 | } |
100 | |
101 | /** |
102 | * <!-- begin-user-doc --> |
103 | * <!-- end-user-doc --> |
104 | * @generated |
105 | */ |
106 | @Override |
107 | protected EClass eStaticClass() { |
108 | return ResourceenvironmentPackage.Literals.RESOURCE_CONTAINER; |
109 | } |
110 | |
111 | /** |
112 | * <!-- begin-user-doc --> |
113 | * <!-- end-user-doc --> |
114 | * @generated |
115 | */ |
116 | public ContainerOperatingSystem getOperatingSystem_ResourceContainer() { |
117 | return operatingSystem_ResourceContainer; |
118 | } |
119 | |
120 | /** |
121 | * <!-- begin-user-doc --> |
122 | * <!-- end-user-doc --> |
123 | * @generated |
124 | */ |
125 | public void setOperatingSystem_ResourceContainer(ContainerOperatingSystem newOperatingSystem_ResourceContainer) { |
126 | ContainerOperatingSystem oldOperatingSystem_ResourceContainer = operatingSystem_ResourceContainer; |
127 | operatingSystem_ResourceContainer = newOperatingSystem_ResourceContainer == null ? OPERATING_SYSTEM_RESOURCE_CONTAINER_EDEFAULT : newOperatingSystem_ResourceContainer; |
128 | if (eNotificationRequired()) |
129 | eNotify(new ENotificationImpl(this, Notification.SET, ResourceenvironmentPackage.RESOURCE_CONTAINER__OPERATING_SYSTEM_RESOURCE_CONTAINER, oldOperatingSystem_ResourceContainer, operatingSystem_ResourceContainer)); |
130 | } |
131 | |
132 | /** |
133 | * <!-- begin-user-doc --> |
134 | * <!-- end-user-doc --> |
135 | * @generated |
136 | */ |
137 | public EList<ProcessingResourceSpecification> getActiveResourceSpecifications_ResourceContainer() { |
138 | if (activeResourceSpecifications_ResourceContainer == null) { |
139 | activeResourceSpecifications_ResourceContainer = new EObjectContainmentWithInverseEList<ProcessingResourceSpecification>(ProcessingResourceSpecification.class, this, ResourceenvironmentPackage.RESOURCE_CONTAINER__ACTIVE_RESOURCE_SPECIFICATIONS_RESOURCE_CONTAINER, ResourceenvironmentPackage.PROCESSING_RESOURCE_SPECIFICATION__RESOURCE_CONTAINER_PROCESSING_RESOURCE_SPECIFICATION); |
140 | } |
141 | return activeResourceSpecifications_ResourceContainer; |
142 | } |
143 | |
144 | /** |
145 | * <!-- begin-user-doc --> |
146 | * <!-- end-user-doc --> |
147 | * @generated |
148 | */ |
149 | public ResourceEnvironment getResourceEnvironment_ResourceContainer() { |
150 | if (eContainerFeatureID() != ResourceenvironmentPackage.RESOURCE_CONTAINER__RESOURCE_ENVIRONMENT_RESOURCE_CONTAINER) return null; |
151 | return (ResourceEnvironment)eContainer(); |
152 | } |
153 | |
154 | /** |
155 | * <!-- begin-user-doc --> |
156 | * <!-- end-user-doc --> |
157 | * @generated |
158 | */ |
159 | public NotificationChain basicSetResourceEnvironment_ResourceContainer(ResourceEnvironment newResourceEnvironment_ResourceContainer, NotificationChain msgs) { |
160 | msgs = eBasicSetContainer((InternalEObject)newResourceEnvironment_ResourceContainer, ResourceenvironmentPackage.RESOURCE_CONTAINER__RESOURCE_ENVIRONMENT_RESOURCE_CONTAINER, msgs); |
161 | return msgs; |
162 | } |
163 | |
164 | /** |
165 | * <!-- begin-user-doc --> |
166 | * <!-- end-user-doc --> |
167 | * @generated |
168 | */ |
169 | public void setResourceEnvironment_ResourceContainer(ResourceEnvironment newResourceEnvironment_ResourceContainer) { |
170 | if (newResourceEnvironment_ResourceContainer != eInternalContainer() || (eContainerFeatureID() != ResourceenvironmentPackage.RESOURCE_CONTAINER__RESOURCE_ENVIRONMENT_RESOURCE_CONTAINER && newResourceEnvironment_ResourceContainer != null)) { |
171 | if (EcoreUtil.isAncestor(this, newResourceEnvironment_ResourceContainer)) |
172 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); |
173 | NotificationChain msgs = null; |
174 | if (eInternalContainer() != null) |
175 | msgs = eBasicRemoveFromContainer(msgs); |
176 | if (newResourceEnvironment_ResourceContainer != null) |
177 | msgs = ((InternalEObject)newResourceEnvironment_ResourceContainer).eInverseAdd(this, ResourceenvironmentPackage.RESOURCE_ENVIRONMENT__RESOURCE_CONTAINER_RESOURCE_ENVIRONMENT, ResourceEnvironment.class, msgs); |
178 | msgs = basicSetResourceEnvironment_ResourceContainer(newResourceEnvironment_ResourceContainer, msgs); |
179 | if (msgs != null) msgs.dispatch(); |
180 | } |
181 | else if (eNotificationRequired()) |
182 | eNotify(new ENotificationImpl(this, Notification.SET, ResourceenvironmentPackage.RESOURCE_CONTAINER__RESOURCE_ENVIRONMENT_RESOURCE_CONTAINER, newResourceEnvironment_ResourceContainer, newResourceEnvironment_ResourceContainer)); |
183 | } |
184 | |
185 | /** |
186 | * <!-- begin-user-doc --> |
187 | * <!-- end-user-doc --> |
188 | * @generated |
189 | */ |
190 | public EList<ResourceContainer> getNestedResourceContainers__ResourceContainer() { |
191 | if (nestedResourceContainers__ResourceContainer == null) { |
192 | nestedResourceContainers__ResourceContainer = new EObjectContainmentWithInverseEList<ResourceContainer>(ResourceContainer.class, this, ResourceenvironmentPackage.RESOURCE_CONTAINER__NESTED_RESOURCE_CONTAINERS_RESOURCE_CONTAINER, ResourceenvironmentPackage.RESOURCE_CONTAINER__PARENT_RESOURCE_CONTAINER_RESOURCE_CONTAINER); |
193 | } |
194 | return nestedResourceContainers__ResourceContainer; |
195 | } |
196 | |
197 | /** |
198 | * <!-- begin-user-doc --> |
199 | * <!-- end-user-doc --> |
200 | * @generated |
201 | */ |
202 | public ResourceContainer getParentResourceContainer__ResourceContainer() { |
203 | if (eContainerFeatureID() != ResourceenvironmentPackage.RESOURCE_CONTAINER__PARENT_RESOURCE_CONTAINER_RESOURCE_CONTAINER) return null; |
204 | return (ResourceContainer)eContainer(); |
205 | } |
206 | |
207 | /** |
208 | * <!-- begin-user-doc --> |
209 | * <!-- end-user-doc --> |
210 | * @generated |
211 | */ |
212 | public NotificationChain basicSetParentResourceContainer__ResourceContainer(ResourceContainer newParentResourceContainer__ResourceContainer, NotificationChain msgs) { |
213 | msgs = eBasicSetContainer((InternalEObject)newParentResourceContainer__ResourceContainer, ResourceenvironmentPackage.RESOURCE_CONTAINER__PARENT_RESOURCE_CONTAINER_RESOURCE_CONTAINER, msgs); |
214 | return msgs; |
215 | } |
216 | |
217 | /** |
218 | * <!-- begin-user-doc --> |
219 | * <!-- end-user-doc --> |
220 | * @generated |
221 | */ |
222 | public void setParentResourceContainer__ResourceContainer(ResourceContainer newParentResourceContainer__ResourceContainer) { |
223 | if (newParentResourceContainer__ResourceContainer != eInternalContainer() || (eContainerFeatureID() != ResourceenvironmentPackage.RESOURCE_CONTAINER__PARENT_RESOURCE_CONTAINER_RESOURCE_CONTAINER && newParentResourceContainer__ResourceContainer != null)) { |
224 | if (EcoreUtil.isAncestor(this, newParentResourceContainer__ResourceContainer)) |
225 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); |
226 | NotificationChain msgs = null; |
227 | if (eInternalContainer() != null) |
228 | msgs = eBasicRemoveFromContainer(msgs); |
229 | if (newParentResourceContainer__ResourceContainer != null) |
230 | msgs = ((InternalEObject)newParentResourceContainer__ResourceContainer).eInverseAdd(this, ResourceenvironmentPackage.RESOURCE_CONTAINER__NESTED_RESOURCE_CONTAINERS_RESOURCE_CONTAINER, ResourceContainer.class, msgs); |
231 | msgs = basicSetParentResourceContainer__ResourceContainer(newParentResourceContainer__ResourceContainer, msgs); |
232 | if (msgs != null) msgs.dispatch(); |
233 | } |
234 | else if (eNotificationRequired()) |
235 | eNotify(new ENotificationImpl(this, Notification.SET, ResourceenvironmentPackage.RESOURCE_CONTAINER__PARENT_RESOURCE_CONTAINER_RESOURCE_CONTAINER, newParentResourceContainer__ResourceContainer, newParentResourceContainer__ResourceContainer)); |
236 | } |
237 | |
238 | /** |
239 | * <!-- begin-user-doc --> |
240 | * <!-- end-user-doc --> |
241 | * @generated |
242 | */ |
243 | @SuppressWarnings("unchecked") |
244 | @Override |
245 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
246 | switch (featureID) { |
247 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__ACTIVE_RESOURCE_SPECIFICATIONS_RESOURCE_CONTAINER: |
248 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getActiveResourceSpecifications_ResourceContainer()).basicAdd(otherEnd, msgs); |
249 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__RESOURCE_ENVIRONMENT_RESOURCE_CONTAINER: |
250 | if (eInternalContainer() != null) |
251 | msgs = eBasicRemoveFromContainer(msgs); |
252 | return basicSetResourceEnvironment_ResourceContainer((ResourceEnvironment)otherEnd, msgs); |
253 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__NESTED_RESOURCE_CONTAINERS_RESOURCE_CONTAINER: |
254 | return ((InternalEList<InternalEObject>)(InternalEList<?>)getNestedResourceContainers__ResourceContainer()).basicAdd(otherEnd, msgs); |
255 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__PARENT_RESOURCE_CONTAINER_RESOURCE_CONTAINER: |
256 | if (eInternalContainer() != null) |
257 | msgs = eBasicRemoveFromContainer(msgs); |
258 | return basicSetParentResourceContainer__ResourceContainer((ResourceContainer)otherEnd, msgs); |
259 | } |
260 | return super.eInverseAdd(otherEnd, featureID, msgs); |
261 | } |
262 | |
263 | /** |
264 | * <!-- begin-user-doc --> |
265 | * <!-- end-user-doc --> |
266 | * @generated |
267 | */ |
268 | @Override |
269 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
270 | switch (featureID) { |
271 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__ACTIVE_RESOURCE_SPECIFICATIONS_RESOURCE_CONTAINER: |
272 | return ((InternalEList<?>)getActiveResourceSpecifications_ResourceContainer()).basicRemove(otherEnd, msgs); |
273 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__RESOURCE_ENVIRONMENT_RESOURCE_CONTAINER: |
274 | return basicSetResourceEnvironment_ResourceContainer(null, msgs); |
275 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__NESTED_RESOURCE_CONTAINERS_RESOURCE_CONTAINER: |
276 | return ((InternalEList<?>)getNestedResourceContainers__ResourceContainer()).basicRemove(otherEnd, msgs); |
277 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__PARENT_RESOURCE_CONTAINER_RESOURCE_CONTAINER: |
278 | return basicSetParentResourceContainer__ResourceContainer(null, msgs); |
279 | } |
280 | return super.eInverseRemove(otherEnd, featureID, msgs); |
281 | } |
282 | |
283 | /** |
284 | * <!-- begin-user-doc --> |
285 | * <!-- end-user-doc --> |
286 | * @generated |
287 | */ |
288 | @Override |
289 | public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { |
290 | switch (eContainerFeatureID()) { |
291 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__RESOURCE_ENVIRONMENT_RESOURCE_CONTAINER: |
292 | return eInternalContainer().eInverseRemove(this, ResourceenvironmentPackage.RESOURCE_ENVIRONMENT__RESOURCE_CONTAINER_RESOURCE_ENVIRONMENT, ResourceEnvironment.class, msgs); |
293 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__PARENT_RESOURCE_CONTAINER_RESOURCE_CONTAINER: |
294 | return eInternalContainer().eInverseRemove(this, ResourceenvironmentPackage.RESOURCE_CONTAINER__NESTED_RESOURCE_CONTAINERS_RESOURCE_CONTAINER, ResourceContainer.class, msgs); |
295 | } |
296 | return super.eBasicRemoveFromContainerFeature(msgs); |
297 | } |
298 | |
299 | /** |
300 | * <!-- begin-user-doc --> |
301 | * <!-- end-user-doc --> |
302 | * @generated |
303 | */ |
304 | @Override |
305 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
306 | switch (featureID) { |
307 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__OPERATING_SYSTEM_RESOURCE_CONTAINER: |
308 | return getOperatingSystem_ResourceContainer(); |
309 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__ACTIVE_RESOURCE_SPECIFICATIONS_RESOURCE_CONTAINER: |
310 | return getActiveResourceSpecifications_ResourceContainer(); |
311 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__RESOURCE_ENVIRONMENT_RESOURCE_CONTAINER: |
312 | return getResourceEnvironment_ResourceContainer(); |
313 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__NESTED_RESOURCE_CONTAINERS_RESOURCE_CONTAINER: |
314 | return getNestedResourceContainers__ResourceContainer(); |
315 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__PARENT_RESOURCE_CONTAINER_RESOURCE_CONTAINER: |
316 | return getParentResourceContainer__ResourceContainer(); |
317 | } |
318 | return super.eGet(featureID, resolve, coreType); |
319 | } |
320 | |
321 | /** |
322 | * <!-- begin-user-doc --> |
323 | * <!-- end-user-doc --> |
324 | * @generated |
325 | */ |
326 | @SuppressWarnings("unchecked") |
327 | @Override |
328 | public void eSet(int featureID, Object newValue) { |
329 | switch (featureID) { |
330 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__OPERATING_SYSTEM_RESOURCE_CONTAINER: |
331 | setOperatingSystem_ResourceContainer((ContainerOperatingSystem)newValue); |
332 | return; |
333 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__ACTIVE_RESOURCE_SPECIFICATIONS_RESOURCE_CONTAINER: |
334 | getActiveResourceSpecifications_ResourceContainer().clear(); |
335 | getActiveResourceSpecifications_ResourceContainer().addAll((Collection<? extends ProcessingResourceSpecification>)newValue); |
336 | return; |
337 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__RESOURCE_ENVIRONMENT_RESOURCE_CONTAINER: |
338 | setResourceEnvironment_ResourceContainer((ResourceEnvironment)newValue); |
339 | return; |
340 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__NESTED_RESOURCE_CONTAINERS_RESOURCE_CONTAINER: |
341 | getNestedResourceContainers__ResourceContainer().clear(); |
342 | getNestedResourceContainers__ResourceContainer().addAll((Collection<? extends ResourceContainer>)newValue); |
343 | return; |
344 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__PARENT_RESOURCE_CONTAINER_RESOURCE_CONTAINER: |
345 | setParentResourceContainer__ResourceContainer((ResourceContainer)newValue); |
346 | return; |
347 | } |
348 | super.eSet(featureID, newValue); |
349 | } |
350 | |
351 | /** |
352 | * <!-- begin-user-doc --> |
353 | * <!-- end-user-doc --> |
354 | * @generated |
355 | */ |
356 | @Override |
357 | public void eUnset(int featureID) { |
358 | switch (featureID) { |
359 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__OPERATING_SYSTEM_RESOURCE_CONTAINER: |
360 | setOperatingSystem_ResourceContainer(OPERATING_SYSTEM_RESOURCE_CONTAINER_EDEFAULT); |
361 | return; |
362 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__ACTIVE_RESOURCE_SPECIFICATIONS_RESOURCE_CONTAINER: |
363 | getActiveResourceSpecifications_ResourceContainer().clear(); |
364 | return; |
365 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__RESOURCE_ENVIRONMENT_RESOURCE_CONTAINER: |
366 | setResourceEnvironment_ResourceContainer((ResourceEnvironment)null); |
367 | return; |
368 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__NESTED_RESOURCE_CONTAINERS_RESOURCE_CONTAINER: |
369 | getNestedResourceContainers__ResourceContainer().clear(); |
370 | return; |
371 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__PARENT_RESOURCE_CONTAINER_RESOURCE_CONTAINER: |
372 | setParentResourceContainer__ResourceContainer((ResourceContainer)null); |
373 | return; |
374 | } |
375 | super.eUnset(featureID); |
376 | } |
377 | |
378 | /** |
379 | * <!-- begin-user-doc --> |
380 | * <!-- end-user-doc --> |
381 | * @generated |
382 | */ |
383 | @Override |
384 | public boolean eIsSet(int featureID) { |
385 | switch (featureID) { |
386 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__OPERATING_SYSTEM_RESOURCE_CONTAINER: |
387 | return operatingSystem_ResourceContainer != OPERATING_SYSTEM_RESOURCE_CONTAINER_EDEFAULT; |
388 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__ACTIVE_RESOURCE_SPECIFICATIONS_RESOURCE_CONTAINER: |
389 | return activeResourceSpecifications_ResourceContainer != null && !activeResourceSpecifications_ResourceContainer.isEmpty(); |
390 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__RESOURCE_ENVIRONMENT_RESOURCE_CONTAINER: |
391 | return getResourceEnvironment_ResourceContainer() != null; |
392 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__NESTED_RESOURCE_CONTAINERS_RESOURCE_CONTAINER: |
393 | return nestedResourceContainers__ResourceContainer != null && !nestedResourceContainers__ResourceContainer.isEmpty(); |
394 | case ResourceenvironmentPackage.RESOURCE_CONTAINER__PARENT_RESOURCE_CONTAINER_RESOURCE_CONTAINER: |
395 | return getParentResourceContainer__ResourceContainer() != null; |
396 | } |
397 | return super.eIsSet(featureID); |
398 | } |
399 | |
400 | /** |
401 | * <!-- begin-user-doc --> |
402 | * <!-- end-user-doc --> |
403 | * @generated |
404 | */ |
405 | @Override |
406 | public String toString() { |
407 | if (eIsProxy()) return super.toString(); |
408 | |
409 | StringBuffer result = new StringBuffer(super.toString()); |
410 | result.append(" (operatingSystem_ResourceContainer: "); |
411 | result.append(operatingSystem_ResourceContainer); |
412 | result.append(')'); |
413 | return result.toString(); |
414 | } |
415 | |
416 | } //ResourceContainerImpl |