Skip to content

Package: EdaptTestDImpl

EdaptTestDImpl

nameinstructionbranchcomplexitylinemethod
EdaptTestDImpl()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
basicGetB()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
eGet(int, boolean, boolean)
M: 16 C: 0
0%
M: 4 C: 0
0%
M: 3 C: 0
0%
M: 5 C: 0
0%
M: 1 C: 0
0%
eIsSet(int)
M: 13 C: 0
0%
M: 4 C: 0
0%
M: 3 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
eSet(int, Object)
M: 12 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 5 C: 0
0%
M: 1 C: 0
0%
eStaticClass()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
eUnset(int)
M: 10 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 5 C: 0
0%
M: 1 C: 0
0%
getB()
M: 38 C: 0
0%
M: 8 C: 0
0%
M: 5 C: 0
0%
M: 7 C: 0
0%
M: 1 C: 0
0%
setB(EdaptTestB)
M: 21 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 5 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /**
2: * Copyright (c) 2011-2013 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: */
13: package org.eclipse.emf.ecp.view.edapt.util.test.model.d.impl;
14:
15: import org.eclipse.emf.common.notify.Notification;
16: import org.eclipse.emf.ecore.EClass;
17: import org.eclipse.emf.ecore.InternalEObject;
18: import org.eclipse.emf.ecore.impl.ENotificationImpl;
19: import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
20: import org.eclipse.emf.ecp.view.edapt.util.test.model.b.EdaptTestB;
21: import org.eclipse.emf.ecp.view.edapt.util.test.model.d.EdaptTestD;
22: import org.eclipse.emf.ecp.view.edapt.util.test.model.d.EdaptTestDPackage;
23:
24: /**
25: * <!-- begin-user-doc -->
26: * An implementation of the model object '<em><b>D</b></em>'.
27: * <!-- end-user-doc -->
28: * <p>
29: * The following features are implemented:
30: * </p>
31: * <ul>
32: * <li>{@link org.eclipse.emf.ecp.view.edapt.util.test.model.d.impl.EdaptTestDImpl#getB <em>B</em>}</li>
33: * </ul>
34: *
35: * @generated
36: */
37: public class EdaptTestDImpl extends MinimalEObjectImpl.Container implements EdaptTestD {
38:         /**
39:          * The cached value of the '{@link #getB() <em>B</em>}' reference.
40:          * <!-- begin-user-doc -->
41:          * <!-- end-user-doc -->
42:          *
43:          * @see #getB()
44:          * @generated
45:          * @ordered
46:          */
47:         protected EdaptTestB b;
48:
49:         /**
50:          * <!-- begin-user-doc -->
51:          * <!-- end-user-doc -->
52:          *
53:          * @generated
54:          */
55:         protected EdaptTestDImpl() {
56:                 super();
57:         }
58:
59:         /**
60:          * <!-- begin-user-doc -->
61:          * <!-- end-user-doc -->
62:          *
63:          * @generated
64:          */
65:         @Override
66:         protected EClass eStaticClass() {
67:                 return EdaptTestDPackage.Literals.D;
68:         }
69:
70:         /**
71:          * <!-- begin-user-doc -->
72:          * <!-- end-user-doc -->
73:          *
74:          * @generated
75:          */
76:         @Override
77:         public EdaptTestB getB() {
78:•                if (b != null && b.eIsProxy()) {
79:                         final InternalEObject oldB = (InternalEObject) b;
80:                         b = (EdaptTestB) eResolveProxy(oldB);
81:•                        if (b != oldB) {
82:•                                if (eNotificationRequired()) {
83:                                         eNotify(new ENotificationImpl(this, Notification.RESOLVE, EdaptTestDPackage.D__B, oldB, b));
84:                                 }
85:                         }
86:                 }
87:                 return b;
88:         }
89:
90:         /**
91:          * <!-- begin-user-doc -->
92:          * <!-- end-user-doc -->
93:          *
94:          * @generated
95:          */
96:         public EdaptTestB basicGetB() {
97:                 return b;
98:         }
99:
100:         /**
101:          * <!-- begin-user-doc -->
102:          * <!-- end-user-doc -->
103:          *
104:          * @generated
105:          */
106:         @Override
107:         public void setB(EdaptTestB newB) {
108:                 final EdaptTestB oldB = b;
109:                 b = newB;
110:•                if (eNotificationRequired()) {
111:                         eNotify(new ENotificationImpl(this, Notification.SET, EdaptTestDPackage.D__B, oldB, b));
112:                 }
113:         }
114:
115:         /**
116:          * <!-- begin-user-doc -->
117:          * <!-- end-user-doc -->
118:          *
119:          * @generated
120:          */
121:         @Override
122:         public Object eGet(int featureID, boolean resolve, boolean coreType) {
123:•                switch (featureID) {
124:                 case EdaptTestDPackage.D__B:
125:•                        if (resolve) {
126:                                 return getB();
127:                         }
128:                         return basicGetB();
129:                 }
130:                 return super.eGet(featureID, resolve, coreType);
131:         }
132:
133:         /**
134:          * <!-- begin-user-doc -->
135:          * <!-- end-user-doc -->
136:          *
137:          * @generated
138:          */
139:         @Override
140:         public void eSet(int featureID, Object newValue) {
141:•                switch (featureID) {
142:                 case EdaptTestDPackage.D__B:
143:                         setB((EdaptTestB) newValue);
144:                         return;
145:                 }
146:                 super.eSet(featureID, newValue);
147:         }
148:
149:         /**
150:          * <!-- begin-user-doc -->
151:          * <!-- end-user-doc -->
152:          *
153:          * @generated
154:          */
155:         @Override
156:         public void eUnset(int featureID) {
157:•                switch (featureID) {
158:                 case EdaptTestDPackage.D__B:
159:                         setB((EdaptTestB) null);
160:                         return;
161:                 }
162:                 super.eUnset(featureID);
163:         }
164:
165:         /**
166:          * <!-- begin-user-doc -->
167:          * <!-- end-user-doc -->
168:          *
169:          * @generated
170:          */
171:         @Override
172:         public boolean eIsSet(int featureID) {
173:•                switch (featureID) {
174:                 case EdaptTestDPackage.D__B:
175:•                        return b != null;
176:                 }
177:                 return super.eIsSet(featureID);
178:         }
179:
180: } // EdaptTestDImpl