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

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

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

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