EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.pcm.designdecision.GDoF.impl]

COVERAGE SUMMARY FOR SOURCE FILE [HelperOCLDefinitionImpl.java]

nameclass, %method, %block, %line, %
HelperOCLDefinitionImpl.java0%   (0/1)0%   (0/11)0%   (0/146)0%   (0/43)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class HelperOCLDefinitionImpl0%   (0/1)0%   (0/11)0%   (0/146)0%   (0/43)
HelperOCLDefinitionImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicGetContextClass (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
eBaseStructuralFeatureID (int, Class): int 0%   (0/1)0%   (0/14)0%   (0/5)
eDerivedStructuralFeatureID (int, Class): int 0%   (0/1)0%   (0/14)0%   (0/5)
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)
getContextClass (): EClass 0%   (0/1)0%   (0/38)0%   (0/7)
setContextClass (EClass): void 0%   (0/1)0%   (0/21)0%   (0/5)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.pcm.designdecision.GDoF.impl;
8 
9import de.uka.ipd.sdq.pcm.designdecision.GDoF.GDoFPackage;
10import de.uka.ipd.sdq.pcm.designdecision.GDoF.HelperOCLDefinition;
11import de.uka.ipd.sdq.pcm.designdecision.GDoF.StaticContextRule;
12 
13import org.eclipse.emf.common.notify.Notification;
14 
15import org.eclipse.emf.ecore.EClass;
16import org.eclipse.emf.ecore.InternalEObject;
17 
18import org.eclipse.emf.ecore.impl.ENotificationImpl;
19 
20/**
21 * <!-- begin-user-doc -->
22 * An implementation of the model object '<em><b>Helper OCL Definition</b></em>'.
23 * <!-- end-user-doc -->
24 * <p>
25 * The following features are implemented:
26 * <ul>
27 *   <li>{@link de.uka.ipd.sdq.pcm.designdecision.GDoF.impl.HelperOCLDefinitionImpl#getContextClass <em>Context Class</em>}</li>
28 * </ul>
29 * </p>
30 *
31 * @generated
32 */
33public class HelperOCLDefinitionImpl extends OCLRuleImpl implements HelperOCLDefinition {
34        /**
35         * The cached value of the '{@link #getContextClass() <em>Context Class</em>}' reference.
36         * <!-- begin-user-doc -->
37         * <!-- end-user-doc -->
38         * @see #getContextClass()
39         * @generated
40         * @ordered
41         */
42        protected EClass contextClass;
43 
44        /**
45         * <!-- begin-user-doc -->
46         * <!-- end-user-doc -->
47         * @generated
48         */
49        protected HelperOCLDefinitionImpl() {
50                super();
51        }
52 
53        /**
54         * <!-- begin-user-doc -->
55         * <!-- end-user-doc -->
56         * @generated
57         */
58        @Override
59        protected EClass eStaticClass() {
60                return GDoFPackage.Literals.HELPER_OCL_DEFINITION;
61        }
62 
63        /**
64         * <!-- begin-user-doc -->
65         * <!-- end-user-doc -->
66         * @generated
67         */
68        public EClass getContextClass() {
69                if (contextClass != null && contextClass.eIsProxy()) {
70                        InternalEObject oldContextClass = (InternalEObject)contextClass;
71                        contextClass = (EClass)eResolveProxy(oldContextClass);
72                        if (contextClass != oldContextClass) {
73                                if (eNotificationRequired())
74                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, GDoFPackage.HELPER_OCL_DEFINITION__CONTEXT_CLASS, oldContextClass, contextClass));
75                        }
76                }
77                return contextClass;
78        }
79 
80        /**
81         * <!-- begin-user-doc -->
82         * <!-- end-user-doc -->
83         * @generated
84         */
85        public EClass basicGetContextClass() {
86                return contextClass;
87        }
88 
89        /**
90         * <!-- begin-user-doc -->
91         * <!-- end-user-doc -->
92         * @generated
93         */
94        public void setContextClass(EClass newContextClass) {
95                EClass oldContextClass = contextClass;
96                contextClass = newContextClass;
97                if (eNotificationRequired())
98                        eNotify(new ENotificationImpl(this, Notification.SET, GDoFPackage.HELPER_OCL_DEFINITION__CONTEXT_CLASS, oldContextClass, contextClass));
99        }
100 
101        /**
102         * <!-- begin-user-doc -->
103         * <!-- end-user-doc -->
104         * @generated
105         */
106        @Override
107        public Object eGet(int featureID, boolean resolve, boolean coreType) {
108                switch (featureID) {
109                        case GDoFPackage.HELPER_OCL_DEFINITION__CONTEXT_CLASS:
110                                if (resolve) return getContextClass();
111                                return basicGetContextClass();
112                }
113                return super.eGet(featureID, resolve, coreType);
114        }
115 
116        /**
117         * <!-- begin-user-doc -->
118         * <!-- end-user-doc -->
119         * @generated
120         */
121        @Override
122        public void eSet(int featureID, Object newValue) {
123                switch (featureID) {
124                        case GDoFPackage.HELPER_OCL_DEFINITION__CONTEXT_CLASS:
125                                setContextClass((EClass)newValue);
126                                return;
127                }
128                super.eSet(featureID, newValue);
129        }
130 
131        /**
132         * <!-- begin-user-doc -->
133         * <!-- end-user-doc -->
134         * @generated
135         */
136        @Override
137        public void eUnset(int featureID) {
138                switch (featureID) {
139                        case GDoFPackage.HELPER_OCL_DEFINITION__CONTEXT_CLASS:
140                                setContextClass((EClass)null);
141                                return;
142                }
143                super.eUnset(featureID);
144        }
145 
146        /**
147         * <!-- begin-user-doc -->
148         * <!-- end-user-doc -->
149         * @generated
150         */
151        @Override
152        public boolean eIsSet(int featureID) {
153                switch (featureID) {
154                        case GDoFPackage.HELPER_OCL_DEFINITION__CONTEXT_CLASS:
155                                return contextClass != null;
156                }
157                return super.eIsSet(featureID);
158        }
159 
160        /**
161         * <!-- begin-user-doc -->
162         * <!-- end-user-doc -->
163         * @generated
164         */
165        @Override
166        public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
167                if (baseClass == StaticContextRule.class) {
168                        switch (derivedFeatureID) {
169                                case GDoFPackage.HELPER_OCL_DEFINITION__CONTEXT_CLASS: return GDoFPackage.STATIC_CONTEXT_RULE__CONTEXT_CLASS;
170                                default: return -1;
171                        }
172                }
173                return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
174        }
175 
176        /**
177         * <!-- begin-user-doc -->
178         * <!-- end-user-doc -->
179         * @generated
180         */
181        @Override
182        public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
183                if (baseClass == StaticContextRule.class) {
184                        switch (baseFeatureID) {
185                                case GDoFPackage.STATIC_CONTEXT_RULE__CONTEXT_CLASS: return GDoFPackage.HELPER_OCL_DEFINITION__CONTEXT_CLASS;
186                                default: return -1;
187                        }
188                }
189                return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
190        }
191 
192} //HelperOCLDefinitionImpl

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