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

COVERAGE SUMMARY FOR SOURCE FILE [MultiplicityElementImpl.java]

nameclass, %method, %block, %line, %
MultiplicityElementImpl.java0%   (0/1)0%   (0/16)0%   (0/330)0%   (0/82)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class MultiplicityElementImpl0%   (0/1)0%   (0/16)0%   (0/330)0%   (0/82)
<static initializer> 0%   (0/1)0%   (0/15)0%   (0/5)
MultiplicityElementImpl (): void 0%   (0/1)0%   (0/15)0%   (0/6)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/20)0%   (0/6)
eIsSet (int): boolean 0%   (0/1)0%   (0/78)0%   (0/6)
eSet (int, Object): void 0%   (0/1)0%   (0/27)0%   (0/11)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/22)0%   (0/11)
getIsOrdered (): Boolean 0%   (0/1)0%   (0/3)0%   (0/1)
getIsUnique (): Boolean 0%   (0/1)0%   (0/3)0%   (0/1)
getLower (): Integer 0%   (0/1)0%   (0/3)0%   (0/1)
getUpper (): Integer 0%   (0/1)0%   (0/3)0%   (0/1)
setIsOrdered (Boolean): void 0%   (0/1)0%   (0/21)0%   (0/5)
setIsUnique (Boolean): void 0%   (0/1)0%   (0/21)0%   (0/5)
setLower (Integer): void 0%   (0/1)0%   (0/21)0%   (0/5)
setUpper (Integer): void 0%   (0/1)0%   (0/21)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/55)0%   (0/12)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package EMOF.impl;
8 
9import EMOF.EMOFPackage;
10import EMOF.MultiplicityElement;
11 
12import org.eclipse.emf.common.notify.Notification;
13 
14import org.eclipse.emf.ecore.EClass;
15 
16import org.eclipse.emf.ecore.impl.ENotificationImpl;
17import org.eclipse.emf.ecore.impl.EObjectImpl;
18 
19/**
20 * <!-- begin-user-doc -->
21 * An implementation of the model object '<em><b>Multiplicity Element</b></em>'.
22 * <!-- end-user-doc -->
23 * <p>
24 * The following features are implemented:
25 * <ul>
26 *   <li>{@link EMOF.impl.MultiplicityElementImpl#getIsOrdered <em>Is Ordered</em>}</li>
27 *   <li>{@link EMOF.impl.MultiplicityElementImpl#getIsUnique <em>Is Unique</em>}</li>
28 *   <li>{@link EMOF.impl.MultiplicityElementImpl#getLower <em>Lower</em>}</li>
29 *   <li>{@link EMOF.impl.MultiplicityElementImpl#getUpper <em>Upper</em>}</li>
30 * </ul>
31 * </p>
32 *
33 * @generated
34 */
35public abstract class MultiplicityElementImpl extends EObjectImpl implements MultiplicityElement {
36        /**
37         * The default value of the '{@link #getIsOrdered() <em>Is Ordered</em>}' attribute.
38         * <!-- begin-user-doc -->
39         * <!-- end-user-doc -->
40         * @see #getIsOrdered()
41         * @generated
42         * @ordered
43         */
44        protected static final Boolean IS_ORDERED_EDEFAULT = Boolean.FALSE;
45 
46        /**
47         * The cached value of the '{@link #getIsOrdered() <em>Is Ordered</em>}' attribute.
48         * <!-- begin-user-doc -->
49         * <!-- end-user-doc -->
50         * @see #getIsOrdered()
51         * @generated
52         * @ordered
53         */
54        protected Boolean isOrdered = IS_ORDERED_EDEFAULT;
55 
56        /**
57         * The default value of the '{@link #getIsUnique() <em>Is Unique</em>}' attribute.
58         * <!-- begin-user-doc -->
59         * <!-- end-user-doc -->
60         * @see #getIsUnique()
61         * @generated
62         * @ordered
63         */
64        protected static final Boolean IS_UNIQUE_EDEFAULT = Boolean.TRUE;
65 
66        /**
67         * The cached value of the '{@link #getIsUnique() <em>Is Unique</em>}' attribute.
68         * <!-- begin-user-doc -->
69         * <!-- end-user-doc -->
70         * @see #getIsUnique()
71         * @generated
72         * @ordered
73         */
74        protected Boolean isUnique = IS_UNIQUE_EDEFAULT;
75 
76        /**
77         * The default value of the '{@link #getLower() <em>Lower</em>}' attribute.
78         * <!-- begin-user-doc -->
79         * <!-- end-user-doc -->
80         * @see #getLower()
81         * @generated
82         * @ordered
83         */
84        protected static final Integer LOWER_EDEFAULT = new Integer(1);
85 
86        /**
87         * The cached value of the '{@link #getLower() <em>Lower</em>}' attribute.
88         * <!-- begin-user-doc -->
89         * <!-- end-user-doc -->
90         * @see #getLower()
91         * @generated
92         * @ordered
93         */
94        protected Integer lower = LOWER_EDEFAULT;
95 
96        /**
97         * The default value of the '{@link #getUpper() <em>Upper</em>}' attribute.
98         * <!-- begin-user-doc -->
99         * <!-- end-user-doc -->
100         * @see #getUpper()
101         * @generated
102         * @ordered
103         */
104        protected static final Integer UPPER_EDEFAULT = new Integer(1);
105 
106        /**
107         * The cached value of the '{@link #getUpper() <em>Upper</em>}' attribute.
108         * <!-- begin-user-doc -->
109         * <!-- end-user-doc -->
110         * @see #getUpper()
111         * @generated
112         * @ordered
113         */
114        protected Integer upper = UPPER_EDEFAULT;
115 
116        /**
117         * <!-- begin-user-doc -->
118         * <!-- end-user-doc -->
119         * @generated
120         */
121        protected MultiplicityElementImpl() {
122                super();
123        }
124 
125        /**
126         * <!-- begin-user-doc -->
127         * <!-- end-user-doc -->
128         * @generated
129         */
130        @Override
131        protected EClass eStaticClass() {
132                return EMOFPackage.Literals.MULTIPLICITY_ELEMENT;
133        }
134 
135        /**
136         * <!-- begin-user-doc -->
137         * <!-- end-user-doc -->
138         * @generated
139         */
140        public Boolean getIsOrdered() {
141                return isOrdered;
142        }
143 
144        /**
145         * <!-- begin-user-doc -->
146         * <!-- end-user-doc -->
147         * @generated
148         */
149        public void setIsOrdered(Boolean newIsOrdered) {
150                Boolean oldIsOrdered = isOrdered;
151                isOrdered = newIsOrdered;
152                if (eNotificationRequired())
153                        eNotify(new ENotificationImpl(this, Notification.SET, EMOFPackage.MULTIPLICITY_ELEMENT__IS_ORDERED, oldIsOrdered, isOrdered));
154        }
155 
156        /**
157         * <!-- begin-user-doc -->
158         * <!-- end-user-doc -->
159         * @generated
160         */
161        public Boolean getIsUnique() {
162                return isUnique;
163        }
164 
165        /**
166         * <!-- begin-user-doc -->
167         * <!-- end-user-doc -->
168         * @generated
169         */
170        public void setIsUnique(Boolean newIsUnique) {
171                Boolean oldIsUnique = isUnique;
172                isUnique = newIsUnique;
173                if (eNotificationRequired())
174                        eNotify(new ENotificationImpl(this, Notification.SET, EMOFPackage.MULTIPLICITY_ELEMENT__IS_UNIQUE, oldIsUnique, isUnique));
175        }
176 
177        /**
178         * <!-- begin-user-doc -->
179         * <!-- end-user-doc -->
180         * @generated
181         */
182        public Integer getLower() {
183                return lower;
184        }
185 
186        /**
187         * <!-- begin-user-doc -->
188         * <!-- end-user-doc -->
189         * @generated
190         */
191        public void setLower(Integer newLower) {
192                Integer oldLower = lower;
193                lower = newLower;
194                if (eNotificationRequired())
195                        eNotify(new ENotificationImpl(this, Notification.SET, EMOFPackage.MULTIPLICITY_ELEMENT__LOWER, oldLower, lower));
196        }
197 
198        /**
199         * <!-- begin-user-doc -->
200         * <!-- end-user-doc -->
201         * @generated
202         */
203        public Integer getUpper() {
204                return upper;
205        }
206 
207        /**
208         * <!-- begin-user-doc -->
209         * <!-- end-user-doc -->
210         * @generated
211         */
212        public void setUpper(Integer newUpper) {
213                Integer oldUpper = upper;
214                upper = newUpper;
215                if (eNotificationRequired())
216                        eNotify(new ENotificationImpl(this, Notification.SET, EMOFPackage.MULTIPLICITY_ELEMENT__UPPER, oldUpper, upper));
217        }
218 
219        /**
220         * <!-- begin-user-doc -->
221         * <!-- end-user-doc -->
222         * @generated
223         */
224        @Override
225        public Object eGet(int featureID, boolean resolve, boolean coreType) {
226                switch (featureID) {
227                        case EMOFPackage.MULTIPLICITY_ELEMENT__IS_ORDERED:
228                                return getIsOrdered();
229                        case EMOFPackage.MULTIPLICITY_ELEMENT__IS_UNIQUE:
230                                return getIsUnique();
231                        case EMOFPackage.MULTIPLICITY_ELEMENT__LOWER:
232                                return getLower();
233                        case EMOFPackage.MULTIPLICITY_ELEMENT__UPPER:
234                                return getUpper();
235                }
236                return super.eGet(featureID, resolve, coreType);
237        }
238 
239        /**
240         * <!-- begin-user-doc -->
241         * <!-- end-user-doc -->
242         * @generated
243         */
244        @Override
245        public void eSet(int featureID, Object newValue) {
246                switch (featureID) {
247                        case EMOFPackage.MULTIPLICITY_ELEMENT__IS_ORDERED:
248                                setIsOrdered((Boolean)newValue);
249                                return;
250                        case EMOFPackage.MULTIPLICITY_ELEMENT__IS_UNIQUE:
251                                setIsUnique((Boolean)newValue);
252                                return;
253                        case EMOFPackage.MULTIPLICITY_ELEMENT__LOWER:
254                                setLower((Integer)newValue);
255                                return;
256                        case EMOFPackage.MULTIPLICITY_ELEMENT__UPPER:
257                                setUpper((Integer)newValue);
258                                return;
259                }
260                super.eSet(featureID, newValue);
261        }
262 
263        /**
264         * <!-- begin-user-doc -->
265         * <!-- end-user-doc -->
266         * @generated
267         */
268        @Override
269        public void eUnset(int featureID) {
270                switch (featureID) {
271                        case EMOFPackage.MULTIPLICITY_ELEMENT__IS_ORDERED:
272                                setIsOrdered(IS_ORDERED_EDEFAULT);
273                                return;
274                        case EMOFPackage.MULTIPLICITY_ELEMENT__IS_UNIQUE:
275                                setIsUnique(IS_UNIQUE_EDEFAULT);
276                                return;
277                        case EMOFPackage.MULTIPLICITY_ELEMENT__LOWER:
278                                setLower(LOWER_EDEFAULT);
279                                return;
280                        case EMOFPackage.MULTIPLICITY_ELEMENT__UPPER:
281                                setUpper(UPPER_EDEFAULT);
282                                return;
283                }
284                super.eUnset(featureID);
285        }
286 
287        /**
288         * <!-- begin-user-doc -->
289         * <!-- end-user-doc -->
290         * @generated
291         */
292        @Override
293        public boolean eIsSet(int featureID) {
294                switch (featureID) {
295                        case EMOFPackage.MULTIPLICITY_ELEMENT__IS_ORDERED:
296                                return IS_ORDERED_EDEFAULT == null ? isOrdered != null : !IS_ORDERED_EDEFAULT.equals(isOrdered);
297                        case EMOFPackage.MULTIPLICITY_ELEMENT__IS_UNIQUE:
298                                return IS_UNIQUE_EDEFAULT == null ? isUnique != null : !IS_UNIQUE_EDEFAULT.equals(isUnique);
299                        case EMOFPackage.MULTIPLICITY_ELEMENT__LOWER:
300                                return LOWER_EDEFAULT == null ? lower != null : !LOWER_EDEFAULT.equals(lower);
301                        case EMOFPackage.MULTIPLICITY_ELEMENT__UPPER:
302                                return UPPER_EDEFAULT == null ? upper != null : !UPPER_EDEFAULT.equals(upper);
303                }
304                return super.eIsSet(featureID);
305        }
306 
307        /**
308         * <!-- begin-user-doc -->
309         * <!-- end-user-doc -->
310         * @generated
311         */
312        @Override
313        public String toString() {
314                if (eIsProxy()) return super.toString();
315 
316                StringBuffer result = new StringBuffer(super.toString());
317                result.append(" (isOrdered: ");
318                result.append(isOrdered);
319                result.append(", isUnique: ");
320                result.append(isUnique);
321                result.append(", lower: ");
322                result.append(lower);
323                result.append(", upper: ");
324                result.append(upper);
325                result.append(')');
326                return result.toString();
327        }
328 
329} //MultiplicityElementImpl

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