diff options
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.transima.fam/ecore-gen/hu/bme/mit/inf/dslreasomer/domains/transima/fam/FunctionalArchitecture/impl/FunctionalArchitectureFactoryImpl.java')
-rw-r--r-- | Domains/hu.bme.mit.inf.dslreasoner.domains.transima.fam/ecore-gen/hu/bme/mit/inf/dslreasomer/domains/transima/fam/FunctionalArchitecture/impl/FunctionalArchitectureFactoryImpl.java | 213 |
1 files changed, 0 insertions, 213 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.transima.fam/ecore-gen/hu/bme/mit/inf/dslreasomer/domains/transima/fam/FunctionalArchitecture/impl/FunctionalArchitectureFactoryImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.transima.fam/ecore-gen/hu/bme/mit/inf/dslreasomer/domains/transima/fam/FunctionalArchitecture/impl/FunctionalArchitectureFactoryImpl.java deleted file mode 100644 index b47f7c58..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.transima.fam/ecore-gen/hu/bme/mit/inf/dslreasomer/domains/transima/fam/FunctionalArchitecture/impl/FunctionalArchitectureFactoryImpl.java +++ /dev/null | |||
@@ -1,213 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasomer.domains.transima.fam.FunctionalArchitecture.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasomer.domains.transima.fam.FunctionalArchitecture.*; | ||
6 | import hu.bme.mit.inf.dslreasomer.domains.transima.fam.FunctionalArchitecture.FunctionalInterface; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.EDataType; | ||
10 | import org.eclipse.emf.ecore.EObject; | ||
11 | import org.eclipse.emf.ecore.EPackage; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.EFactoryImpl; | ||
14 | |||
15 | import org.eclipse.emf.ecore.plugin.EcorePlugin; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model <b>Factory</b>. | ||
20 | * <!-- end-user-doc --> | ||
21 | * @generated | ||
22 | */ | ||
23 | public class FunctionalArchitectureFactoryImpl extends EFactoryImpl implements FunctionalArchitectureFactory { | ||
24 | /** | ||
25 | * Creates the default factory implementation. | ||
26 | * <!-- begin-user-doc --> | ||
27 | * <!-- end-user-doc --> | ||
28 | * @generated | ||
29 | */ | ||
30 | public static FunctionalArchitectureFactory init() { | ||
31 | try { | ||
32 | FunctionalArchitectureFactory theFunctionalArchitectureFactory = (FunctionalArchitectureFactory)EPackage.Registry.INSTANCE.getEFactory(FunctionalArchitecturePackage.eNS_URI); | ||
33 | if (theFunctionalArchitectureFactory != null) { | ||
34 | return theFunctionalArchitectureFactory; | ||
35 | } | ||
36 | } | ||
37 | catch (Exception exception) { | ||
38 | EcorePlugin.INSTANCE.log(exception); | ||
39 | } | ||
40 | return new FunctionalArchitectureFactoryImpl(); | ||
41 | } | ||
42 | |||
43 | /** | ||
44 | * Creates an instance of the factory. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @generated | ||
48 | */ | ||
49 | public FunctionalArchitectureFactoryImpl() { | ||
50 | super(); | ||
51 | } | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | public EObject create(EClass eClass) { | ||
60 | switch (eClass.getClassifierID()) { | ||
61 | case FunctionalArchitecturePackage.FUNCTIONAL_ARCHITECTURE_MODEL: return createFunctionalArchitectureModel(); | ||
62 | case FunctionalArchitecturePackage.FUNCTION: return createFunction(); | ||
63 | case FunctionalArchitecturePackage.FAM_TERMINATOR: return createFAMTerminator(); | ||
64 | case FunctionalArchitecturePackage.INFORMATION_LINK: return createInformationLink(); | ||
65 | case FunctionalArchitecturePackage.FUNCTIONAL_INTERFACE: return createFunctionalInterface(); | ||
66 | case FunctionalArchitecturePackage.FUNCTIONAL_INPUT: return createFunctionalInput(); | ||
67 | case FunctionalArchitecturePackage.FUNCTIONAL_OUTPUT: return createFunctionalOutput(); | ||
68 | default: | ||
69 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
70 | } | ||
71 | } | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | @Override | ||
79 | public Object createFromString(EDataType eDataType, String initialValue) { | ||
80 | switch (eDataType.getClassifierID()) { | ||
81 | case FunctionalArchitecturePackage.FUNCTION_TYPE: | ||
82 | return createFunctionTypeFromString(eDataType, initialValue); | ||
83 | default: | ||
84 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
85 | } | ||
86 | } | ||
87 | |||
88 | /** | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @generated | ||
92 | */ | ||
93 | @Override | ||
94 | public String convertToString(EDataType eDataType, Object instanceValue) { | ||
95 | switch (eDataType.getClassifierID()) { | ||
96 | case FunctionalArchitecturePackage.FUNCTION_TYPE: | ||
97 | return convertFunctionTypeToString(eDataType, instanceValue); | ||
98 | default: | ||
99 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
100 | } | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | public FunctionalArchitectureModel createFunctionalArchitectureModel() { | ||
109 | FunctionalArchitectureModelImpl functionalArchitectureModel = new FunctionalArchitectureModelImpl(); | ||
110 | return functionalArchitectureModel; | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | public Function createFunction() { | ||
119 | FunctionImpl function = new FunctionImpl(); | ||
120 | return function; | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | public FAMTerminator createFAMTerminator() { | ||
129 | FAMTerminatorImpl famTerminator = new FAMTerminatorImpl(); | ||
130 | return famTerminator; | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | public InformationLink createInformationLink() { | ||
139 | InformationLinkImpl informationLink = new InformationLinkImpl(); | ||
140 | return informationLink; | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | public FunctionalInterface createFunctionalInterface() { | ||
149 | FunctionalInterfaceImpl functionalInterface = new FunctionalInterfaceImpl(); | ||
150 | return functionalInterface; | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | public FunctionalInput createFunctionalInput() { | ||
159 | FunctionalInputImpl functionalInput = new FunctionalInputImpl(); | ||
160 | return functionalInput; | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | public FunctionalOutput createFunctionalOutput() { | ||
169 | FunctionalOutputImpl functionalOutput = new FunctionalOutputImpl(); | ||
170 | return functionalOutput; | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @generated | ||
177 | */ | ||
178 | public FunctionType createFunctionTypeFromString(EDataType eDataType, String initialValue) { | ||
179 | FunctionType result = FunctionType.get(initialValue); | ||
180 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
181 | return result; | ||
182 | } | ||
183 | |||
184 | /** | ||
185 | * <!-- begin-user-doc --> | ||
186 | * <!-- end-user-doc --> | ||
187 | * @generated | ||
188 | */ | ||
189 | public String convertFunctionTypeToString(EDataType eDataType, Object instanceValue) { | ||
190 | return instanceValue == null ? null : instanceValue.toString(); | ||
191 | } | ||
192 | |||
193 | /** | ||
194 | * <!-- begin-user-doc --> | ||
195 | * <!-- end-user-doc --> | ||
196 | * @generated | ||
197 | */ | ||
198 | public FunctionalArchitecturePackage getFunctionalArchitecturePackage() { | ||
199 | return (FunctionalArchitecturePackage)getEPackage(); | ||
200 | } | ||
201 | |||
202 | /** | ||
203 | * <!-- begin-user-doc --> | ||
204 | * <!-- end-user-doc --> | ||
205 | * @deprecated | ||
206 | * @generated | ||
207 | */ | ||
208 | @Deprecated | ||
209 | public static FunctionalArchitecturePackage getPackage() { | ||
210 | return FunctionalArchitecturePackage.eINSTANCE; | ||
211 | } | ||
212 | |||
213 | } //FunctionalArchitectureFactoryImpl | ||