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

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class OrderedIntegerDegreeImpl0%   (0/1)0%   (0/8)0%   (0/102)0%   (0/29)
OrderedIntegerDegreeImpl (): 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)
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.OrderedIntegerDegree;
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>Ordered Integer 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.OrderedIntegerDegreeImpl#getListOfIntegers <em>List Of Integers</em>}</li>
28 * </ul>
29 * </p>
30 *
31 * @generated
32 */
33public class OrderedIntegerDegreeImpl extends DiscreteDegreeImpl implements OrderedIntegerDegree {
34        /**
35         * The cached value of the '{@link #getListOfIntegers() <em>List Of Integers</em>}' attribute list.
36         * <!-- begin-user-doc -->
37         * <!-- end-user-doc -->
38         * @see #getListOfIntegers()
39         * @generated
40         * @ordered
41         */
42        protected EList<Integer> listOfIntegers;
43 
44        /**
45         * <!-- begin-user-doc -->
46         * <!-- end-user-doc -->
47         * @generated
48         */
49        protected OrderedIntegerDegreeImpl() {
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.ORDERED_INTEGER_DEGREE;
61        }
62 
63        /**
64         * <!-- begin-user-doc -->
65         * <!-- end-user-doc -->
66         * @generated
67         */
68        public EList<Integer> getListOfIntegers() {
69                if (listOfIntegers == null) {
70                        listOfIntegers = new EDataTypeUniqueEList<Integer>(Integer.class, this, designdecisionPackage.ORDERED_INTEGER_DEGREE__LIST_OF_INTEGERS);
71                }
72                return listOfIntegers;
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.ORDERED_INTEGER_DEGREE__LIST_OF_INTEGERS:
84                                return getListOfIntegers();
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.ORDERED_INTEGER_DEGREE__LIST_OF_INTEGERS:
99                                getListOfIntegers().clear();
100                                getListOfIntegers().addAll((Collection<? extends Integer>)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.ORDERED_INTEGER_DEGREE__LIST_OF_INTEGERS:
115                                getListOfIntegers().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.ORDERED_INTEGER_DEGREE__LIST_OF_INTEGERS:
130                                return listOfIntegers != null && !listOfIntegers.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(" (listOfIntegers: ");
146                result.append(listOfIntegers);
147                result.append(')');
148                return result.toString();
149        }
150 
151} //OrderedIntegerDegreeImpl

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