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

COVERAGE SUMMARY FOR SOURCE FILE [CostRepositoryImpl.java]

nameclass, %method, %block, %line, %
CostRepositoryImpl.java0%   (0/1)0%   (0/8)0%   (0/89)0%   (0/26)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CostRepositoryImpl0%   (0/1)0%   (0/8)0%   (0/89)0%   (0/26)
CostRepositoryImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/11)0%   (0/3)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/15)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)
getCost (): EList 0%   (0/1)0%   (0/14)0%   (0/3)

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

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