EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.pcm.core.composition.impl]

COVERAGE SUMMARY FOR SOURCE FILE [ComposedStructureImpl.java]

nameclass, %method, %block, %line, %
ComposedStructureImpl.java0%   (0/1)0%   (0/15)0%   (0/403)0%   (0/101)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ComposedStructureImpl0%   (0/1)0%   (0/15)0%   (0/403)0%   (0/101)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
ComposedStructureImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
MultipleConnectorsConstraint (DiagnosticChain, Map): boolean 0%   (0/1)0%   (0/62)0%   (0/17)
MultipleConnectorsConstraintForAssemblyConnectors (DiagnosticChain, Map): boo... 0%   (0/1)0%   (0/62)0%   (0/17)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/20)0%   (0/6)
eInverseAdd (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/36)0%   (0/6)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/36)0%   (0/6)
eIsSet (int): boolean 0%   (0/1)0%   (0/50)0%   (0/6)
eSet (int, Object): void 0%   (0/1)0%   (0/47)0%   (0/15)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/22)0%   (0/11)
getAssemblyContexts__ComposedStructure (): EList 0%   (0/1)0%   (0/15)0%   (0/3)
getConnectors__ComposedStructure (): EList 0%   (0/1)0%   (0/15)0%   (0/3)
getEventChannel__ComposedStructure (): EList 0%   (0/1)0%   (0/15)0%   (0/3)
getResourceRequiredDelegationConnectors_ComposedStructure (): EList 0%   (0/1)0%   (0/15)0%   (0/3)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.core.composition.impl;
7 
8import java.util.Collection;
9import java.util.Map;
10 
11import org.eclipse.emf.common.notify.NotificationChain;
12import org.eclipse.emf.common.util.BasicDiagnostic;
13import org.eclipse.emf.common.util.Diagnostic;
14import org.eclipse.emf.common.util.DiagnosticChain;
15import org.eclipse.emf.common.util.EList;
16import org.eclipse.emf.ecore.EClass;
17import org.eclipse.emf.ecore.InternalEObject;
18import org.eclipse.emf.ecore.plugin.EcorePlugin;
19import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
20import org.eclipse.emf.ecore.util.EObjectValidator;
21import org.eclipse.emf.ecore.util.InternalEList;
22import org.eclipse.ocl.ParserException;
23import org.eclipse.ocl.ecore.Constraint;
24import org.eclipse.ocl.ecore.OCL;
25 
26import de.uka.ipd.sdq.pcm.core.composition.AssemblyContext;
27import de.uka.ipd.sdq.pcm.core.composition.ComposedStructure;
28import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage;
29import de.uka.ipd.sdq.pcm.core.composition.Connector;
30import de.uka.ipd.sdq.pcm.core.composition.EventChannel;
31import de.uka.ipd.sdq.pcm.core.composition.ResourceRequiredDelegationConnector;
32import de.uka.ipd.sdq.pcm.core.composition.util.CompositionValidator;
33import de.uka.ipd.sdq.pcm.core.entity.impl.EntityImpl;
34 
35/**
36 * <!-- begin-user-doc -->
37 * An implementation of the model object '<em><b>Composed Structure</b></em>'.
38 * <!-- end-user-doc -->
39 * <p>
40 * The following features are implemented:
41 * <ul>
42 *   <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.ComposedStructureImpl#getAssemblyContexts__ComposedStructure <em>Assembly Contexts Composed Structure</em>}</li>
43 *   <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.ComposedStructureImpl#getResourceRequiredDelegationConnectors_ComposedStructure <em>Resource Required Delegation Connectors Composed Structure</em>}</li>
44 *   <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.ComposedStructureImpl#getEventChannel__ComposedStructure <em>Event Channel Composed Structure</em>}</li>
45 *   <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.ComposedStructureImpl#getConnectors__ComposedStructure <em>Connectors Composed Structure</em>}</li>
46 * </ul>
47 * </p>
48 *
49 * @generated
50 */
51public abstract class ComposedStructureImpl extends EntityImpl implements ComposedStructure {
52        /**
53         * <!-- begin-user-doc -->
54         * <!-- end-user-doc -->
55         * @generated
56         */
57        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
58 
59        /**
60         * The cached value of the '{@link #getAssemblyContexts__ComposedStructure() <em>Assembly Contexts Composed Structure</em>}' containment reference list.
61         * <!-- begin-user-doc -->
62         * <!-- end-user-doc -->
63         * @see #getAssemblyContexts__ComposedStructure()
64         * @generated
65         * @ordered
66         */
67        protected EList<AssemblyContext> assemblyContexts__ComposedStructure;
68 
69        /**
70         * The cached value of the '{@link #getResourceRequiredDelegationConnectors_ComposedStructure() <em>Resource Required Delegation Connectors Composed Structure</em>}' containment reference list.
71         * <!-- begin-user-doc -->
72         * <!-- end-user-doc -->
73         * @see #getResourceRequiredDelegationConnectors_ComposedStructure()
74         * @generated
75         * @ordered
76         */
77        protected EList<ResourceRequiredDelegationConnector> resourceRequiredDelegationConnectors_ComposedStructure;
78 
79        /**
80         * The cached value of the '{@link #getEventChannel__ComposedStructure() <em>Event Channel Composed Structure</em>}' containment reference list.
81         * <!-- begin-user-doc -->
82         * <!-- end-user-doc -->
83         * @see #getEventChannel__ComposedStructure()
84         * @generated
85         * @ordered
86         */
87        protected EList<EventChannel> eventChannel__ComposedStructure;
88 
89        /**
90         * The cached value of the '{@link #getConnectors__ComposedStructure() <em>Connectors Composed Structure</em>}' containment reference list.
91         * <!-- begin-user-doc -->
92         * <!-- end-user-doc -->
93         * @see #getConnectors__ComposedStructure()
94         * @generated
95         * @ordered
96         */
97        protected EList<Connector> connectors__ComposedStructure;
98 
99        /**
100         * <!-- begin-user-doc -->
101         * <!-- end-user-doc -->
102         * @generated
103         */
104        protected ComposedStructureImpl() {
105                super();
106        }
107 
108        /**
109         * <!-- begin-user-doc -->
110         * <!-- end-user-doc -->
111         * @generated
112         */
113        @Override
114        protected EClass eStaticClass() {
115                return CompositionPackage.Literals.COMPOSED_STRUCTURE;
116        }
117 
118        /**
119         * <!-- begin-user-doc -->
120         * <!-- end-user-doc -->
121         * @generated
122         */
123        public EList<AssemblyContext> getAssemblyContexts__ComposedStructure() {
124                if (assemblyContexts__ComposedStructure == null) {
125                        assemblyContexts__ComposedStructure = new EObjectContainmentWithInverseEList<AssemblyContext>(AssemblyContext.class, this, CompositionPackage.COMPOSED_STRUCTURE__ASSEMBLY_CONTEXTS_COMPOSED_STRUCTURE, CompositionPackage.ASSEMBLY_CONTEXT__PARENT_STRUCTURE_ASSEMBLY_CONTEXT);
126                }
127                return assemblyContexts__ComposedStructure;
128        }
129 
130        /**
131         * <!-- begin-user-doc -->
132         * <!-- end-user-doc -->
133         * @generated
134         */
135        public EList<ResourceRequiredDelegationConnector> getResourceRequiredDelegationConnectors_ComposedStructure() {
136                if (resourceRequiredDelegationConnectors_ComposedStructure == null) {
137                        resourceRequiredDelegationConnectors_ComposedStructure = new EObjectContainmentWithInverseEList<ResourceRequiredDelegationConnector>(ResourceRequiredDelegationConnector.class, this, CompositionPackage.COMPOSED_STRUCTURE__RESOURCE_REQUIRED_DELEGATION_CONNECTORS_COMPOSED_STRUCTURE, CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__PARENT_STRUCTURE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR);
138                }
139                return resourceRequiredDelegationConnectors_ComposedStructure;
140        }
141 
142        /**
143         * <!-- begin-user-doc -->
144         * <!-- end-user-doc -->
145         * @generated
146         */
147        public EList<EventChannel> getEventChannel__ComposedStructure() {
148                if (eventChannel__ComposedStructure == null) {
149                        eventChannel__ComposedStructure = new EObjectContainmentWithInverseEList<EventChannel>(EventChannel.class, this, CompositionPackage.COMPOSED_STRUCTURE__EVENT_CHANNEL_COMPOSED_STRUCTURE, CompositionPackage.EVENT_CHANNEL__PARENT_STRUCTURE_EVENT_CHANNEL);
150                }
151                return eventChannel__ComposedStructure;
152        }
153 
154        /**
155         * <!-- begin-user-doc -->
156         * <!-- end-user-doc -->
157         * @generated
158         */
159        public EList<Connector> getConnectors__ComposedStructure() {
160                if (connectors__ComposedStructure == null) {
161                        connectors__ComposedStructure = new EObjectContainmentWithInverseEList<Connector>(Connector.class, this, CompositionPackage.COMPOSED_STRUCTURE__CONNECTORS_COMPOSED_STRUCTURE, CompositionPackage.CONNECTOR__PARENT_STRUCTURE_CONNECTOR);
162                }
163                return connectors__ComposedStructure;
164        }
165 
166        /**
167         * The cached OCL expression body for the '{@link #MultipleConnectorsConstraint(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Multiple Connectors Constraint</em>}' operation.
168         * <!-- begin-user-doc -->
169         * <!-- end-user-doc -->
170         * @see #MultipleConnectorsConstraint(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
171         * @generated
172         * @ordered
173         */
174        protected static final String MULTIPLE_CONNECTORS_CONSTRAINT__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP = "self.connectors__ComposedStructure->select(conn | conn.oclIsTypeOf(pcm::core::composition::ProvidedDelegationConnector)).oclAsType(pcm::core::composition::ProvidedDelegationConnector)->forAll( c1, c2 | c1 <> c2 implies c1.outerProvidedRole_ProvidedDelegationConnector <> c2.outerProvidedRole_ProvidedDelegationConnector)\n"+"";
175 
176        /**
177         * The cached OCL invariant for the '{@link #MultipleConnectorsConstraint(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Multiple Connectors Constraint</em>}' invariant operation.
178         * <!-- begin-user-doc -->
179         * <!-- end-user-doc -->
180         * @see #MultipleConnectorsConstraint(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
181         * @generated
182         * @ordered
183         */
184        protected static Constraint MULTIPLE_CONNECTORS_CONSTRAINT__DIAGNOSTIC_CHAIN_MAP__EOCL_INV;
185 
186        /**
187         * <!-- begin-user-doc -->
188         * <!-- end-user-doc -->
189         * @generated
190         */
191        public boolean MultipleConnectorsConstraint(DiagnosticChain diagnostics, Map<Object, Object> context) {
192                if (MULTIPLE_CONNECTORS_CONSTRAINT__DIAGNOSTIC_CHAIN_MAP__EOCL_INV == null) {
193                        OCL.Helper helper = EOCL_ENV.createOCLHelper();
194                        helper.setContext(CompositionPackage.Literals.COMPOSED_STRUCTURE);
195                        try {
196                                MULTIPLE_CONNECTORS_CONSTRAINT__DIAGNOSTIC_CHAIN_MAP__EOCL_INV = helper.createInvariant(MULTIPLE_CONNECTORS_CONSTRAINT__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP);
197                        }
198                        catch (ParserException pe) {
199                                throw new UnsupportedOperationException(pe.getLocalizedMessage());
200                        }
201                }
202                if (!EOCL_ENV.createQuery(MULTIPLE_CONNECTORS_CONSTRAINT__DIAGNOSTIC_CHAIN_MAP__EOCL_INV).check(this)) {
203                        if (diagnostics != null) {
204                                diagnostics.add
205                                        (new BasicDiagnostic
206                                                (Diagnostic.ERROR,
207                                                 CompositionValidator.DIAGNOSTIC_SOURCE,
208                                                 CompositionValidator.COMPOSED_STRUCTURE__MULTIPLE_CONNECTORS_CONSTRAINT,
209                                                 EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "MultipleConnectorsConstraint", EObjectValidator.getObjectLabel(this, context) }),
210                                                 new Object [] { this }));
211                        }
212                        return false;
213                }
214                return true;
215        }
216 
217        /**
218         * The cached OCL expression body for the '{@link #MultipleConnectorsConstraintForAssemblyConnectors(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Multiple Connectors Constraint For Assembly Connectors</em>}' operation.
219         * <!-- begin-user-doc -->
220         * <!-- end-user-doc -->
221         * @see #MultipleConnectorsConstraintForAssemblyConnectors(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
222         * @generated
223         * @ordered
224         */
225        protected static final String MULTIPLE_CONNECTORS_CONSTRAINT_FOR_ASSEMBLY_CONNECTORS__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP = "self.connectors__ComposedStructure->select(conn | conn.oclIsTypeOf(pcm::core::composition::AssemblyConnector)).oclAsType(AssemblyConnector)->forAll( c1, c2 | ( (c1 <> c2) and ( c1.requiringAssemblyContext_AssemblyConnector = c2.requiringAssemblyContext_AssemblyConnector ) ) implies c1.requiredRole_AssemblyConnector <> c2.requiredRole_AssemblyConnector )\n"+"";
226 
227        /**
228         * The cached OCL invariant for the '{@link #MultipleConnectorsConstraintForAssemblyConnectors(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Multiple Connectors Constraint For Assembly Connectors</em>}' invariant operation.
229         * <!-- begin-user-doc -->
230         * <!-- end-user-doc -->
231         * @see #MultipleConnectorsConstraintForAssemblyConnectors(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
232         * @generated
233         * @ordered
234         */
235        protected static Constraint MULTIPLE_CONNECTORS_CONSTRAINT_FOR_ASSEMBLY_CONNECTORS__DIAGNOSTIC_CHAIN_MAP__EOCL_INV;
236 
237        /**
238         * <!-- begin-user-doc -->
239         * <!-- end-user-doc -->
240         * @generated
241         */
242        public boolean MultipleConnectorsConstraintForAssemblyConnectors(DiagnosticChain diagnostics, Map<Object, Object> context) {
243                if (MULTIPLE_CONNECTORS_CONSTRAINT_FOR_ASSEMBLY_CONNECTORS__DIAGNOSTIC_CHAIN_MAP__EOCL_INV == null) {
244                        OCL.Helper helper = EOCL_ENV.createOCLHelper();
245                        helper.setContext(CompositionPackage.Literals.COMPOSED_STRUCTURE);
246                        try {
247                                MULTIPLE_CONNECTORS_CONSTRAINT_FOR_ASSEMBLY_CONNECTORS__DIAGNOSTIC_CHAIN_MAP__EOCL_INV = helper.createInvariant(MULTIPLE_CONNECTORS_CONSTRAINT_FOR_ASSEMBLY_CONNECTORS__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP);
248                        }
249                        catch (ParserException pe) {
250                                throw new UnsupportedOperationException(pe.getLocalizedMessage());
251                        }
252                }
253                if (!EOCL_ENV.createQuery(MULTIPLE_CONNECTORS_CONSTRAINT_FOR_ASSEMBLY_CONNECTORS__DIAGNOSTIC_CHAIN_MAP__EOCL_INV).check(this)) {
254                        if (diagnostics != null) {
255                                diagnostics.add
256                                        (new BasicDiagnostic
257                                                (Diagnostic.ERROR,
258                                                 CompositionValidator.DIAGNOSTIC_SOURCE,
259                                                 CompositionValidator.COMPOSED_STRUCTURE__MULTIPLE_CONNECTORS_CONSTRAINT_FOR_ASSEMBLY_CONNECTORS,
260                                                 EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "MultipleConnectorsConstraintForAssemblyConnectors", EObjectValidator.getObjectLabel(this, context) }),
261                                                 new Object [] { this }));
262                        }
263                        return false;
264                }
265                return true;
266        }
267 
268        /**
269         * <!-- begin-user-doc -->
270         * <!-- end-user-doc -->
271         * @generated
272         */
273        @SuppressWarnings("unchecked")
274        @Override
275        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
276                switch (featureID) {
277                        case CompositionPackage.COMPOSED_STRUCTURE__ASSEMBLY_CONTEXTS_COMPOSED_STRUCTURE:
278                                return ((InternalEList<InternalEObject>)(InternalEList<?>)getAssemblyContexts__ComposedStructure()).basicAdd(otherEnd, msgs);
279                        case CompositionPackage.COMPOSED_STRUCTURE__RESOURCE_REQUIRED_DELEGATION_CONNECTORS_COMPOSED_STRUCTURE:
280                                return ((InternalEList<InternalEObject>)(InternalEList<?>)getResourceRequiredDelegationConnectors_ComposedStructure()).basicAdd(otherEnd, msgs);
281                        case CompositionPackage.COMPOSED_STRUCTURE__EVENT_CHANNEL_COMPOSED_STRUCTURE:
282                                return ((InternalEList<InternalEObject>)(InternalEList<?>)getEventChannel__ComposedStructure()).basicAdd(otherEnd, msgs);
283                        case CompositionPackage.COMPOSED_STRUCTURE__CONNECTORS_COMPOSED_STRUCTURE:
284                                return ((InternalEList<InternalEObject>)(InternalEList<?>)getConnectors__ComposedStructure()).basicAdd(otherEnd, msgs);
285                }
286                return super.eInverseAdd(otherEnd, featureID, msgs);
287        }
288 
289        /**
290         * <!-- begin-user-doc -->
291         * <!-- end-user-doc -->
292         * @generated
293         */
294        @Override
295        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
296                switch (featureID) {
297                        case CompositionPackage.COMPOSED_STRUCTURE__ASSEMBLY_CONTEXTS_COMPOSED_STRUCTURE:
298                                return ((InternalEList<?>)getAssemblyContexts__ComposedStructure()).basicRemove(otherEnd, msgs);
299                        case CompositionPackage.COMPOSED_STRUCTURE__RESOURCE_REQUIRED_DELEGATION_CONNECTORS_COMPOSED_STRUCTURE:
300                                return ((InternalEList<?>)getResourceRequiredDelegationConnectors_ComposedStructure()).basicRemove(otherEnd, msgs);
301                        case CompositionPackage.COMPOSED_STRUCTURE__EVENT_CHANNEL_COMPOSED_STRUCTURE:
302                                return ((InternalEList<?>)getEventChannel__ComposedStructure()).basicRemove(otherEnd, msgs);
303                        case CompositionPackage.COMPOSED_STRUCTURE__CONNECTORS_COMPOSED_STRUCTURE:
304                                return ((InternalEList<?>)getConnectors__ComposedStructure()).basicRemove(otherEnd, msgs);
305                }
306                return super.eInverseRemove(otherEnd, featureID, msgs);
307        }
308 
309        /**
310         * <!-- begin-user-doc -->
311         * <!-- end-user-doc -->
312         * @generated
313         */
314        @Override
315        public Object eGet(int featureID, boolean resolve, boolean coreType) {
316                switch (featureID) {
317                        case CompositionPackage.COMPOSED_STRUCTURE__ASSEMBLY_CONTEXTS_COMPOSED_STRUCTURE:
318                                return getAssemblyContexts__ComposedStructure();
319                        case CompositionPackage.COMPOSED_STRUCTURE__RESOURCE_REQUIRED_DELEGATION_CONNECTORS_COMPOSED_STRUCTURE:
320                                return getResourceRequiredDelegationConnectors_ComposedStructure();
321                        case CompositionPackage.COMPOSED_STRUCTURE__EVENT_CHANNEL_COMPOSED_STRUCTURE:
322                                return getEventChannel__ComposedStructure();
323                        case CompositionPackage.COMPOSED_STRUCTURE__CONNECTORS_COMPOSED_STRUCTURE:
324                                return getConnectors__ComposedStructure();
325                }
326                return super.eGet(featureID, resolve, coreType);
327        }
328 
329        /**
330         * <!-- begin-user-doc -->
331         * <!-- end-user-doc -->
332         * @generated
333         */
334        @SuppressWarnings("unchecked")
335        @Override
336        public void eSet(int featureID, Object newValue) {
337                switch (featureID) {
338                        case CompositionPackage.COMPOSED_STRUCTURE__ASSEMBLY_CONTEXTS_COMPOSED_STRUCTURE:
339                                getAssemblyContexts__ComposedStructure().clear();
340                                getAssemblyContexts__ComposedStructure().addAll((Collection<? extends AssemblyContext>)newValue);
341                                return;
342                        case CompositionPackage.COMPOSED_STRUCTURE__RESOURCE_REQUIRED_DELEGATION_CONNECTORS_COMPOSED_STRUCTURE:
343                                getResourceRequiredDelegationConnectors_ComposedStructure().clear();
344                                getResourceRequiredDelegationConnectors_ComposedStructure().addAll((Collection<? extends ResourceRequiredDelegationConnector>)newValue);
345                                return;
346                        case CompositionPackage.COMPOSED_STRUCTURE__EVENT_CHANNEL_COMPOSED_STRUCTURE:
347                                getEventChannel__ComposedStructure().clear();
348                                getEventChannel__ComposedStructure().addAll((Collection<? extends EventChannel>)newValue);
349                                return;
350                        case CompositionPackage.COMPOSED_STRUCTURE__CONNECTORS_COMPOSED_STRUCTURE:
351                                getConnectors__ComposedStructure().clear();
352                                getConnectors__ComposedStructure().addAll((Collection<? extends Connector>)newValue);
353                                return;
354                }
355                super.eSet(featureID, newValue);
356        }
357 
358        /**
359         * <!-- begin-user-doc -->
360         * <!-- end-user-doc -->
361         * @generated
362         */
363        @Override
364        public void eUnset(int featureID) {
365                switch (featureID) {
366                        case CompositionPackage.COMPOSED_STRUCTURE__ASSEMBLY_CONTEXTS_COMPOSED_STRUCTURE:
367                                getAssemblyContexts__ComposedStructure().clear();
368                                return;
369                        case CompositionPackage.COMPOSED_STRUCTURE__RESOURCE_REQUIRED_DELEGATION_CONNECTORS_COMPOSED_STRUCTURE:
370                                getResourceRequiredDelegationConnectors_ComposedStructure().clear();
371                                return;
372                        case CompositionPackage.COMPOSED_STRUCTURE__EVENT_CHANNEL_COMPOSED_STRUCTURE:
373                                getEventChannel__ComposedStructure().clear();
374                                return;
375                        case CompositionPackage.COMPOSED_STRUCTURE__CONNECTORS_COMPOSED_STRUCTURE:
376                                getConnectors__ComposedStructure().clear();
377                                return;
378                }
379                super.eUnset(featureID);
380        }
381 
382        /**
383         * <!-- begin-user-doc -->
384         * <!-- end-user-doc -->
385         * @generated
386         */
387        @Override
388        public boolean eIsSet(int featureID) {
389                switch (featureID) {
390                        case CompositionPackage.COMPOSED_STRUCTURE__ASSEMBLY_CONTEXTS_COMPOSED_STRUCTURE:
391                                return assemblyContexts__ComposedStructure != null && !assemblyContexts__ComposedStructure.isEmpty();
392                        case CompositionPackage.COMPOSED_STRUCTURE__RESOURCE_REQUIRED_DELEGATION_CONNECTORS_COMPOSED_STRUCTURE:
393                                return resourceRequiredDelegationConnectors_ComposedStructure != null && !resourceRequiredDelegationConnectors_ComposedStructure.isEmpty();
394                        case CompositionPackage.COMPOSED_STRUCTURE__EVENT_CHANNEL_COMPOSED_STRUCTURE:
395                                return eventChannel__ComposedStructure != null && !eventChannel__ComposedStructure.isEmpty();
396                        case CompositionPackage.COMPOSED_STRUCTURE__CONNECTORS_COMPOSED_STRUCTURE:
397                                return connectors__ComposedStructure != null && !connectors__ComposedStructure.isEmpty();
398                }
399                return super.eIsSet(featureID);
400        }
401 
402        /**
403         * The cached environment for evaluating OCL expressions.
404         * <!-- begin-user-doc -->
405         * <!-- end-user-doc -->
406         * @generated
407         * @ordered
408         */
409        protected static final OCL EOCL_ENV = OCL.newInstance();
410 
411} //ComposedStructureImpl

[all classes][de.uka.ipd.sdq.pcm.core.composition.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov