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

COVERAGE SUMMARY FOR SOURCE FILE [IterateExpImpl.java]

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class IterateExpImpl0%   (0/1)0%   (0/10)0%   (0/148)0%   (0/40)
IterateExpImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicSetResult (Variable, 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)
getResult (): Variable 0%   (0/1)0%   (0/3)0%   (0/1)
setResult (Variable): void 0%   (0/1)0%   (0/52)0%   (0/11)

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

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