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 [FeatureSubsetImpl.java]

nameclass, %method, %block, %line, %
FeatureSubsetImpl.java0%   (0/1)0%   (0/7)0%   (0/74)0%   (0/23)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class FeatureSubsetImpl0%   (0/1)0%   (0/7)0%   (0/74)0%   (0/23)
FeatureSubsetImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
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)
getFeature (): EList 0%   (0/1)0%   (0/14)0%   (0/3)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.pcm.designdecision.impl;
8 
9import de.uka.ipd.sdq.featuremodel.Feature;
10 
11import de.uka.ipd.sdq.pcm.designdecision.FeatureSubset;
12import de.uka.ipd.sdq.pcm.designdecision.designdecisionPackage;
13 
14import java.util.Collection;
15 
16import org.eclipse.emf.common.util.EList;
17 
18import org.eclipse.emf.ecore.EClass;
19 
20import org.eclipse.emf.ecore.impl.EObjectImpl;
21 
22import org.eclipse.emf.ecore.util.EObjectResolvingEList;
23 
24/**
25 * <!-- begin-user-doc -->
26 * An implementation of the model object '<em><b>Feature Subset</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.FeatureSubsetImpl#getFeature <em>Feature</em>}</li>
32 * </ul>
33 * </p>
34 *
35 * @generated
36 */
37public class FeatureSubsetImpl extends EObjectImpl implements FeatureSubset {
38        /**
39         * The cached value of the '{@link #getFeature() <em>Feature</em>}' reference list.
40         * <!-- begin-user-doc -->
41         * <!-- end-user-doc -->
42         * @see #getFeature()
43         * @generated
44         * @ordered
45         */
46        protected EList<Feature> feature;
47 
48        /**
49         * <!-- begin-user-doc -->
50         * <!-- end-user-doc -->
51         * @generated
52         */
53        protected FeatureSubsetImpl() {
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.FEATURE_SUBSET;
65        }
66 
67        /**
68         * <!-- begin-user-doc -->
69         * <!-- end-user-doc -->
70         * @generated
71         */
72        public EList<Feature> getFeature() {
73                if (feature == null) {
74                        feature = new EObjectResolvingEList<Feature>(Feature.class, this, designdecisionPackage.FEATURE_SUBSET__FEATURE);
75                }
76                return feature;
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.FEATURE_SUBSET__FEATURE:
88                                return getFeature();
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.FEATURE_SUBSET__FEATURE:
103                                getFeature().clear();
104                                getFeature().addAll((Collection<? extends Feature>)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.FEATURE_SUBSET__FEATURE:
119                                getFeature().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.FEATURE_SUBSET__FEATURE:
134                                return feature != null && !feature.isEmpty();
135                }
136                return super.eIsSet(featureID);
137        }
138 
139} //FeatureSubsetImpl

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