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

COVERAGE SUMMARY FOR SOURCE FILE [InterfaceRequiringEntityImpl.java]

nameclass, %method, %block, %line, %
InterfaceRequiringEntityImpl.java0%   (0/1)0%   (0/12)0%   (0/190)0%   (0/51)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class InterfaceRequiringEntityImpl0%   (0/1)0%   (0/12)0%   (0/190)0%   (0/51)
InterfaceRequiringEntityImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
eBaseStructuralFeatureID (int, Class): int 0%   (0/1)0%   (0/14)0%   (0/5)
eDerivedStructuralFeatureID (int, Class): int 0%   (0/1)0%   (0/14)0%   (0/5)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/14)0%   (0/4)
eInverseAdd (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/22)0%   (0/4)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/22)0%   (0/4)
eIsSet (int): boolean 0%   (0/1)0%   (0/28)0%   (0/4)
eSet (int, Object): void 0%   (0/1)0%   (0/27)0%   (0/9)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/14)0%   (0/7)
getRequiredRoles_InterfaceRequiringEntity (): EList 0%   (0/1)0%   (0/15)0%   (0/3)
getResourceRequiredRoles__ResourceInterfaceRequiringEntity (): EList 0%   (0/1)0%   (0/15)0%   (0/3)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.core.entity.impl;
7 
8import java.util.Collection;
9 
10import org.eclipse.emf.common.notify.NotificationChain;
11import org.eclipse.emf.common.util.EList;
12import org.eclipse.emf.ecore.EClass;
13import org.eclipse.emf.ecore.InternalEObject;
14import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
15import org.eclipse.emf.ecore.util.InternalEList;
16 
17import de.uka.ipd.sdq.pcm.core.entity.EntityPackage;
18import de.uka.ipd.sdq.pcm.core.entity.InterfaceRequiringEntity;
19import de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceRequiringEntity;
20import de.uka.ipd.sdq.pcm.core.entity.ResourceRequiredRole;
21import de.uka.ipd.sdq.pcm.repository.RepositoryPackage;
22import de.uka.ipd.sdq.pcm.repository.RequiredRole;
23 
24/**
25 * <!-- begin-user-doc -->
26 * An implementation of the model object '<em><b>Interface Requiring Entity</b></em>'.
27 * <!-- end-user-doc -->
28 * <p>
29 * The following features are implemented:
30 * <ul>
31 *   <li>{@link de.uka.ipd.sdq.pcm.core.entity.impl.InterfaceRequiringEntityImpl#getResourceRequiredRoles__ResourceInterfaceRequiringEntity <em>Resource Required Roles Resource Interface Requiring Entity</em>}</li>
32 *   <li>{@link de.uka.ipd.sdq.pcm.core.entity.impl.InterfaceRequiringEntityImpl#getRequiredRoles_InterfaceRequiringEntity <em>Required Roles Interface Requiring Entity</em>}</li>
33 * </ul>
34 * </p>
35 *
36 * @generated
37 */
38public abstract class InterfaceRequiringEntityImpl extends EntityImpl implements InterfaceRequiringEntity {
39        /**
40         * <!-- begin-user-doc -->
41         * <!-- end-user-doc -->
42         * @generated
43         */
44        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
45 
46        /**
47         * The cached value of the '{@link #getResourceRequiredRoles__ResourceInterfaceRequiringEntity() <em>Resource Required Roles Resource Interface Requiring Entity</em>}' containment reference list.
48         * <!-- begin-user-doc -->
49         * <!-- end-user-doc -->
50         * @see #getResourceRequiredRoles__ResourceInterfaceRequiringEntity()
51         * @generated
52         * @ordered
53         */
54        protected EList<ResourceRequiredRole> resourceRequiredRoles__ResourceInterfaceRequiringEntity;
55 
56        /**
57         * The cached value of the '{@link #getRequiredRoles_InterfaceRequiringEntity() <em>Required Roles Interface Requiring Entity</em>}' containment reference list.
58         * <!-- begin-user-doc -->
59         * <!-- end-user-doc -->
60         * @see #getRequiredRoles_InterfaceRequiringEntity()
61         * @generated
62         * @ordered
63         */
64        protected EList<RequiredRole> requiredRoles_InterfaceRequiringEntity;
65 
66        /**
67         * <!-- begin-user-doc -->
68         * <!-- end-user-doc -->
69         * @generated
70         */
71        protected InterfaceRequiringEntityImpl() {
72                super();
73        }
74 
75        /**
76         * <!-- begin-user-doc -->
77         * <!-- end-user-doc -->
78         * @generated
79         */
80        @Override
81        protected EClass eStaticClass() {
82                return EntityPackage.Literals.INTERFACE_REQUIRING_ENTITY;
83        }
84 
85        /**
86         * <!-- begin-user-doc -->
87         * <!-- end-user-doc -->
88         * @generated
89         */
90        public EList<ResourceRequiredRole> getResourceRequiredRoles__ResourceInterfaceRequiringEntity() {
91                if (resourceRequiredRoles__ResourceInterfaceRequiringEntity == null) {
92                        resourceRequiredRoles__ResourceInterfaceRequiringEntity = new EObjectContainmentWithInverseEList<ResourceRequiredRole>(ResourceRequiredRole.class, this, EntityPackage.INTERFACE_REQUIRING_ENTITY__RESOURCE_REQUIRED_ROLES_RESOURCE_INTERFACE_REQUIRING_ENTITY, EntityPackage.RESOURCE_REQUIRED_ROLE__RESOURCE_INTERFACE_REQUIRING_ENTITY_RESOURCE_REQUIRED_ROLE);
93                }
94                return resourceRequiredRoles__ResourceInterfaceRequiringEntity;
95        }
96 
97        /**
98         * <!-- begin-user-doc -->
99         * <!-- end-user-doc -->
100         * @generated
101         */
102        public EList<RequiredRole> getRequiredRoles_InterfaceRequiringEntity() {
103                if (requiredRoles_InterfaceRequiringEntity == null) {
104                        requiredRoles_InterfaceRequiringEntity = new EObjectContainmentWithInverseEList<RequiredRole>(RequiredRole.class, this, EntityPackage.INTERFACE_REQUIRING_ENTITY__REQUIRED_ROLES_INTERFACE_REQUIRING_ENTITY, RepositoryPackage.REQUIRED_ROLE__REQUIRING_ENTITY_REQUIRED_ROLE);
105                }
106                return requiredRoles_InterfaceRequiringEntity;
107        }
108 
109        /**
110         * <!-- begin-user-doc -->
111         * <!-- end-user-doc -->
112         * @generated
113         */
114        @SuppressWarnings("unchecked")
115        @Override
116        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
117                switch (featureID) {
118                        case EntityPackage.INTERFACE_REQUIRING_ENTITY__RESOURCE_REQUIRED_ROLES_RESOURCE_INTERFACE_REQUIRING_ENTITY:
119                                return ((InternalEList<InternalEObject>)(InternalEList<?>)getResourceRequiredRoles__ResourceInterfaceRequiringEntity()).basicAdd(otherEnd, msgs);
120                        case EntityPackage.INTERFACE_REQUIRING_ENTITY__REQUIRED_ROLES_INTERFACE_REQUIRING_ENTITY:
121                                return ((InternalEList<InternalEObject>)(InternalEList<?>)getRequiredRoles_InterfaceRequiringEntity()).basicAdd(otherEnd, msgs);
122                }
123                return super.eInverseAdd(otherEnd, featureID, msgs);
124        }
125 
126        /**
127         * <!-- begin-user-doc -->
128         * <!-- end-user-doc -->
129         * @generated
130         */
131        @Override
132        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
133                switch (featureID) {
134                        case EntityPackage.INTERFACE_REQUIRING_ENTITY__RESOURCE_REQUIRED_ROLES_RESOURCE_INTERFACE_REQUIRING_ENTITY:
135                                return ((InternalEList<?>)getResourceRequiredRoles__ResourceInterfaceRequiringEntity()).basicRemove(otherEnd, msgs);
136                        case EntityPackage.INTERFACE_REQUIRING_ENTITY__REQUIRED_ROLES_INTERFACE_REQUIRING_ENTITY:
137                                return ((InternalEList<?>)getRequiredRoles_InterfaceRequiringEntity()).basicRemove(otherEnd, msgs);
138                }
139                return super.eInverseRemove(otherEnd, featureID, msgs);
140        }
141 
142        /**
143         * <!-- begin-user-doc -->
144         * <!-- end-user-doc -->
145         * @generated
146         */
147        @Override
148        public Object eGet(int featureID, boolean resolve, boolean coreType) {
149                switch (featureID) {
150                        case EntityPackage.INTERFACE_REQUIRING_ENTITY__RESOURCE_REQUIRED_ROLES_RESOURCE_INTERFACE_REQUIRING_ENTITY:
151                                return getResourceRequiredRoles__ResourceInterfaceRequiringEntity();
152                        case EntityPackage.INTERFACE_REQUIRING_ENTITY__REQUIRED_ROLES_INTERFACE_REQUIRING_ENTITY:
153                                return getRequiredRoles_InterfaceRequiringEntity();
154                }
155                return super.eGet(featureID, resolve, coreType);
156        }
157 
158        /**
159         * <!-- begin-user-doc -->
160         * <!-- end-user-doc -->
161         * @generated
162         */
163        @SuppressWarnings("unchecked")
164        @Override
165        public void eSet(int featureID, Object newValue) {
166                switch (featureID) {
167                        case EntityPackage.INTERFACE_REQUIRING_ENTITY__RESOURCE_REQUIRED_ROLES_RESOURCE_INTERFACE_REQUIRING_ENTITY:
168                                getResourceRequiredRoles__ResourceInterfaceRequiringEntity().clear();
169                                getResourceRequiredRoles__ResourceInterfaceRequiringEntity().addAll((Collection<? extends ResourceRequiredRole>)newValue);
170                                return;
171                        case EntityPackage.INTERFACE_REQUIRING_ENTITY__REQUIRED_ROLES_INTERFACE_REQUIRING_ENTITY:
172                                getRequiredRoles_InterfaceRequiringEntity().clear();
173                                getRequiredRoles_InterfaceRequiringEntity().addAll((Collection<? extends RequiredRole>)newValue);
174                                return;
175                }
176                super.eSet(featureID, newValue);
177        }
178 
179        /**
180         * <!-- begin-user-doc -->
181         * <!-- end-user-doc -->
182         * @generated
183         */
184        @Override
185        public void eUnset(int featureID) {
186                switch (featureID) {
187                        case EntityPackage.INTERFACE_REQUIRING_ENTITY__RESOURCE_REQUIRED_ROLES_RESOURCE_INTERFACE_REQUIRING_ENTITY:
188                                getResourceRequiredRoles__ResourceInterfaceRequiringEntity().clear();
189                                return;
190                        case EntityPackage.INTERFACE_REQUIRING_ENTITY__REQUIRED_ROLES_INTERFACE_REQUIRING_ENTITY:
191                                getRequiredRoles_InterfaceRequiringEntity().clear();
192                                return;
193                }
194                super.eUnset(featureID);
195        }
196 
197        /**
198         * <!-- begin-user-doc -->
199         * <!-- end-user-doc -->
200         * @generated
201         */
202        @Override
203        public boolean eIsSet(int featureID) {
204                switch (featureID) {
205                        case EntityPackage.INTERFACE_REQUIRING_ENTITY__RESOURCE_REQUIRED_ROLES_RESOURCE_INTERFACE_REQUIRING_ENTITY:
206                                return resourceRequiredRoles__ResourceInterfaceRequiringEntity != null && !resourceRequiredRoles__ResourceInterfaceRequiringEntity.isEmpty();
207                        case EntityPackage.INTERFACE_REQUIRING_ENTITY__REQUIRED_ROLES_INTERFACE_REQUIRING_ENTITY:
208                                return requiredRoles_InterfaceRequiringEntity != null && !requiredRoles_InterfaceRequiringEntity.isEmpty();
209                }
210                return super.eIsSet(featureID);
211        }
212 
213        /**
214         * <!-- begin-user-doc -->
215         * <!-- end-user-doc -->
216         * @generated
217         */
218        @Override
219        public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
220                if (baseClass == ResourceInterfaceRequiringEntity.class) {
221                        switch (derivedFeatureID) {
222                                case EntityPackage.INTERFACE_REQUIRING_ENTITY__RESOURCE_REQUIRED_ROLES_RESOURCE_INTERFACE_REQUIRING_ENTITY: return EntityPackage.RESOURCE_INTERFACE_REQUIRING_ENTITY__RESOURCE_REQUIRED_ROLES_RESOURCE_INTERFACE_REQUIRING_ENTITY;
223                                default: return -1;
224                        }
225                }
226                return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
227        }
228 
229        /**
230         * <!-- begin-user-doc -->
231         * <!-- end-user-doc -->
232         * @generated
233         */
234        @Override
235        public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
236                if (baseClass == ResourceInterfaceRequiringEntity.class) {
237                        switch (baseFeatureID) {
238                                case EntityPackage.RESOURCE_INTERFACE_REQUIRING_ENTITY__RESOURCE_REQUIRED_ROLES_RESOURCE_INTERFACE_REQUIRING_ENTITY: return EntityPackage.INTERFACE_REQUIRING_ENTITY__RESOURCE_REQUIRED_ROLES_RESOURCE_INTERFACE_REQUIRING_ENTITY;
239                                default: return -1;
240                        }
241                }
242                return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
243        }
244 
245} //InterfaceRequiringEntityImpl

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