1 | /** |
2 | * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany |
3 | * |
4 | * $Id$ |
5 | */ |
6 | package de.uka.ipd.sdq.pcm.seff.seff_reliability.impl; |
7 | |
8 | import de.uka.ipd.sdq.pcm.seff.seff_reliability.*; |
9 | import org.eclipse.emf.ecore.EClass; |
10 | import org.eclipse.emf.ecore.EObject; |
11 | import org.eclipse.emf.ecore.EPackage; |
12 | import org.eclipse.emf.ecore.impl.EFactoryImpl; |
13 | import org.eclipse.emf.ecore.plugin.EcorePlugin; |
14 | |
15 | import de.uka.ipd.sdq.pcm.seff.seff_reliability.Seff_reliabilityFactory; |
16 | import de.uka.ipd.sdq.pcm.seff.seff_reliability.Seff_reliabilityPackage; |
17 | |
18 | /** |
19 | * <!-- begin-user-doc --> |
20 | * An implementation of the model <b>Factory</b>. |
21 | * <!-- end-user-doc --> |
22 | * @generated |
23 | */ |
24 | public class Seff_reliabilityFactoryImpl extends EFactoryImpl implements Seff_reliabilityFactory { |
25 | /** |
26 | * <!-- begin-user-doc --> |
27 | * <!-- end-user-doc --> |
28 | * @generated |
29 | */ |
30 | public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany"; |
31 | |
32 | /** |
33 | * Creates the default factory implementation. |
34 | * <!-- begin-user-doc --> |
35 | * <!-- end-user-doc --> |
36 | * @generated |
37 | */ |
38 | public static Seff_reliabilityFactory init() { |
39 | try { |
40 | Seff_reliabilityFactory theSeff_reliabilityFactory = (Seff_reliabilityFactory)EPackage.Registry.INSTANCE.getEFactory("http://sdq.ipd.uka.de/PalladioComponentModel/SEFF/SEFF_Reliability/1.0"); |
41 | if (theSeff_reliabilityFactory != null) { |
42 | return theSeff_reliabilityFactory; |
43 | } |
44 | } |
45 | catch (Exception exception) { |
46 | EcorePlugin.INSTANCE.log(exception); |
47 | } |
48 | return new Seff_reliabilityFactoryImpl(); |
49 | } |
50 | |
51 | /** |
52 | * Creates an instance of the factory. |
53 | * <!-- begin-user-doc --> |
54 | * <!-- end-user-doc --> |
55 | * @generated |
56 | */ |
57 | public Seff_reliabilityFactoryImpl() { |
58 | super(); |
59 | } |
60 | |
61 | /** |
62 | * <!-- begin-user-doc --> |
63 | * <!-- end-user-doc --> |
64 | * @generated |
65 | */ |
66 | @Override |
67 | public EObject create(EClass eClass) { |
68 | switch (eClass.getClassifierID()) { |
69 | case Seff_reliabilityPackage.RECOVERY_ACTION_BEHAVIOUR: return createRecoveryActionBehaviour(); |
70 | case Seff_reliabilityPackage.RECOVERY_ACTION: return createRecoveryAction(); |
71 | default: |
72 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); |
73 | } |
74 | } |
75 | |
76 | /** |
77 | * <!-- begin-user-doc --> |
78 | * <!-- end-user-doc --> |
79 | * @generated |
80 | */ |
81 | public RecoveryActionBehaviour createRecoveryActionBehaviour() { |
82 | RecoveryActionBehaviourImpl recoveryActionBehaviour = new RecoveryActionBehaviourImpl(); |
83 | return recoveryActionBehaviour; |
84 | } |
85 | |
86 | /** |
87 | * <!-- begin-user-doc --> |
88 | * <!-- end-user-doc --> |
89 | * @generated |
90 | */ |
91 | public RecoveryAction createRecoveryAction() { |
92 | RecoveryActionImpl recoveryAction = new RecoveryActionImpl(); |
93 | return recoveryAction; |
94 | } |
95 | |
96 | /** |
97 | * <!-- begin-user-doc --> |
98 | * <!-- end-user-doc --> |
99 | * @generated |
100 | */ |
101 | public Seff_reliabilityPackage getSeff_reliabilityPackage() { |
102 | return (Seff_reliabilityPackage)getEPackage(); |
103 | } |
104 | |
105 | /** |
106 | * <!-- begin-user-doc --> |
107 | * <!-- end-user-doc --> |
108 | * @deprecated |
109 | * @generated |
110 | */ |
111 | @Deprecated |
112 | public static Seff_reliabilityPackage getPackage() { |
113 | return Seff_reliabilityPackage.eINSTANCE; |
114 | } |
115 | |
116 | } //Seff_reliabilityFactoryImpl |