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

COVERAGE SUMMARY FOR SOURCE FILE [QMLContractTypeImpl.java]

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class QMLContractTypeImpl0%   (0/1)0%   (0/7)0%   (0/74)0%   (0/23)
QMLContractTypeImpl (): 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)
getDimensions (): EList 0%   (0/1)0%   (0/14)0%   (0/3)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.impl;
8 
9import de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.Dimension;
10import de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.QMLContractType;
11import de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.QMLContractTypePackage;
12 
13import de.uka.ipd.sdq.dsexplore.qml.declarations.QMLDeclarations.impl.QMLDeclarationImpl;
14 
15import java.util.Collection;
16 
17import org.eclipse.emf.common.util.EList;
18 
19import org.eclipse.emf.ecore.EClass;
20 
21import org.eclipse.emf.ecore.util.EObjectResolvingEList;
22 
23/**
24 * <!-- begin-user-doc -->
25 * An implementation of the model object '<em><b>QML Contract Type</b></em>'.
26 * <!-- end-user-doc -->
27 * <p>
28 * The following features are implemented:
29 * <ul>
30 *   <li>{@link de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.impl.QMLContractTypeImpl#getDimensions <em>Dimensions</em>}</li>
31 * </ul>
32 * </p>
33 *
34 * @generated
35 */
36public class QMLContractTypeImpl extends QMLDeclarationImpl implements QMLContractType {
37        /**
38         * The cached value of the '{@link #getDimensions() <em>Dimensions</em>}' reference list.
39         * <!-- begin-user-doc -->
40         * <!-- end-user-doc -->
41         * @see #getDimensions()
42         * @generated
43         * @ordered
44         */
45        protected EList<Dimension> dimensions;
46 
47        /**
48         * <!-- begin-user-doc -->
49         * <!-- end-user-doc -->
50         * @generated
51         */
52        protected QMLContractTypeImpl() {
53                super();
54        }
55 
56        /**
57         * <!-- begin-user-doc -->
58         * <!-- end-user-doc -->
59         * @generated
60         */
61        @Override
62        protected EClass eStaticClass() {
63                return QMLContractTypePackage.Literals.QML_CONTRACT_TYPE;
64        }
65 
66        /**
67         * <!-- begin-user-doc -->
68         * <!-- end-user-doc -->
69         * @generated
70         */
71        public EList<Dimension> getDimensions() {
72                if (dimensions == null) {
73                        dimensions = new EObjectResolvingEList<Dimension>(Dimension.class, this, QMLContractTypePackage.QML_CONTRACT_TYPE__DIMENSIONS);
74                }
75                return dimensions;
76        }
77 
78        /**
79         * <!-- begin-user-doc -->
80         * <!-- end-user-doc -->
81         * @generated
82         */
83        @Override
84        public Object eGet(int featureID, boolean resolve, boolean coreType) {
85                switch (featureID) {
86                        case QMLContractTypePackage.QML_CONTRACT_TYPE__DIMENSIONS:
87                                return getDimensions();
88                }
89                return super.eGet(featureID, resolve, coreType);
90        }
91 
92        /**
93         * <!-- begin-user-doc -->
94         * <!-- end-user-doc -->
95         * @generated
96         */
97        @SuppressWarnings("unchecked")
98        @Override
99        public void eSet(int featureID, Object newValue) {
100                switch (featureID) {
101                        case QMLContractTypePackage.QML_CONTRACT_TYPE__DIMENSIONS:
102                                getDimensions().clear();
103                                getDimensions().addAll((Collection<? extends Dimension>)newValue);
104                                return;
105                }
106                super.eSet(featureID, newValue);
107        }
108 
109        /**
110         * <!-- begin-user-doc -->
111         * <!-- end-user-doc -->
112         * @generated
113         */
114        @Override
115        public void eUnset(int featureID) {
116                switch (featureID) {
117                        case QMLContractTypePackage.QML_CONTRACT_TYPE__DIMENSIONS:
118                                getDimensions().clear();
119                                return;
120                }
121                super.eUnset(featureID);
122        }
123 
124        /**
125         * <!-- begin-user-doc -->
126         * <!-- end-user-doc -->
127         * @generated
128         */
129        @Override
130        public boolean eIsSet(int featureID) {
131                switch (featureID) {
132                        case QMLContractTypePackage.QML_CONTRACT_TYPE__DIMENSIONS:
133                                return dimensions != null && !dimensions.isEmpty();
134                }
135                return super.eIsSet(featureID);
136        }
137 
138} //QMLContractTypeImpl

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