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

COVERAGE SUMMARY FOR SOURCE FILE [AllocationFactoryImpl.java]

nameclass, %method, %block, %line, %
AllocationFactoryImpl.java0%   (0/1)0%   (0/7)0%   (0/61)0%   (0/18)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AllocationFactoryImpl0%   (0/1)0%   (0/7)0%   (0/61)0%   (0/18)
AllocationFactoryImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
create (EClass): EObject 0%   (0/1)0%   (0/23)0%   (0/4)
createAllocation (): Allocation 0%   (0/1)0%   (0/6)0%   (0/2)
createAllocationContext (): AllocationContext 0%   (0/1)0%   (0/6)0%   (0/2)
getAllocationPackage (): AllocationPackage 0%   (0/1)0%   (0/4)0%   (0/1)
getPackage (): AllocationPackage 0%   (0/1)0%   (0/2)0%   (0/1)
init (): AllocationFactory 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.allocation.impl;
7 
8import de.uka.ipd.sdq.pcm.allocation.*;
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.allocation.Allocation;
16import de.uka.ipd.sdq.pcm.allocation.AllocationContext;
17import de.uka.ipd.sdq.pcm.allocation.AllocationFactory;
18import de.uka.ipd.sdq.pcm.allocation.AllocationPackage;
19 
20/**
21 * <!-- begin-user-doc -->
22 * An implementation of the model <b>Factory</b>.
23 * <!-- end-user-doc -->
24 * @generated
25 */
26public class AllocationFactoryImpl extends EFactoryImpl implements AllocationFactory {
27        /**
28         * <!-- begin-user-doc -->
29         * <!-- end-user-doc -->
30         * @generated
31         */
32        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
33 
34        /**
35         * Creates the default factory implementation.
36         * <!-- begin-user-doc -->
37         * <!-- end-user-doc -->
38         * @generated
39         */
40        public static AllocationFactory init() {
41                try {
42                        AllocationFactory theAllocationFactory = (AllocationFactory)EPackage.Registry.INSTANCE.getEFactory("http://sdq.ipd.uka.de/PalladioComponentModel/Allocation/4.0"); 
43                        if (theAllocationFactory != null) {
44                                return theAllocationFactory;
45                        }
46                }
47                catch (Exception exception) {
48                        EcorePlugin.INSTANCE.log(exception);
49                }
50                return new AllocationFactoryImpl();
51        }
52 
53        /**
54         * Creates an instance of the factory.
55         * <!-- begin-user-doc -->
56         * <!-- end-user-doc -->
57         * @generated
58         */
59        public AllocationFactoryImpl() {
60                super();
61        }
62 
63        /**
64         * <!-- begin-user-doc -->
65         * <!-- end-user-doc -->
66         * @generated
67         */
68        @Override
69        public EObject create(EClass eClass) {
70                switch (eClass.getClassifierID()) {
71                        case AllocationPackage.ALLOCATION_CONTEXT: return createAllocationContext();
72                        case AllocationPackage.ALLOCATION: return createAllocation();
73                        default:
74                                throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
75                }
76        }
77 
78        /**
79         * <!-- begin-user-doc -->
80         * <!-- end-user-doc -->
81         * @generated
82         */
83        public AllocationContext createAllocationContext() {
84                AllocationContextImpl allocationContext = new AllocationContextImpl();
85                return allocationContext;
86        }
87 
88        /**
89         * <!-- begin-user-doc -->
90         * <!-- end-user-doc -->
91         * @generated
92         */
93        public Allocation createAllocation() {
94                AllocationImpl allocation = new AllocationImpl();
95                return allocation;
96        }
97 
98        /**
99         * <!-- begin-user-doc -->
100         * <!-- end-user-doc -->
101         * @generated
102         */
103        public AllocationPackage getAllocationPackage() {
104                return (AllocationPackage)getEPackage();
105        }
106 
107        /**
108         * <!-- begin-user-doc -->
109         * <!-- end-user-doc -->
110         * @deprecated
111         * @generated
112         */
113        @Deprecated
114        public static AllocationPackage getPackage() {
115                return AllocationPackage.eINSTANCE;
116        }
117 
118} //AllocationFactoryImpl

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