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

nameclass, %method, %block, %line, %
InterfaceProvidingEntityImpl.java0%   (0/1)0%   (0/9)0%   (0/105)0%   (0/29)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class InterfaceProvidingEntityImpl0%   (0/1)0%   (0/9)0%   (0/105)0%   (0/29)
InterfaceProvidingEntityImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/11)0%   (0/3)
eInverseAdd (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/15)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)
getProvidedRoles_InterfaceProvidingEntity (): 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.InterfaceProvidingEntity;
19import de.uka.ipd.sdq.pcm.repository.ProvidedRole;
20import de.uka.ipd.sdq.pcm.repository.RepositoryPackage;
21 
22/**
23 * <!-- begin-user-doc -->
24 * An implementation of the model object '<em><b>Interface Providing Entity</b></em>'.
25 * <!-- end-user-doc -->
26 * <p>
27 * The following features are implemented:
28 * <ul>
29 *   <li>{@link de.uka.ipd.sdq.pcm.core.entity.impl.InterfaceProvidingEntityImpl#getProvidedRoles_InterfaceProvidingEntity <em>Provided Roles Interface Providing Entity</em>}</li>
30 * </ul>
31 * </p>
32 *
33 * @generated
34 */
35public abstract class InterfaceProvidingEntityImpl extends EntityImpl implements InterfaceProvidingEntity {
36        /**
37         * <!-- begin-user-doc -->
38         * <!-- end-user-doc -->
39         * @generated
40         */
41        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
42 
43        /**
44         * The cached value of the '{@link #getProvidedRoles_InterfaceProvidingEntity() <em>Provided Roles Interface Providing Entity</em>}' containment reference list.
45         * <!-- begin-user-doc -->
46         * <!-- end-user-doc -->
47         * @see #getProvidedRoles_InterfaceProvidingEntity()
48         * @generated
49         * @ordered
50         */
51        protected EList<ProvidedRole> providedRoles_InterfaceProvidingEntity;
52 
53        /**
54         * <!-- begin-user-doc -->
55         * <!-- end-user-doc -->
56         * @generated
57         */
58        protected InterfaceProvidingEntityImpl() {
59                super();
60        }
61 
62        /**
63         * <!-- begin-user-doc -->
64         * <!-- end-user-doc -->
65         * @generated
66         */
67        @Override
68        protected EClass eStaticClass() {
69                return EntityPackage.Literals.INTERFACE_PROVIDING_ENTITY;
70        }
71 
72        /**
73         * <!-- begin-user-doc -->
74         * <!-- end-user-doc -->
75         * @generated
76         */
77        public EList<ProvidedRole> getProvidedRoles_InterfaceProvidingEntity() {
78                if (providedRoles_InterfaceProvidingEntity == null) {
79                        providedRoles_InterfaceProvidingEntity = new EObjectContainmentWithInverseEList<ProvidedRole>(ProvidedRole.class, this, EntityPackage.INTERFACE_PROVIDING_ENTITY__PROVIDED_ROLES_INTERFACE_PROVIDING_ENTITY, RepositoryPackage.PROVIDED_ROLE__PROVIDING_ENTITY_PROVIDED_ROLE);
80                }
81                return providedRoles_InterfaceProvidingEntity;
82        }
83 
84        /**
85         * <!-- begin-user-doc -->
86         * <!-- end-user-doc -->
87         * @generated
88         */
89        @SuppressWarnings("unchecked")
90        @Override
91        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
92                switch (featureID) {
93                        case EntityPackage.INTERFACE_PROVIDING_ENTITY__PROVIDED_ROLES_INTERFACE_PROVIDING_ENTITY:
94                                return ((InternalEList<InternalEObject>)(InternalEList<?>)getProvidedRoles_InterfaceProvidingEntity()).basicAdd(otherEnd, msgs);
95                }
96                return super.eInverseAdd(otherEnd, featureID, msgs);
97        }
98 
99        /**
100         * <!-- begin-user-doc -->
101         * <!-- end-user-doc -->
102         * @generated
103         */
104        @Override
105        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
106                switch (featureID) {
107                        case EntityPackage.INTERFACE_PROVIDING_ENTITY__PROVIDED_ROLES_INTERFACE_PROVIDING_ENTITY:
108                                return ((InternalEList<?>)getProvidedRoles_InterfaceProvidingEntity()).basicRemove(otherEnd, msgs);
109                }
110                return super.eInverseRemove(otherEnd, featureID, msgs);
111        }
112 
113        /**
114         * <!-- begin-user-doc -->
115         * <!-- end-user-doc -->
116         * @generated
117         */
118        @Override
119        public Object eGet(int featureID, boolean resolve, boolean coreType) {
120                switch (featureID) {
121                        case EntityPackage.INTERFACE_PROVIDING_ENTITY__PROVIDED_ROLES_INTERFACE_PROVIDING_ENTITY:
122                                return getProvidedRoles_InterfaceProvidingEntity();
123                }
124                return super.eGet(featureID, resolve, coreType);
125        }
126 
127        /**
128         * <!-- begin-user-doc -->
129         * <!-- end-user-doc -->
130         * @generated
131         */
132        @SuppressWarnings("unchecked")
133        @Override
134        public void eSet(int featureID, Object newValue) {
135                switch (featureID) {
136                        case EntityPackage.INTERFACE_PROVIDING_ENTITY__PROVIDED_ROLES_INTERFACE_PROVIDING_ENTITY:
137                                getProvidedRoles_InterfaceProvidingEntity().clear();
138                                getProvidedRoles_InterfaceProvidingEntity().addAll((Collection<? extends ProvidedRole>)newValue);
139                                return;
140                }
141                super.eSet(featureID, newValue);
142        }
143 
144        /**
145         * <!-- begin-user-doc -->
146         * <!-- end-user-doc -->
147         * @generated
148         */
149        @Override
150        public void eUnset(int featureID) {
151                switch (featureID) {
152                        case EntityPackage.INTERFACE_PROVIDING_ENTITY__PROVIDED_ROLES_INTERFACE_PROVIDING_ENTITY:
153                                getProvidedRoles_InterfaceProvidingEntity().clear();
154                                return;
155                }
156                super.eUnset(featureID);
157        }
158 
159        /**
160         * <!-- begin-user-doc -->
161         * <!-- end-user-doc -->
162         * @generated
163         */
164        @Override
165        public boolean eIsSet(int featureID) {
166                switch (featureID) {
167                        case EntityPackage.INTERFACE_PROVIDING_ENTITY__PROVIDED_ROLES_INTERFACE_PROVIDING_ENTITY:
168                                return providedRoles_InterfaceProvidingEntity != null && !providedRoles_InterfaceProvidingEntity.isEmpty();
169                }
170                return super.eIsSet(featureID);
171        }
172 
173} //InterfaceProvidingEntityImpl

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