Skip to content

Package: EdaptTestEImpl

EdaptTestEImpl

nameinstructionbranchcomplexitylinemethod
EdaptTestEImpl()
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%
basicGetD()
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%
basicGetF()
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: 24 C: 0
0%
M: 7 C: 0
0%
M: 5 C: 0
0%
M: 8 C: 0
0%
M: 1 C: 0
0%
eIsSet(int)
M: 20 C: 0
0%
M: 7 C: 0
0%
M: 5 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%
eSet(int, Object)
M: 17 C: 0
0%
M: 3 C: 0
0%
M: 3 C: 0
0%
M: 7 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: 14 C: 0
0%
M: 3 C: 0
0%
M: 3 C: 0
0%
M: 7 C: 0
0%
M: 1 C: 0
0%
getD()
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%
getF()
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%
setD(EdaptTestD)
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%
setF(EdaptTestF)
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.e.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.d.EdaptTestD;
21: import org.eclipse.emf.ecp.view.edapt.util.test.model.e.EdaptTestE;
22: import org.eclipse.emf.ecp.view.edapt.util.test.model.e.EdaptTestEPackage;
23: import org.eclipse.emf.ecp.view.edapt.util.test.model.f.EdaptTestF;
24:
25: /**
26: * <!-- begin-user-doc -->
27: * An implementation of the model object '<em><b>E</b></em>'.
28: * <!-- end-user-doc -->
29: * <p>
30: * The following features are implemented:
31: * </p>
32: * <ul>
33: * <li>{@link org.eclipse.emf.ecp.view.edapt.util.test.model.e.impl.EdaptTestEImpl#getD <em>D</em>}</li>
34: * <li>{@link org.eclipse.emf.ecp.view.edapt.util.test.model.e.impl.EdaptTestEImpl#getF <em>F</em>}</li>
35: * </ul>
36: *
37: * @generated
38: */
39: public class EdaptTestEImpl extends MinimalEObjectImpl.Container implements EdaptTestE {
40:         /**
41:          * The cached value of the '{@link #getD() <em>D</em>}' reference.
42:          * <!-- begin-user-doc -->
43:          * <!-- end-user-doc -->
44:          *
45:          * @see #getD()
46:          * @generated
47:          * @ordered
48:          */
49:         protected EdaptTestD d;
50:
51:         /**
52:          * The cached value of the '{@link #getF() <em>F</em>}' reference.
53:          * <!-- begin-user-doc -->
54:          * <!-- end-user-doc -->
55:          *
56:          * @see #getF()
57:          * @generated
58:          * @ordered
59:          */
60:         protected EdaptTestF f;
61:
62:         /**
63:          * <!-- begin-user-doc -->
64:          * <!-- end-user-doc -->
65:          *
66:          * @generated
67:          */
68:         protected EdaptTestEImpl() {
69:                 super();
70:         }
71:
72:         /**
73:          * <!-- begin-user-doc -->
74:          * <!-- end-user-doc -->
75:          *
76:          * @generated
77:          */
78:         @Override
79:         protected EClass eStaticClass() {
80:                 return EdaptTestEPackage.Literals.E;
81:         }
82:
83:         /**
84:          * <!-- begin-user-doc -->
85:          * <!-- end-user-doc -->
86:          *
87:          * @generated
88:          */
89:         @Override
90:         public EdaptTestD getD() {
91:•                if (d != null && d.eIsProxy()) {
92:                         final InternalEObject oldD = (InternalEObject) d;
93:                         d = (EdaptTestD) eResolveProxy(oldD);
94:•                        if (d != oldD) {
95:•                                if (eNotificationRequired()) {
96:                                         eNotify(new ENotificationImpl(this, Notification.RESOLVE, EdaptTestEPackage.E__D, oldD, d));
97:                                 }
98:                         }
99:                 }
100:                 return d;
101:         }
102:
103:         /**
104:          * <!-- begin-user-doc -->
105:          * <!-- end-user-doc -->
106:          *
107:          * @generated
108:          */
109:         public EdaptTestD basicGetD() {
110:                 return d;
111:         }
112:
113:         /**
114:          * <!-- begin-user-doc -->
115:          * <!-- end-user-doc -->
116:          *
117:          * @generated
118:          */
119:         @Override
120:         public void setD(EdaptTestD newD) {
121:                 final EdaptTestD oldD = d;
122:                 d = newD;
123:•                if (eNotificationRequired()) {
124:                         eNotify(new ENotificationImpl(this, Notification.SET, EdaptTestEPackage.E__D, oldD, d));
125:                 }
126:         }
127:
128:         /**
129:          * <!-- begin-user-doc -->
130:          * <!-- end-user-doc -->
131:          *
132:          * @generated
133:          */
134:         @Override
135:         public EdaptTestF getF() {
136:•                if (f != null && f.eIsProxy()) {
137:                         final InternalEObject oldF = (InternalEObject) f;
138:                         f = (EdaptTestF) eResolveProxy(oldF);
139:•                        if (f != oldF) {
140:•                                if (eNotificationRequired()) {
141:                                         eNotify(new ENotificationImpl(this, Notification.RESOLVE, EdaptTestEPackage.E__F, oldF, f));
142:                                 }
143:                         }
144:                 }
145:                 return f;
146:         }
147:
148:         /**
149:          * <!-- begin-user-doc -->
150:          * <!-- end-user-doc -->
151:          *
152:          * @generated
153:          */
154:         public EdaptTestF basicGetF() {
155:                 return f;
156:         }
157:
158:         /**
159:          * <!-- begin-user-doc -->
160:          * <!-- end-user-doc -->
161:          *
162:          * @generated
163:          */
164:         @Override
165:         public void setF(EdaptTestF newF) {
166:                 final EdaptTestF oldF = f;
167:                 f = newF;
168:•                if (eNotificationRequired()) {
169:                         eNotify(new ENotificationImpl(this, Notification.SET, EdaptTestEPackage.E__F, oldF, f));
170:                 }
171:         }
172:
173:         /**
174:          * <!-- begin-user-doc -->
175:          * <!-- end-user-doc -->
176:          *
177:          * @generated
178:          */
179:         @Override
180:         public Object eGet(int featureID, boolean resolve, boolean coreType) {
181:•                switch (featureID) {
182:                 case EdaptTestEPackage.E__D:
183:•                        if (resolve) {
184:                                 return getD();
185:                         }
186:                         return basicGetD();
187:                 case EdaptTestEPackage.E__F:
188:•                        if (resolve) {
189:                                 return getF();
190:                         }
191:                         return basicGetF();
192:                 }
193:                 return super.eGet(featureID, resolve, coreType);
194:         }
195:
196:         /**
197:          * <!-- begin-user-doc -->
198:          * <!-- end-user-doc -->
199:          *
200:          * @generated
201:          */
202:         @Override
203:         public void eSet(int featureID, Object newValue) {
204:•                switch (featureID) {
205:                 case EdaptTestEPackage.E__D:
206:                         setD((EdaptTestD) newValue);
207:                         return;
208:                 case EdaptTestEPackage.E__F:
209:                         setF((EdaptTestF) newValue);
210:                         return;
211:                 }
212:                 super.eSet(featureID, newValue);
213:         }
214:
215:         /**
216:          * <!-- begin-user-doc -->
217:          * <!-- end-user-doc -->
218:          *
219:          * @generated
220:          */
221:         @Override
222:         public void eUnset(int featureID) {
223:•                switch (featureID) {
224:                 case EdaptTestEPackage.E__D:
225:                         setD((EdaptTestD) null);
226:                         return;
227:                 case EdaptTestEPackage.E__F:
228:                         setF((EdaptTestF) null);
229:                         return;
230:                 }
231:                 super.eUnset(featureID);
232:         }
233:
234:         /**
235:          * <!-- begin-user-doc -->
236:          * <!-- end-user-doc -->
237:          *
238:          * @generated
239:          */
240:         @Override
241:         public boolean eIsSet(int featureID) {
242:•                switch (featureID) {
243:                 case EdaptTestEPackage.E__D:
244:•                        return d != null;
245:                 case EdaptTestEPackage.E__F:
246:•                        return f != null;
247:                 }
248:                 return super.eIsSet(featureID);
249:         }
250:
251: } // EdaptTestEImpl