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

COVERAGE SUMMARY FOR SOURCE FILE [IntervalRangeImpl.java]

nameclass, %method, %block, %line, %
IntervalRangeImpl.java0%   (0/1)0%   (0/11)0%   (0/157)0%   (0/47)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class IntervalRangeImpl0%   (0/1)0%   (0/11)0%   (0/157)0%   (0/47)
IntervalRangeImpl (): void 0%   (0/1)0%   (0/9)0%   (0/4)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/16)0%   (0/4)
eIsSet (int): boolean 0%   (0/1)0%   (0/12)0%   (0/4)
eSet (int, Object): void 0%   (0/1)0%   (0/19)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)
isLowerBoundIncluded (): boolean 0%   (0/1)0%   (0/3)0%   (0/1)
isUpperBoundIncluded (): boolean 0%   (0/1)0%   (0/3)0%   (0/1)
setLowerBoundIncluded (boolean): void 0%   (0/1)0%   (0/21)0%   (0/5)
setUpperBoundIncluded (boolean): void 0%   (0/1)0%   (0/21)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/37)0%   (0/8)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.featuremodel.impl;
8 
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.ecore.EClass;
11import org.eclipse.emf.ecore.impl.ENotificationImpl;
12import org.eclipse.emf.ecore.impl.EObjectImpl;
13 
14import de.uka.ipd.sdq.featuremodel.IntervalRange;
15import de.uka.ipd.sdq.featuremodel.featuremodelPackage;
16 
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model object '<em><b>Interval Range</b></em>'.
20 * <!-- end-user-doc -->
21 * <p>
22 * The following features are implemented:
23 * <ul>
24 *   <li>{@link de.uka.ipd.sdq.featuremodel.impl.IntervalRangeImpl#isLowerBoundIncluded <em>Lower Bound Included</em>}</li>
25 *   <li>{@link de.uka.ipd.sdq.featuremodel.impl.IntervalRangeImpl#isUpperBoundIncluded <em>Upper Bound Included</em>}</li>
26 * </ul>
27 * </p>
28 *
29 * @generated
30 */
31public abstract class IntervalRangeImpl extends EObjectImpl implements IntervalRange {
32        /**
33         * The default value of the '{@link #isLowerBoundIncluded() <em>Lower Bound Included</em>}' attribute.
34         * <!-- begin-user-doc -->
35         * <!-- end-user-doc -->
36         * @see #isLowerBoundIncluded()
37         * @generated
38         * @ordered
39         */
40        protected static final boolean LOWER_BOUND_INCLUDED_EDEFAULT = false;
41 
42        /**
43         * The cached value of the '{@link #isLowerBoundIncluded() <em>Lower Bound Included</em>}' attribute.
44         * <!-- begin-user-doc -->
45         * <!-- end-user-doc -->
46         * @see #isLowerBoundIncluded()
47         * @generated
48         * @ordered
49         */
50        protected boolean lowerBoundIncluded = LOWER_BOUND_INCLUDED_EDEFAULT;
51 
52        /**
53         * The default value of the '{@link #isUpperBoundIncluded() <em>Upper Bound Included</em>}' attribute.
54         * <!-- begin-user-doc -->
55         * <!-- end-user-doc -->
56         * @see #isUpperBoundIncluded()
57         * @generated
58         * @ordered
59         */
60        protected static final boolean UPPER_BOUND_INCLUDED_EDEFAULT = false;
61 
62        /**
63         * The cached value of the '{@link #isUpperBoundIncluded() <em>Upper Bound Included</em>}' attribute.
64         * <!-- begin-user-doc -->
65         * <!-- end-user-doc -->
66         * @see #isUpperBoundIncluded()
67         * @generated
68         * @ordered
69         */
70        protected boolean upperBoundIncluded = UPPER_BOUND_INCLUDED_EDEFAULT;
71 
72        /**
73         * <!-- begin-user-doc -->
74         * <!-- end-user-doc -->
75         * @generated
76         */
77        protected IntervalRangeImpl() {
78                super();
79        }
80 
81        /**
82         * <!-- begin-user-doc -->
83         * <!-- end-user-doc -->
84         * @generated
85         */
86        @Override
87        protected EClass eStaticClass() {
88                return featuremodelPackage.Literals.INTERVAL_RANGE;
89        }
90 
91        /**
92         * <!-- begin-user-doc -->
93         * <!-- end-user-doc -->
94         * @generated
95         */
96        public boolean isLowerBoundIncluded() {
97                return lowerBoundIncluded;
98        }
99 
100        /**
101         * <!-- begin-user-doc -->
102         * <!-- end-user-doc -->
103         * @generated
104         */
105        public void setLowerBoundIncluded(boolean newLowerBoundIncluded) {
106                boolean oldLowerBoundIncluded = lowerBoundIncluded;
107                lowerBoundIncluded = newLowerBoundIncluded;
108                if (eNotificationRequired())
109                        eNotify(new ENotificationImpl(this, Notification.SET, featuremodelPackage.INTERVAL_RANGE__LOWER_BOUND_INCLUDED, oldLowerBoundIncluded, lowerBoundIncluded));
110        }
111 
112        /**
113         * <!-- begin-user-doc -->
114         * <!-- end-user-doc -->
115         * @generated
116         */
117        public boolean isUpperBoundIncluded() {
118                return upperBoundIncluded;
119        }
120 
121        /**
122         * <!-- begin-user-doc -->
123         * <!-- end-user-doc -->
124         * @generated
125         */
126        public void setUpperBoundIncluded(boolean newUpperBoundIncluded) {
127                boolean oldUpperBoundIncluded = upperBoundIncluded;
128                upperBoundIncluded = newUpperBoundIncluded;
129                if (eNotificationRequired())
130                        eNotify(new ENotificationImpl(this, Notification.SET, featuremodelPackage.INTERVAL_RANGE__UPPER_BOUND_INCLUDED, oldUpperBoundIncluded, upperBoundIncluded));
131        }
132 
133        /**
134         * <!-- begin-user-doc -->
135         * <!-- end-user-doc -->
136         * @generated
137         */
138        @Override
139        public Object eGet(int featureID, boolean resolve, boolean coreType) {
140                switch (featureID) {
141                        case featuremodelPackage.INTERVAL_RANGE__LOWER_BOUND_INCLUDED:
142                                return isLowerBoundIncluded();
143                        case featuremodelPackage.INTERVAL_RANGE__UPPER_BOUND_INCLUDED:
144                                return isUpperBoundIncluded();
145                }
146                return super.eGet(featureID, resolve, coreType);
147        }
148 
149        /**
150         * <!-- begin-user-doc -->
151         * <!-- end-user-doc -->
152         * @generated
153         */
154        @Override
155        public void eSet(int featureID, Object newValue) {
156                switch (featureID) {
157                        case featuremodelPackage.INTERVAL_RANGE__LOWER_BOUND_INCLUDED:
158                                setLowerBoundIncluded((Boolean)newValue);
159                                return;
160                        case featuremodelPackage.INTERVAL_RANGE__UPPER_BOUND_INCLUDED:
161                                setUpperBoundIncluded((Boolean)newValue);
162                                return;
163                }
164                super.eSet(featureID, newValue);
165        }
166 
167        /**
168         * <!-- begin-user-doc -->
169         * <!-- end-user-doc -->
170         * @generated
171         */
172        @Override
173        public void eUnset(int featureID) {
174                switch (featureID) {
175                        case featuremodelPackage.INTERVAL_RANGE__LOWER_BOUND_INCLUDED:
176                                setLowerBoundIncluded(LOWER_BOUND_INCLUDED_EDEFAULT);
177                                return;
178                        case featuremodelPackage.INTERVAL_RANGE__UPPER_BOUND_INCLUDED:
179                                setUpperBoundIncluded(UPPER_BOUND_INCLUDED_EDEFAULT);
180                                return;
181                }
182                super.eUnset(featureID);
183        }
184 
185        /**
186         * <!-- begin-user-doc -->
187         * <!-- end-user-doc -->
188         * @generated
189         */
190        @Override
191        public boolean eIsSet(int featureID) {
192                switch (featureID) {
193                        case featuremodelPackage.INTERVAL_RANGE__LOWER_BOUND_INCLUDED:
194                                return lowerBoundIncluded != LOWER_BOUND_INCLUDED_EDEFAULT;
195                        case featuremodelPackage.INTERVAL_RANGE__UPPER_BOUND_INCLUDED:
196                                return upperBoundIncluded != UPPER_BOUND_INCLUDED_EDEFAULT;
197                }
198                return super.eIsSet(featureID);
199        }
200 
201        /**
202         * <!-- begin-user-doc -->
203         * <!-- end-user-doc -->
204         * @generated
205         */
206        @Override
207        public String toString() {
208                if (eIsProxy()) return super.toString();
209 
210                StringBuffer result = new StringBuffer(super.toString());
211                result.append(" (lowerBoundIncluded: ");
212                result.append(lowerBoundIncluded);
213                result.append(", upperBoundIncluded: ");
214                result.append(upperBoundIncluded);
215                result.append(')');
216                return result.toString();
217        }
218 
219} //IntervalRangeImpl

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