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 [ResourceRequiredDelegationConnectorImpl.java]

nameclass, %method, %block, %line, %
ResourceRequiredDelegationConnectorImpl.java0%   (0/1)0%   (0/18)0%   (0/360)0%   (0/87)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ResourceRequiredDelegationConnectorImpl0%   (0/1)0%   (0/18)0%   (0/360)0%   (0/87)
ResourceRequiredDelegationConnectorImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicGetInnerResourceRequiredRole_ResourceRequiredDelegationConnector (): Res... 0%   (0/1)0%   (0/3)0%   (0/1)
basicGetOuterResourceRequiredRole_ResourceRequiredDelegationConnector (): Res... 0%   (0/1)0%   (0/3)0%   (0/1)
basicSetParentStructure_ResourceRequiredDelegationConnector (ComposedStructur... 0%   (0/1)0%   (0/9)0%   (0/2)
eBasicRemoveFromContainerFeature (NotificationChain): NotificationChain 0%   (0/1)0%   (0/15)0%   (0/3)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/27)0%   (0/7)
eInverseAdd (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/21)0%   (0/5)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/13)0%   (0/3)
eIsSet (int): boolean 0%   (0/1)0%   (0/27)0%   (0/5)
eSet (int, Object): void 0%   (0/1)0%   (0/22)0%   (0/9)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/18)0%   (0/9)
getInnerResourceRequiredRole_ResourceRequiredDelegationConnector (): Resource... 0%   (0/1)0%   (0/38)0%   (0/7)
getOuterResourceRequiredRole_ResourceRequiredDelegationConnector (): Resource... 0%   (0/1)0%   (0/38)0%   (0/7)
getParentStructure_ResourceRequiredDelegationConnector (): ComposedStructure 0%   (0/1)0%   (0/10)0%   (0/2)
setInnerResourceRequiredRole_ResourceRequiredDelegationConnector (ResourceReq... 0%   (0/1)0%   (0/21)0%   (0/5)
setOuterResourceRequiredRole_ResourceRequiredDelegationConnector (ResourceReq... 0%   (0/1)0%   (0/21)0%   (0/5)
setParentStructure_ResourceRequiredDelegationConnector (ComposedStructure): void 0%   (0/1)0%   (0/69)0%   (0/13)

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 org.eclipse.emf.common.notify.Notification;
9import org.eclipse.emf.common.notify.NotificationChain;
10import org.eclipse.emf.ecore.EClass;
11import org.eclipse.emf.ecore.InternalEObject;
12import org.eclipse.emf.ecore.impl.ENotificationImpl;
13import org.eclipse.emf.ecore.impl.EObjectImpl;
14import org.eclipse.emf.ecore.util.EcoreUtil;
15 
16import de.uka.ipd.sdq.pcm.core.composition.ComposedStructure;
17import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage;
18import de.uka.ipd.sdq.pcm.core.composition.ResourceRequiredDelegationConnector;
19import de.uka.ipd.sdq.pcm.core.entity.ResourceRequiredRole;
20 
21/**
22 * <!-- begin-user-doc -->
23 * An implementation of the model object '<em><b>Resource Required Delegation Connector</b></em>'.
24 * <!-- end-user-doc -->
25 * <p>
26 * The following features are implemented:
27 * <ul>
28 *   <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.ResourceRequiredDelegationConnectorImpl#getInnerResourceRequiredRole_ResourceRequiredDelegationConnector <em>Inner Resource Required Role Resource Required Delegation Connector</em>}</li>
29 *   <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.ResourceRequiredDelegationConnectorImpl#getOuterResourceRequiredRole_ResourceRequiredDelegationConnector <em>Outer Resource Required Role Resource Required Delegation Connector</em>}</li>
30 *   <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.ResourceRequiredDelegationConnectorImpl#getParentStructure_ResourceRequiredDelegationConnector <em>Parent Structure Resource Required Delegation Connector</em>}</li>
31 * </ul>
32 * </p>
33 *
34 * @generated
35 */
36public class ResourceRequiredDelegationConnectorImpl extends EObjectImpl implements ResourceRequiredDelegationConnector {
37        /**
38         * <!-- begin-user-doc -->
39         * <!-- end-user-doc -->
40         * @generated
41         */
42        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
43 
44        /**
45         * The cached value of the '{@link #getInnerResourceRequiredRole_ResourceRequiredDelegationConnector() <em>Inner Resource Required Role Resource Required Delegation Connector</em>}' reference.
46         * <!-- begin-user-doc -->
47         * <!-- end-user-doc -->
48         * @see #getInnerResourceRequiredRole_ResourceRequiredDelegationConnector()
49         * @generated
50         * @ordered
51         */
52        protected ResourceRequiredRole innerResourceRequiredRole_ResourceRequiredDelegationConnector;
53 
54        /**
55         * The cached value of the '{@link #getOuterResourceRequiredRole_ResourceRequiredDelegationConnector() <em>Outer Resource Required Role Resource Required Delegation Connector</em>}' reference.
56         * <!-- begin-user-doc -->
57         * <!-- end-user-doc -->
58         * @see #getOuterResourceRequiredRole_ResourceRequiredDelegationConnector()
59         * @generated
60         * @ordered
61         */
62        protected ResourceRequiredRole outerResourceRequiredRole_ResourceRequiredDelegationConnector;
63 
64        /**
65         * <!-- begin-user-doc -->
66         * <!-- end-user-doc -->
67         * @generated
68         */
69        protected ResourceRequiredDelegationConnectorImpl() {
70                super();
71        }
72 
73        /**
74         * <!-- begin-user-doc -->
75         * <!-- end-user-doc -->
76         * @generated
77         */
78        @Override
79        protected EClass eStaticClass() {
80                return CompositionPackage.Literals.RESOURCE_REQUIRED_DELEGATION_CONNECTOR;
81        }
82 
83        /**
84         * <!-- begin-user-doc -->
85         * <!-- end-user-doc -->
86         * @generated
87         */
88        public ComposedStructure getParentStructure_ResourceRequiredDelegationConnector() {
89                if (eContainerFeatureID() != CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__PARENT_STRUCTURE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR) return null;
90                return (ComposedStructure)eContainer();
91        }
92 
93        /**
94         * <!-- begin-user-doc -->
95         * <!-- end-user-doc -->
96         * @generated
97         */
98        public NotificationChain basicSetParentStructure_ResourceRequiredDelegationConnector(ComposedStructure newParentStructure_ResourceRequiredDelegationConnector, NotificationChain msgs) {
99                msgs = eBasicSetContainer((InternalEObject)newParentStructure_ResourceRequiredDelegationConnector, CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__PARENT_STRUCTURE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR, msgs);
100                return msgs;
101        }
102 
103        /**
104         * <!-- begin-user-doc -->
105         * <!-- end-user-doc -->
106         * @generated
107         */
108        public void setParentStructure_ResourceRequiredDelegationConnector(ComposedStructure newParentStructure_ResourceRequiredDelegationConnector) {
109                if (newParentStructure_ResourceRequiredDelegationConnector != eInternalContainer() || (eContainerFeatureID() != CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__PARENT_STRUCTURE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR && newParentStructure_ResourceRequiredDelegationConnector != null)) {
110                        if (EcoreUtil.isAncestor(this, newParentStructure_ResourceRequiredDelegationConnector))
111                                throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
112                        NotificationChain msgs = null;
113                        if (eInternalContainer() != null)
114                                msgs = eBasicRemoveFromContainer(msgs);
115                        if (newParentStructure_ResourceRequiredDelegationConnector != null)
116                                msgs = ((InternalEObject)newParentStructure_ResourceRequiredDelegationConnector).eInverseAdd(this, CompositionPackage.COMPOSED_STRUCTURE__RESOURCE_REQUIRED_DELEGATION_CONNECTORS_COMPOSED_STRUCTURE, ComposedStructure.class, msgs);
117                        msgs = basicSetParentStructure_ResourceRequiredDelegationConnector(newParentStructure_ResourceRequiredDelegationConnector, msgs);
118                        if (msgs != null) msgs.dispatch();
119                }
120                else if (eNotificationRequired())
121                        eNotify(new ENotificationImpl(this, Notification.SET, CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__PARENT_STRUCTURE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR, newParentStructure_ResourceRequiredDelegationConnector, newParentStructure_ResourceRequiredDelegationConnector));
122        }
123 
124        /**
125         * <!-- begin-user-doc -->
126         * <!-- end-user-doc -->
127         * @generated
128         */
129        public ResourceRequiredRole getInnerResourceRequiredRole_ResourceRequiredDelegationConnector() {
130                if (innerResourceRequiredRole_ResourceRequiredDelegationConnector != null && innerResourceRequiredRole_ResourceRequiredDelegationConnector.eIsProxy()) {
131                        InternalEObject oldInnerResourceRequiredRole_ResourceRequiredDelegationConnector = (InternalEObject)innerResourceRequiredRole_ResourceRequiredDelegationConnector;
132                        innerResourceRequiredRole_ResourceRequiredDelegationConnector = (ResourceRequiredRole)eResolveProxy(oldInnerResourceRequiredRole_ResourceRequiredDelegationConnector);
133                        if (innerResourceRequiredRole_ResourceRequiredDelegationConnector != oldInnerResourceRequiredRole_ResourceRequiredDelegationConnector) {
134                                if (eNotificationRequired())
135                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__INNER_RESOURCE_REQUIRED_ROLE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR, oldInnerResourceRequiredRole_ResourceRequiredDelegationConnector, innerResourceRequiredRole_ResourceRequiredDelegationConnector));
136                        }
137                }
138                return innerResourceRequiredRole_ResourceRequiredDelegationConnector;
139        }
140 
141        /**
142         * <!-- begin-user-doc -->
143         * <!-- end-user-doc -->
144         * @generated
145         */
146        public ResourceRequiredRole basicGetInnerResourceRequiredRole_ResourceRequiredDelegationConnector() {
147                return innerResourceRequiredRole_ResourceRequiredDelegationConnector;
148        }
149 
150        /**
151         * <!-- begin-user-doc -->
152         * <!-- end-user-doc -->
153         * @generated
154         */
155        public void setInnerResourceRequiredRole_ResourceRequiredDelegationConnector(ResourceRequiredRole newInnerResourceRequiredRole_ResourceRequiredDelegationConnector) {
156                ResourceRequiredRole oldInnerResourceRequiredRole_ResourceRequiredDelegationConnector = innerResourceRequiredRole_ResourceRequiredDelegationConnector;
157                innerResourceRequiredRole_ResourceRequiredDelegationConnector = newInnerResourceRequiredRole_ResourceRequiredDelegationConnector;
158                if (eNotificationRequired())
159                        eNotify(new ENotificationImpl(this, Notification.SET, CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__INNER_RESOURCE_REQUIRED_ROLE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR, oldInnerResourceRequiredRole_ResourceRequiredDelegationConnector, innerResourceRequiredRole_ResourceRequiredDelegationConnector));
160        }
161 
162        /**
163         * <!-- begin-user-doc -->
164         * <!-- end-user-doc -->
165         * @generated
166         */
167        public ResourceRequiredRole getOuterResourceRequiredRole_ResourceRequiredDelegationConnector() {
168                if (outerResourceRequiredRole_ResourceRequiredDelegationConnector != null && outerResourceRequiredRole_ResourceRequiredDelegationConnector.eIsProxy()) {
169                        InternalEObject oldOuterResourceRequiredRole_ResourceRequiredDelegationConnector = (InternalEObject)outerResourceRequiredRole_ResourceRequiredDelegationConnector;
170                        outerResourceRequiredRole_ResourceRequiredDelegationConnector = (ResourceRequiredRole)eResolveProxy(oldOuterResourceRequiredRole_ResourceRequiredDelegationConnector);
171                        if (outerResourceRequiredRole_ResourceRequiredDelegationConnector != oldOuterResourceRequiredRole_ResourceRequiredDelegationConnector) {
172                                if (eNotificationRequired())
173                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__OUTER_RESOURCE_REQUIRED_ROLE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR, oldOuterResourceRequiredRole_ResourceRequiredDelegationConnector, outerResourceRequiredRole_ResourceRequiredDelegationConnector));
174                        }
175                }
176                return outerResourceRequiredRole_ResourceRequiredDelegationConnector;
177        }
178 
179        /**
180         * <!-- begin-user-doc -->
181         * <!-- end-user-doc -->
182         * @generated
183         */
184        public ResourceRequiredRole basicGetOuterResourceRequiredRole_ResourceRequiredDelegationConnector() {
185                return outerResourceRequiredRole_ResourceRequiredDelegationConnector;
186        }
187 
188        /**
189         * <!-- begin-user-doc -->
190         * <!-- end-user-doc -->
191         * @generated
192         */
193        public void setOuterResourceRequiredRole_ResourceRequiredDelegationConnector(ResourceRequiredRole newOuterResourceRequiredRole_ResourceRequiredDelegationConnector) {
194                ResourceRequiredRole oldOuterResourceRequiredRole_ResourceRequiredDelegationConnector = outerResourceRequiredRole_ResourceRequiredDelegationConnector;
195                outerResourceRequiredRole_ResourceRequiredDelegationConnector = newOuterResourceRequiredRole_ResourceRequiredDelegationConnector;
196                if (eNotificationRequired())
197                        eNotify(new ENotificationImpl(this, Notification.SET, CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__OUTER_RESOURCE_REQUIRED_ROLE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR, oldOuterResourceRequiredRole_ResourceRequiredDelegationConnector, outerResourceRequiredRole_ResourceRequiredDelegationConnector));
198        }
199 
200        /**
201         * <!-- begin-user-doc -->
202         * <!-- end-user-doc -->
203         * @generated
204         */
205        @Override
206        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
207                switch (featureID) {
208                        case CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__PARENT_STRUCTURE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR:
209                                if (eInternalContainer() != null)
210                                        msgs = eBasicRemoveFromContainer(msgs);
211                                return basicSetParentStructure_ResourceRequiredDelegationConnector((ComposedStructure)otherEnd, msgs);
212                }
213                return super.eInverseAdd(otherEnd, featureID, msgs);
214        }
215 
216        /**
217         * <!-- begin-user-doc -->
218         * <!-- end-user-doc -->
219         * @generated
220         */
221        @Override
222        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
223                switch (featureID) {
224                        case CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__PARENT_STRUCTURE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR:
225                                return basicSetParentStructure_ResourceRequiredDelegationConnector(null, msgs);
226                }
227                return super.eInverseRemove(otherEnd, featureID, msgs);
228        }
229 
230        /**
231         * <!-- begin-user-doc -->
232         * <!-- end-user-doc -->
233         * @generated
234         */
235        @Override
236        public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
237                switch (eContainerFeatureID()) {
238                        case CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__PARENT_STRUCTURE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR:
239                                return eInternalContainer().eInverseRemove(this, CompositionPackage.COMPOSED_STRUCTURE__RESOURCE_REQUIRED_DELEGATION_CONNECTORS_COMPOSED_STRUCTURE, ComposedStructure.class, msgs);
240                }
241                return super.eBasicRemoveFromContainerFeature(msgs);
242        }
243 
244        /**
245         * <!-- begin-user-doc -->
246         * <!-- end-user-doc -->
247         * @generated
248         */
249        @Override
250        public Object eGet(int featureID, boolean resolve, boolean coreType) {
251                switch (featureID) {
252                        case CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__INNER_RESOURCE_REQUIRED_ROLE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR:
253                                if (resolve) return getInnerResourceRequiredRole_ResourceRequiredDelegationConnector();
254                                return basicGetInnerResourceRequiredRole_ResourceRequiredDelegationConnector();
255                        case CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__OUTER_RESOURCE_REQUIRED_ROLE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR:
256                                if (resolve) return getOuterResourceRequiredRole_ResourceRequiredDelegationConnector();
257                                return basicGetOuterResourceRequiredRole_ResourceRequiredDelegationConnector();
258                        case CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__PARENT_STRUCTURE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR:
259                                return getParentStructure_ResourceRequiredDelegationConnector();
260                }
261                return super.eGet(featureID, resolve, coreType);
262        }
263 
264        /**
265         * <!-- begin-user-doc -->
266         * <!-- end-user-doc -->
267         * @generated
268         */
269        @Override
270        public void eSet(int featureID, Object newValue) {
271                switch (featureID) {
272                        case CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__INNER_RESOURCE_REQUIRED_ROLE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR:
273                                setInnerResourceRequiredRole_ResourceRequiredDelegationConnector((ResourceRequiredRole)newValue);
274                                return;
275                        case CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__OUTER_RESOURCE_REQUIRED_ROLE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR:
276                                setOuterResourceRequiredRole_ResourceRequiredDelegationConnector((ResourceRequiredRole)newValue);
277                                return;
278                        case CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__PARENT_STRUCTURE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR:
279                                setParentStructure_ResourceRequiredDelegationConnector((ComposedStructure)newValue);
280                                return;
281                }
282                super.eSet(featureID, newValue);
283        }
284 
285        /**
286         * <!-- begin-user-doc -->
287         * <!-- end-user-doc -->
288         * @generated
289         */
290        @Override
291        public void eUnset(int featureID) {
292                switch (featureID) {
293                        case CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__INNER_RESOURCE_REQUIRED_ROLE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR:
294                                setInnerResourceRequiredRole_ResourceRequiredDelegationConnector((ResourceRequiredRole)null);
295                                return;
296                        case CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__OUTER_RESOURCE_REQUIRED_ROLE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR:
297                                setOuterResourceRequiredRole_ResourceRequiredDelegationConnector((ResourceRequiredRole)null);
298                                return;
299                        case CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__PARENT_STRUCTURE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR:
300                                setParentStructure_ResourceRequiredDelegationConnector((ComposedStructure)null);
301                                return;
302                }
303                super.eUnset(featureID);
304        }
305 
306        /**
307         * <!-- begin-user-doc -->
308         * <!-- end-user-doc -->
309         * @generated
310         */
311        @Override
312        public boolean eIsSet(int featureID) {
313                switch (featureID) {
314                        case CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__INNER_RESOURCE_REQUIRED_ROLE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR:
315                                return innerResourceRequiredRole_ResourceRequiredDelegationConnector != null;
316                        case CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__OUTER_RESOURCE_REQUIRED_ROLE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR:
317                                return outerResourceRequiredRole_ResourceRequiredDelegationConnector != null;
318                        case CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR__PARENT_STRUCTURE_RESOURCE_REQUIRED_DELEGATION_CONNECTOR:
319                                return getParentStructure_ResourceRequiredDelegationConnector() != null;
320                }
321                return super.eIsSet(featureID);
322        }
323 
324} //ResourceRequiredDelegationConnectorImpl

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