diff options
Diffstat (limited to 'language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemFactoryImpl.java')
-rw-r--r-- | language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemFactoryImpl.java | 437 |
1 files changed, 0 insertions, 437 deletions
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemFactoryImpl.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemFactoryImpl.java deleted file mode 100644 index 27da13e2..00000000 --- a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ProblemFactoryImpl.java +++ /dev/null | |||
@@ -1,437 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.model.problem.impl; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EClass; | ||
6 | import org.eclipse.emf.ecore.EDataType; | ||
7 | import org.eclipse.emf.ecore.EObject; | ||
8 | import org.eclipse.emf.ecore.EPackage; | ||
9 | |||
10 | import org.eclipse.emf.ecore.impl.EFactoryImpl; | ||
11 | |||
12 | import org.eclipse.emf.ecore.plugin.EcorePlugin; | ||
13 | |||
14 | import org.eclipse.viatra.solver.language.model.problem.*; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model <b>Factory</b>. | ||
19 | * <!-- end-user-doc --> | ||
20 | * @generated | ||
21 | */ | ||
22 | public class ProblemFactoryImpl extends EFactoryImpl implements ProblemFactory { | ||
23 | /** | ||
24 | * Creates the default factory implementation. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <!-- end-user-doc --> | ||
27 | * @generated | ||
28 | */ | ||
29 | public static ProblemFactory init() { | ||
30 | try { | ||
31 | ProblemFactory theProblemFactory = (ProblemFactory) EPackage.Registry.INSTANCE | ||
32 | .getEFactory(ProblemPackage.eNS_URI); | ||
33 | if (theProblemFactory != null) { | ||
34 | return theProblemFactory; | ||
35 | } | ||
36 | } catch (Exception exception) { | ||
37 | EcorePlugin.INSTANCE.log(exception); | ||
38 | } | ||
39 | return new ProblemFactoryImpl(); | ||
40 | } | ||
41 | |||
42 | /** | ||
43 | * Creates an instance of the factory. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | public ProblemFactoryImpl() { | ||
49 | super(); | ||
50 | } | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | @Override | ||
58 | public EObject create(EClass eClass) { | ||
59 | switch (eClass.getClassifierID()) { | ||
60 | case ProblemPackage.PROBLEM: | ||
61 | return createProblem(); | ||
62 | case ProblemPackage.CLASS_DECLARATION: | ||
63 | return createClassDeclaration(); | ||
64 | case ProblemPackage.REFERENCE_DECLARATION: | ||
65 | return createReferenceDeclaration(); | ||
66 | case ProblemPackage.PREDICATE_DEFINITION: | ||
67 | return createPredicateDefinition(); | ||
68 | case ProblemPackage.PARAMETER: | ||
69 | return createParameter(); | ||
70 | case ProblemPackage.CONJUNCTION: | ||
71 | return createConjunction(); | ||
72 | case ProblemPackage.ATOM: | ||
73 | return createAtom(); | ||
74 | case ProblemPackage.IMPLICIT_VARIABLE: | ||
75 | return createImplicitVariable(); | ||
76 | case ProblemPackage.NEGATIVE_LITERAL: | ||
77 | return createNegativeLiteral(); | ||
78 | case ProblemPackage.ASSERTION: | ||
79 | return createAssertion(); | ||
80 | case ProblemPackage.NODE: | ||
81 | return createNode(); | ||
82 | case ProblemPackage.SCOPE_DECLARATION: | ||
83 | return createScopeDeclaration(); | ||
84 | case ProblemPackage.TYPE_SCOPE: | ||
85 | return createTypeScope(); | ||
86 | case ProblemPackage.RANGE_MULTIPLICITY: | ||
87 | return createRangeMultiplicity(); | ||
88 | case ProblemPackage.EXACT_MULTIPLICITY: | ||
89 | return createExactMultiplicity(); | ||
90 | case ProblemPackage.UNBOUNDED_MULTIPLICITY: | ||
91 | return createUnboundedMultiplicity(); | ||
92 | case ProblemPackage.VARIABLE_OR_NODE_ARGUMENT: | ||
93 | return createVariableOrNodeArgument(); | ||
94 | case ProblemPackage.ENUM_DECLARATION: | ||
95 | return createEnumDeclaration(); | ||
96 | case ProblemPackage.INT_CONSTANT: | ||
97 | return createIntConstant(); | ||
98 | case ProblemPackage.REAL_CONSTANT: | ||
99 | return createRealConstant(); | ||
100 | case ProblemPackage.STRING_CONSTANT: | ||
101 | return createStringConstant(); | ||
102 | case ProblemPackage.CONSTANT_ARGUMENT: | ||
103 | return createConstantArgument(); | ||
104 | case ProblemPackage.NODE_ASSERTION_ARGUMENT: | ||
105 | return createNodeAssertionArgument(); | ||
106 | case ProblemPackage.CONSTANT_ASSERTION_ARGUMENT: | ||
107 | return createConstantAssertionArgument(); | ||
108 | case ProblemPackage.NODE_VALUE_ASSERTION: | ||
109 | return createNodeValueAssertion(); | ||
110 | default: | ||
111 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
112 | } | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @Override | ||
121 | public Object createFromString(EDataType eDataType, String initialValue) { | ||
122 | switch (eDataType.getClassifierID()) { | ||
123 | case ProblemPackage.LOGIC_VALUE: | ||
124 | return createLogicValueFromString(eDataType, initialValue); | ||
125 | default: | ||
126 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
127 | } | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public String convertToString(EDataType eDataType, Object instanceValue) { | ||
137 | switch (eDataType.getClassifierID()) { | ||
138 | case ProblemPackage.LOGIC_VALUE: | ||
139 | return convertLogicValueToString(eDataType, instanceValue); | ||
140 | default: | ||
141 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
142 | } | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | public Problem createProblem() { | ||
151 | ProblemImpl problem = new ProblemImpl(); | ||
152 | return problem; | ||
153 | } | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | public ClassDeclaration createClassDeclaration() { | ||
161 | ClassDeclarationImpl classDeclaration = new ClassDeclarationImpl(); | ||
162 | return classDeclaration; | ||
163 | } | ||
164 | |||
165 | /** | ||
166 | * <!-- begin-user-doc --> | ||
167 | * <!-- end-user-doc --> | ||
168 | * @generated | ||
169 | */ | ||
170 | public ReferenceDeclaration createReferenceDeclaration() { | ||
171 | ReferenceDeclarationImpl referenceDeclaration = new ReferenceDeclarationImpl(); | ||
172 | return referenceDeclaration; | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | public PredicateDefinition createPredicateDefinition() { | ||
181 | PredicateDefinitionImpl predicateDefinition = new PredicateDefinitionImpl(); | ||
182 | return predicateDefinition; | ||
183 | } | ||
184 | |||
185 | /** | ||
186 | * <!-- begin-user-doc --> | ||
187 | * <!-- end-user-doc --> | ||
188 | * @generated | ||
189 | */ | ||
190 | public Parameter createParameter() { | ||
191 | ParameterImpl parameter = new ParameterImpl(); | ||
192 | return parameter; | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * <!-- begin-user-doc --> | ||
197 | * <!-- end-user-doc --> | ||
198 | * @generated | ||
199 | */ | ||
200 | public Conjunction createConjunction() { | ||
201 | ConjunctionImpl conjunction = new ConjunctionImpl(); | ||
202 | return conjunction; | ||
203 | } | ||
204 | |||
205 | /** | ||
206 | * <!-- begin-user-doc --> | ||
207 | * <!-- end-user-doc --> | ||
208 | * @generated | ||
209 | */ | ||
210 | public Atom createAtom() { | ||
211 | AtomImpl atom = new AtomImpl(); | ||
212 | return atom; | ||
213 | } | ||
214 | |||
215 | /** | ||
216 | * <!-- begin-user-doc --> | ||
217 | * <!-- end-user-doc --> | ||
218 | * @generated | ||
219 | */ | ||
220 | public ImplicitVariable createImplicitVariable() { | ||
221 | ImplicitVariableImpl implicitVariable = new ImplicitVariableImpl(); | ||
222 | return implicitVariable; | ||
223 | } | ||
224 | |||
225 | /** | ||
226 | * <!-- begin-user-doc --> | ||
227 | * <!-- end-user-doc --> | ||
228 | * @generated | ||
229 | */ | ||
230 | public NegativeLiteral createNegativeLiteral() { | ||
231 | NegativeLiteralImpl negativeLiteral = new NegativeLiteralImpl(); | ||
232 | return negativeLiteral; | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | public Assertion createAssertion() { | ||
241 | AssertionImpl assertion = new AssertionImpl(); | ||
242 | return assertion; | ||
243 | } | ||
244 | |||
245 | /** | ||
246 | * <!-- begin-user-doc --> | ||
247 | * <!-- end-user-doc --> | ||
248 | * @generated | ||
249 | */ | ||
250 | public Node createNode() { | ||
251 | NodeImpl node = new NodeImpl(); | ||
252 | return node; | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | public ScopeDeclaration createScopeDeclaration() { | ||
261 | ScopeDeclarationImpl scopeDeclaration = new ScopeDeclarationImpl(); | ||
262 | return scopeDeclaration; | ||
263 | } | ||
264 | |||
265 | /** | ||
266 | * <!-- begin-user-doc --> | ||
267 | * <!-- end-user-doc --> | ||
268 | * @generated | ||
269 | */ | ||
270 | public TypeScope createTypeScope() { | ||
271 | TypeScopeImpl typeScope = new TypeScopeImpl(); | ||
272 | return typeScope; | ||
273 | } | ||
274 | |||
275 | /** | ||
276 | * <!-- begin-user-doc --> | ||
277 | * <!-- end-user-doc --> | ||
278 | * @generated | ||
279 | */ | ||
280 | public RangeMultiplicity createRangeMultiplicity() { | ||
281 | RangeMultiplicityImpl rangeMultiplicity = new RangeMultiplicityImpl(); | ||
282 | return rangeMultiplicity; | ||
283 | } | ||
284 | |||
285 | /** | ||
286 | * <!-- begin-user-doc --> | ||
287 | * <!-- end-user-doc --> | ||
288 | * @generated | ||
289 | */ | ||
290 | public ExactMultiplicity createExactMultiplicity() { | ||
291 | ExactMultiplicityImpl exactMultiplicity = new ExactMultiplicityImpl(); | ||
292 | return exactMultiplicity; | ||
293 | } | ||
294 | |||
295 | /** | ||
296 | * <!-- begin-user-doc --> | ||
297 | * <!-- end-user-doc --> | ||
298 | * @generated | ||
299 | */ | ||
300 | public UnboundedMultiplicity createUnboundedMultiplicity() { | ||
301 | UnboundedMultiplicityImpl unboundedMultiplicity = new UnboundedMultiplicityImpl(); | ||
302 | return unboundedMultiplicity; | ||
303 | } | ||
304 | |||
305 | /** | ||
306 | * <!-- begin-user-doc --> | ||
307 | * <!-- end-user-doc --> | ||
308 | * @generated | ||
309 | */ | ||
310 | public VariableOrNodeArgument createVariableOrNodeArgument() { | ||
311 | VariableOrNodeArgumentImpl variableOrNodeArgument = new VariableOrNodeArgumentImpl(); | ||
312 | return variableOrNodeArgument; | ||
313 | } | ||
314 | |||
315 | /** | ||
316 | * <!-- begin-user-doc --> | ||
317 | * <!-- end-user-doc --> | ||
318 | * @generated | ||
319 | */ | ||
320 | public EnumDeclaration createEnumDeclaration() { | ||
321 | EnumDeclarationImpl enumDeclaration = new EnumDeclarationImpl(); | ||
322 | return enumDeclaration; | ||
323 | } | ||
324 | |||
325 | /** | ||
326 | * <!-- begin-user-doc --> | ||
327 | * <!-- end-user-doc --> | ||
328 | * @generated | ||
329 | */ | ||
330 | public IntConstant createIntConstant() { | ||
331 | IntConstantImpl intConstant = new IntConstantImpl(); | ||
332 | return intConstant; | ||
333 | } | ||
334 | |||
335 | /** | ||
336 | * <!-- begin-user-doc --> | ||
337 | * <!-- end-user-doc --> | ||
338 | * @generated | ||
339 | */ | ||
340 | public RealConstant createRealConstant() { | ||
341 | RealConstantImpl realConstant = new RealConstantImpl(); | ||
342 | return realConstant; | ||
343 | } | ||
344 | |||
345 | /** | ||
346 | * <!-- begin-user-doc --> | ||
347 | * <!-- end-user-doc --> | ||
348 | * @generated | ||
349 | */ | ||
350 | public StringConstant createStringConstant() { | ||
351 | StringConstantImpl stringConstant = new StringConstantImpl(); | ||
352 | return stringConstant; | ||
353 | } | ||
354 | |||
355 | /** | ||
356 | * <!-- begin-user-doc --> | ||
357 | * <!-- end-user-doc --> | ||
358 | * @generated | ||
359 | */ | ||
360 | public ConstantArgument createConstantArgument() { | ||
361 | ConstantArgumentImpl constantArgument = new ConstantArgumentImpl(); | ||
362 | return constantArgument; | ||
363 | } | ||
364 | |||
365 | /** | ||
366 | * <!-- begin-user-doc --> | ||
367 | * <!-- end-user-doc --> | ||
368 | * @generated | ||
369 | */ | ||
370 | public NodeAssertionArgument createNodeAssertionArgument() { | ||
371 | NodeAssertionArgumentImpl nodeAssertionArgument = new NodeAssertionArgumentImpl(); | ||
372 | return nodeAssertionArgument; | ||
373 | } | ||
374 | |||
375 | /** | ||
376 | * <!-- begin-user-doc --> | ||
377 | * <!-- end-user-doc --> | ||
378 | * @generated | ||
379 | */ | ||
380 | public ConstantAssertionArgument createConstantAssertionArgument() { | ||
381 | ConstantAssertionArgumentImpl constantAssertionArgument = new ConstantAssertionArgumentImpl(); | ||
382 | return constantAssertionArgument; | ||
383 | } | ||
384 | |||
385 | /** | ||
386 | * <!-- begin-user-doc --> | ||
387 | * <!-- end-user-doc --> | ||
388 | * @generated | ||
389 | */ | ||
390 | public NodeValueAssertion createNodeValueAssertion() { | ||
391 | NodeValueAssertionImpl nodeValueAssertion = new NodeValueAssertionImpl(); | ||
392 | return nodeValueAssertion; | ||
393 | } | ||
394 | |||
395 | /** | ||
396 | * <!-- begin-user-doc --> | ||
397 | * <!-- end-user-doc --> | ||
398 | * @generated | ||
399 | */ | ||
400 | public LogicValue createLogicValueFromString(EDataType eDataType, String initialValue) { | ||
401 | LogicValue result = LogicValue.get(initialValue); | ||
402 | if (result == null) | ||
403 | throw new IllegalArgumentException( | ||
404 | "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
405 | return result; | ||
406 | } | ||
407 | |||
408 | /** | ||
409 | * <!-- begin-user-doc --> | ||
410 | * <!-- end-user-doc --> | ||
411 | * @generated | ||
412 | */ | ||
413 | public String convertLogicValueToString(EDataType eDataType, Object instanceValue) { | ||
414 | return instanceValue == null ? null : instanceValue.toString(); | ||
415 | } | ||
416 | |||
417 | /** | ||
418 | * <!-- begin-user-doc --> | ||
419 | * <!-- end-user-doc --> | ||
420 | * @generated | ||
421 | */ | ||
422 | public ProblemPackage getProblemPackage() { | ||
423 | return (ProblemPackage) getEPackage(); | ||
424 | } | ||
425 | |||
426 | /** | ||
427 | * <!-- begin-user-doc --> | ||
428 | * <!-- end-user-doc --> | ||
429 | * @deprecated | ||
430 | * @generated | ||
431 | */ | ||
432 | @Deprecated | ||
433 | public static ProblemPackage getPackage() { | ||
434 | return ProblemPackage.eINSTANCE; | ||
435 | } | ||
436 | |||
437 | } //ProblemFactoryImpl | ||