EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][LqnCore.impl]

COVERAGE SUMMARY FOR SOURCE FILE [PortBindingTypeImpl.java]

nameclass, %method, %block, %line, %
PortBindingTypeImpl.java0%   (0/1)0%   (0/12)0%   (0/188)0%   (0/50)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PortBindingTypeImpl0%   (0/1)0%   (0/12)0%   (0/188)0%   (0/50)
<static initializer> 0%   (0/1)0%   (0/5)0%   (0/3)
PortBindingTypeImpl (): void 0%   (0/1)0%   (0/9)0%   (0/4)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/14)0%   (0/4)
eIsSet (int): boolean 0%   (0/1)0%   (0/42)0%   (0/4)
eSet (int, Object): void 0%   (0/1)0%   (0/17)0%   (0/7)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/14)0%   (0/7)
getSource (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getTarget (): String 0%   (0/1)0%   (0/3)0%   (0/1)
setSource (String): void 0%   (0/1)0%   (0/21)0%   (0/5)
setTarget (String): void 0%   (0/1)0%   (0/21)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/37)0%   (0/8)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package LqnCore.impl;
8 
9import LqnCore.LqnCorePackage;
10import LqnCore.PortBindingType;
11 
12import org.eclipse.emf.common.notify.Notification;
13 
14import org.eclipse.emf.ecore.EClass;
15 
16import org.eclipse.emf.ecore.impl.ENotificationImpl;
17import org.eclipse.emf.ecore.impl.EObjectImpl;
18 
19/**
20 * <!-- begin-user-doc -->
21 * An implementation of the model object '<em><b>Port Binding Type</b></em>'.
22 * <!-- end-user-doc -->
23 * <p>
24 * The following features are implemented:
25 * <ul>
26 *   <li>{@link LqnCore.impl.PortBindingTypeImpl#getSource <em>Source</em>}</li>
27 *   <li>{@link LqnCore.impl.PortBindingTypeImpl#getTarget <em>Target</em>}</li>
28 * </ul>
29 * </p>
30 *
31 * @generated
32 */
33public class PortBindingTypeImpl extends EObjectImpl implements PortBindingType {
34        /**
35         * The default value of the '{@link #getSource() <em>Source</em>}' attribute.
36         * <!-- begin-user-doc -->
37         * <!-- end-user-doc -->
38         * @see #getSource()
39         * @generated
40         * @ordered
41         */
42        protected static final String SOURCE_EDEFAULT = null;
43 
44        /**
45         * The cached value of the '{@link #getSource() <em>Source</em>}' attribute.
46         * <!-- begin-user-doc -->
47         * <!-- end-user-doc -->
48         * @see #getSource()
49         * @generated
50         * @ordered
51         */
52        protected String source = SOURCE_EDEFAULT;
53 
54        /**
55         * The default value of the '{@link #getTarget() <em>Target</em>}' attribute.
56         * <!-- begin-user-doc -->
57         * <!-- end-user-doc -->
58         * @see #getTarget()
59         * @generated
60         * @ordered
61         */
62        protected static final String TARGET_EDEFAULT = null;
63 
64        /**
65         * The cached value of the '{@link #getTarget() <em>Target</em>}' attribute.
66         * <!-- begin-user-doc -->
67         * <!-- end-user-doc -->
68         * @see #getTarget()
69         * @generated
70         * @ordered
71         */
72        protected String target = TARGET_EDEFAULT;
73 
74        /**
75         * <!-- begin-user-doc -->
76         * <!-- end-user-doc -->
77         * @generated
78         */
79        protected PortBindingTypeImpl() {
80                super();
81        }
82 
83        /**
84         * <!-- begin-user-doc -->
85         * <!-- end-user-doc -->
86         * @generated
87         */
88        @Override
89        protected EClass eStaticClass() {
90                return LqnCorePackage.Literals.PORT_BINDING_TYPE;
91        }
92 
93        /**
94         * <!-- begin-user-doc -->
95         * <!-- end-user-doc -->
96         * @generated
97         */
98        public String getSource() {
99                return source;
100        }
101 
102        /**
103         * <!-- begin-user-doc -->
104         * <!-- end-user-doc -->
105         * @generated
106         */
107        public void setSource(String newSource) {
108                String oldSource = source;
109                source = newSource;
110                if (eNotificationRequired())
111                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.PORT_BINDING_TYPE__SOURCE, oldSource, source));
112        }
113 
114        /**
115         * <!-- begin-user-doc -->
116         * <!-- end-user-doc -->
117         * @generated
118         */
119        public String getTarget() {
120                return target;
121        }
122 
123        /**
124         * <!-- begin-user-doc -->
125         * <!-- end-user-doc -->
126         * @generated
127         */
128        public void setTarget(String newTarget) {
129                String oldTarget = target;
130                target = newTarget;
131                if (eNotificationRequired())
132                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.PORT_BINDING_TYPE__TARGET, oldTarget, target));
133        }
134 
135        /**
136         * <!-- begin-user-doc -->
137         * <!-- end-user-doc -->
138         * @generated
139         */
140        @Override
141        public Object eGet(int featureID, boolean resolve, boolean coreType) {
142                switch (featureID) {
143                        case LqnCorePackage.PORT_BINDING_TYPE__SOURCE:
144                                return getSource();
145                        case LqnCorePackage.PORT_BINDING_TYPE__TARGET:
146                                return getTarget();
147                }
148                return super.eGet(featureID, resolve, coreType);
149        }
150 
151        /**
152         * <!-- begin-user-doc -->
153         * <!-- end-user-doc -->
154         * @generated
155         */
156        @Override
157        public void eSet(int featureID, Object newValue) {
158                switch (featureID) {
159                        case LqnCorePackage.PORT_BINDING_TYPE__SOURCE:
160                                setSource((String)newValue);
161                                return;
162                        case LqnCorePackage.PORT_BINDING_TYPE__TARGET:
163                                setTarget((String)newValue);
164                                return;
165                }
166                super.eSet(featureID, newValue);
167        }
168 
169        /**
170         * <!-- begin-user-doc -->
171         * <!-- end-user-doc -->
172         * @generated
173         */
174        @Override
175        public void eUnset(int featureID) {
176                switch (featureID) {
177                        case LqnCorePackage.PORT_BINDING_TYPE__SOURCE:
178                                setSource(SOURCE_EDEFAULT);
179                                return;
180                        case LqnCorePackage.PORT_BINDING_TYPE__TARGET:
181                                setTarget(TARGET_EDEFAULT);
182                                return;
183                }
184                super.eUnset(featureID);
185        }
186 
187        /**
188         * <!-- begin-user-doc -->
189         * <!-- end-user-doc -->
190         * @generated
191         */
192        @Override
193        public boolean eIsSet(int featureID) {
194                switch (featureID) {
195                        case LqnCorePackage.PORT_BINDING_TYPE__SOURCE:
196                                return SOURCE_EDEFAULT == null ? source != null : !SOURCE_EDEFAULT.equals(source);
197                        case LqnCorePackage.PORT_BINDING_TYPE__TARGET:
198                                return TARGET_EDEFAULT == null ? target != null : !TARGET_EDEFAULT.equals(target);
199                }
200                return super.eIsSet(featureID);
201        }
202 
203        /**
204         * <!-- begin-user-doc -->
205         * <!-- end-user-doc -->
206         * @generated
207         */
208        @Override
209        public String toString() {
210                if (eIsProxy()) return super.toString();
211 
212                StringBuffer result = new StringBuffer(super.toString());
213                result.append(" (source: ");
214                result.append(source);
215                result.append(", target: ");
216                result.append(target);
217                result.append(')');
218                return result.toString();
219        }
220 
221} //PortBindingTypeImpl

[all classes][LqnCore.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov