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

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

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

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