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

COVERAGE SUMMARY FOR SOURCE FILE [NumberOfCoresAsListDegreeImpl.java]

nameclass, %method, %block, %line, %
NumberOfCoresAsListDegreeImpl.java0%   (0/1)0%   (0/10)0%   (0/172)0%   (0/57)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class NumberOfCoresAsListDegreeImpl0%   (0/1)0%   (0/10)0%   (0/172)0%   (0/57)
NumberOfCoresAsListDegreeImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
eBaseStructuralFeatureID (int, Class): int 0%   (0/1)0%   (0/35)0%   (0/14)
eDerivedStructuralFeatureID (int, Class): int 0%   (0/1)0%   (0/35)0%   (0/14)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/11)0%   (0/3)
eIsSet (int): boolean 0%   (0/1)0%   (0/17)0%   (0/3)
eSet (int, Object): void 0%   (0/1)0%   (0/17)0%   (0/6)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/10)0%   (0/5)
getListOfIntegers (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
toString (): String 0%   (0/1)0%   (0/28)0%   (0/6)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.pcm.designdecision.impl;
8 
9import de.uka.ipd.sdq.pcm.designdecision.DataTypeDegree;
10import de.uka.ipd.sdq.pcm.designdecision.DiscreteDegree;
11import de.uka.ipd.sdq.pcm.designdecision.NumberOfCoresAsListDegree;
12import de.uka.ipd.sdq.pcm.designdecision.OrderedDataTypeDegree;
13import de.uka.ipd.sdq.pcm.designdecision.OrderedIntegerDegree;
14import de.uka.ipd.sdq.pcm.designdecision.designdecisionPackage;
15 
16import java.util.Collection;
17 
18import org.eclipse.emf.common.util.EList;
19 
20import org.eclipse.emf.ecore.EClass;
21 
22import org.eclipse.emf.ecore.util.EDataTypeUniqueEList;
23 
24/**
25 * <!-- begin-user-doc -->
26 * An implementation of the model object '<em><b>Number Of Cores As List Degree</b></em>'.
27 * <!-- end-user-doc -->
28 * <p>
29 * The following features are implemented:
30 * <ul>
31 *   <li>{@link de.uka.ipd.sdq.pcm.designdecision.impl.NumberOfCoresAsListDegreeImpl#getListOfIntegers <em>List Of Integers</em>}</li>
32 * </ul>
33 * </p>
34 *
35 * @generated
36 */
37public class NumberOfCoresAsListDegreeImpl extends NumberOfCoresDegreeImpl implements NumberOfCoresAsListDegree {
38        /**
39         * The cached value of the '{@link #getListOfIntegers() <em>List Of Integers</em>}' attribute list.
40         * <!-- begin-user-doc -->
41         * <!-- end-user-doc -->
42         * @see #getListOfIntegers()
43         * @generated
44         * @ordered
45         */
46        protected EList<Integer> listOfIntegers;
47 
48        /**
49         * <!-- begin-user-doc -->
50         * <!-- end-user-doc -->
51         * @generated
52         */
53        protected NumberOfCoresAsListDegreeImpl() {
54                super();
55        }
56 
57        /**
58         * <!-- begin-user-doc -->
59         * <!-- end-user-doc -->
60         * @generated
61         */
62        @Override
63        protected EClass eStaticClass() {
64                return designdecisionPackage.Literals.NUMBER_OF_CORES_AS_LIST_DEGREE;
65        }
66 
67        /**
68         * <!-- begin-user-doc -->
69         * <!-- end-user-doc -->
70         * @generated
71         */
72        public EList<Integer> getListOfIntegers() {
73                if (listOfIntegers == null) {
74                        listOfIntegers = new EDataTypeUniqueEList<Integer>(Integer.class, this, designdecisionPackage.NUMBER_OF_CORES_AS_LIST_DEGREE__LIST_OF_INTEGERS);
75                }
76                return listOfIntegers;
77        }
78 
79        /**
80         * <!-- begin-user-doc -->
81         * <!-- end-user-doc -->
82         * @generated
83         */
84        @Override
85        public Object eGet(int featureID, boolean resolve, boolean coreType) {
86                switch (featureID) {
87                        case designdecisionPackage.NUMBER_OF_CORES_AS_LIST_DEGREE__LIST_OF_INTEGERS:
88                                return getListOfIntegers();
89                }
90                return super.eGet(featureID, resolve, coreType);
91        }
92 
93        /**
94         * <!-- begin-user-doc -->
95         * <!-- end-user-doc -->
96         * @generated
97         */
98        @SuppressWarnings("unchecked")
99        @Override
100        public void eSet(int featureID, Object newValue) {
101                switch (featureID) {
102                        case designdecisionPackage.NUMBER_OF_CORES_AS_LIST_DEGREE__LIST_OF_INTEGERS:
103                                getListOfIntegers().clear();
104                                getListOfIntegers().addAll((Collection<? extends Integer>)newValue);
105                                return;
106                }
107                super.eSet(featureID, newValue);
108        }
109 
110        /**
111         * <!-- begin-user-doc -->
112         * <!-- end-user-doc -->
113         * @generated
114         */
115        @Override
116        public void eUnset(int featureID) {
117                switch (featureID) {
118                        case designdecisionPackage.NUMBER_OF_CORES_AS_LIST_DEGREE__LIST_OF_INTEGERS:
119                                getListOfIntegers().clear();
120                                return;
121                }
122                super.eUnset(featureID);
123        }
124 
125        /**
126         * <!-- begin-user-doc -->
127         * <!-- end-user-doc -->
128         * @generated
129         */
130        @Override
131        public boolean eIsSet(int featureID) {
132                switch (featureID) {
133                        case designdecisionPackage.NUMBER_OF_CORES_AS_LIST_DEGREE__LIST_OF_INTEGERS:
134                                return listOfIntegers != null && !listOfIntegers.isEmpty();
135                }
136                return super.eIsSet(featureID);
137        }
138 
139        /**
140         * <!-- begin-user-doc -->
141         * <!-- end-user-doc -->
142         * @generated
143         */
144        @Override
145        public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
146                if (baseClass == DataTypeDegree.class) {
147                        switch (derivedFeatureID) {
148                                default: return -1;
149                        }
150                }
151                if (baseClass == DiscreteDegree.class) {
152                        switch (derivedFeatureID) {
153                                default: return -1;
154                        }
155                }
156                if (baseClass == OrderedDataTypeDegree.class) {
157                        switch (derivedFeatureID) {
158                                default: return -1;
159                        }
160                }
161                if (baseClass == OrderedIntegerDegree.class) {
162                        switch (derivedFeatureID) {
163                                case designdecisionPackage.NUMBER_OF_CORES_AS_LIST_DEGREE__LIST_OF_INTEGERS: return designdecisionPackage.ORDERED_INTEGER_DEGREE__LIST_OF_INTEGERS;
164                                default: return -1;
165                        }
166                }
167                return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
168        }
169 
170        /**
171         * <!-- begin-user-doc -->
172         * <!-- end-user-doc -->
173         * @generated
174         */
175        @Override
176        public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
177                if (baseClass == DataTypeDegree.class) {
178                        switch (baseFeatureID) {
179                                default: return -1;
180                        }
181                }
182                if (baseClass == DiscreteDegree.class) {
183                        switch (baseFeatureID) {
184                                default: return -1;
185                        }
186                }
187                if (baseClass == OrderedDataTypeDegree.class) {
188                        switch (baseFeatureID) {
189                                default: return -1;
190                        }
191                }
192                if (baseClass == OrderedIntegerDegree.class) {
193                        switch (baseFeatureID) {
194                                case designdecisionPackage.ORDERED_INTEGER_DEGREE__LIST_OF_INTEGERS: return designdecisionPackage.NUMBER_OF_CORES_AS_LIST_DEGREE__LIST_OF_INTEGERS;
195                                default: return -1;
196                        }
197                }
198                return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
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(" (listOfIntegers: ");
212                result.append(listOfIntegers);
213                result.append(')');
214                return result.toString();
215        }
216 
217} //NumberOfCoresAsListDegreeImpl

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