EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.spa.expression.impl]

COVERAGE SUMMARY FOR SOURCE FILE [AlternativeImpl.java]

nameclass, %method, %block, %line, %
AlternativeImpl.java0%   (0/1)0%   (0/13)0%   (0/262)0%   (0/67)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AlternativeImpl0%   (0/1)0%   (0/13)0%   (0/262)0%   (0/67)
AlternativeImpl (): void 0%   (0/1)0%   (0/9)0%   (0/4)
basicSetLeftOption (Option, NotificationChain): NotificationChain 0%   (0/1)0%   (0/29)0%   (0/6)
basicSetRightOption (Option, NotificationChain): NotificationChain 0%   (0/1)0%   (0/29)0%   (0/6)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/14)0%   (0/4)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/18)0%   (0/4)
eIsSet (int): boolean 0%   (0/1)0%   (0/20)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)
getLeftOption (): Option 0%   (0/1)0%   (0/3)0%   (0/1)
getRightOption (): Option 0%   (0/1)0%   (0/3)0%   (0/1)
setLeftOption (Option): void 0%   (0/1)0%   (0/52)0%   (0/11)
setRightOption (Option): void 0%   (0/1)0%   (0/52)0%   (0/11)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.spa.expression.impl;
8 
9import de.uka.ipd.sdq.spa.expression.Alternative;
10import de.uka.ipd.sdq.spa.expression.ExpressionPackage;
11import de.uka.ipd.sdq.spa.expression.Option;
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>Alternative</b></em>'.
24 * <!-- end-user-doc -->
25 * <p>
26 * The following features are implemented:
27 * <ul>
28 *   <li>{@link de.uka.ipd.sdq.spa.expression.impl.AlternativeImpl#getLeftOption <em>Left Option</em>}</li>
29 *   <li>{@link de.uka.ipd.sdq.spa.expression.impl.AlternativeImpl#getRightOption <em>Right Option</em>}</li>
30 * </ul>
31 * </p>
32 *
33 * @generated
34 */
35public class AlternativeImpl extends OperationImpl implements Alternative {
36        /**
37         * The cached value of the '{@link #getLeftOption() <em>Left Option</em>}' containment reference.
38         * <!-- begin-user-doc -->
39         * <!-- end-user-doc -->
40         * @see #getLeftOption()
41         * @generated
42         * @ordered
43         */
44        protected Option leftOption = null;
45 
46        /**
47         * The cached value of the '{@link #getRightOption() <em>Right Option</em>}' containment reference.
48         * <!-- begin-user-doc -->
49         * <!-- end-user-doc -->
50         * @see #getRightOption()
51         * @generated
52         * @ordered
53         */
54        protected Option rightOption = null;
55 
56        /**
57         * <!-- begin-user-doc -->
58         * <!-- end-user-doc -->
59         * @generated
60         */
61        protected AlternativeImpl() {
62                super();
63        }
64 
65        /**
66         * <!-- begin-user-doc -->
67         * <!-- end-user-doc -->
68         * @generated
69         */
70        @Override
71        protected EClass eStaticClass() {
72                return ExpressionPackage.Literals.ALTERNATIVE;
73        }
74 
75        /**
76         * <!-- begin-user-doc -->
77         * <!-- end-user-doc -->
78         * @generated
79         */
80        public Option getLeftOption() {
81                return leftOption;
82        }
83 
84        /**
85         * <!-- begin-user-doc -->
86         * <!-- end-user-doc -->
87         * @generated
88         */
89        public NotificationChain basicSetLeftOption(Option newLeftOption, NotificationChain msgs) {
90                Option oldLeftOption = leftOption;
91                leftOption = newLeftOption;
92                if (eNotificationRequired()) {
93                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExpressionPackage.ALTERNATIVE__LEFT_OPTION, oldLeftOption, newLeftOption);
94                        if (msgs == null) msgs = notification; else msgs.add(notification);
95                }
96                return msgs;
97        }
98 
99        /**
100         * <!-- begin-user-doc -->
101         * <!-- end-user-doc -->
102         * @generated
103         */
104        public void setLeftOption(Option newLeftOption) {
105                if (newLeftOption != leftOption) {
106                        NotificationChain msgs = null;
107                        if (leftOption != null)
108                                msgs = ((InternalEObject)leftOption).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ExpressionPackage.ALTERNATIVE__LEFT_OPTION, null, msgs);
109                        if (newLeftOption != null)
110                                msgs = ((InternalEObject)newLeftOption).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ExpressionPackage.ALTERNATIVE__LEFT_OPTION, null, msgs);
111                        msgs = basicSetLeftOption(newLeftOption, msgs);
112                        if (msgs != null) msgs.dispatch();
113                }
114                else if (eNotificationRequired())
115                        eNotify(new ENotificationImpl(this, Notification.SET, ExpressionPackage.ALTERNATIVE__LEFT_OPTION, newLeftOption, newLeftOption));
116        }
117 
118        /**
119         * <!-- begin-user-doc -->
120         * <!-- end-user-doc -->
121         * @generated
122         */
123        public Option getRightOption() {
124                return rightOption;
125        }
126 
127        /**
128         * <!-- begin-user-doc -->
129         * <!-- end-user-doc -->
130         * @generated
131         */
132        public NotificationChain basicSetRightOption(Option newRightOption, NotificationChain msgs) {
133                Option oldRightOption = rightOption;
134                rightOption = newRightOption;
135                if (eNotificationRequired()) {
136                        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExpressionPackage.ALTERNATIVE__RIGHT_OPTION, oldRightOption, newRightOption);
137                        if (msgs == null) msgs = notification; else msgs.add(notification);
138                }
139                return msgs;
140        }
141 
142        /**
143         * <!-- begin-user-doc -->
144         * <!-- end-user-doc -->
145         * @generated
146         */
147        public void setRightOption(Option newRightOption) {
148                if (newRightOption != rightOption) {
149                        NotificationChain msgs = null;
150                        if (rightOption != null)
151                                msgs = ((InternalEObject)rightOption).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ExpressionPackage.ALTERNATIVE__RIGHT_OPTION, null, msgs);
152                        if (newRightOption != null)
153                                msgs = ((InternalEObject)newRightOption).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ExpressionPackage.ALTERNATIVE__RIGHT_OPTION, null, msgs);
154                        msgs = basicSetRightOption(newRightOption, msgs);
155                        if (msgs != null) msgs.dispatch();
156                }
157                else if (eNotificationRequired())
158                        eNotify(new ENotificationImpl(this, Notification.SET, ExpressionPackage.ALTERNATIVE__RIGHT_OPTION, newRightOption, newRightOption));
159        }
160 
161        /**
162         * <!-- begin-user-doc -->
163         * <!-- end-user-doc -->
164         * @generated
165         */
166        @Override
167        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
168                switch (featureID) {
169                        case ExpressionPackage.ALTERNATIVE__LEFT_OPTION:
170                                return basicSetLeftOption(null, msgs);
171                        case ExpressionPackage.ALTERNATIVE__RIGHT_OPTION:
172                                return basicSetRightOption(null, msgs);
173                }
174                return super.eInverseRemove(otherEnd, featureID, msgs);
175        }
176 
177        /**
178         * <!-- begin-user-doc -->
179         * <!-- end-user-doc -->
180         * @generated
181         */
182        @Override
183        public Object eGet(int featureID, boolean resolve, boolean coreType) {
184                switch (featureID) {
185                        case ExpressionPackage.ALTERNATIVE__LEFT_OPTION:
186                                return getLeftOption();
187                        case ExpressionPackage.ALTERNATIVE__RIGHT_OPTION:
188                                return getRightOption();
189                }
190                return super.eGet(featureID, resolve, coreType);
191        }
192 
193        /**
194         * <!-- begin-user-doc -->
195         * <!-- end-user-doc -->
196         * @generated
197         */
198        @Override
199        public void eSet(int featureID, Object newValue) {
200                switch (featureID) {
201                        case ExpressionPackage.ALTERNATIVE__LEFT_OPTION:
202                                setLeftOption((Option)newValue);
203                                return;
204                        case ExpressionPackage.ALTERNATIVE__RIGHT_OPTION:
205                                setRightOption((Option)newValue);
206                                return;
207                }
208                super.eSet(featureID, newValue);
209        }
210 
211        /**
212         * <!-- begin-user-doc -->
213         * <!-- end-user-doc -->
214         * @generated
215         */
216        @Override
217        public void eUnset(int featureID) {
218                switch (featureID) {
219                        case ExpressionPackage.ALTERNATIVE__LEFT_OPTION:
220                                setLeftOption((Option)null);
221                                return;
222                        case ExpressionPackage.ALTERNATIVE__RIGHT_OPTION:
223                                setRightOption((Option)null);
224                                return;
225                }
226                super.eUnset(featureID);
227        }
228 
229        /**
230         * <!-- begin-user-doc -->
231         * <!-- end-user-doc -->
232         * @generated
233         */
234        @Override
235        public boolean eIsSet(int featureID) {
236                switch (featureID) {
237                        case ExpressionPackage.ALTERNATIVE__LEFT_OPTION:
238                                return leftOption != null;
239                        case ExpressionPackage.ALTERNATIVE__RIGHT_OPTION:
240                                return rightOption != null;
241                }
242                return super.eIsSet(featureID);
243        }
244 
245} //AlternativeImpl

[all classes][de.uka.ipd.sdq.spa.expression.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov