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

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class UnitRepositoryImpl0%   (0/1)0%   (0/7)0%   (0/74)0%   (0/23)
UnitRepositoryImpl (): 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)
getUnits (): 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.QMLContractTypePackage;
10import de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.Unit;
11import de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.UnitRepository;
12 
13import de.uka.ipd.sdq.identifier.impl.IdentifierImpl;
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>Unit Repository</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.UnitRepositoryImpl#getUnits <em>Units</em>}</li>
31 * </ul>
32 * </p>
33 *
34 * @generated
35 */
36public class UnitRepositoryImpl extends IdentifierImpl implements UnitRepository {
37        /**
38         * The cached value of the '{@link #getUnits() <em>Units</em>}' reference list.
39         * <!-- begin-user-doc -->
40         * <!-- end-user-doc -->
41         * @see #getUnits()
42         * @generated
43         * @ordered
44         */
45        protected EList<Unit> units;
46 
47        /**
48         * <!-- begin-user-doc -->
49         * <!-- end-user-doc -->
50         * @generated
51         */
52        protected UnitRepositoryImpl() {
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.UNIT_REPOSITORY;
64        }
65 
66        /**
67         * <!-- begin-user-doc -->
68         * <!-- end-user-doc -->
69         * @generated
70         */
71        public EList<Unit> getUnits() {
72                if (units == null) {
73                        units = new EObjectResolvingEList<Unit>(Unit.class, this, QMLContractTypePackage.UNIT_REPOSITORY__UNITS);
74                }
75                return units;
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.UNIT_REPOSITORY__UNITS:
87                                return getUnits();
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.UNIT_REPOSITORY__UNITS:
102                                getUnits().clear();
103                                getUnits().addAll((Collection<? extends Unit>)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.UNIT_REPOSITORY__UNITS:
118                                getUnits().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.UNIT_REPOSITORY__UNITS:
133                                return units != null && !units.isEmpty();
134                }
135                return super.eIsSet(featureID);
136        }
137 
138} //UnitRepositoryImpl

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