Skip to content

Package: EdaptTestWImpl

EdaptTestWImpl

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