Skip to content

Package: EdaptTestXImpl

EdaptTestXImpl

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