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

COVERAGE SUMMARY FOR SOURCE FILE [StringParameterSequenceImpl.java]

nameclass, %method, %block, %line, %
StringParameterSequenceImpl.java0%   (0/1)0%   (0/8)0%   (0/102)0%   (0/29)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class StringParameterSequenceImpl0%   (0/1)0%   (0/8)0%   (0/102)0%   (0/29)
StringParameterSequenceImpl (): 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)
getStringValues (): 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.sensitivity.impl;
8 
9import de.uka.ipd.sdq.sensitivity.SensitivityPackage;
10import de.uka.ipd.sdq.sensitivity.StringParameterSequence;
11 
12import java.util.Collection;
13 
14import org.eclipse.emf.common.util.EList;
15 
16import org.eclipse.emf.ecore.EClass;
17 
18import org.eclipse.emf.ecore.util.EDataTypeEList;
19import org.eclipse.emf.ecore.util.EDataTypeUniqueEList;
20 
21/**
22 * <!-- begin-user-doc -->
23 * An implementation of the model object '<em><b>String Parameter Sequence</b></em>'.
24 * <!-- end-user-doc -->
25 * <p>
26 * The following features are implemented:
27 * <ul>
28 *   <li>{@link de.uka.ipd.sdq.sensitivity.impl.StringParameterSequenceImpl#getStringValues <em>String Values</em>}</li>
29 * </ul>
30 * </p>
31 *
32 * @generated
33 */
34public class StringParameterSequenceImpl extends SensitivityParameterVariationImpl implements StringParameterSequence {
35        /**
36         * The cached value of the '{@link #getStringValues() <em>String Values</em>}' attribute list.
37         * <!-- begin-user-doc -->
38         * <!-- end-user-doc -->
39         * @see #getStringValues()
40         * @generated
41         * @ordered
42         */
43        protected EList<String> stringValues;
44 
45        /**
46         * <!-- begin-user-doc -->
47         * <!-- end-user-doc -->
48         * @generated
49         */
50        protected StringParameterSequenceImpl() {
51                super();
52        }
53 
54        /**
55         * <!-- begin-user-doc -->
56         * <!-- end-user-doc -->
57         * @generated
58         */
59        @Override
60        protected EClass eStaticClass() {
61                return SensitivityPackage.Literals.STRING_PARAMETER_SEQUENCE;
62        }
63 
64        /**
65         * <!-- begin-user-doc -->
66         * <!-- end-user-doc -->
67         * @generated
68         */
69        public EList<String> getStringValues() {
70                if (stringValues == null) {
71                        stringValues = new EDataTypeEList<String>(String.class, this, SensitivityPackage.STRING_PARAMETER_SEQUENCE__STRING_VALUES);
72                }
73                return stringValues;
74        }
75 
76        /**
77         * <!-- begin-user-doc -->
78         * <!-- end-user-doc -->
79         * @generated
80         */
81        @Override
82        public Object eGet(int featureID, boolean resolve, boolean coreType) {
83                switch (featureID) {
84                        case SensitivityPackage.STRING_PARAMETER_SEQUENCE__STRING_VALUES:
85                                return getStringValues();
86                }
87                return super.eGet(featureID, resolve, coreType);
88        }
89 
90        /**
91         * <!-- begin-user-doc -->
92         * <!-- end-user-doc -->
93         * @generated
94         */
95        @SuppressWarnings("unchecked")
96        @Override
97        public void eSet(int featureID, Object newValue) {
98                switch (featureID) {
99                        case SensitivityPackage.STRING_PARAMETER_SEQUENCE__STRING_VALUES:
100                                getStringValues().clear();
101                                getStringValues().addAll((Collection<? extends String>)newValue);
102                                return;
103                }
104                super.eSet(featureID, newValue);
105        }
106 
107        /**
108         * <!-- begin-user-doc -->
109         * <!-- end-user-doc -->
110         * @generated
111         */
112        @Override
113        public void eUnset(int featureID) {
114                switch (featureID) {
115                        case SensitivityPackage.STRING_PARAMETER_SEQUENCE__STRING_VALUES:
116                                getStringValues().clear();
117                                return;
118                }
119                super.eUnset(featureID);
120        }
121 
122        /**
123         * <!-- begin-user-doc -->
124         * <!-- end-user-doc -->
125         * @generated
126         */
127        @Override
128        public boolean eIsSet(int featureID) {
129                switch (featureID) {
130                        case SensitivityPackage.STRING_PARAMETER_SEQUENCE__STRING_VALUES:
131                                return stringValues != null && !stringValues.isEmpty();
132                }
133                return super.eIsSet(featureID);
134        }
135 
136        /**
137         * <!-- begin-user-doc -->
138         * <!-- end-user-doc -->
139         * @generated
140         */
141        @Override
142        public String toString() {
143                if (eIsProxy()) return super.toString();
144 
145                StringBuffer result = new StringBuffer(super.toString());
146                result.append(" (stringValues: ");
147                result.append(stringValues);
148                result.append(')');
149                return result.toString();
150        }
151 
152} //StringParameterSequenceImpl

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