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

COVERAGE SUMMARY FOR SOURCE FILE [ReplyEntryTypeImpl.java]

nameclass, %method, %block, %line, %
ReplyEntryTypeImpl.java0%   (0/1)0%   (0/12)0%   (0/177)0%   (0/47)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ReplyEntryTypeImpl0%   (0/1)0%   (0/12)0%   (0/177)0%   (0/47)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
ReplyEntryTypeImpl (): void 0%   (0/1)0%   (0/6)0%   (0/3)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/14)0%   (0/4)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/15)0%   (0/3)
eIsSet (int): boolean 0%   (0/1)0%   (0/35)0%   (0/4)
eSet (int, Object): void 0%   (0/1)0%   (0/22)0%   (0/8)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/14)0%   (0/7)
getName (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getReplyActivity (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
setName (String): void 0%   (0/1)0%   (0/21)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/28)0%   (0/6)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package LqnCore.impl;
8 
9import LqnCore.LqnCorePackage;
10import LqnCore.ReplyActivityType;
11import LqnCore.ReplyEntryType;
12 
13import java.util.Collection;
14 
15import org.eclipse.emf.common.notify.Notification;
16import org.eclipse.emf.common.notify.NotificationChain;
17 
18import org.eclipse.emf.common.util.EList;
19 
20import org.eclipse.emf.ecore.EClass;
21import org.eclipse.emf.ecore.InternalEObject;
22 
23import org.eclipse.emf.ecore.impl.ENotificationImpl;
24import org.eclipse.emf.ecore.impl.EObjectImpl;
25 
26import org.eclipse.emf.ecore.util.EObjectContainmentEList;
27import org.eclipse.emf.ecore.util.InternalEList;
28 
29/**
30 * <!-- begin-user-doc -->
31 * An implementation of the model object '<em><b>Reply Entry Type</b></em>'.
32 * <!-- end-user-doc -->
33 * <p>
34 * The following features are implemented:
35 * <ul>
36 *   <li>{@link LqnCore.impl.ReplyEntryTypeImpl#getReplyActivity <em>Reply Activity</em>}</li>
37 *   <li>{@link LqnCore.impl.ReplyEntryTypeImpl#getName <em>Name</em>}</li>
38 * </ul>
39 * </p>
40 *
41 * @generated
42 */
43public class ReplyEntryTypeImpl extends EObjectImpl implements ReplyEntryType {
44        /**
45         * The cached value of the '{@link #getReplyActivity() <em>Reply Activity</em>}' containment reference list.
46         * <!-- begin-user-doc -->
47         * <!-- end-user-doc -->
48         * @see #getReplyActivity()
49         * @generated
50         * @ordered
51         */
52        protected EList<ReplyActivityType> replyActivity;
53 
54        /**
55         * The default value of the '{@link #getName() <em>Name</em>}' attribute.
56         * <!-- begin-user-doc -->
57         * <!-- end-user-doc -->
58         * @see #getName()
59         * @generated
60         * @ordered
61         */
62        protected static final String NAME_EDEFAULT = null;
63 
64        /**
65         * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
66         * <!-- begin-user-doc -->
67         * <!-- end-user-doc -->
68         * @see #getName()
69         * @generated
70         * @ordered
71         */
72        protected String name = NAME_EDEFAULT;
73 
74        /**
75         * <!-- begin-user-doc -->
76         * <!-- end-user-doc -->
77         * @generated
78         */
79        protected ReplyEntryTypeImpl() {
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.REPLY_ENTRY_TYPE;
91        }
92 
93        /**
94         * <!-- begin-user-doc -->
95         * <!-- end-user-doc -->
96         * @generated
97         */
98        public EList<ReplyActivityType> getReplyActivity() {
99                if (replyActivity == null) {
100                        replyActivity = new EObjectContainmentEList<ReplyActivityType>(ReplyActivityType.class, this, LqnCorePackage.REPLY_ENTRY_TYPE__REPLY_ACTIVITY);
101                }
102                return replyActivity;
103        }
104 
105        /**
106         * <!-- begin-user-doc -->
107         * <!-- end-user-doc -->
108         * @generated
109         */
110        public String getName() {
111                return name;
112        }
113 
114        /**
115         * <!-- begin-user-doc -->
116         * <!-- end-user-doc -->
117         * @generated
118         */
119        public void setName(String newName) {
120                String oldName = name;
121                name = newName;
122                if (eNotificationRequired())
123                        eNotify(new ENotificationImpl(this, Notification.SET, LqnCorePackage.REPLY_ENTRY_TYPE__NAME, oldName, name));
124        }
125 
126        /**
127         * <!-- begin-user-doc -->
128         * <!-- end-user-doc -->
129         * @generated
130         */
131        @Override
132        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
133                switch (featureID) {
134                        case LqnCorePackage.REPLY_ENTRY_TYPE__REPLY_ACTIVITY:
135                                return ((InternalEList<?>)getReplyActivity()).basicRemove(otherEnd, msgs);
136                }
137                return super.eInverseRemove(otherEnd, featureID, msgs);
138        }
139 
140        /**
141         * <!-- begin-user-doc -->
142         * <!-- end-user-doc -->
143         * @generated
144         */
145        @Override
146        public Object eGet(int featureID, boolean resolve, boolean coreType) {
147                switch (featureID) {
148                        case LqnCorePackage.REPLY_ENTRY_TYPE__REPLY_ACTIVITY:
149                                return getReplyActivity();
150                        case LqnCorePackage.REPLY_ENTRY_TYPE__NAME:
151                                return getName();
152                }
153                return super.eGet(featureID, resolve, coreType);
154        }
155 
156        /**
157         * <!-- begin-user-doc -->
158         * <!-- end-user-doc -->
159         * @generated
160         */
161        @SuppressWarnings("unchecked")
162        @Override
163        public void eSet(int featureID, Object newValue) {
164                switch (featureID) {
165                        case LqnCorePackage.REPLY_ENTRY_TYPE__REPLY_ACTIVITY:
166                                getReplyActivity().clear();
167                                getReplyActivity().addAll((Collection<? extends ReplyActivityType>)newValue);
168                                return;
169                        case LqnCorePackage.REPLY_ENTRY_TYPE__NAME:
170                                setName((String)newValue);
171                                return;
172                }
173                super.eSet(featureID, newValue);
174        }
175 
176        /**
177         * <!-- begin-user-doc -->
178         * <!-- end-user-doc -->
179         * @generated
180         */
181        @Override
182        public void eUnset(int featureID) {
183                switch (featureID) {
184                        case LqnCorePackage.REPLY_ENTRY_TYPE__REPLY_ACTIVITY:
185                                getReplyActivity().clear();
186                                return;
187                        case LqnCorePackage.REPLY_ENTRY_TYPE__NAME:
188                                setName(NAME_EDEFAULT);
189                                return;
190                }
191                super.eUnset(featureID);
192        }
193 
194        /**
195         * <!-- begin-user-doc -->
196         * <!-- end-user-doc -->
197         * @generated
198         */
199        @Override
200        public boolean eIsSet(int featureID) {
201                switch (featureID) {
202                        case LqnCorePackage.REPLY_ENTRY_TYPE__REPLY_ACTIVITY:
203                                return replyActivity != null && !replyActivity.isEmpty();
204                        case LqnCorePackage.REPLY_ENTRY_TYPE__NAME:
205                                return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
206                }
207                return super.eIsSet(featureID);
208        }
209 
210        /**
211         * <!-- begin-user-doc -->
212         * <!-- end-user-doc -->
213         * @generated
214         */
215        @Override
216        public String toString() {
217                if (eIsProxy()) return super.toString();
218 
219                StringBuffer result = new StringBuffer(super.toString());
220                result.append(" (name: ");
221                result.append(name);
222                result.append(')');
223                return result.toString();
224        }
225 
226} //ReplyEntryTypeImpl

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