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

nameclass, %method, %block, %line, %
EntityPackageImpl.java0%   (0/2)0%   (0/28)0%   (0/1130)0%   (0/186)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class EntityPackageImpl0%   (0/1)0%   (0/26)0%   (0/1125)0%   (0/184)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
EntityPackageImpl (): void 0%   (0/1)0%   (0/44)0%   (0/15)
createPackageContents (): void 0%   (0/1)0%   (0/108)0%   (0/23)
getComposedProvidingRequiringEntity (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getEntity (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getEntityFactory (): EntityFactory 0%   (0/1)0%   (0/4)0%   (0/1)
getInterfaceProvidingEntity (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getInterfaceProvidingEntity_ProvidedRoles_InterfaceProvidingEntity (): ERefer... 0%   (0/1)0%   (0/7)0%   (0/1)
getInterfaceProvidingRequiringEntity (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getInterfaceRequiringEntity (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getInterfaceRequiringEntity_RequiredRoles_InterfaceRequiringEntity (): ERefer... 0%   (0/1)0%   (0/7)0%   (0/1)
getNamedElement (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getNamedElement_EntityName (): EAttribute 0%   (0/1)0%   (0/7)0%   (0/1)
getResourceInterfaceProvidingEntity (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getResourceInterfaceProvidingEntity_ResourceProvidedRoles__ResourceInterfaceP... 0%   (0/1)0%   (0/7)0%   (0/1)
getResourceInterfaceProvidingRequiringEntity (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getResourceInterfaceRequiringEntity (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getResourceInterfaceRequiringEntity_ResourceRequiredRoles__ResourceInterfaceR... 0%   (0/1)0%   (0/7)0%   (0/1)
getResourceProvidedRole (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getResourceProvidedRole_ProvidedResourceInterface__ResourceProvidedRole (): E... 0%   (0/1)0%   (0/7)0%   (0/1)
getResourceProvidedRole_ResourceInterfaceProvidingEntity__ResourceProvidedRol... 0%   (0/1)0%   (0/7)0%   (0/1)
getResourceRequiredRole (): EClass 0%   (0/1)0%   (0/3)0%   (0/1)
getResourceRequiredRole_RequiredResourceInterface__ResourceRequiredRole (): E... 0%   (0/1)0%   (0/7)0%   (0/1)
getResourceRequiredRole_ResourceInterfaceRequiringEntity__ResourceRequiredRol... 0%   (0/1)0%   (0/7)0%   (0/1)
init (): EntityPackage 0%   (0/1)0%   (0/353)0%   (0/70)
initializePackageContents (): void 0%   (0/1)0%   (0/517)0%   (0/53)
     
class EntityPackageImpl$10%   (0/1)0%   (0/2)0%   (0/5)0%   (0/3)
EntityPackageImpl$1 (): void 0%   (0/1)0%   (0/3)0%   (0/2)
getEValidator (): EValidator 0%   (0/1)0%   (0/2)0%   (0/1)

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 org.eclipse.emf.ecore.EAttribute;
9import org.eclipse.emf.ecore.EClass;
10import org.eclipse.emf.ecore.EGenericType;
11import org.eclipse.emf.ecore.EOperation;
12import org.eclipse.emf.ecore.EPackage;
13import org.eclipse.emf.ecore.EReference;
14import org.eclipse.emf.ecore.EValidator;
15import org.eclipse.emf.ecore.impl.EPackageImpl;
16 
17import de.uka.ipd.sdq.identifier.IdentifierPackage;
18import de.uka.ipd.sdq.pcm.PcmPackage;
19import de.uka.ipd.sdq.pcm.allocation.AllocationPackage;
20import de.uka.ipd.sdq.pcm.allocation.impl.AllocationPackageImpl;
21import de.uka.ipd.sdq.pcm.core.CorePackage;
22import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage;
23import de.uka.ipd.sdq.pcm.core.composition.impl.CompositionPackageImpl;
24import de.uka.ipd.sdq.pcm.core.entity.ComposedProvidingRequiringEntity;
25import de.uka.ipd.sdq.pcm.core.entity.Entity;
26import de.uka.ipd.sdq.pcm.core.entity.EntityFactory;
27import de.uka.ipd.sdq.pcm.core.entity.EntityPackage;
28import de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingEntity;
29import de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingRequiringEntity;
30import de.uka.ipd.sdq.pcm.core.entity.InterfaceRequiringEntity;
31import de.uka.ipd.sdq.pcm.core.entity.NamedElement;
32import de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceProvidingEntity;
33import de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceProvidingRequiringEntity;
34import de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceRequiringEntity;
35import de.uka.ipd.sdq.pcm.core.entity.ResourceProvidedRole;
36import de.uka.ipd.sdq.pcm.core.entity.ResourceRequiredRole;
37import de.uka.ipd.sdq.pcm.core.entity.util.EntityValidator;
38import de.uka.ipd.sdq.pcm.core.impl.CorePackageImpl;
39import de.uka.ipd.sdq.pcm.impl.PcmPackageImpl;
40import de.uka.ipd.sdq.pcm.parameter.ParameterPackage;
41import de.uka.ipd.sdq.pcm.parameter.impl.ParameterPackageImpl;
42import de.uka.ipd.sdq.pcm.protocol.ProtocolPackage;
43import de.uka.ipd.sdq.pcm.protocol.impl.ProtocolPackageImpl;
44import de.uka.ipd.sdq.pcm.qosannotations.QosannotationsPackage;
45import de.uka.ipd.sdq.pcm.qosannotations.impl.QosannotationsPackageImpl;
46import de.uka.ipd.sdq.pcm.qosannotations.qos_performance.Qos_performancePackage;
47import de.uka.ipd.sdq.pcm.qosannotations.qos_performance.impl.Qos_performancePackageImpl;
48import de.uka.ipd.sdq.pcm.qosannotations.qos_reliability.Qos_reliabilityPackage;
49import de.uka.ipd.sdq.pcm.qosannotations.qos_reliability.impl.Qos_reliabilityPackageImpl;
50import de.uka.ipd.sdq.pcm.reliability.ReliabilityPackage;
51import de.uka.ipd.sdq.pcm.reliability.impl.ReliabilityPackageImpl;
52import de.uka.ipd.sdq.pcm.repository.RepositoryPackage;
53import de.uka.ipd.sdq.pcm.repository.impl.RepositoryPackageImpl;
54import de.uka.ipd.sdq.pcm.resourceenvironment.ResourceenvironmentPackage;
55import de.uka.ipd.sdq.pcm.resourceenvironment.impl.ResourceenvironmentPackageImpl;
56import de.uka.ipd.sdq.pcm.resourcetype.ResourcetypePackage;
57import de.uka.ipd.sdq.pcm.resourcetype.impl.ResourcetypePackageImpl;
58import de.uka.ipd.sdq.pcm.seff.SeffPackage;
59import de.uka.ipd.sdq.pcm.seff.impl.SeffPackageImpl;
60import de.uka.ipd.sdq.pcm.seff.seff_performance.Seff_performancePackage;
61import de.uka.ipd.sdq.pcm.seff.seff_performance.impl.Seff_performancePackageImpl;
62import de.uka.ipd.sdq.pcm.seff.seff_reliability.Seff_reliabilityPackage;
63import de.uka.ipd.sdq.pcm.seff.seff_reliability.impl.Seff_reliabilityPackageImpl;
64import de.uka.ipd.sdq.pcm.subsystem.SubsystemPackage;
65import de.uka.ipd.sdq.pcm.subsystem.impl.SubsystemPackageImpl;
66import de.uka.ipd.sdq.pcm.system.SystemPackage;
67import de.uka.ipd.sdq.pcm.system.impl.SystemPackageImpl;
68import de.uka.ipd.sdq.pcm.usagemodel.UsagemodelPackage;
69import de.uka.ipd.sdq.pcm.usagemodel.impl.UsagemodelPackageImpl;
70import de.uka.ipd.sdq.stoex.StoexPackage;
71 
72/**
73 * <!-- begin-user-doc -->
74 * An implementation of the model <b>Package</b>.
75 * <!-- end-user-doc -->
76 * @generated
77 */
78public class EntityPackageImpl extends EPackageImpl implements EntityPackage {
79        /**
80         * <!-- begin-user-doc -->
81         * <!-- end-user-doc -->
82         * @generated
83         */
84        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
85 
86        /**
87         * <!-- begin-user-doc -->
88         * <!-- end-user-doc -->
89         * @generated
90         */
91        private EClass resourceProvidedRoleEClass = null;
92 
93        /**
94         * <!-- begin-user-doc -->
95         * <!-- end-user-doc -->
96         * @generated
97         */
98        private EClass interfaceProvidingRequiringEntityEClass = null;
99 
100        /**
101         * <!-- begin-user-doc -->
102         * <!-- end-user-doc -->
103         * @generated
104         */
105        private EClass interfaceProvidingEntityEClass = null;
106 
107        /**
108         * <!-- begin-user-doc -->
109         * <!-- end-user-doc -->
110         * @generated
111         */
112        private EClass interfaceRequiringEntityEClass = null;
113 
114        /**
115         * <!-- begin-user-doc -->
116         * <!-- end-user-doc -->
117         * @generated
118         */
119        private EClass resourceInterfaceRequiringEntityEClass = null;
120 
121        /**
122         * <!-- begin-user-doc -->
123         * <!-- end-user-doc -->
124         * @generated
125         */
126        private EClass resourceRequiredRoleEClass = null;
127 
128        /**
129         * <!-- begin-user-doc -->
130         * <!-- end-user-doc -->
131         * @generated
132         */
133        private EClass resourceInterfaceProvidingEntityEClass = null;
134 
135        /**
136         * <!-- begin-user-doc -->
137         * <!-- end-user-doc -->
138         * @generated
139         */
140        private EClass composedProvidingRequiringEntityEClass = null;
141 
142        /**
143         * <!-- begin-user-doc -->
144         * <!-- end-user-doc -->
145         * @generated
146         */
147        private EClass namedElementEClass = null;
148 
149        /**
150         * <!-- begin-user-doc -->
151         * <!-- end-user-doc -->
152         * @generated
153         */
154        private EClass resourceInterfaceProvidingRequiringEntityEClass = null;
155 
156        /**
157         * <!-- begin-user-doc -->
158         * <!-- end-user-doc -->
159         * @generated
160         */
161        private EClass entityEClass = null;
162 
163        /**
164         * Creates an instance of the model <b>Package</b>, registered with
165         * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
166         * package URI value.
167         * <p>Note: the correct way to create the package is via the static
168         * factory method {@link #init init()}, which also performs
169         * initialization of the package, or returns the registered package,
170         * if one already exists.
171         * <!-- begin-user-doc -->
172         * <!-- end-user-doc -->
173         * @see org.eclipse.emf.ecore.EPackage.Registry
174         * @see de.uka.ipd.sdq.pcm.core.entity.EntityPackage#eNS_URI
175         * @see #init()
176         * @generated
177         */
178        private EntityPackageImpl() {
179                super(eNS_URI, EntityFactory.eINSTANCE);
180        }
181 
182        /**
183         * <!-- begin-user-doc -->
184         * <!-- end-user-doc -->
185         * @generated
186         */
187        private static boolean isInited = false;
188 
189        /**
190         * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
191         * 
192         * <p>This method is used to initialize {@link EntityPackage#eINSTANCE} when that field is accessed.
193         * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
194         * <!-- begin-user-doc -->
195         * <!-- end-user-doc -->
196         * @see #eNS_URI
197         * @see #createPackageContents()
198         * @see #initializePackageContents()
199         * @generated
200         */
201        public static EntityPackage init() {
202                if (isInited) return (EntityPackage)EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI);
203 
204                // Obtain or create and register package
205                EntityPackageImpl theEntityPackage = (EntityPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof EntityPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new EntityPackageImpl());
206 
207                isInited = true;
208 
209                // Initialize simple dependencies
210                IdentifierPackage.eINSTANCE.eClass();
211                StoexPackage.eINSTANCE.eClass();
212 
213                // Obtain or create and register interdependencies
214                PcmPackageImpl thePcmPackage = (PcmPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PcmPackage.eNS_URI) instanceof PcmPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PcmPackage.eNS_URI) : PcmPackage.eINSTANCE);
215                CorePackageImpl theCorePackage = (CorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI) instanceof CorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI) : CorePackage.eINSTANCE);
216                CompositionPackageImpl theCompositionPackage = (CompositionPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI) instanceof CompositionPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI) : CompositionPackage.eINSTANCE);
217                UsagemodelPackageImpl theUsagemodelPackage = (UsagemodelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UsagemodelPackage.eNS_URI) instanceof UsagemodelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UsagemodelPackage.eNS_URI) : UsagemodelPackage.eINSTANCE);
218                RepositoryPackageImpl theRepositoryPackage = (RepositoryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI) instanceof RepositoryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI) : RepositoryPackage.eINSTANCE);
219                ResourcetypePackageImpl theResourcetypePackage = (ResourcetypePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI) instanceof ResourcetypePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI) : ResourcetypePackage.eINSTANCE);
220                ProtocolPackageImpl theProtocolPackage = (ProtocolPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ProtocolPackage.eNS_URI) instanceof ProtocolPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ProtocolPackage.eNS_URI) : ProtocolPackage.eINSTANCE);
221                ParameterPackageImpl theParameterPackage = (ParameterPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI) instanceof ParameterPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI) : ParameterPackage.eINSTANCE);
222                ReliabilityPackageImpl theReliabilityPackage = (ReliabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ReliabilityPackage.eNS_URI) instanceof ReliabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ReliabilityPackage.eNS_URI) : ReliabilityPackage.eINSTANCE);
223                SeffPackageImpl theSeffPackage = (SeffPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI) instanceof SeffPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI) : SeffPackage.eINSTANCE);
224                Seff_performancePackageImpl theSeff_performancePackage = (Seff_performancePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Seff_performancePackage.eNS_URI) instanceof Seff_performancePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Seff_performancePackage.eNS_URI) : Seff_performancePackage.eINSTANCE);
225                Seff_reliabilityPackageImpl theSeff_reliabilityPackage = (Seff_reliabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Seff_reliabilityPackage.eNS_URI) instanceof Seff_reliabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Seff_reliabilityPackage.eNS_URI) : Seff_reliabilityPackage.eINSTANCE);
226                QosannotationsPackageImpl theQosannotationsPackage = (QosannotationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(QosannotationsPackage.eNS_URI) instanceof QosannotationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(QosannotationsPackage.eNS_URI) : QosannotationsPackage.eINSTANCE);
227                Qos_performancePackageImpl theQos_performancePackage = (Qos_performancePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Qos_performancePackage.eNS_URI) instanceof Qos_performancePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Qos_performancePackage.eNS_URI) : Qos_performancePackage.eINSTANCE);
228                Qos_reliabilityPackageImpl theQos_reliabilityPackage = (Qos_reliabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Qos_reliabilityPackage.eNS_URI) instanceof Qos_reliabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Qos_reliabilityPackage.eNS_URI) : Qos_reliabilityPackage.eINSTANCE);
229                SystemPackageImpl theSystemPackage = (SystemPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI) instanceof SystemPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI) : SystemPackage.eINSTANCE);
230                ResourceenvironmentPackageImpl theResourceenvironmentPackage = (ResourceenvironmentPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI) instanceof ResourceenvironmentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI) : ResourceenvironmentPackage.eINSTANCE);
231                AllocationPackageImpl theAllocationPackage = (AllocationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI) instanceof AllocationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI) : AllocationPackage.eINSTANCE);
232                SubsystemPackageImpl theSubsystemPackage = (SubsystemPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SubsystemPackage.eNS_URI) instanceof SubsystemPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SubsystemPackage.eNS_URI) : SubsystemPackage.eINSTANCE);
233 
234                // Create package meta-data objects
235                theEntityPackage.createPackageContents();
236                thePcmPackage.createPackageContents();
237                theCorePackage.createPackageContents();
238                theCompositionPackage.createPackageContents();
239                theUsagemodelPackage.createPackageContents();
240                theRepositoryPackage.createPackageContents();
241                theResourcetypePackage.createPackageContents();
242                theProtocolPackage.createPackageContents();
243                theParameterPackage.createPackageContents();
244                theReliabilityPackage.createPackageContents();
245                theSeffPackage.createPackageContents();
246                theSeff_performancePackage.createPackageContents();
247                theSeff_reliabilityPackage.createPackageContents();
248                theQosannotationsPackage.createPackageContents();
249                theQos_performancePackage.createPackageContents();
250                theQos_reliabilityPackage.createPackageContents();
251                theSystemPackage.createPackageContents();
252                theResourceenvironmentPackage.createPackageContents();
253                theAllocationPackage.createPackageContents();
254                theSubsystemPackage.createPackageContents();
255 
256                // Initialize created meta-data
257                theEntityPackage.initializePackageContents();
258                thePcmPackage.initializePackageContents();
259                theCorePackage.initializePackageContents();
260                theCompositionPackage.initializePackageContents();
261                theUsagemodelPackage.initializePackageContents();
262                theRepositoryPackage.initializePackageContents();
263                theResourcetypePackage.initializePackageContents();
264                theProtocolPackage.initializePackageContents();
265                theParameterPackage.initializePackageContents();
266                theReliabilityPackage.initializePackageContents();
267                theSeffPackage.initializePackageContents();
268                theSeff_performancePackage.initializePackageContents();
269                theSeff_reliabilityPackage.initializePackageContents();
270                theQosannotationsPackage.initializePackageContents();
271                theQos_performancePackage.initializePackageContents();
272                theQos_reliabilityPackage.initializePackageContents();
273                theSystemPackage.initializePackageContents();
274                theResourceenvironmentPackage.initializePackageContents();
275                theAllocationPackage.initializePackageContents();
276                theSubsystemPackage.initializePackageContents();
277 
278                // Register package validator
279                EValidator.Registry.INSTANCE.put
280                        (theEntityPackage, 
281                         new EValidator.Descriptor() {
282                                 public EValidator getEValidator() {
283                                         return EntityValidator.INSTANCE;
284                                 }
285                         });
286 
287                // Mark meta-data to indicate it can't be changed
288                theEntityPackage.freeze();
289 
290  
291                // Update the registry and return the package
292                EPackage.Registry.INSTANCE.put(EntityPackage.eNS_URI, theEntityPackage);
293                return theEntityPackage;
294        }
295 
296        /**
297         * <!-- begin-user-doc -->
298         * <!-- end-user-doc -->
299         * @generated
300         */
301        public EClass getResourceProvidedRole() {
302                return resourceProvidedRoleEClass;
303        }
304 
305        /**
306         * <!-- begin-user-doc -->
307         * <!-- end-user-doc -->
308         * @generated
309         */
310        public EReference getResourceProvidedRole_ResourceInterfaceProvidingEntity__ResourceProvidedRole() {
311                return (EReference)resourceProvidedRoleEClass.getEStructuralFeatures().get(0);
312        }
313 
314        /**
315         * <!-- begin-user-doc -->
316         * <!-- end-user-doc -->
317         * @generated
318         */
319        public EReference getResourceProvidedRole_ProvidedResourceInterface__ResourceProvidedRole() {
320                return (EReference)resourceProvidedRoleEClass.getEStructuralFeatures().get(1);
321        }
322 
323        /**
324         * <!-- begin-user-doc -->
325         * <!-- end-user-doc -->
326         * @generated
327         */
328        public EClass getInterfaceProvidingRequiringEntity() {
329                return interfaceProvidingRequiringEntityEClass;
330        }
331 
332        /**
333         * <!-- begin-user-doc -->
334         * <!-- end-user-doc -->
335         * @generated
336         */
337        public EClass getInterfaceProvidingEntity() {
338                return interfaceProvidingEntityEClass;
339        }
340 
341        /**
342         * <!-- begin-user-doc -->
343         * <!-- end-user-doc -->
344         * @generated
345         */
346        public EReference getInterfaceProvidingEntity_ProvidedRoles_InterfaceProvidingEntity() {
347                return (EReference)interfaceProvidingEntityEClass.getEStructuralFeatures().get(0);
348        }
349 
350        /**
351         * <!-- begin-user-doc -->
352         * <!-- end-user-doc -->
353         * @generated
354         */
355        public EClass getInterfaceRequiringEntity() {
356                return interfaceRequiringEntityEClass;
357        }
358 
359        /**
360         * <!-- begin-user-doc -->
361         * <!-- end-user-doc -->
362         * @generated
363         */
364        public EReference getInterfaceRequiringEntity_RequiredRoles_InterfaceRequiringEntity() {
365                return (EReference)interfaceRequiringEntityEClass.getEStructuralFeatures().get(0);
366        }
367 
368        /**
369         * <!-- begin-user-doc -->
370         * <!-- end-user-doc -->
371         * @generated
372         */
373        public EClass getResourceInterfaceRequiringEntity() {
374                return resourceInterfaceRequiringEntityEClass;
375        }
376 
377        /**
378         * <!-- begin-user-doc -->
379         * <!-- end-user-doc -->
380         * @generated
381         */
382        public EReference getResourceInterfaceRequiringEntity_ResourceRequiredRoles__ResourceInterfaceRequiringEntity() {
383                return (EReference)resourceInterfaceRequiringEntityEClass.getEStructuralFeatures().get(0);
384        }
385 
386        /**
387         * <!-- begin-user-doc -->
388         * <!-- end-user-doc -->
389         * @generated
390         */
391        public EClass getResourceRequiredRole() {
392                return resourceRequiredRoleEClass;
393        }
394 
395        /**
396         * <!-- begin-user-doc -->
397         * <!-- end-user-doc -->
398         * @generated
399         */
400        public EReference getResourceRequiredRole_RequiredResourceInterface__ResourceRequiredRole() {
401                return (EReference)resourceRequiredRoleEClass.getEStructuralFeatures().get(0);
402        }
403 
404        /**
405         * <!-- begin-user-doc -->
406         * <!-- end-user-doc -->
407         * @generated
408         */
409        public EReference getResourceRequiredRole_ResourceInterfaceRequiringEntity__ResourceRequiredRole() {
410                return (EReference)resourceRequiredRoleEClass.getEStructuralFeatures().get(1);
411        }
412 
413        /**
414         * <!-- begin-user-doc -->
415         * <!-- end-user-doc -->
416         * @generated
417         */
418        public EClass getResourceInterfaceProvidingEntity() {
419                return resourceInterfaceProvidingEntityEClass;
420        }
421 
422        /**
423         * <!-- begin-user-doc -->
424         * <!-- end-user-doc -->
425         * @generated
426         */
427        public EReference getResourceInterfaceProvidingEntity_ResourceProvidedRoles__ResourceInterfaceProvidingEntity() {
428                return (EReference)resourceInterfaceProvidingEntityEClass.getEStructuralFeatures().get(0);
429        }
430 
431        /**
432         * <!-- begin-user-doc -->
433         * <!-- end-user-doc -->
434         * @generated
435         */
436        public EClass getComposedProvidingRequiringEntity() {
437                return composedProvidingRequiringEntityEClass;
438        }
439 
440        /**
441         * <!-- begin-user-doc -->
442         * <!-- end-user-doc -->
443         * @generated
444         */
445        public EClass getNamedElement() {
446                return namedElementEClass;
447        }
448 
449        /**
450         * <!-- begin-user-doc -->
451         * <!-- end-user-doc -->
452         * @generated
453         */
454        public EAttribute getNamedElement_EntityName() {
455                return (EAttribute)namedElementEClass.getEStructuralFeatures().get(0);
456        }
457 
458        /**
459         * <!-- begin-user-doc -->
460         * <!-- end-user-doc -->
461         * @generated
462         */
463        public EClass getResourceInterfaceProvidingRequiringEntity() {
464                return resourceInterfaceProvidingRequiringEntityEClass;
465        }
466 
467        /**
468         * <!-- begin-user-doc -->
469         * <!-- end-user-doc -->
470         * @generated
471         */
472        public EClass getEntity() {
473                return entityEClass;
474        }
475 
476        /**
477         * <!-- begin-user-doc -->
478         * <!-- end-user-doc -->
479         * @generated
480         */
481        public EntityFactory getEntityFactory() {
482                return (EntityFactory)getEFactoryInstance();
483        }
484 
485        /**
486         * <!-- begin-user-doc -->
487         * <!-- end-user-doc -->
488         * @generated
489         */
490        private boolean isCreated = false;
491 
492        /**
493         * Creates the meta-model objects for the package.  This method is
494         * guarded to have no affect on any invocation but its first.
495         * <!-- begin-user-doc -->
496         * <!-- end-user-doc -->
497         * @generated
498         */
499        public void createPackageContents() {
500                if (isCreated) return;
501                isCreated = true;
502 
503                // Create classes and their features
504                resourceProvidedRoleEClass = createEClass(RESOURCE_PROVIDED_ROLE);
505                createEReference(resourceProvidedRoleEClass, RESOURCE_PROVIDED_ROLE__RESOURCE_INTERFACE_PROVIDING_ENTITY_RESOURCE_PROVIDED_ROLE);
506                createEReference(resourceProvidedRoleEClass, RESOURCE_PROVIDED_ROLE__PROVIDED_RESOURCE_INTERFACE_RESOURCE_PROVIDED_ROLE);
507 
508                interfaceProvidingRequiringEntityEClass = createEClass(INTERFACE_PROVIDING_REQUIRING_ENTITY);
509 
510                interfaceProvidingEntityEClass = createEClass(INTERFACE_PROVIDING_ENTITY);
511                createEReference(interfaceProvidingEntityEClass, INTERFACE_PROVIDING_ENTITY__PROVIDED_ROLES_INTERFACE_PROVIDING_ENTITY);
512 
513                interfaceRequiringEntityEClass = createEClass(INTERFACE_REQUIRING_ENTITY);
514                createEReference(interfaceRequiringEntityEClass, INTERFACE_REQUIRING_ENTITY__REQUIRED_ROLES_INTERFACE_REQUIRING_ENTITY);
515 
516                resourceInterfaceRequiringEntityEClass = createEClass(RESOURCE_INTERFACE_REQUIRING_ENTITY);
517                createEReference(resourceInterfaceRequiringEntityEClass, RESOURCE_INTERFACE_REQUIRING_ENTITY__RESOURCE_REQUIRED_ROLES_RESOURCE_INTERFACE_REQUIRING_ENTITY);
518 
519                resourceRequiredRoleEClass = createEClass(RESOURCE_REQUIRED_ROLE);
520                createEReference(resourceRequiredRoleEClass, RESOURCE_REQUIRED_ROLE__REQUIRED_RESOURCE_INTERFACE_RESOURCE_REQUIRED_ROLE);
521                createEReference(resourceRequiredRoleEClass, RESOURCE_REQUIRED_ROLE__RESOURCE_INTERFACE_REQUIRING_ENTITY_RESOURCE_REQUIRED_ROLE);
522 
523                resourceInterfaceProvidingEntityEClass = createEClass(RESOURCE_INTERFACE_PROVIDING_ENTITY);
524                createEReference(resourceInterfaceProvidingEntityEClass, RESOURCE_INTERFACE_PROVIDING_ENTITY__RESOURCE_PROVIDED_ROLES_RESOURCE_INTERFACE_PROVIDING_ENTITY);
525 
526                composedProvidingRequiringEntityEClass = createEClass(COMPOSED_PROVIDING_REQUIRING_ENTITY);
527 
528                namedElementEClass = createEClass(NAMED_ELEMENT);
529                createEAttribute(namedElementEClass, NAMED_ELEMENT__ENTITY_NAME);
530 
531                resourceInterfaceProvidingRequiringEntityEClass = createEClass(RESOURCE_INTERFACE_PROVIDING_REQUIRING_ENTITY);
532 
533                entityEClass = createEClass(ENTITY);
534        }
535 
536        /**
537         * <!-- begin-user-doc -->
538         * <!-- end-user-doc -->
539         * @generated
540         */
541        private boolean isInitialized = false;
542 
543        /**
544         * Complete the initialization of the package and its meta-model.  This
545         * method is guarded to have no affect on any invocation but its first.
546         * <!-- begin-user-doc -->
547         * <!-- end-user-doc -->
548         * @generated
549         */
550        public void initializePackageContents() {
551                if (isInitialized) return;
552                isInitialized = true;
553 
554                // Initialize package
555                setName(eNAME);
556                setNsPrefix(eNS_PREFIX);
557                setNsURI(eNS_URI);
558 
559                // Obtain other dependent packages
560                RepositoryPackage theRepositoryPackage = (RepositoryPackage)EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI);
561                ResourcetypePackage theResourcetypePackage = (ResourcetypePackage)EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI);
562                CompositionPackage theCompositionPackage = (CompositionPackage)EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI);
563                IdentifierPackage theIdentifierPackage = (IdentifierPackage)EPackage.Registry.INSTANCE.getEPackage(IdentifierPackage.eNS_URI);
564 
565                // Create type parameters
566 
567                // Set bounds for type parameters
568 
569                // Add supertypes to classes
570                resourceProvidedRoleEClass.getESuperTypes().add(theRepositoryPackage.getRole());
571                interfaceProvidingRequiringEntityEClass.getESuperTypes().add(this.getInterfaceProvidingEntity());
572                interfaceProvidingRequiringEntityEClass.getESuperTypes().add(this.getInterfaceRequiringEntity());
573                interfaceProvidingEntityEClass.getESuperTypes().add(this.getEntity());
574                interfaceRequiringEntityEClass.getESuperTypes().add(this.getEntity());
575                interfaceRequiringEntityEClass.getESuperTypes().add(this.getResourceInterfaceRequiringEntity());
576                resourceInterfaceRequiringEntityEClass.getESuperTypes().add(this.getEntity());
577                resourceRequiredRoleEClass.getESuperTypes().add(theRepositoryPackage.getRole());
578                resourceInterfaceProvidingEntityEClass.getESuperTypes().add(this.getEntity());
579                composedProvidingRequiringEntityEClass.getESuperTypes().add(theCompositionPackage.getComposedStructure());
580                composedProvidingRequiringEntityEClass.getESuperTypes().add(this.getInterfaceProvidingRequiringEntity());
581                resourceInterfaceProvidingRequiringEntityEClass.getESuperTypes().add(this.getResourceInterfaceRequiringEntity());
582                resourceInterfaceProvidingRequiringEntityEClass.getESuperTypes().add(this.getResourceInterfaceProvidingEntity());
583                entityEClass.getESuperTypes().add(theIdentifierPackage.getIdentifier());
584                entityEClass.getESuperTypes().add(this.getNamedElement());
585 
586                // Initialize classes and features; add operations and parameters
587                initEClass(resourceProvidedRoleEClass, ResourceProvidedRole.class, "ResourceProvidedRole", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
588                initEReference(getResourceProvidedRole_ResourceInterfaceProvidingEntity__ResourceProvidedRole(), this.getResourceInterfaceProvidingEntity(), this.getResourceInterfaceProvidingEntity_ResourceProvidedRoles__ResourceInterfaceProvidingEntity(), "resourceInterfaceProvidingEntity__ResourceProvidedRole", null, 1, 1, ResourceProvidedRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
589                initEReference(getResourceProvidedRole_ProvidedResourceInterface__ResourceProvidedRole(), theResourcetypePackage.getResourceInterface(), null, "providedResourceInterface__ResourceProvidedRole", null, 1, 1, ResourceProvidedRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
590 
591                initEClass(interfaceProvidingRequiringEntityEClass, InterfaceProvidingRequiringEntity.class, "InterfaceProvidingRequiringEntity", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
592 
593                initEClass(interfaceProvidingEntityEClass, InterfaceProvidingEntity.class, "InterfaceProvidingEntity", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
594                initEReference(getInterfaceProvidingEntity_ProvidedRoles_InterfaceProvidingEntity(), theRepositoryPackage.getProvidedRole(), theRepositoryPackage.getProvidedRole_ProvidingEntity_ProvidedRole(), "providedRoles_InterfaceProvidingEntity", null, 0, -1, InterfaceProvidingEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
595 
596                initEClass(interfaceRequiringEntityEClass, InterfaceRequiringEntity.class, "InterfaceRequiringEntity", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
597                initEReference(getInterfaceRequiringEntity_RequiredRoles_InterfaceRequiringEntity(), theRepositoryPackage.getRequiredRole(), theRepositoryPackage.getRequiredRole_RequiringEntity_RequiredRole(), "requiredRoles_InterfaceRequiringEntity", null, 0, -1, InterfaceRequiringEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
598 
599                initEClass(resourceInterfaceRequiringEntityEClass, ResourceInterfaceRequiringEntity.class, "ResourceInterfaceRequiringEntity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
600                initEReference(getResourceInterfaceRequiringEntity_ResourceRequiredRoles__ResourceInterfaceRequiringEntity(), this.getResourceRequiredRole(), this.getResourceRequiredRole_ResourceInterfaceRequiringEntity__ResourceRequiredRole(), "resourceRequiredRoles__ResourceInterfaceRequiringEntity", null, 0, -1, ResourceInterfaceRequiringEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
601 
602                initEClass(resourceRequiredRoleEClass, ResourceRequiredRole.class, "ResourceRequiredRole", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
603                initEReference(getResourceRequiredRole_RequiredResourceInterface__ResourceRequiredRole(), theResourcetypePackage.getResourceInterface(), null, "requiredResourceInterface__ResourceRequiredRole", null, 1, 1, ResourceRequiredRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
604                initEReference(getResourceRequiredRole_ResourceInterfaceRequiringEntity__ResourceRequiredRole(), this.getResourceInterfaceRequiringEntity(), this.getResourceInterfaceRequiringEntity_ResourceRequiredRoles__ResourceInterfaceRequiringEntity(), "resourceInterfaceRequiringEntity__ResourceRequiredRole", null, 1, 1, ResourceRequiredRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
605 
606                initEClass(resourceInterfaceProvidingEntityEClass, ResourceInterfaceProvidingEntity.class, "ResourceInterfaceProvidingEntity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
607                initEReference(getResourceInterfaceProvidingEntity_ResourceProvidedRoles__ResourceInterfaceProvidingEntity(), this.getResourceProvidedRole(), this.getResourceProvidedRole_ResourceInterfaceProvidingEntity__ResourceProvidedRole(), "resourceProvidedRoles__ResourceInterfaceProvidingEntity", null, 0, -1, ResourceInterfaceProvidingEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
608 
609                initEClass(composedProvidingRequiringEntityEClass, ComposedProvidingRequiringEntity.class, "ComposedProvidingRequiringEntity", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
610 
611                EOperation op = addEOperation(composedProvidingRequiringEntityEClass, ecorePackage.getEBoolean(), "ProvidedRolesMustBeBound", 0, 1, IS_UNIQUE, IS_ORDERED);
612                addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED);
613                EGenericType g1 = createEGenericType(ecorePackage.getEMap());
614                EGenericType g2 = createEGenericType(ecorePackage.getEJavaObject());
615                g1.getETypeArguments().add(g2);
616                g2 = createEGenericType(ecorePackage.getEJavaObject());
617                g1.getETypeArguments().add(g2);
618                addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED);
619 
620                initEClass(namedElementEClass, NamedElement.class, "NamedElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
621                initEAttribute(getNamedElement_EntityName(), ecorePackage.getEString(), "entityName", "aName", 1, 1, NamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
622 
623                initEClass(resourceInterfaceProvidingRequiringEntityEClass, ResourceInterfaceProvidingRequiringEntity.class, "ResourceInterfaceProvidingRequiringEntity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
624 
625                initEClass(entityEClass, Entity.class, "Entity", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
626        }
627 
628} //EntityPackageImpl

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