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

COVERAGE SUMMARY FOR SOURCE FILE [SingleActivityListTypeImpl.java]

nameclass, %method, %block, %line, %
SingleActivityListTypeImpl.java0%   (0/1)0%   (0/10)0%   (0/148)0%   (0/40)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SingleActivityListTypeImpl0%   (0/1)0%   (0/10)0%   (0/148)0%   (0/40)
SingleActivityListTypeImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicSetActivity (ActivityType, NotificationChain): NotificationChain 0%   (0/1)0%   (0/29)0%   (0/6)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/11)0%   (0/3)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/13)0%   (0/3)
eIsSet (int): boolean 0%   (0/1)0%   (0/13)0%   (0/3)
eSet (int, Object): void 0%   (0/1)0%   (0/12)0%   (0/5)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/10)0%   (0/5)
getActivity (): ActivityType 0%   (0/1)0%   (0/3)0%   (0/1)
setActivity (ActivityType): void 0%   (0/1)0%   (0/52)0%   (0/11)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package LqnCore.impl;
8 
9import LqnCore.ActivityType;
10import LqnCore.LqnCorePackage;
11import LqnCore.SingleActivityListType;
12 
13import org.eclipse.emf.common.notify.Notification;
14import org.eclipse.emf.common.notify.NotificationChain;
15 
16import org.eclipse.emf.ecore.EClass;
17import org.eclipse.emf.ecore.InternalEObject;
18 
19import org.eclipse.emf.ecore.impl.ENotificationImpl;
20import org.eclipse.emf.ecore.impl.EObjectImpl;
21 
22/**
23 * <!-- begin-user-doc -->
24 * An implementation of the model object '<em><b>Single Activity List Type</b></em>'.
25 * <!-- end-user-doc -->
26 * <p>
27 * The following features are implemented:
28 * <ul>
29 *   <li>{@link LqnCore.impl.SingleActivityListTypeImpl#getActivity <em>Activity</em>}</li>
30 * </ul>
31 * </p>
32 *
33 * @generated
34 */
35public class SingleActivityListTypeImpl extends EObjectImpl implements SingleActivityListType {
36        /**
37         * The cached value of the '{@link #getActivity() <em>Activity</em>}' containment reference.
38         * <!-- begin-user-doc -->
39         * <!-- end-user-doc -->
40         * @see #getActivity()
41         * @generated
42         * @ordered
43         */
44        protected ActivityType activity;
45 
46        /**
47         * <!-- begin-user-doc -->
48         * <!-- end-user-doc -->
49         * @generated
50         */
51        protected SingleActivityListTypeImpl() {
52                super();
53        }
54 
55        /**
56         * <!-- begin-user-doc -->
57         * <!-- end-user-doc -->
58         * @generated
59         */
60        @Override
61        protected EClass eStaticClass() {
62                return LqnCorePackage.Literals.SINGLE_ACTIVITY_LIST_TYPE;
63        }
64 
65        /**
66         * <!-- begin-user-doc -->
67         * <!-- end-user-doc -->
68         * @generated
69         */
70        public ActivityType getActivity() {
71                return activity;
72        }
73 
74        /**
75         * <!-- begin-user-doc -->
76         * <!-- end-user-doc -->
77         * @generated
78         */
79        public NotificationChain basicSetActivity(ActivityType newActivity, NotificationChain msgs) {
80                ActivityType oldActivity = activity;
81                activity = newActivity;
82                if (eNotificationRequired()) {
83                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, LqnCorePackage.SINGLE_ACTIVITY_LIST_TYPE__ACTIVITY, oldActivity, newActivity);
84                        if (msgs == null) msgs = notification; else msgs.add(notification);
85                }
86                return msgs;
87        }
88 
89        /**
90         * <!-- begin-user-doc -->
91         * <!-- end-user-doc -->
92         * @generated
93         */
94        public void setActivity(ActivityType newActivity) {
95                if (newActivity != activity) {
96                        NotificationChain msgs = null;
97                        if (activity != null)
98                                msgs = ((InternalEObject)activity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LqnCorePackage.SINGLE_ACTIVITY_LIST_TYPE__ACTIVITY, null, msgs);
99                        if (newActivity != null)
100                                msgs = ((InternalEObject)newActivity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LqnCorePackage.SINGLE_ACTIVITY_LIST_TYPE__ACTIVITY, null, msgs);
101                        msgs = basicSetActivity(newActivity, msgs);
102                        if (msgs != null) msgs.dispatch();
103                }
104                else if (eNotificationRequired())
105                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.SINGLE_ACTIVITY_LIST_TYPE__ACTIVITY, newActivity, newActivity));
106        }
107 
108        /**
109         * <!-- begin-user-doc -->
110         * <!-- end-user-doc -->
111         * @generated
112         */
113        @Override
114        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
115                switch (featureID) {
116                        case LqnCorePackage.SINGLE_ACTIVITY_LIST_TYPE__ACTIVITY:
117                                return basicSetActivity(null, msgs);
118                }
119                return super.eInverseRemove(otherEnd, featureID, msgs);
120        }
121 
122        /**
123         * <!-- begin-user-doc -->
124         * <!-- end-user-doc -->
125         * @generated
126         */
127        @Override
128        public Object eGet(int featureID, boolean resolve, boolean coreType) {
129                switch (featureID) {
130                        case LqnCorePackage.SINGLE_ACTIVITY_LIST_TYPE__ACTIVITY:
131                                return getActivity();
132                }
133                return super.eGet(featureID, resolve, coreType);
134        }
135 
136        /**
137         * <!-- begin-user-doc -->
138         * <!-- end-user-doc -->
139         * @generated
140         */
141        @Override
142        public void eSet(int featureID, Object newValue) {
143                switch (featureID) {
144                        case LqnCorePackage.SINGLE_ACTIVITY_LIST_TYPE__ACTIVITY:
145                                setActivity((ActivityType)newValue);
146                                return;
147                }
148                super.eSet(featureID, newValue);
149        }
150 
151        /**
152         * <!-- begin-user-doc -->
153         * <!-- end-user-doc -->
154         * @generated
155         */
156        @Override
157        public void eUnset(int featureID) {
158                switch (featureID) {
159                        case LqnCorePackage.SINGLE_ACTIVITY_LIST_TYPE__ACTIVITY:
160                                setActivity((ActivityType)null);
161                                return;
162                }
163                super.eUnset(featureID);
164        }
165 
166        /**
167         * <!-- begin-user-doc -->
168         * <!-- end-user-doc -->
169         * @generated
170         */
171        @Override
172        public boolean eIsSet(int featureID) {
173                switch (featureID) {
174                        case LqnCorePackage.SINGLE_ACTIVITY_LIST_TYPE__ACTIVITY:
175                                return activity != null;
176                }
177                return super.eIsSet(featureID);
178        }
179 
180} //SingleActivityListTypeImpl

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