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

COVERAGE SUMMARY FOR SOURCE FILE [CompositionFactoryImpl.java]

nameclass, %method, %block, %line, %
CompositionFactoryImpl.java0%   (0/1)0%   (0/20)0%   (0/178)0%   (0/57)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CompositionFactoryImpl0%   (0/1)0%   (0/20)0%   (0/178)0%   (0/57)
CompositionFactoryImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
create (EClass): EObject 0%   (0/1)0%   (0/62)0%   (0/17)
createAssemblyConnector (): AssemblyConnector 0%   (0/1)0%   (0/6)0%   (0/2)
createAssemblyContext (): AssemblyContext 0%   (0/1)0%   (0/6)0%   (0/2)
createAssemblyEventConnector (): AssemblyEventConnector 0%   (0/1)0%   (0/6)0%   (0/2)
createAssemblyInfrastructureConnector (): AssemblyInfrastructureConnector 0%   (0/1)0%   (0/6)0%   (0/2)
createEventChannel (): EventChannel 0%   (0/1)0%   (0/6)0%   (0/2)
createEventChannelSinkConnector (): EventChannelSinkConnector 0%   (0/1)0%   (0/6)0%   (0/2)
createEventChannelSourceConnector (): EventChannelSourceConnector 0%   (0/1)0%   (0/6)0%   (0/2)
createProvidedDelegationConnector (): ProvidedDelegationConnector 0%   (0/1)0%   (0/6)0%   (0/2)
createProvidedInfrastructureDelegationConnector (): ProvidedInfrastructureDel... 0%   (0/1)0%   (0/6)0%   (0/2)
createRequiredDelegationConnector (): RequiredDelegationConnector 0%   (0/1)0%   (0/6)0%   (0/2)
createRequiredInfrastructureDelegationConnector (): RequiredInfrastructureDel... 0%   (0/1)0%   (0/6)0%   (0/2)
createRequiredResourceDelegationConnector (): RequiredResourceDelegationConne... 0%   (0/1)0%   (0/6)0%   (0/2)
createResourceRequiredDelegationConnector (): ResourceRequiredDelegationConne... 0%   (0/1)0%   (0/6)0%   (0/2)
createSinkDelegationConnector (): SinkDelegationConnector 0%   (0/1)0%   (0/6)0%   (0/2)
createSourceDelegationConnector (): SourceDelegationConnector 0%   (0/1)0%   (0/6)0%   (0/2)
getCompositionPackage (): CompositionPackage 0%   (0/1)0%   (0/4)0%   (0/1)
getPackage (): CompositionPackage 0%   (0/1)0%   (0/2)0%   (0/1)
init (): CompositionFactory 0%   (0/1)0%   (0/17)0%   (0/6)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.core.composition.impl;
7 
8import de.uka.ipd.sdq.pcm.core.composition.*;
9import org.eclipse.emf.ecore.EClass;
10import org.eclipse.emf.ecore.EObject;
11import org.eclipse.emf.ecore.EPackage;
12import org.eclipse.emf.ecore.impl.EFactoryImpl;
13import org.eclipse.emf.ecore.plugin.EcorePlugin;
14 
15import de.uka.ipd.sdq.pcm.core.composition.AssemblyConnector;
16import de.uka.ipd.sdq.pcm.core.composition.AssemblyContext;
17import de.uka.ipd.sdq.pcm.core.composition.AssemblyEventConnector;
18import de.uka.ipd.sdq.pcm.core.composition.AssemblyInfrastructureConnector;
19import de.uka.ipd.sdq.pcm.core.composition.CompositionFactory;
20import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage;
21import de.uka.ipd.sdq.pcm.core.composition.EventChannel;
22import de.uka.ipd.sdq.pcm.core.composition.EventChannelSinkConnector;
23import de.uka.ipd.sdq.pcm.core.composition.EventChannelSourceConnector;
24import de.uka.ipd.sdq.pcm.core.composition.ProvidedDelegationConnector;
25import de.uka.ipd.sdq.pcm.core.composition.ProvidedInfrastructureDelegationConnector;
26import de.uka.ipd.sdq.pcm.core.composition.RequiredDelegationConnector;
27import de.uka.ipd.sdq.pcm.core.composition.RequiredInfrastructureDelegationConnector;
28import de.uka.ipd.sdq.pcm.core.composition.RequiredResourceDelegationConnector;
29import de.uka.ipd.sdq.pcm.core.composition.ResourceRequiredDelegationConnector;
30import de.uka.ipd.sdq.pcm.core.composition.SinkDelegationConnector;
31import de.uka.ipd.sdq.pcm.core.composition.SourceDelegationConnector;
32 
33/**
34 * <!-- begin-user-doc -->
35 * An implementation of the model <b>Factory</b>.
36 * <!-- end-user-doc -->
37 * @generated
38 */
39public class CompositionFactoryImpl extends EFactoryImpl implements CompositionFactory {
40        /**
41         * <!-- begin-user-doc -->
42         * <!-- end-user-doc -->
43         * @generated
44         */
45        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
46 
47        /**
48         * Creates the default factory implementation.
49         * <!-- begin-user-doc -->
50         * <!-- end-user-doc -->
51         * @generated
52         */
53        public static CompositionFactory init() {
54                try {
55                        CompositionFactory theCompositionFactory = (CompositionFactory)EPackage.Registry.INSTANCE.getEFactory("http://sdq.ipd.uka.de/PalladioComponentModel/Core/Composition/4.0"); 
56                        if (theCompositionFactory != null) {
57                                return theCompositionFactory;
58                        }
59                }
60                catch (Exception exception) {
61                        EcorePlugin.INSTANCE.log(exception);
62                }
63                return new CompositionFactoryImpl();
64        }
65 
66        /**
67         * Creates an instance of the factory.
68         * <!-- begin-user-doc -->
69         * <!-- end-user-doc -->
70         * @generated
71         */
72        public CompositionFactoryImpl() {
73                super();
74        }
75 
76        /**
77         * <!-- begin-user-doc -->
78         * <!-- end-user-doc -->
79         * @generated
80         */
81        @Override
82        public EObject create(EClass eClass) {
83                switch (eClass.getClassifierID()) {
84                        case CompositionPackage.RESOURCE_REQUIRED_DELEGATION_CONNECTOR: return createResourceRequiredDelegationConnector();
85                        case CompositionPackage.EVENT_CHANNEL: return createEventChannel();
86                        case CompositionPackage.EVENT_CHANNEL_SOURCE_CONNECTOR: return createEventChannelSourceConnector();
87                        case CompositionPackage.EVENT_CHANNEL_SINK_CONNECTOR: return createEventChannelSinkConnector();
88                        case CompositionPackage.PROVIDED_DELEGATION_CONNECTOR: return createProvidedDelegationConnector();
89                        case CompositionPackage.REQUIRED_DELEGATION_CONNECTOR: return createRequiredDelegationConnector();
90                        case CompositionPackage.ASSEMBLY_CONNECTOR: return createAssemblyConnector();
91                        case CompositionPackage.ASSEMBLY_EVENT_CONNECTOR: return createAssemblyEventConnector();
92                        case CompositionPackage.SOURCE_DELEGATION_CONNECTOR: return createSourceDelegationConnector();
93                        case CompositionPackage.SINK_DELEGATION_CONNECTOR: return createSinkDelegationConnector();
94                        case CompositionPackage.ASSEMBLY_INFRASTRUCTURE_CONNECTOR: return createAssemblyInfrastructureConnector();
95                        case CompositionPackage.PROVIDED_INFRASTRUCTURE_DELEGATION_CONNECTOR: return createProvidedInfrastructureDelegationConnector();
96                        case CompositionPackage.REQUIRED_INFRASTRUCTURE_DELEGATION_CONNECTOR: return createRequiredInfrastructureDelegationConnector();
97                        case CompositionPackage.REQUIRED_RESOURCE_DELEGATION_CONNECTOR: return createRequiredResourceDelegationConnector();
98                        case CompositionPackage.ASSEMBLY_CONTEXT: return createAssemblyContext();
99                        default:
100                                throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
101                }
102        }
103 
104        /**
105         * <!-- begin-user-doc -->
106         * <!-- end-user-doc -->
107         * @generated
108         */
109        public ProvidedDelegationConnector createProvidedDelegationConnector() {
110                ProvidedDelegationConnectorImpl providedDelegationConnector = new ProvidedDelegationConnectorImpl();
111                return providedDelegationConnector;
112        }
113 
114        /**
115         * <!-- begin-user-doc -->
116         * <!-- end-user-doc -->
117         * @generated
118         */
119        public AssemblyContext createAssemblyContext() {
120                AssemblyContextImpl assemblyContext = new AssemblyContextImpl();
121                return assemblyContext;
122        }
123 
124        /**
125         * <!-- begin-user-doc -->
126         * <!-- end-user-doc -->
127         * @generated
128         */
129        public RequiredDelegationConnector createRequiredDelegationConnector() {
130                RequiredDelegationConnectorImpl requiredDelegationConnector = new RequiredDelegationConnectorImpl();
131                return requiredDelegationConnector;
132        }
133 
134        /**
135         * <!-- begin-user-doc -->
136         * <!-- end-user-doc -->
137         * @generated
138         */
139        public AssemblyConnector createAssemblyConnector() {
140                AssemblyConnectorImpl assemblyConnector = new AssemblyConnectorImpl();
141                return assemblyConnector;
142        }
143 
144        /**
145         * <!-- begin-user-doc -->
146         * <!-- end-user-doc -->
147         * @generated
148         */
149        public ResourceRequiredDelegationConnector createResourceRequiredDelegationConnector() {
150                ResourceRequiredDelegationConnectorImpl resourceRequiredDelegationConnector = new ResourceRequiredDelegationConnectorImpl();
151                return resourceRequiredDelegationConnector;
152        }
153 
154        /**
155         * <!-- begin-user-doc -->
156         * <!-- end-user-doc -->
157         * @generated
158         */
159        public EventChannel createEventChannel() {
160                EventChannelImpl eventChannel = new EventChannelImpl();
161                return eventChannel;
162        }
163 
164        /**
165         * <!-- begin-user-doc -->
166         * <!-- end-user-doc -->
167         * @generated
168         */
169        public AssemblyEventConnector createAssemblyEventConnector() {
170                AssemblyEventConnectorImpl assemblyEventConnector = new AssemblyEventConnectorImpl();
171                return assemblyEventConnector;
172        }
173 
174        /**
175         * <!-- begin-user-doc -->
176         * <!-- end-user-doc -->
177         * @generated
178         */
179        public SourceDelegationConnector createSourceDelegationConnector() {
180                SourceDelegationConnectorImpl sourceDelegationConnector = new SourceDelegationConnectorImpl();
181                return sourceDelegationConnector;
182        }
183 
184        /**
185         * <!-- begin-user-doc -->
186         * <!-- end-user-doc -->
187         * @generated
188         */
189        public SinkDelegationConnector createSinkDelegationConnector() {
190                SinkDelegationConnectorImpl sinkDelegationConnector = new SinkDelegationConnectorImpl();
191                return sinkDelegationConnector;
192        }
193 
194        /**
195         * <!-- begin-user-doc -->
196         * <!-- end-user-doc -->
197         * @generated
198         */
199        public AssemblyInfrastructureConnector createAssemblyInfrastructureConnector() {
200                AssemblyInfrastructureConnectorImpl assemblyInfrastructureConnector = new AssemblyInfrastructureConnectorImpl();
201                return assemblyInfrastructureConnector;
202        }
203 
204        /**
205         * <!-- begin-user-doc -->
206         * <!-- end-user-doc -->
207         * @generated
208         */
209        public RequiredInfrastructureDelegationConnector createRequiredInfrastructureDelegationConnector() {
210                RequiredInfrastructureDelegationConnectorImpl requiredInfrastructureDelegationConnector = new RequiredInfrastructureDelegationConnectorImpl();
211                return requiredInfrastructureDelegationConnector;
212        }
213 
214        /**
215         * <!-- begin-user-doc -->
216         * <!-- end-user-doc -->
217         * @generated
218         */
219        public ProvidedInfrastructureDelegationConnector createProvidedInfrastructureDelegationConnector() {
220                ProvidedInfrastructureDelegationConnectorImpl providedInfrastructureDelegationConnector = new ProvidedInfrastructureDelegationConnectorImpl();
221                return providedInfrastructureDelegationConnector;
222        }
223 
224        /**
225         * <!-- begin-user-doc -->
226         * <!-- end-user-doc -->
227         * @generated
228         */
229        public RequiredResourceDelegationConnector createRequiredResourceDelegationConnector() {
230                RequiredResourceDelegationConnectorImpl requiredResourceDelegationConnector = new RequiredResourceDelegationConnectorImpl();
231                return requiredResourceDelegationConnector;
232        }
233 
234        /**
235         * <!-- begin-user-doc -->
236         * <!-- end-user-doc -->
237         * @generated
238         */
239        public EventChannelSinkConnector createEventChannelSinkConnector() {
240                EventChannelSinkConnectorImpl eventChannelSinkConnector = new EventChannelSinkConnectorImpl();
241                return eventChannelSinkConnector;
242        }
243 
244        /**
245         * <!-- begin-user-doc -->
246         * <!-- end-user-doc -->
247         * @generated
248         */
249        public EventChannelSourceConnector createEventChannelSourceConnector() {
250                EventChannelSourceConnectorImpl eventChannelSourceConnector = new EventChannelSourceConnectorImpl();
251                return eventChannelSourceConnector;
252        }
253 
254        /**
255         * <!-- begin-user-doc -->
256         * <!-- end-user-doc -->
257         * @generated
258         */
259        public CompositionPackage getCompositionPackage() {
260                return (CompositionPackage)getEPackage();
261        }
262 
263        /**
264         * <!-- begin-user-doc -->
265         * <!-- end-user-doc -->
266         * @deprecated
267         * @generated
268         */
269        @Deprecated
270        public static CompositionPackage getPackage() {
271                return CompositionPackage.eINSTANCE;
272        }
273 
274} //CompositionFactoryImpl

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