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

COVERAGE SUMMARY FOR SOURCE FILE [ResultDecoratorRepositoryImpl.java]

nameclass, %method, %block, %line, %
ResultDecoratorRepositoryImpl.java0%   (0/1)0%   (0/10)0%   (0/187)0%   (0/48)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ResultDecoratorRepositoryImpl0%   (0/1)0%   (0/10)0%   (0/187)0%   (0/48)
ResultDecoratorRepositoryImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/17)0%   (0/5)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/29)0%   (0/5)
eIsSet (int): boolean 0%   (0/1)0%   (0/39)0%   (0/5)
eSet (int, Object): void 0%   (0/1)0%   (0/37)0%   (0/12)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/18)0%   (0/9)
getComponentResults_ResultDecoratorRepository (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getServiceResult_ResultDecoratorRepository (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getUtilisationResults_ResultDecoratorRepository (): 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.resultdecorator.impl;
8 
9import de.uka.ipd.sdq.pcm.resultdecorator.ResultDecoratorRepository;
10import de.uka.ipd.sdq.pcm.resultdecorator.ResultdecoratorPackage;
11 
12import de.uka.ipd.sdq.pcm.resultdecorator.repository.InterfaceProvidingRequiringEntityResults;
13 
14import de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironment.UtilisationResult;
15 
16import java.util.Collection;
17 
18import org.eclipse.emf.common.notify.NotificationChain;
19 
20import org.eclipse.emf.common.util.EList;
21 
22import org.eclipse.emf.ecore.EClass;
23import org.eclipse.emf.ecore.InternalEObject;
24 
25import org.eclipse.emf.ecore.impl.EObjectImpl;
26 
27import org.eclipse.emf.ecore.util.EObjectContainmentEList;
28import org.eclipse.emf.ecore.util.InternalEList;
29 
30/**
31 * <!-- begin-user-doc -->
32 * An implementation of the model object '<em><b>Result Decorator Repository</b></em>'.
33 * <!-- end-user-doc -->
34 * <p>
35 * The following features are implemented:
36 * <ul>
37 *   <li>{@link de.uka.ipd.sdq.pcm.resultdecorator.impl.ResultDecoratorRepositoryImpl#getInterfaceprovidingrequiringentityresults <em>Interfaceprovidingrequiringentityresults</em>}</li>
38 *   <li>{@link de.uka.ipd.sdq.pcm.resultdecorator.impl.ResultDecoratorRepositoryImpl#getUtilisationresult <em>Utilisationresult</em>}</li>
39 * </ul>
40 * </p>
41 *
42 * @generated
43 */
44public class ResultDecoratorRepositoryImpl extends EObjectImpl implements ResultDecoratorRepository {
45        /**
46         * The cached value of the '{@link #getInterfaceprovidingrequiringentityresults() <em>Interfaceprovidingrequiringentityresults</em>}' containment reference list.
47         * <!-- begin-user-doc -->
48         * <!-- end-user-doc -->
49         * @see #getInterfaceprovidingrequiringentityresults()
50         * @generated
51         * @ordered
52         */
53        protected EList<InterfaceProvidingRequiringEntityResults> interfaceprovidingrequiringentityresults;
54 
55        /**
56         * The cached value of the '{@link #getUtilisationresult() <em>Utilisationresult</em>}' containment reference list.
57         * <!-- begin-user-doc -->
58         * <!-- end-user-doc -->
59         * @see #getUtilisationresult()
60         * @generated
61         * @ordered
62         */
63        protected EList<UtilisationResult> utilisationresult;
64 
65        /**
66         * <!-- begin-user-doc -->
67         * <!-- end-user-doc -->
68         * @generated
69         */
70        protected ResultDecoratorRepositoryImpl() {
71                super();
72        }
73 
74        /**
75         * <!-- begin-user-doc -->
76         * <!-- end-user-doc -->
77         * @generated
78         */
79        @Override
80        protected EClass eStaticClass() {
81                return ResultdecoratorPackage.Literals.RESULT_DECORATOR_REPOSITORY;
82        }
83 
84        /**
85         * <!-- begin-user-doc -->
86         * <!-- end-user-doc -->
87         * @generated
88         */
89        public EList<InterfaceProvidingRequiringEntityResults> getInterfaceprovidingrequiringentityresults() {
90                if (interfaceprovidingrequiringentityresults == null) {
91                        interfaceprovidingrequiringentityresults = new EObjectContainmentEList<InterfaceProvidingRequiringEntityResults>(InterfaceProvidingRequiringEntityResults.class, this, ResultdecoratorPackage.RESULT_DECORATOR_REPOSITORY__INTERFACEPROVIDINGREQUIRINGENTITYRESULTS);
92                }
93                return interfaceprovidingrequiringentityresults;
94        }
95 
96        /**
97         * <!-- begin-user-doc -->
98         * <!-- end-user-doc -->
99         * @generated
100         */
101        public EList<UtilisationResult> getUtilisationresult() {
102                if (utilisationresult == null) {
103                        utilisationresult = new EObjectContainmentEList<UtilisationResult>(UtilisationResult.class, this, ResultdecoratorPackage.RESULT_DECORATOR_REPOSITORY__UTILISATIONRESULT);
104                }
105                return utilisationresult;
106        }
107 
108        /**
109         * <!-- begin-user-doc -->
110         * <!-- end-user-doc -->
111         * @generated
112         */
113        @Override
114        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
115                switch (featureID) {
116                        case ResultdecoratorPackage.RESULT_DECORATOR_REPOSITORY__INTERFACEPROVIDINGREQUIRINGENTITYRESULTS:
117                                return ((InternalEList<?>)getInterfaceprovidingrequiringentityresults()).basicRemove(otherEnd, msgs);
118                        case ResultdecoratorPackage.RESULT_DECORATOR_REPOSITORY__UTILISATIONRESULT:
119                                return ((InternalEList<?>)getUtilisationresult()).basicRemove(otherEnd, msgs);
120                }
121                return super.eInverseRemove(otherEnd, featureID, msgs);
122        }
123 
124        /**
125         * <!-- begin-user-doc -->
126         * <!-- end-user-doc -->
127         * @generated
128         */
129        @Override
130        public Object eGet(int featureID, boolean resolve, boolean coreType) {
131                switch (featureID) {
132                        case ResultdecoratorPackage.RESULT_DECORATOR_REPOSITORY__INTERFACEPROVIDINGREQUIRINGENTITYRESULTS:
133                                return getInterfaceprovidingrequiringentityresults();
134                        case ResultdecoratorPackage.RESULT_DECORATOR_REPOSITORY__UTILISATIONRESULT:
135                                return getUtilisationresult();
136                }
137                return super.eGet(featureID, resolve, coreType);
138        }
139 
140        /**
141         * <!-- begin-user-doc -->
142         * <!-- end-user-doc -->
143         * @generated
144         */
145        @SuppressWarnings("unchecked")
146        @Override
147        public void eSet(int featureID, Object newValue) {
148                switch (featureID) {
149                        case ResultdecoratorPackage.RESULT_DECORATOR_REPOSITORY__INTERFACEPROVIDINGREQUIRINGENTITYRESULTS:
150                                getInterfaceprovidingrequiringentityresults().clear();
151                                getInterfaceprovidingrequiringentityresults().addAll((Collection<? extends InterfaceProvidingRequiringEntityResults>)newValue);
152                                return;
153                        case ResultdecoratorPackage.RESULT_DECORATOR_REPOSITORY__UTILISATIONRESULT:
154                                getUtilisationresult().clear();
155                                getUtilisationresult().addAll((Collection<? extends UtilisationResult>)newValue);
156                                return;
157                }
158                super.eSet(featureID, newValue);
159        }
160 
161        /**
162         * <!-- begin-user-doc -->
163         * <!-- end-user-doc -->
164         * @generated
165         */
166        @Override
167        public void eUnset(int featureID) {
168                switch (featureID) {
169                        case ResultdecoratorPackage.RESULT_DECORATOR_REPOSITORY__INTERFACEPROVIDINGREQUIRINGENTITYRESULTS:
170                                getInterfaceprovidingrequiringentityresults().clear();
171                                return;
172                        case ResultdecoratorPackage.RESULT_DECORATOR_REPOSITORY__UTILISATIONRESULT:
173                                getUtilisationresult().clear();
174                                return;
175                }
176                super.eUnset(featureID);
177        }
178 
179        /**
180         * <!-- begin-user-doc -->
181         * <!-- end-user-doc -->
182         * @generated
183         */
184        @Override
185        public boolean eIsSet(int featureID) {
186                switch (featureID) {
187                        case ResultdecoratorPackage.RESULT_DECORATOR_REPOSITORY__INTERFACEPROVIDINGREQUIRINGENTITYRESULTS:
188                                return interfaceprovidingrequiringentityresults != null && !interfaceprovidingrequiringentityresults.isEmpty();
189                        case ResultdecoratorPackage.RESULT_DECORATOR_REPOSITORY__UTILISATIONRESULT:
190                                return utilisationresult != null && !utilisationresult.isEmpty();
191                }
192                return super.eIsSet(featureID);
193        }
194 
195} //ResultDecoratorRepositoryImpl

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