Skip to content

Package: EdaptTestFImpl

EdaptTestFImpl

nameinstructionbranchcomplexitylinemethod
EdaptTestFImpl()
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%
basicGetE()
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%
getE()
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%
setE(EdaptTestE)
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.f.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.e.EdaptTestE;
21: import org.eclipse.emf.ecp.view.edapt.util.test.model.f.EdaptTestF;
22: import org.eclipse.emf.ecp.view.edapt.util.test.model.f.EdaptTestFPackage;
23:
24: /**
25: * <!-- begin-user-doc -->
26: * An implementation of the model object '<em><b>F</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.f.impl.EdaptTestFImpl#getE <em>E</em>}</li>
33: * </ul>
34: *
35: * @generated
36: */
37: public class EdaptTestFImpl extends MinimalEObjectImpl.Container implements EdaptTestF {
38:         /**
39:          * The cached value of the '{@link #getE() <em>E</em>}' reference.
40:          * <!-- begin-user-doc -->
41:          * <!-- end-user-doc -->
42:          *
43:          * @see #getE()
44:          * @generated
45:          * @ordered
46:          */
47:         protected EdaptTestE e;
48:
49:         /**
50:          * <!-- begin-user-doc -->
51:          * <!-- end-user-doc -->
52:          *
53:          * @generated
54:          */
55:         protected EdaptTestFImpl() {
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 EdaptTestFPackage.Literals.F;
68:         }
69:
70:         /**
71:          * <!-- begin-user-doc -->
72:          * <!-- end-user-doc -->
73:          *
74:          * @generated
75:          */
76:         @Override
77:         public EdaptTestE getE() {
78:•                if (e != null && e.eIsProxy()) {
79:                         final InternalEObject oldE = (InternalEObject) e;
80:                         e = (EdaptTestE) eResolveProxy(oldE);
81:•                        if (e != oldE) {
82:•                                if (eNotificationRequired()) {
83:                                         eNotify(new ENotificationImpl(this, Notification.RESOLVE, EdaptTestFPackage.F__E, oldE, e));
84:                                 }
85:                         }
86:                 }
87:                 return e;
88:         }
89:
90:         /**
91:          * <!-- begin-user-doc -->
92:          * <!-- end-user-doc -->
93:          *
94:          * @generated
95:          */
96:         public EdaptTestE basicGetE() {
97:                 return e;
98:         }
99:
100:         /**
101:          * <!-- begin-user-doc -->
102:          * <!-- end-user-doc -->
103:          *
104:          * @generated
105:          */
106:         @Override
107:         public void setE(EdaptTestE newE) {
108:                 final EdaptTestE oldE = e;
109:                 e = newE;
110:•                if (eNotificationRequired()) {
111:                         eNotify(new ENotificationImpl(this, Notification.SET, EdaptTestFPackage.F__E, oldE, e));
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 EdaptTestFPackage.F__E:
125:•                        if (resolve) {
126:                                 return getE();
127:                         }
128:                         return basicGetE();
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 EdaptTestFPackage.F__E:
143:                         setE((EdaptTestE) 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 EdaptTestFPackage.F__E:
159:                         setE((EdaptTestE) 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 EdaptTestFPackage.F__E:
175:•                        return e != null;
176:                 }
177:                 return super.eIsSet(featureID);
178:         }
179:
180: } // EdaptTestFImpl