EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.fzi.se.quality.parameters.pcm.impl]

COVERAGE SUMMARY FOR SOURCE FILE [PCMInfrastructureOperationReferenceImpl.java]

nameclass, %method, %block, %line, %
PCMInfrastructureOperationReferenceImpl.java0%   (0/1)0%   (0/12)0%   (0/204)0%   (0/53)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PCMInfrastructureOperationReferenceImpl0%   (0/1)0%   (0/12)0%   (0/204)0%   (0/53)
PCMInfrastructureOperationReferenceImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicGetResourceRequiredRole (): ResourceRequiredRole 0%   (0/1)0%   (0/3)0%   (0/1)
basicGetSignature (): Signature 0%   (0/1)0%   (0/3)0%   (0/1)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/24)0%   (0/6)
eIsSet (int): boolean 0%   (0/1)0%   (0/20)0%   (0/4)
eSet (int, Object): void 0%   (0/1)0%   (0/17)0%   (0/7)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/14)0%   (0/7)
getResourceRequiredRole (): ResourceRequiredRole 0%   (0/1)0%   (0/38)0%   (0/7)
getSignature (): Signature 0%   (0/1)0%   (0/38)0%   (0/7)
setResourceRequiredRole (ResourceRequiredRole): void 0%   (0/1)0%   (0/21)0%   (0/5)
setSignature (Signature): void 0%   (0/1)0%   (0/21)0%   (0/5)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.fzi.se.quality.parameters.pcm.impl;
8 
9import de.fzi.se.quality.parameters.impl.InfrastructureOperationReferenceImpl;
10 
11import de.fzi.se.quality.parameters.pcm.PCMInfrastructureOperationReference;
12import de.fzi.se.quality.parameters.pcm.PCMPackage;
13 
14import de.uka.ipd.sdq.pcm.core.entity.ResourceRequiredRole;
15 
16import de.uka.ipd.sdq.pcm.repository.Signature;
17 
18import org.eclipse.emf.common.notify.Notification;
19 
20import org.eclipse.emf.ecore.EClass;
21import org.eclipse.emf.ecore.InternalEObject;
22 
23import org.eclipse.emf.ecore.impl.ENotificationImpl;
24 
25/**
26 * <!-- begin-user-doc -->
27 * An implementation of the model object '<em><b>Infrastructure Operation Reference</b></em>'.
28 * <!-- end-user-doc -->
29 * <p>
30 * The following features are implemented:
31 * <ul>
32 *   <li>{@link de.fzi.se.quality.parameters.pcm.impl.PCMInfrastructureOperationReferenceImpl#getResourceRequiredRole <em>Resource Required Role</em>}</li>
33 *   <li>{@link de.fzi.se.quality.parameters.pcm.impl.PCMInfrastructureOperationReferenceImpl#getSignature <em>Signature</em>}</li>
34 * </ul>
35 * </p>
36 *
37 * @generated
38 */
39public class PCMInfrastructureOperationReferenceImpl extends InfrastructureOperationReferenceImpl implements PCMInfrastructureOperationReference {
40        /**
41         * The cached value of the '{@link #getResourceRequiredRole() <em>Resource Required Role</em>}' reference.
42         * <!-- begin-user-doc -->
43         * <!-- end-user-doc -->
44         * @see #getResourceRequiredRole()
45         * @generated
46         * @ordered
47         */
48        protected ResourceRequiredRole resourceRequiredRole;
49 
50        /**
51         * The cached value of the '{@link #getSignature() <em>Signature</em>}' reference.
52         * <!-- begin-user-doc -->
53         * <!-- end-user-doc -->
54         * @see #getSignature()
55         * @generated
56         * @ordered
57         */
58        protected Signature signature;
59 
60        /**
61         * <!-- begin-user-doc -->
62         * <!-- end-user-doc -->
63         * @generated
64         */
65        protected PCMInfrastructureOperationReferenceImpl() {
66                super();
67        }
68 
69        /**
70         * <!-- begin-user-doc -->
71         * <!-- end-user-doc -->
72         * @generated
73         */
74        @Override
75        protected EClass eStaticClass() {
76                return PCMPackage.Literals.PCM_INFRASTRUCTURE_OPERATION_REFERENCE;
77        }
78 
79        /**
80         * <!-- begin-user-doc -->
81         * <!-- end-user-doc -->
82         * @generated
83         */
84        public ResourceRequiredRole getResourceRequiredRole() {
85                if (resourceRequiredRole != null && resourceRequiredRole.eIsProxy()) {
86                        InternalEObject oldResourceRequiredRole = (InternalEObject)resourceRequiredRole;
87                        resourceRequiredRole = (ResourceRequiredRole)eResolveProxy(oldResourceRequiredRole);
88                        if (resourceRequiredRole != oldResourceRequiredRole) {
89                                if (eNotificationRequired())
90                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, PCMPackage.PCM_INFRASTRUCTURE_OPERATION_REFERENCE__RESOURCE_REQUIRED_ROLE, oldResourceRequiredRole, resourceRequiredRole));
91                        }
92                }
93                return resourceRequiredRole;
94        }
95 
96        /**
97         * <!-- begin-user-doc -->
98         * <!-- end-user-doc -->
99         * @generated
100         */
101        public ResourceRequiredRole basicGetResourceRequiredRole() {
102                return resourceRequiredRole;
103        }
104 
105        /**
106         * <!-- begin-user-doc -->
107         * <!-- end-user-doc -->
108         * @generated
109         */
110        public void setResourceRequiredRole(ResourceRequiredRole newResourceRequiredRole) {
111                ResourceRequiredRole oldResourceRequiredRole = resourceRequiredRole;
112                resourceRequiredRole = newResourceRequiredRole;
113                if (eNotificationRequired())
114                        eNotify(new ENotificationImpl(this, Notification.SET, PCMPackage.PCM_INFRASTRUCTURE_OPERATION_REFERENCE__RESOURCE_REQUIRED_ROLE, oldResourceRequiredRole, resourceRequiredRole));
115        }
116 
117        /**
118         * <!-- begin-user-doc -->
119         * <!-- end-user-doc -->
120         * @generated
121         */
122        public Signature getSignature() {
123                if (signature != null && signature.eIsProxy()) {
124                        InternalEObject oldSignature = (InternalEObject)signature;
125                        signature = (Signature)eResolveProxy(oldSignature);
126                        if (signature != oldSignature) {
127                                if (eNotificationRequired())
128                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, PCMPackage.PCM_INFRASTRUCTURE_OPERATION_REFERENCE__SIGNATURE, oldSignature, signature));
129                        }
130                }
131                return signature;
132        }
133 
134        /**
135         * <!-- begin-user-doc -->
136         * <!-- end-user-doc -->
137         * @generated
138         */
139        public Signature basicGetSignature() {
140                return signature;
141        }
142 
143        /**
144         * <!-- begin-user-doc -->
145         * <!-- end-user-doc -->
146         * @generated
147         */
148        public void setSignature(Signature newSignature) {
149                Signature oldSignature = signature;
150                signature = newSignature;
151                if (eNotificationRequired())
152                        eNotify(new ENotificationImpl(this, Notification.SET, PCMPackage.PCM_INFRASTRUCTURE_OPERATION_REFERENCE__SIGNATURE, oldSignature, signature));
153        }
154 
155        /**
156         * <!-- begin-user-doc -->
157         * <!-- end-user-doc -->
158         * @generated
159         */
160        @Override
161        public Object eGet(int featureID, boolean resolve, boolean coreType) {
162                switch (featureID) {
163                        case PCMPackage.PCM_INFRASTRUCTURE_OPERATION_REFERENCE__RESOURCE_REQUIRED_ROLE:
164                                if (resolve) return getResourceRequiredRole();
165                                return basicGetResourceRequiredRole();
166                        case PCMPackage.PCM_INFRASTRUCTURE_OPERATION_REFERENCE__SIGNATURE:
167                                if (resolve) return getSignature();
168                                return basicGetSignature();
169                }
170                return super.eGet(featureID, resolve, coreType);
171        }
172 
173        /**
174         * <!-- begin-user-doc -->
175         * <!-- end-user-doc -->
176         * @generated
177         */
178        @Override
179        public void eSet(int featureID, Object newValue) {
180                switch (featureID) {
181                        case PCMPackage.PCM_INFRASTRUCTURE_OPERATION_REFERENCE__RESOURCE_REQUIRED_ROLE:
182                                setResourceRequiredRole((ResourceRequiredRole)newValue);
183                                return;
184                        case PCMPackage.PCM_INFRASTRUCTURE_OPERATION_REFERENCE__SIGNATURE:
185                                setSignature((Signature)newValue);
186                                return;
187                }
188                super.eSet(featureID, newValue);
189        }
190 
191        /**
192         * <!-- begin-user-doc -->
193         * <!-- end-user-doc -->
194         * @generated
195         */
196        @Override
197        public void eUnset(int featureID) {
198                switch (featureID) {
199                        case PCMPackage.PCM_INFRASTRUCTURE_OPERATION_REFERENCE__RESOURCE_REQUIRED_ROLE:
200                                setResourceRequiredRole((ResourceRequiredRole)null);
201                                return;
202                        case PCMPackage.PCM_INFRASTRUCTURE_OPERATION_REFERENCE__SIGNATURE:
203                                setSignature((Signature)null);
204                                return;
205                }
206                super.eUnset(featureID);
207        }
208 
209        /**
210         * <!-- begin-user-doc -->
211         * <!-- end-user-doc -->
212         * @generated
213         */
214        @Override
215        public boolean eIsSet(int featureID) {
216                switch (featureID) {
217                        case PCMPackage.PCM_INFRASTRUCTURE_OPERATION_REFERENCE__RESOURCE_REQUIRED_ROLE:
218                                return resourceRequiredRole != null;
219                        case PCMPackage.PCM_INFRASTRUCTURE_OPERATION_REFERENCE__SIGNATURE:
220                                return signature != null;
221                }
222                return super.eIsSet(featureID);
223        }
224 
225} //PCMInfrastructureOperationReferenceImpl

[all classes][de.fzi.se.quality.parameters.pcm.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov