EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.fzi.se.quality.parameters.pcm.impl]

COVERAGE SUMMARY FOR SOURCE FILE [PCMFactoryImpl.java]

nameclass, %method, %block, %line, %
PCMFactoryImpl.java0%   (0/1)0%   (0/12)0%   (0/106)0%   (0/33)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PCMFactoryImpl0%   (0/1)0%   (0/12)0%   (0/106)0%   (0/33)
PCMFactoryImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
create (EClass): EObject 0%   (0/1)0%   (0/38)0%   (0/9)
createPCMBusinessOperationReference (): PCMBusinessOperationReference 0%   (0/1)0%   (0/6)0%   (0/2)
createPCMComponentParameterReference (): PCMComponentParameterReference 0%   (0/1)0%   (0/6)0%   (0/2)
createPCMComponentReference (): PCMComponentReference 0%   (0/1)0%   (0/6)0%   (0/2)
createPCMInfrastructureOperationReference (): PCMInfrastructureOperationRefer... 0%   (0/1)0%   (0/6)0%   (0/2)
createPCMOperationParameterReference (): PCMOperationParameterReference 0%   (0/1)0%   (0/6)0%   (0/2)
createPCMParameterValue (): PCMParameterValue 0%   (0/1)0%   (0/6)0%   (0/2)
createPCMRequiredBusinessOperationReturnParameterReference (): PCMRequiredBus... 0%   (0/1)0%   (0/6)0%   (0/2)
getPCMPackage (): PCMPackage 0%   (0/1)0%   (0/4)0%   (0/1)
getPackage (): PCMPackage 0%   (0/1)0%   (0/2)0%   (0/1)
init (): PCMFactory 0%   (0/1)0%   (0/17)0%   (0/6)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.fzi.se.quality.parameters.pcm.impl;
8 
9import de.fzi.se.quality.parameters.pcm.*;
10 
11import org.eclipse.emf.ecore.EClass;
12import org.eclipse.emf.ecore.EObject;
13import org.eclipse.emf.ecore.EPackage;
14 
15import org.eclipse.emf.ecore.impl.EFactoryImpl;
16 
17import org.eclipse.emf.ecore.plugin.EcorePlugin;
18 
19/**
20 * <!-- begin-user-doc -->
21 * An implementation of the model <b>Factory</b>.
22 * <!-- end-user-doc -->
23 * @generated
24 */
25public class PCMFactoryImpl extends EFactoryImpl implements PCMFactory {
26        /**
27         * Creates the default factory implementation.
28         * <!-- begin-user-doc -->
29         * <!-- end-user-doc -->
30         * @generated
31         */
32        public static PCMFactory init() {
33                try {
34                        PCMFactory thePCMFactory = (PCMFactory)EPackage.Registry.INSTANCE.getEFactory("http://fzi.de/PalladioComponentModel/Quality/Parameters/PCM/0.2"); 
35                        if (thePCMFactory != null) {
36                                return thePCMFactory;
37                        }
38                }
39                catch (Exception exception) {
40                        EcorePlugin.INSTANCE.log(exception);
41                }
42                return new PCMFactoryImpl();
43        }
44 
45        /**
46         * Creates an instance of the factory.
47         * <!-- begin-user-doc -->
48         * <!-- end-user-doc -->
49         * @generated
50         */
51        public PCMFactoryImpl() {
52                super();
53        }
54 
55        /**
56         * <!-- begin-user-doc -->
57         * <!-- end-user-doc -->
58         * @generated
59         */
60        @Override
61        public EObject create(EClass eClass) {
62                switch (eClass.getClassifierID()) {
63                        case PCMPackage.PCM_PARAMETER_VALUE: return createPCMParameterValue();
64                        case PCMPackage.PCM_INFRASTRUCTURE_OPERATION_REFERENCE: return createPCMInfrastructureOperationReference();
65                        case PCMPackage.PCM_BUSINESS_OPERATION_REFERENCE: return createPCMBusinessOperationReference();
66                        case PCMPackage.PCM_COMPONENT_REFERENCE: return createPCMComponentReference();
67                        case PCMPackage.PCM_COMPONENT_PARAMETER_REFERENCE: return createPCMComponentParameterReference();
68                        case PCMPackage.PCM_OPERATION_PARAMETER_REFERENCE: return createPCMOperationParameterReference();
69                        case PCMPackage.PCM_REQUIRED_BUSINESS_OPERATION_RETURN_PARAMETER_REFERENCE: return createPCMRequiredBusinessOperationReturnParameterReference();
70                        default:
71                                throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
72                }
73        }
74 
75        /**
76         * <!-- begin-user-doc -->
77         * <!-- end-user-doc -->
78         * @generated
79         */
80        public PCMParameterValue createPCMParameterValue() {
81                PCMParameterValueImpl pcmParameterValue = new PCMParameterValueImpl();
82                return pcmParameterValue;
83        }
84 
85        /**
86         * <!-- begin-user-doc -->
87         * <!-- end-user-doc -->
88         * @generated
89         */
90        public PCMInfrastructureOperationReference createPCMInfrastructureOperationReference() {
91                PCMInfrastructureOperationReferenceImpl pcmInfrastructureOperationReference = new PCMInfrastructureOperationReferenceImpl();
92                return pcmInfrastructureOperationReference;
93        }
94 
95        /**
96         * <!-- begin-user-doc -->
97         * <!-- end-user-doc -->
98         * @generated
99         */
100        public PCMBusinessOperationReference createPCMBusinessOperationReference() {
101                PCMBusinessOperationReferenceImpl pcmBusinessOperationReference = new PCMBusinessOperationReferenceImpl();
102                return pcmBusinessOperationReference;
103        }
104 
105        /**
106         * <!-- begin-user-doc -->
107         * <!-- end-user-doc -->
108         * @generated
109         */
110        public PCMComponentReference createPCMComponentReference() {
111                PCMComponentReferenceImpl pcmComponentReference = new PCMComponentReferenceImpl();
112                return pcmComponentReference;
113        }
114 
115        /**
116         * <!-- begin-user-doc -->
117         * <!-- end-user-doc -->
118         * @generated
119         */
120        public PCMComponentParameterReference createPCMComponentParameterReference() {
121                PCMComponentParameterReferenceImpl pcmComponentParameterReference = new PCMComponentParameterReferenceImpl();
122                return pcmComponentParameterReference;
123        }
124 
125        /**
126         * <!-- begin-user-doc -->
127         * <!-- end-user-doc -->
128         * @generated
129         */
130        public PCMOperationParameterReference createPCMOperationParameterReference() {
131                PCMOperationParameterReferenceImpl pcmOperationParameterReference = new PCMOperationParameterReferenceImpl();
132                return pcmOperationParameterReference;
133        }
134 
135        /**
136         * <!-- begin-user-doc -->
137         * <!-- end-user-doc -->
138         * @generated
139         */
140        public PCMRequiredBusinessOperationReturnParameterReference createPCMRequiredBusinessOperationReturnParameterReference() {
141                PCMRequiredBusinessOperationReturnParameterReferenceImpl pcmRequiredBusinessOperationReturnParameterReference = new PCMRequiredBusinessOperationReturnParameterReferenceImpl();
142                return pcmRequiredBusinessOperationReturnParameterReference;
143        }
144 
145        /**
146         * <!-- begin-user-doc -->
147         * <!-- end-user-doc -->
148         * @generated
149         */
150        public PCMPackage getPCMPackage() {
151                return (PCMPackage)getEPackage();
152        }
153 
154        /**
155         * <!-- begin-user-doc -->
156         * <!-- end-user-doc -->
157         * @deprecated
158         * @generated
159         */
160        @Deprecated
161        public static PCMPackage getPackage() {
162                return PCMPackage.eINSTANCE;
163        }
164 
165} //PCMFactoryImpl

[all classes][de.fzi.se.quality.parameters.pcm.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov