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

COVERAGE SUMMARY FOR SOURCE FILE [OutPortTypeImpl.java]

nameclass, %method, %block, %line, %
OutPortTypeImpl.java0%   (0/1)0%   (0/14)0%   (0/256)0%   (0/66)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class OutPortTypeImpl0%   (0/1)0%   (0/14)0%   (0/256)0%   (0/66)
<static initializer> 0%   (0/1)0%   (0/7)0%   (0/4)
OutPortTypeImpl (): void 0%   (0/1)0%   (0/12)0%   (0/5)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/17)0%   (0/5)
eIsSet (int): boolean 0%   (0/1)0%   (0/60)0%   (0/5)
eSet (int, Object): void 0%   (0/1)0%   (0/22)0%   (0/9)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/18)0%   (0/9)
getConnectTo (): List 0%   (0/1)0%   (0/3)0%   (0/1)
getDescription (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getName (): String 0%   (0/1)0%   (0/3)0%   (0/1)
setConnectTo (List): void 0%   (0/1)0%   (0/21)0%   (0/5)
setDescription (String): void 0%   (0/1)0%   (0/21)0%   (0/5)
setName (String): void 0%   (0/1)0%   (0/21)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/46)0%   (0/10)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package LqnCore.impl;
8 
9import LqnCore.LqnCorePackage;
10import LqnCore.OutPortType;
11 
12import java.util.List;
13 
14import org.eclipse.emf.common.notify.Notification;
15 
16import org.eclipse.emf.ecore.EClass;
17 
18import org.eclipse.emf.ecore.impl.ENotificationImpl;
19import org.eclipse.emf.ecore.impl.EObjectImpl;
20 
21/**
22 * <!-- begin-user-doc -->
23 * An implementation of the model object '<em><b>Out Port Type</b></em>'.
24 * <!-- end-user-doc -->
25 * <p>
26 * The following features are implemented:
27 * <ul>
28 *   <li>{@link LqnCore.impl.OutPortTypeImpl#getConnectTo <em>Connect To</em>}</li>
29 *   <li>{@link LqnCore.impl.OutPortTypeImpl#getDescription <em>Description</em>}</li>
30 *   <li>{@link LqnCore.impl.OutPortTypeImpl#getName <em>Name</em>}</li>
31 * </ul>
32 * </p>
33 *
34 * @generated
35 */
36public class OutPortTypeImpl extends EObjectImpl implements OutPortType {
37        /**
38         * The default value of the '{@link #getConnectTo() <em>Connect To</em>}' attribute.
39         * <!-- begin-user-doc -->
40         * <!-- end-user-doc -->
41         * @see #getConnectTo()
42         * @generated
43         * @ordered
44         */
45        protected static final List<String> CONNECT_TO_EDEFAULT = null;
46 
47        /**
48         * The cached value of the '{@link #getConnectTo() <em>Connect To</em>}' attribute.
49         * <!-- begin-user-doc -->
50         * <!-- end-user-doc -->
51         * @see #getConnectTo()
52         * @generated
53         * @ordered
54         */
55        protected List<String> connectTo = CONNECT_TO_EDEFAULT;
56 
57        /**
58         * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
59         * <!-- begin-user-doc -->
60         * <!-- end-user-doc -->
61         * @see #getDescription()
62         * @generated
63         * @ordered
64         */
65        protected static final String DESCRIPTION_EDEFAULT = null;
66 
67        /**
68         * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute.
69         * <!-- begin-user-doc -->
70         * <!-- end-user-doc -->
71         * @see #getDescription()
72         * @generated
73         * @ordered
74         */
75        protected String description = DESCRIPTION_EDEFAULT;
76 
77        /**
78         * The default value of the '{@link #getName() <em>Name</em>}' attribute.
79         * <!-- begin-user-doc -->
80         * <!-- end-user-doc -->
81         * @see #getName()
82         * @generated
83         * @ordered
84         */
85        protected static final String NAME_EDEFAULT = null;
86 
87        /**
88         * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
89         * <!-- begin-user-doc -->
90         * <!-- end-user-doc -->
91         * @see #getName()
92         * @generated
93         * @ordered
94         */
95        protected String name = NAME_EDEFAULT;
96 
97        /**
98         * <!-- begin-user-doc -->
99         * <!-- end-user-doc -->
100         * @generated
101         */
102        protected OutPortTypeImpl() {
103                super();
104        }
105 
106        /**
107         * <!-- begin-user-doc -->
108         * <!-- end-user-doc -->
109         * @generated
110         */
111        @Override
112        protected EClass eStaticClass() {
113                return LqnCorePackage.Literals.OUT_PORT_TYPE;
114        }
115 
116        /**
117         * <!-- begin-user-doc -->
118         * <!-- end-user-doc -->
119         * @generated
120         */
121        public List<String> getConnectTo() {
122                return connectTo;
123        }
124 
125        /**
126         * <!-- begin-user-doc -->
127         * <!-- end-user-doc -->
128         * @generated
129         */
130        public void setConnectTo(List<String> newConnectTo) {
131                List<String> oldConnectTo = connectTo;
132                connectTo = newConnectTo;
133                if (eNotificationRequired())
134                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUT_PORT_TYPE__CONNECT_TO, oldConnectTo, connectTo));
135        }
136 
137        /**
138         * <!-- begin-user-doc -->
139         * <!-- end-user-doc -->
140         * @generated
141         */
142        public String getDescription() {
143                return description;
144        }
145 
146        /**
147         * <!-- begin-user-doc -->
148         * <!-- end-user-doc -->
149         * @generated
150         */
151        public void setDescription(String newDescription) {
152                String oldDescription = description;
153                description = newDescription;
154                if (eNotificationRequired())
155                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUT_PORT_TYPE__DESCRIPTION, oldDescription, description));
156        }
157 
158        /**
159         * <!-- begin-user-doc -->
160         * <!-- end-user-doc -->
161         * @generated
162         */
163        public String getName() {
164                return name;
165        }
166 
167        /**
168         * <!-- begin-user-doc -->
169         * <!-- end-user-doc -->
170         * @generated
171         */
172        public void setName(String newName) {
173                String oldName = name;
174                name = newName;
175                if (eNotificationRequired())
176                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.OUT_PORT_TYPE__NAME, oldName, name));
177        }
178 
179        /**
180         * <!-- begin-user-doc -->
181         * <!-- end-user-doc -->
182         * @generated
183         */
184        @Override
185        public Object eGet(int featureID, boolean resolve, boolean coreType) {
186                switch (featureID) {
187                        case LqnCorePackage.OUT_PORT_TYPE__CONNECT_TO:
188                                return getConnectTo();
189                        case LqnCorePackage.OUT_PORT_TYPE__DESCRIPTION:
190                                return getDescription();
191                        case LqnCorePackage.OUT_PORT_TYPE__NAME:
192                                return getName();
193                }
194                return super.eGet(featureID, resolve, coreType);
195        }
196 
197        /**
198         * <!-- begin-user-doc -->
199         * <!-- end-user-doc -->
200         * @generated
201         */
202        @SuppressWarnings("unchecked")
203        @Override
204        public void eSet(int featureID, Object newValue) {
205                switch (featureID) {
206                        case LqnCorePackage.OUT_PORT_TYPE__CONNECT_TO:
207                                setConnectTo((List<String>)newValue);
208                                return;
209                        case LqnCorePackage.OUT_PORT_TYPE__DESCRIPTION:
210                                setDescription((String)newValue);
211                                return;
212                        case LqnCorePackage.OUT_PORT_TYPE__NAME:
213                                setName((String)newValue);
214                                return;
215                }
216                super.eSet(featureID, newValue);
217        }
218 
219        /**
220         * <!-- begin-user-doc -->
221         * <!-- end-user-doc -->
222         * @generated
223         */
224        @Override
225        public void eUnset(int featureID) {
226                switch (featureID) {
227                        case LqnCorePackage.OUT_PORT_TYPE__CONNECT_TO:
228                                setConnectTo(CONNECT_TO_EDEFAULT);
229                                return;
230                        case LqnCorePackage.OUT_PORT_TYPE__DESCRIPTION:
231                                setDescription(DESCRIPTION_EDEFAULT);
232                                return;
233                        case LqnCorePackage.OUT_PORT_TYPE__NAME:
234                                setName(NAME_EDEFAULT);
235                                return;
236                }
237                super.eUnset(featureID);
238        }
239 
240        /**
241         * <!-- begin-user-doc -->
242         * <!-- end-user-doc -->
243         * @generated
244         */
245        @Override
246        public boolean eIsSet(int featureID) {
247                switch (featureID) {
248                        case LqnCorePackage.OUT_PORT_TYPE__CONNECT_TO:
249                                return CONNECT_TO_EDEFAULT == null ? connectTo != null : !CONNECT_TO_EDEFAULT.equals(connectTo);
250                        case LqnCorePackage.OUT_PORT_TYPE__DESCRIPTION:
251                                return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
252                        case LqnCorePackage.OUT_PORT_TYPE__NAME:
253                                return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
254                }
255                return super.eIsSet(featureID);
256        }
257 
258        /**
259         * <!-- begin-user-doc -->
260         * <!-- end-user-doc -->
261         * @generated
262         */
263        @Override
264        public String toString() {
265                if (eIsProxy()) return super.toString();
266 
267                StringBuffer result = new StringBuffer(super.toString());
268                result.append(" (connectTo: ");
269                result.append(connectTo);
270                result.append(", description: ");
271                result.append(description);
272                result.append(", name: ");
273                result.append(name);
274                result.append(')');
275                return result.toString();
276        }
277 
278} //OutPortTypeImpl

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