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

COVERAGE SUMMARY FOR SOURCE FILE [SystemFactoryImpl.java]

nameclass, %method, %block, %line, %
SystemFactoryImpl.java0%   (0/1)0%   (0/6)0%   (0/52)0%   (0/15)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SystemFactoryImpl0%   (0/1)0%   (0/6)0%   (0/52)0%   (0/15)
SystemFactoryImpl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
create (EClass): EObject 0%   (0/1)0%   (0/20)0%   (0/3)
createSystem (): System 0%   (0/1)0%   (0/6)0%   (0/2)
getPackage (): SystemPackage 0%   (0/1)0%   (0/2)0%   (0/1)
getSystemPackage (): SystemPackage 0%   (0/1)0%   (0/4)0%   (0/1)
init (): SystemFactory 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.system.impl;
7 
8import org.eclipse.emf.ecore.EClass;
9import org.eclipse.emf.ecore.EObject;
10import org.eclipse.emf.ecore.EPackage;
11import org.eclipse.emf.ecore.impl.EFactoryImpl;
12import org.eclipse.emf.ecore.plugin.EcorePlugin;
13 
14import de.uka.ipd.sdq.pcm.system.SystemFactory;
15import de.uka.ipd.sdq.pcm.system.SystemPackage;
16 
17/**
18 * <!-- begin-user-doc -->
19 * An implementation of the model <b>Factory</b>.
20 * <!-- end-user-doc -->
21 * @generated
22 */
23public class SystemFactoryImpl extends EFactoryImpl implements SystemFactory {
24        /**
25         * <!-- begin-user-doc -->
26         * <!-- end-user-doc -->
27         * @generated
28         */
29        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
30 
31        /**
32         * Creates the default factory implementation.
33         * <!-- begin-user-doc -->
34         * <!-- end-user-doc -->
35         * @generated
36         */
37        public static SystemFactory init() {
38                try {
39                        SystemFactory theSystemFactory = (SystemFactory)EPackage.Registry.INSTANCE.getEFactory("http://sdq.ipd.uka.de/PalladioComponentModel/System/4.0"); 
40                        if (theSystemFactory != null) {
41                                return theSystemFactory;
42                        }
43                }
44                catch (Exception exception) {
45                        EcorePlugin.INSTANCE.log(exception);
46                }
47                return new SystemFactoryImpl();
48        }
49 
50        /**
51         * Creates an instance of the factory.
52         * <!-- begin-user-doc -->
53         * <!-- end-user-doc -->
54         * @generated
55         */
56        public SystemFactoryImpl() {
57                super();
58        }
59 
60        /**
61         * <!-- begin-user-doc -->
62         * <!-- end-user-doc -->
63         * @generated
64         */
65        @Override
66        public EObject create(EClass eClass) {
67                switch (eClass.getClassifierID()) {
68                        case SystemPackage.SYSTEM: return createSystem();
69                        default:
70                                throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
71                }
72        }
73 
74        /**
75         * <!-- begin-user-doc -->
76         * <!-- end-user-doc -->
77         * @generated
78         */
79        public de.uka.ipd.sdq.pcm.system.System createSystem() {
80                SystemImpl system = new SystemImpl();
81                return system;
82        }
83 
84        /**
85         * <!-- begin-user-doc -->
86         * <!-- end-user-doc -->
87         * @generated
88         */
89        public SystemPackage getSystemPackage() {
90                return (SystemPackage)getEPackage();
91        }
92 
93        /**
94         * <!-- begin-user-doc -->
95         * <!-- end-user-doc -->
96         * @deprecated
97         * @generated
98         */
99        @Deprecated
100        public static SystemPackage getPackage() {
101                return SystemPackage.eINSTANCE;
102        }
103 
104} //SystemFactoryImpl

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