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

nameclass, %method, %block, %line, %
PCMComponentReferenceImpl.java0%   (0/1)0%   (0/9)0%   (0/118)0%   (0/33)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PCMComponentReferenceImpl0%   (0/1)0%   (0/9)0%   (0/118)0%   (0/33)
PCMComponentReferenceImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicGetBasicComponent (): BasicComponent 0%   (0/1)0%   (0/3)0%   (0/1)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/16)0%   (0/4)
eIsSet (int): boolean 0%   (0/1)0%   (0/13)0%   (0/3)
eSet (int, Object): void 0%   (0/1)0%   (0/12)0%   (0/5)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/10)0%   (0/5)
getBasicComponent (): BasicComponent 0%   (0/1)0%   (0/38)0%   (0/7)
setBasicComponent (BasicComponent): 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.ComponentReferenceImpl;
10 
11import de.fzi.se.quality.parameters.pcm.PCMComponentReference;
12import de.fzi.se.quality.parameters.pcm.PCMPackage;
13 
14import de.uka.ipd.sdq.pcm.repository.BasicComponent;
15 
16import org.eclipse.emf.common.notify.Notification;
17 
18import org.eclipse.emf.ecore.EClass;
19import org.eclipse.emf.ecore.InternalEObject;
20 
21import org.eclipse.emf.ecore.impl.ENotificationImpl;
22 
23/**
24 * <!-- begin-user-doc -->
25 * An implementation of the model object '<em><b>Component Reference</b></em>'.
26 * <!-- end-user-doc -->
27 * <p>
28 * The following features are implemented:
29 * <ul>
30 *   <li>{@link de.fzi.se.quality.parameters.pcm.impl.PCMComponentReferenceImpl#getBasicComponent <em>Basic Component</em>}</li>
31 * </ul>
32 * </p>
33 *
34 * @generated
35 */
36public class PCMComponentReferenceImpl extends ComponentReferenceImpl implements PCMComponentReference {
37        /**
38         * The cached value of the '{@link #getBasicComponent() <em>Basic Component</em>}' reference.
39         * <!-- begin-user-doc -->
40         * <!-- end-user-doc -->
41         * @see #getBasicComponent()
42         * @generated
43         * @ordered
44         */
45        protected BasicComponent basicComponent;
46 
47        /**
48         * <!-- begin-user-doc -->
49         * <!-- end-user-doc -->
50         * @generated
51         */
52        protected PCMComponentReferenceImpl() {
53                super();
54        }
55 
56        /**
57         * <!-- begin-user-doc -->
58         * <!-- end-user-doc -->
59         * @generated
60         */
61        @Override
62        protected EClass eStaticClass() {
63                return PCMPackage.Literals.PCM_COMPONENT_REFERENCE;
64        }
65 
66        /**
67         * <!-- begin-user-doc -->
68         * <!-- end-user-doc -->
69         * @generated
70         */
71        public BasicComponent getBasicComponent() {
72                if (basicComponent != null && basicComponent.eIsProxy()) {
73                        InternalEObject oldBasicComponent = (InternalEObject)basicComponent;
74                        basicComponent = (BasicComponent)eResolveProxy(oldBasicComponent);
75                        if (basicComponent != oldBasicComponent) {
76                                if (eNotificationRequired())
77                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, PCMPackage.PCM_COMPONENT_REFERENCE__BASIC_COMPONENT, oldBasicComponent, basicComponent));
78                        }
79                }
80                return basicComponent;
81        }
82 
83        /**
84         * <!-- begin-user-doc -->
85         * <!-- end-user-doc -->
86         * @generated
87         */
88        public BasicComponent basicGetBasicComponent() {
89                return basicComponent;
90        }
91 
92        /**
93         * <!-- begin-user-doc -->
94         * <!-- end-user-doc -->
95         * @generated
96         */
97        public void setBasicComponent(BasicComponent newBasicComponent) {
98                BasicComponent oldBasicComponent = basicComponent;
99                basicComponent = newBasicComponent;
100                if (eNotificationRequired())
101                        eNotify(new ENotificationImpl(this, Notification.SET, PCMPackage.PCM_COMPONENT_REFERENCE__BASIC_COMPONENT, oldBasicComponent, basicComponent));
102        }
103 
104        /**
105         * <!-- begin-user-doc -->
106         * <!-- end-user-doc -->
107         * @generated
108         */
109        @Override
110        public Object eGet(int featureID, boolean resolve, boolean coreType) {
111                switch (featureID) {
112                        case PCMPackage.PCM_COMPONENT_REFERENCE__BASIC_COMPONENT:
113                                if (resolve) return getBasicComponent();
114                                return basicGetBasicComponent();
115                }
116                return super.eGet(featureID, resolve, coreType);
117        }
118 
119        /**
120         * <!-- begin-user-doc -->
121         * <!-- end-user-doc -->
122         * @generated
123         */
124        @Override
125        public void eSet(int featureID, Object newValue) {
126                switch (featureID) {
127                        case PCMPackage.PCM_COMPONENT_REFERENCE__BASIC_COMPONENT:
128                                setBasicComponent((BasicComponent)newValue);
129                                return;
130                }
131                super.eSet(featureID, newValue);
132        }
133 
134        /**
135         * <!-- begin-user-doc -->
136         * <!-- end-user-doc -->
137         * @generated
138         */
139        @Override
140        public void eUnset(int featureID) {
141                switch (featureID) {
142                        case PCMPackage.PCM_COMPONENT_REFERENCE__BASIC_COMPONENT:
143                                setBasicComponent((BasicComponent)null);
144                                return;
145                }
146                super.eUnset(featureID);
147        }
148 
149        /**
150         * <!-- begin-user-doc -->
151         * <!-- end-user-doc -->
152         * @generated
153         */
154        @Override
155        public boolean eIsSet(int featureID) {
156                switch (featureID) {
157                        case PCMPackage.PCM_COMPONENT_REFERENCE__BASIC_COMPONENT:
158                                return basicComponent != null;
159                }
160                return super.eIsSet(featureID);
161        }
162 
163} //PCMComponentReferenceImpl

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