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

COVERAGE SUMMARY FOR SOURCE FILE [ProvidedRoleImpl.java]

nameclass, %method, %block, %line, %
ProvidedRoleImpl.java0%   (0/1)0%   (0/12)0%   (0/188)0%   (0/47)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ProvidedRoleImpl0%   (0/1)0%   (0/12)0%   (0/188)0%   (0/47)
ProvidedRoleImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
basicSetProvidingEntity_ProvidedRole (InterfaceProvidingEntity, NotificationC... 0%   (0/1)0%   (0/9)0%   (0/2)
eBasicRemoveFromContainerFeature (NotificationChain): NotificationChain 0%   (0/1)0%   (0/15)0%   (0/3)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/11)0%   (0/3)
eInverseAdd (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/21)0%   (0/5)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/13)0%   (0/3)
eIsSet (int): boolean 0%   (0/1)0%   (0/13)0%   (0/3)
eSet (int, Object): void 0%   (0/1)0%   (0/12)0%   (0/5)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/10)0%   (0/5)
getProvidingEntity_ProvidedRole (): InterfaceProvidingEntity 0%   (0/1)0%   (0/10)0%   (0/2)
setProvidingEntity_ProvidedRole (InterfaceProvidingEntity): void 0%   (0/1)0%   (0/69)0%   (0/13)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.repository.impl;
7 
8import org.eclipse.emf.common.notify.Notification;
9import org.eclipse.emf.common.notify.NotificationChain;
10import org.eclipse.emf.ecore.EClass;
11import org.eclipse.emf.ecore.InternalEObject;
12import org.eclipse.emf.ecore.impl.ENotificationImpl;
13import org.eclipse.emf.ecore.util.EcoreUtil;
14 
15import de.uka.ipd.sdq.pcm.core.entity.EntityPackage;
16import de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingEntity;
17import de.uka.ipd.sdq.pcm.repository.ProvidedRole;
18import de.uka.ipd.sdq.pcm.repository.RepositoryPackage;
19 
20/**
21 * <!-- begin-user-doc -->
22 * An implementation of the model object '<em><b>Provided Role</b></em>'.
23 * <!-- end-user-doc -->
24 * <p>
25 * The following features are implemented:
26 * <ul>
27 *   <li>{@link de.uka.ipd.sdq.pcm.repository.impl.ProvidedRoleImpl#getProvidingEntity_ProvidedRole <em>Providing Entity Provided Role</em>}</li>
28 * </ul>
29 * </p>
30 *
31 * @generated
32 */
33public abstract class ProvidedRoleImpl extends RoleImpl implements ProvidedRole {
34        /**
35         * <!-- begin-user-doc -->
36         * <!-- end-user-doc -->
37         * @generated
38         */
39        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
40 
41        /**
42         * <!-- begin-user-doc -->
43         * <!-- end-user-doc -->
44         * @generated
45         */
46        protected ProvidedRoleImpl() {
47                super();
48        }
49 
50        /**
51         * <!-- begin-user-doc -->
52         * <!-- end-user-doc -->
53         * @generated
54         */
55        @Override
56        protected EClass eStaticClass() {
57                return RepositoryPackage.Literals.PROVIDED_ROLE;
58        }
59 
60        /**
61         * <!-- begin-user-doc -->
62         * <!-- end-user-doc -->
63         * @generated
64         */
65        public InterfaceProvidingEntity getProvidingEntity_ProvidedRole() {
66                if (eContainerFeatureID() != RepositoryPackage.PROVIDED_ROLE__PROVIDING_ENTITY_PROVIDED_ROLE) return null;
67                return (InterfaceProvidingEntity)eContainer();
68        }
69 
70        /**
71         * <!-- begin-user-doc -->
72         * <!-- end-user-doc -->
73         * @generated
74         */
75        public NotificationChain basicSetProvidingEntity_ProvidedRole(InterfaceProvidingEntity newProvidingEntity_ProvidedRole, NotificationChain msgs) {
76                msgs = eBasicSetContainer((InternalEObject)newProvidingEntity_ProvidedRole, RepositoryPackage.PROVIDED_ROLE__PROVIDING_ENTITY_PROVIDED_ROLE, msgs);
77                return msgs;
78        }
79 
80        /**
81         * <!-- begin-user-doc -->
82         * <!-- end-user-doc -->
83         * @generated
84         */
85        public void setProvidingEntity_ProvidedRole(InterfaceProvidingEntity newProvidingEntity_ProvidedRole) {
86                if (newProvidingEntity_ProvidedRole != eInternalContainer() || (eContainerFeatureID() != RepositoryPackage.PROVIDED_ROLE__PROVIDING_ENTITY_PROVIDED_ROLE && newProvidingEntity_ProvidedRole != null)) {
87                        if (EcoreUtil.isAncestor(this, newProvidingEntity_ProvidedRole))
88                                throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
89                        NotificationChain msgs = null;
90                        if (eInternalContainer() != null)
91                                msgs = eBasicRemoveFromContainer(msgs);
92                        if (newProvidingEntity_ProvidedRole != null)
93                                msgs = ((InternalEObject)newProvidingEntity_ProvidedRole).eInverseAdd(this, EntityPackage.INTERFACE_PROVIDING_ENTITY__PROVIDED_ROLES_INTERFACE_PROVIDING_ENTITY, InterfaceProvidingEntity.class, msgs);
94                        msgs = basicSetProvidingEntity_ProvidedRole(newProvidingEntity_ProvidedRole, msgs);
95                        if (msgs != null) msgs.dispatch();
96                }
97                else if (eNotificationRequired())
98                        eNotify(new ENotificationImpl(this, Notification.SET, RepositoryPackage.PROVIDED_ROLE__PROVIDING_ENTITY_PROVIDED_ROLE, newProvidingEntity_ProvidedRole, newProvidingEntity_ProvidedRole));
99        }
100 
101        /**
102         * <!-- begin-user-doc -->
103         * <!-- end-user-doc -->
104         * @generated
105         */
106        @Override
107        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
108                switch (featureID) {
109                        case RepositoryPackage.PROVIDED_ROLE__PROVIDING_ENTITY_PROVIDED_ROLE:
110                                if (eInternalContainer() != null)
111                                        msgs = eBasicRemoveFromContainer(msgs);
112                                return basicSetProvidingEntity_ProvidedRole((InterfaceProvidingEntity)otherEnd, msgs);
113                }
114                return super.eInverseAdd(otherEnd, featureID, msgs);
115        }
116 
117        /**
118         * <!-- begin-user-doc -->
119         * <!-- end-user-doc -->
120         * @generated
121         */
122        @Override
123        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
124                switch (featureID) {
125                        case RepositoryPackage.PROVIDED_ROLE__PROVIDING_ENTITY_PROVIDED_ROLE:
126                                return basicSetProvidingEntity_ProvidedRole(null, msgs);
127                }
128                return super.eInverseRemove(otherEnd, featureID, msgs);
129        }
130 
131        /**
132         * <!-- begin-user-doc -->
133         * <!-- end-user-doc -->
134         * @generated
135         */
136        @Override
137        public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
138                switch (eContainerFeatureID()) {
139                        case RepositoryPackage.PROVIDED_ROLE__PROVIDING_ENTITY_PROVIDED_ROLE:
140                                return eInternalContainer().eInverseRemove(this, EntityPackage.INTERFACE_PROVIDING_ENTITY__PROVIDED_ROLES_INTERFACE_PROVIDING_ENTITY, InterfaceProvidingEntity.class, msgs);
141                }
142                return super.eBasicRemoveFromContainerFeature(msgs);
143        }
144 
145        /**
146         * <!-- begin-user-doc -->
147         * <!-- end-user-doc -->
148         * @generated
149         */
150        @Override
151        public Object eGet(int featureID, boolean resolve, boolean coreType) {
152                switch (featureID) {
153                        case RepositoryPackage.PROVIDED_ROLE__PROVIDING_ENTITY_PROVIDED_ROLE:
154                                return getProvidingEntity_ProvidedRole();
155                }
156                return super.eGet(featureID, resolve, coreType);
157        }
158 
159        /**
160         * <!-- begin-user-doc -->
161         * <!-- end-user-doc -->
162         * @generated
163         */
164        @Override
165        public void eSet(int featureID, Object newValue) {
166                switch (featureID) {
167                        case RepositoryPackage.PROVIDED_ROLE__PROVIDING_ENTITY_PROVIDED_ROLE:
168                                setProvidingEntity_ProvidedRole((InterfaceProvidingEntity)newValue);
169                                return;
170                }
171                super.eSet(featureID, newValue);
172        }
173 
174        /**
175         * <!-- begin-user-doc -->
176         * <!-- end-user-doc -->
177         * @generated
178         */
179        @Override
180        public void eUnset(int featureID) {
181                switch (featureID) {
182                        case RepositoryPackage.PROVIDED_ROLE__PROVIDING_ENTITY_PROVIDED_ROLE:
183                                setProvidingEntity_ProvidedRole((InterfaceProvidingEntity)null);
184                                return;
185                }
186                super.eUnset(featureID);
187        }
188 
189        /**
190         * <!-- begin-user-doc -->
191         * <!-- end-user-doc -->
192         * @generated
193         */
194        @Override
195        public boolean eIsSet(int featureID) {
196                switch (featureID) {
197                        case RepositoryPackage.PROVIDED_ROLE__PROVIDING_ENTITY_PROVIDED_ROLE:
198                                return getProvidingEntity_ProvidedRole() != null;
199                }
200                return super.eIsSet(featureID);
201        }
202 
203} //ProvidedRoleImpl

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