EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.fzi.se.quality.parameters.pcm.impl]

COVERAGE SUMMARY FOR SOURCE FILE [PCMParameterValueImpl.java]

nameclass, %method, %block, %line, %
PCMParameterValueImpl.java0%   (0/1)0%   (0/8)0%   (0/89)0%   (0/26)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PCMParameterValueImpl0%   (0/1)0%   (0/8)0%   (0/89)0%   (0/26)
PCMParameterValueImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/11)0%   (0/3)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/15)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)
getVariableCharacterisation (): EList 0%   (0/1)0%   (0/14)0%   (0/3)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.fzi.se.quality.parameters.pcm.impl;
8 
9import de.fzi.se.quality.parameters.impl.ParameterValueImpl;
10 
11import de.fzi.se.quality.parameters.pcm.PCMPackage;
12import de.fzi.se.quality.parameters.pcm.PCMParameterValue;
13 
14import de.uka.ipd.sdq.pcm.parameter.VariableCharacterisation;
15 
16import java.util.Collection;
17 
18import org.eclipse.emf.common.notify.NotificationChain;
19 
20import org.eclipse.emf.common.util.EList;
21 
22import org.eclipse.emf.ecore.EClass;
23import org.eclipse.emf.ecore.InternalEObject;
24 
25import org.eclipse.emf.ecore.util.EObjectContainmentEList;
26import org.eclipse.emf.ecore.util.InternalEList;
27 
28/**
29 * <!-- begin-user-doc -->
30 * An implementation of the model object '<em><b>Parameter Value</b></em>'.
31 * <!-- end-user-doc -->
32 * <p>
33 * The following features are implemented:
34 * <ul>
35 *   <li>{@link de.fzi.se.quality.parameters.pcm.impl.PCMParameterValueImpl#getVariableCharacterisation <em>Variable Characterisation</em>}</li>
36 * </ul>
37 * </p>
38 *
39 * @generated
40 */
41public class PCMParameterValueImpl extends ParameterValueImpl implements PCMParameterValue {
42        /**
43         * The cached value of the '{@link #getVariableCharacterisation() <em>Variable Characterisation</em>}' containment reference list.
44         * <!-- begin-user-doc -->
45         * <!-- end-user-doc -->
46         * @see #getVariableCharacterisation()
47         * @generated
48         * @ordered
49         */
50        protected EList<VariableCharacterisation> variableCharacterisation;
51 
52        /**
53         * <!-- begin-user-doc -->
54         * <!-- end-user-doc -->
55         * @generated
56         */
57        protected PCMParameterValueImpl() {
58                super();
59        }
60 
61        /**
62         * <!-- begin-user-doc -->
63         * <!-- end-user-doc -->
64         * @generated
65         */
66        @Override
67        protected EClass eStaticClass() {
68                return PCMPackage.Literals.PCM_PARAMETER_VALUE;
69        }
70 
71        /**
72         * <!-- begin-user-doc -->
73         * <!-- end-user-doc -->
74         * @generated
75         */
76        public EList<VariableCharacterisation> getVariableCharacterisation() {
77                if (variableCharacterisation == null) {
78                        variableCharacterisation = new EObjectContainmentEList<VariableCharacterisation>(VariableCharacterisation.class, this, PCMPackage.PCM_PARAMETER_VALUE__VARIABLE_CHARACTERISATION);
79                }
80                return variableCharacterisation;
81        }
82 
83        /**
84         * <!-- begin-user-doc -->
85         * <!-- end-user-doc -->
86         * @generated
87         */
88        @Override
89        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
90                switch (featureID) {
91                        case PCMPackage.PCM_PARAMETER_VALUE__VARIABLE_CHARACTERISATION:
92                                return ((InternalEList<?>)getVariableCharacterisation()).basicRemove(otherEnd, msgs);
93                }
94                return super.eInverseRemove(otherEnd, featureID, msgs);
95        }
96 
97        /**
98         * <!-- begin-user-doc -->
99         * <!-- end-user-doc -->
100         * @generated
101         */
102        @Override
103        public Object eGet(int featureID, boolean resolve, boolean coreType) {
104                switch (featureID) {
105                        case PCMPackage.PCM_PARAMETER_VALUE__VARIABLE_CHARACTERISATION:
106                                return getVariableCharacterisation();
107                }
108                return super.eGet(featureID, resolve, coreType);
109        }
110 
111        /**
112         * <!-- begin-user-doc -->
113         * <!-- end-user-doc -->
114         * @generated
115         */
116        @SuppressWarnings("unchecked")
117        @Override
118        public void eSet(int featureID, Object newValue) {
119                switch (featureID) {
120                        case PCMPackage.PCM_PARAMETER_VALUE__VARIABLE_CHARACTERISATION:
121                                getVariableCharacterisation().clear();
122                                getVariableCharacterisation().addAll((Collection<? extends VariableCharacterisation>)newValue);
123                                return;
124                }
125                super.eSet(featureID, newValue);
126        }
127 
128        /**
129         * <!-- begin-user-doc -->
130         * <!-- end-user-doc -->
131         * @generated
132         */
133        @Override
134        public void eUnset(int featureID) {
135                switch (featureID) {
136                        case PCMPackage.PCM_PARAMETER_VALUE__VARIABLE_CHARACTERISATION:
137                                getVariableCharacterisation().clear();
138                                return;
139                }
140                super.eUnset(featureID);
141        }
142 
143        /**
144         * <!-- begin-user-doc -->
145         * <!-- end-user-doc -->
146         * @generated
147         */
148        @Override
149        public boolean eIsSet(int featureID) {
150                switch (featureID) {
151                        case PCMPackage.PCM_PARAMETER_VALUE__VARIABLE_CHARACTERISATION:
152                                return variableCharacterisation != null && !variableCharacterisation.isEmpty();
153                }
154                return super.eIsSet(featureID);
155        }
156 
157} //PCMParameterValueImpl

[all classes][de.fzi.se.quality.parameters.pcm.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov