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

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

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

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