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

nameclass, %method, %block, %line, %
SourceDelegationConnectorImpl.java0%   (0/1)0%   (0/15)0%   (0/290)0%   (0/73)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SourceDelegationConnectorImpl0%   (0/1)0%   (0/15)0%   (0/290)0%   (0/73)
SourceDelegationConnectorImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicGetAssemblyContext__SourceDelegationConnector (): AssemblyContext 0%   (0/1)0%   (0/3)0%   (0/1)
basicGetInnerSourceRole__SourceRole (): SourceRole 0%   (0/1)0%   (0/3)0%   (0/1)
basicGetOuterSourceRole__SourceRole (): SourceRole 0%   (0/1)0%   (0/3)0%   (0/1)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/32)0%   (0/8)
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)
getAssemblyContext__SourceDelegationConnector (): AssemblyContext 0%   (0/1)0%   (0/38)0%   (0/7)
getInnerSourceRole__SourceRole (): SourceRole 0%   (0/1)0%   (0/38)0%   (0/7)
getOuterSourceRole__SourceRole (): SourceRole 0%   (0/1)0%   (0/38)0%   (0/7)
setAssemblyContext__SourceDelegationConnector (AssemblyContext): void 0%   (0/1)0%   (0/21)0%   (0/5)
setInnerSourceRole__SourceRole (SourceRole): void 0%   (0/1)0%   (0/21)0%   (0/5)
setOuterSourceRole__SourceRole (SourceRole): void 0%   (0/1)0%   (0/21)0%   (0/5)

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.ecore.EClass;
10import org.eclipse.emf.ecore.InternalEObject;
11import org.eclipse.emf.ecore.impl.ENotificationImpl;
12 
13import de.uka.ipd.sdq.pcm.core.composition.AssemblyContext;
14import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage;
15import de.uka.ipd.sdq.pcm.core.composition.SourceDelegationConnector;
16import de.uka.ipd.sdq.pcm.repository.SourceRole;
17import de.uka.ipd.sdq.pcm.repository.impl.DelegationConnectorImpl;
18 
19/**
20 * <!-- begin-user-doc -->
21 * An implementation of the model object '<em><b>Source Delegation Connector</b></em>'.
22 * <!-- end-user-doc -->
23 * <p>
24 * The following features are implemented:
25 * <ul>
26 *   <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.SourceDelegationConnectorImpl#getInnerSourceRole__SourceRole <em>Inner Source Role Source Role</em>}</li>
27 *   <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.SourceDelegationConnectorImpl#getOuterSourceRole__SourceRole <em>Outer Source Role Source Role</em>}</li>
28 *   <li>{@link de.uka.ipd.sdq.pcm.core.composition.impl.SourceDelegationConnectorImpl#getAssemblyContext__SourceDelegationConnector <em>Assembly Context Source Delegation Connector</em>}</li>
29 * </ul>
30 * </p>
31 *
32 * @generated
33 */
34public class SourceDelegationConnectorImpl extends DelegationConnectorImpl implements SourceDelegationConnector {
35        /**
36         * <!-- begin-user-doc -->
37         * <!-- end-user-doc -->
38         * @generated
39         */
40        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
41 
42        /**
43         * The cached value of the '{@link #getInnerSourceRole__SourceRole() <em>Inner Source Role Source Role</em>}' reference.
44         * <!-- begin-user-doc -->
45         * <!-- end-user-doc -->
46         * @see #getInnerSourceRole__SourceRole()
47         * @generated
48         * @ordered
49         */
50        protected SourceRole innerSourceRole__SourceRole;
51 
52        /**
53         * The cached value of the '{@link #getOuterSourceRole__SourceRole() <em>Outer Source Role Source Role</em>}' reference.
54         * <!-- begin-user-doc -->
55         * <!-- end-user-doc -->
56         * @see #getOuterSourceRole__SourceRole()
57         * @generated
58         * @ordered
59         */
60        protected SourceRole outerSourceRole__SourceRole;
61 
62        /**
63         * The cached value of the '{@link #getAssemblyContext__SourceDelegationConnector() <em>Assembly Context Source Delegation Connector</em>}' reference.
64         * <!-- begin-user-doc -->
65         * <!-- end-user-doc -->
66         * @see #getAssemblyContext__SourceDelegationConnector()
67         * @generated
68         * @ordered
69         */
70        protected AssemblyContext assemblyContext__SourceDelegationConnector;
71 
72        /**
73         * <!-- begin-user-doc -->
74         * <!-- end-user-doc -->
75         * @generated
76         */
77        protected SourceDelegationConnectorImpl() {
78                super();
79        }
80 
81        /**
82         * <!-- begin-user-doc -->
83         * <!-- end-user-doc -->
84         * @generated
85         */
86        @Override
87        protected EClass eStaticClass() {
88                return CompositionPackage.Literals.SOURCE_DELEGATION_CONNECTOR;
89        }
90 
91        /**
92         * <!-- begin-user-doc -->
93         * <!-- end-user-doc -->
94         * @generated
95         */
96        public SourceRole getInnerSourceRole__SourceRole() {
97                if (innerSourceRole__SourceRole != null && innerSourceRole__SourceRole.eIsProxy()) {
98                        InternalEObject oldInnerSourceRole__SourceRole = (InternalEObject)innerSourceRole__SourceRole;
99                        innerSourceRole__SourceRole = (SourceRole)eResolveProxy(oldInnerSourceRole__SourceRole);
100                        if (innerSourceRole__SourceRole != oldInnerSourceRole__SourceRole) {
101                                if (eNotificationRequired())
102                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, CompositionPackage.SOURCE_DELEGATION_CONNECTOR__INNER_SOURCE_ROLE_SOURCE_ROLE, oldInnerSourceRole__SourceRole, innerSourceRole__SourceRole));
103                        }
104                }
105                return innerSourceRole__SourceRole;
106        }
107 
108        /**
109         * <!-- begin-user-doc -->
110         * <!-- end-user-doc -->
111         * @generated
112         */
113        public SourceRole basicGetInnerSourceRole__SourceRole() {
114                return innerSourceRole__SourceRole;
115        }
116 
117        /**
118         * <!-- begin-user-doc -->
119         * <!-- end-user-doc -->
120         * @generated
121         */
122        public void setInnerSourceRole__SourceRole(SourceRole newInnerSourceRole__SourceRole) {
123                SourceRole oldInnerSourceRole__SourceRole = innerSourceRole__SourceRole;
124                innerSourceRole__SourceRole = newInnerSourceRole__SourceRole;
125                if (eNotificationRequired())
126                        eNotify(new ENotificationImpl(this, Notification.SET, CompositionPackage.SOURCE_DELEGATION_CONNECTOR__INNER_SOURCE_ROLE_SOURCE_ROLE, oldInnerSourceRole__SourceRole, innerSourceRole__SourceRole));
127        }
128 
129        /**
130         * <!-- begin-user-doc -->
131         * <!-- end-user-doc -->
132         * @generated
133         */
134        public SourceRole getOuterSourceRole__SourceRole() {
135                if (outerSourceRole__SourceRole != null && outerSourceRole__SourceRole.eIsProxy()) {
136                        InternalEObject oldOuterSourceRole__SourceRole = (InternalEObject)outerSourceRole__SourceRole;
137                        outerSourceRole__SourceRole = (SourceRole)eResolveProxy(oldOuterSourceRole__SourceRole);
138                        if (outerSourceRole__SourceRole != oldOuterSourceRole__SourceRole) {
139                                if (eNotificationRequired())
140                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, CompositionPackage.SOURCE_DELEGATION_CONNECTOR__OUTER_SOURCE_ROLE_SOURCE_ROLE, oldOuterSourceRole__SourceRole, outerSourceRole__SourceRole));
141                        }
142                }
143                return outerSourceRole__SourceRole;
144        }
145 
146        /**
147         * <!-- begin-user-doc -->
148         * <!-- end-user-doc -->
149         * @generated
150         */
151        public SourceRole basicGetOuterSourceRole__SourceRole() {
152                return outerSourceRole__SourceRole;
153        }
154 
155        /**
156         * <!-- begin-user-doc -->
157         * <!-- end-user-doc -->
158         * @generated
159         */
160        public void setOuterSourceRole__SourceRole(SourceRole newOuterSourceRole__SourceRole) {
161                SourceRole oldOuterSourceRole__SourceRole = outerSourceRole__SourceRole;
162                outerSourceRole__SourceRole = newOuterSourceRole__SourceRole;
163                if (eNotificationRequired())
164                        eNotify(new ENotificationImpl(this, Notification.SET, CompositionPackage.SOURCE_DELEGATION_CONNECTOR__OUTER_SOURCE_ROLE_SOURCE_ROLE, oldOuterSourceRole__SourceRole, outerSourceRole__SourceRole));
165        }
166 
167        /**
168         * <!-- begin-user-doc -->
169         * <!-- end-user-doc -->
170         * @generated
171         */
172        public AssemblyContext getAssemblyContext__SourceDelegationConnector() {
173                if (assemblyContext__SourceDelegationConnector != null && assemblyContext__SourceDelegationConnector.eIsProxy()) {
174                        InternalEObject oldAssemblyContext__SourceDelegationConnector = (InternalEObject)assemblyContext__SourceDelegationConnector;
175                        assemblyContext__SourceDelegationConnector = (AssemblyContext)eResolveProxy(oldAssemblyContext__SourceDelegationConnector);
176                        if (assemblyContext__SourceDelegationConnector != oldAssemblyContext__SourceDelegationConnector) {
177                                if (eNotificationRequired())
178                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, CompositionPackage.SOURCE_DELEGATION_CONNECTOR__ASSEMBLY_CONTEXT_SOURCE_DELEGATION_CONNECTOR, oldAssemblyContext__SourceDelegationConnector, assemblyContext__SourceDelegationConnector));
179                        }
180                }
181                return assemblyContext__SourceDelegationConnector;
182        }
183 
184        /**
185         * <!-- begin-user-doc -->
186         * <!-- end-user-doc -->
187         * @generated
188         */
189        public AssemblyContext basicGetAssemblyContext__SourceDelegationConnector() {
190                return assemblyContext__SourceDelegationConnector;
191        }
192 
193        /**
194         * <!-- begin-user-doc -->
195         * <!-- end-user-doc -->
196         * @generated
197         */
198        public void setAssemblyContext__SourceDelegationConnector(AssemblyContext newAssemblyContext__SourceDelegationConnector) {
199                AssemblyContext oldAssemblyContext__SourceDelegationConnector = assemblyContext__SourceDelegationConnector;
200                assemblyContext__SourceDelegationConnector = newAssemblyContext__SourceDelegationConnector;
201                if (eNotificationRequired())
202                        eNotify(new ENotificationImpl(this, Notification.SET, CompositionPackage.SOURCE_DELEGATION_CONNECTOR__ASSEMBLY_CONTEXT_SOURCE_DELEGATION_CONNECTOR, oldAssemblyContext__SourceDelegationConnector, assemblyContext__SourceDelegationConnector));
203        }
204 
205        /**
206         * <!-- begin-user-doc -->
207         * <!-- end-user-doc -->
208         * @generated
209         */
210        @Override
211        public Object eGet(int featureID, boolean resolve, boolean coreType) {
212                switch (featureID) {
213                        case CompositionPackage.SOURCE_DELEGATION_CONNECTOR__INNER_SOURCE_ROLE_SOURCE_ROLE:
214                                if (resolve) return getInnerSourceRole__SourceRole();
215                                return basicGetInnerSourceRole__SourceRole();
216                        case CompositionPackage.SOURCE_DELEGATION_CONNECTOR__OUTER_SOURCE_ROLE_SOURCE_ROLE:
217                                if (resolve) return getOuterSourceRole__SourceRole();
218                                return basicGetOuterSourceRole__SourceRole();
219                        case CompositionPackage.SOURCE_DELEGATION_CONNECTOR__ASSEMBLY_CONTEXT_SOURCE_DELEGATION_CONNECTOR:
220                                if (resolve) return getAssemblyContext__SourceDelegationConnector();
221                                return basicGetAssemblyContext__SourceDelegationConnector();
222                }
223                return super.eGet(featureID, resolve, coreType);
224        }
225 
226        /**
227         * <!-- begin-user-doc -->
228         * <!-- end-user-doc -->
229         * @generated
230         */
231        @Override
232        public void eSet(int featureID, Object newValue) {
233                switch (featureID) {
234                        case CompositionPackage.SOURCE_DELEGATION_CONNECTOR__INNER_SOURCE_ROLE_SOURCE_ROLE:
235                                setInnerSourceRole__SourceRole((SourceRole)newValue);
236                                return;
237                        case CompositionPackage.SOURCE_DELEGATION_CONNECTOR__OUTER_SOURCE_ROLE_SOURCE_ROLE:
238                                setOuterSourceRole__SourceRole((SourceRole)newValue);
239                                return;
240                        case CompositionPackage.SOURCE_DELEGATION_CONNECTOR__ASSEMBLY_CONTEXT_SOURCE_DELEGATION_CONNECTOR:
241                                setAssemblyContext__SourceDelegationConnector((AssemblyContext)newValue);
242                                return;
243                }
244                super.eSet(featureID, newValue);
245        }
246 
247        /**
248         * <!-- begin-user-doc -->
249         * <!-- end-user-doc -->
250         * @generated
251         */
252        @Override
253        public void eUnset(int featureID) {
254                switch (featureID) {
255                        case CompositionPackage.SOURCE_DELEGATION_CONNECTOR__INNER_SOURCE_ROLE_SOURCE_ROLE:
256                                setInnerSourceRole__SourceRole((SourceRole)null);
257                                return;
258                        case CompositionPackage.SOURCE_DELEGATION_CONNECTOR__OUTER_SOURCE_ROLE_SOURCE_ROLE:
259                                setOuterSourceRole__SourceRole((SourceRole)null);
260                                return;
261                        case CompositionPackage.SOURCE_DELEGATION_CONNECTOR__ASSEMBLY_CONTEXT_SOURCE_DELEGATION_CONNECTOR:
262                                setAssemblyContext__SourceDelegationConnector((AssemblyContext)null);
263                                return;
264                }
265                super.eUnset(featureID);
266        }
267 
268        /**
269         * <!-- begin-user-doc -->
270         * <!-- end-user-doc -->
271         * @generated
272         */
273        @Override
274        public boolean eIsSet(int featureID) {
275                switch (featureID) {
276                        case CompositionPackage.SOURCE_DELEGATION_CONNECTOR__INNER_SOURCE_ROLE_SOURCE_ROLE:
277                                return innerSourceRole__SourceRole != null;
278                        case CompositionPackage.SOURCE_DELEGATION_CONNECTOR__OUTER_SOURCE_ROLE_SOURCE_ROLE:
279                                return outerSourceRole__SourceRole != null;
280                        case CompositionPackage.SOURCE_DELEGATION_CONNECTOR__ASSEMBLY_CONTEXT_SOURCE_DELEGATION_CONNECTOR:
281                                return assemblyContext__SourceDelegationConnector != null;
282                }
283                return super.eIsSet(featureID);
284        }
285 
286} //SourceDelegationConnectorImpl

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