1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.impl; |
8 | |
9 | import de.uka.ipd.sdq.pcm.resultdecorator.resourceenvironmentdecorator.*; |
10 | |
11 | import org.eclipse.emf.ecore.EClass; |
12 | import org.eclipse.emf.ecore.EObject; |
13 | import org.eclipse.emf.ecore.EPackage; |
14 | |
15 | import org.eclipse.emf.ecore.impl.EFactoryImpl; |
16 | |
17 | import 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 | */ |
25 | public class ResourceenvironmentdecoratorFactoryImpl extends EFactoryImpl implements ResourceenvironmentdecoratorFactory { |
26 | /** |
27 | * Creates the default factory implementation. |
28 | * <!-- begin-user-doc --> |
29 | * <!-- end-user-doc --> |
30 | * @generated |
31 | */ |
32 | public static ResourceenvironmentdecoratorFactory init() { |
33 | try { |
34 | ResourceenvironmentdecoratorFactory theResourceenvironmentdecoratorFactory = (ResourceenvironmentdecoratorFactory)EPackage.Registry.INSTANCE.getEFactory("http://sdq.ipd.uka.de/ResultDecorator/ResourceEnvironment/1.0"); |
35 | if (theResourceenvironmentdecoratorFactory != null) { |
36 | return theResourceenvironmentdecoratorFactory; |
37 | } |
38 | } |
39 | catch (Exception exception) { |
40 | EcorePlugin.INSTANCE.log(exception); |
41 | } |
42 | return new ResourceenvironmentdecoratorFactoryImpl(); |
43 | } |
44 | |
45 | /** |
46 | * Creates an instance of the factory. |
47 | * <!-- begin-user-doc --> |
48 | * <!-- end-user-doc --> |
49 | * @generated |
50 | */ |
51 | public ResourceenvironmentdecoratorFactoryImpl() { |
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 ResourceenvironmentdecoratorPackage.LINKING_RESOURCE_RESULTS: return createLinkingResourceResults(); |
64 | case ResourceenvironmentdecoratorPackage.RESOURCE_CONTAINER_RESULTS: return createResourceContainerResults(); |
65 | case ResourceenvironmentdecoratorPackage.PROCESSING_RESOURCE_SPECIFICATION_RESULT: return createProcessingResourceSpecificationResult(); |
66 | case ResourceenvironmentdecoratorPackage.PASSIVE_RESOURCE_RESULT: return createPassiveResourceResult(); |
67 | default: |
68 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); |
69 | } |
70 | } |
71 | |
72 | /** |
73 | * <!-- begin-user-doc --> |
74 | * <!-- end-user-doc --> |
75 | * @generated |
76 | */ |
77 | public LinkingResourceResults createLinkingResourceResults() { |
78 | LinkingResourceResultsImpl linkingResourceResults = new LinkingResourceResultsImpl(); |
79 | return linkingResourceResults; |
80 | } |
81 | |
82 | /** |
83 | * <!-- begin-user-doc --> |
84 | * <!-- end-user-doc --> |
85 | * @generated |
86 | */ |
87 | public ResourceContainerResults createResourceContainerResults() { |
88 | ResourceContainerResultsImpl resourceContainerResults = new ResourceContainerResultsImpl(); |
89 | return resourceContainerResults; |
90 | } |
91 | |
92 | /** |
93 | * <!-- begin-user-doc --> |
94 | * <!-- end-user-doc --> |
95 | * @generated |
96 | */ |
97 | public ProcessingResourceSpecificationResult createProcessingResourceSpecificationResult() { |
98 | ProcessingResourceSpecificationResultImpl processingResourceSpecificationResult = new ProcessingResourceSpecificationResultImpl(); |
99 | return processingResourceSpecificationResult; |
100 | } |
101 | |
102 | /** |
103 | * <!-- begin-user-doc --> |
104 | * <!-- end-user-doc --> |
105 | * @generated |
106 | */ |
107 | public PassiveResourceResult createPassiveResourceResult() { |
108 | PassiveResourceResultImpl passiveResourceResult = new PassiveResourceResultImpl(); |
109 | return passiveResourceResult; |
110 | } |
111 | |
112 | /** |
113 | * <!-- begin-user-doc --> |
114 | * <!-- end-user-doc --> |
115 | * @generated |
116 | */ |
117 | public ResourceenvironmentdecoratorPackage getResourceenvironmentdecoratorPackage() { |
118 | return (ResourceenvironmentdecoratorPackage)getEPackage(); |
119 | } |
120 | |
121 | /** |
122 | * <!-- begin-user-doc --> |
123 | * <!-- end-user-doc --> |
124 | * @deprecated |
125 | * @generated |
126 | */ |
127 | @Deprecated |
128 | public static ResourceenvironmentdecoratorPackage getPackage() { |
129 | return ResourceenvironmentdecoratorPackage.eINSTANCE; |
130 | } |
131 | |
132 | } //ResourceenvironmentdecoratorFactoryImpl |