diff options
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguageFactoryImpl.java')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguageFactoryImpl.java | 985 |
1 files changed, 985 insertions, 0 deletions
diff --git a/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguageFactoryImpl.java b/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguageFactoryImpl.java new file mode 100644 index 00000000..96e741b9 --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language.model/src-gen/org/eclipse/viatra/solver/language/solverLanguage/impl/SolverLanguageFactoryImpl.java | |||
@@ -0,0 +1,985 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package org.eclipse.viatra.solver.language.solverLanguage.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.solverLanguage.*; | ||
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 SolverLanguageFactoryImpl extends EFactoryImpl implements SolverLanguageFactory { | ||
23 | /** | ||
24 | * Creates the default factory implementation. | ||
25 | * <!-- begin-user-doc --> | ||
26 | * <!-- end-user-doc --> | ||
27 | * @generated | ||
28 | */ | ||
29 | public static SolverLanguageFactory init() { | ||
30 | try { | ||
31 | SolverLanguageFactory theSolverLanguageFactory = (SolverLanguageFactory) EPackage.Registry.INSTANCE | ||
32 | .getEFactory(SolverLanguagePackage.eNS_URI); | ||
33 | if (theSolverLanguageFactory != null) { | ||
34 | return theSolverLanguageFactory; | ||
35 | } | ||
36 | } catch (Exception exception) { | ||
37 | EcorePlugin.INSTANCE.log(exception); | ||
38 | } | ||
39 | return new SolverLanguageFactoryImpl(); | ||
40 | } | ||
41 | |||
42 | /** | ||
43 | * Creates an instance of the factory. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | public SolverLanguageFactoryImpl() { | ||
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 SolverLanguagePackage.PATH_COMPONENT: | ||
61 | return createPathComponent(); | ||
62 | case SolverLanguagePackage.CALL: | ||
63 | return createCall(); | ||
64 | case SolverLanguagePackage.REFERENCE: | ||
65 | return createReference(); | ||
66 | case SolverLanguagePackage.ARGUMENT_LIST: | ||
67 | return createArgumentList(); | ||
68 | case SolverLanguagePackage.EXPRESSION_ARGUMENT: | ||
69 | return createExpressionArgument(); | ||
70 | case SolverLanguagePackage.STAR_ARGUMENT: | ||
71 | return createStarArgument(); | ||
72 | case SolverLanguagePackage.VARIABLE: | ||
73 | return createVariable(); | ||
74 | case SolverLanguagePackage.UNARY_EXPRESSION: | ||
75 | return createUnaryExpression(); | ||
76 | case SolverLanguagePackage.BINARY_EXPRESSION: | ||
77 | return createBinaryExpression(); | ||
78 | case SolverLanguagePackage.DISJUNCTION: | ||
79 | return createDisjunction(); | ||
80 | case SolverLanguagePackage.CONJUNCTION: | ||
81 | return createConjunction(); | ||
82 | case SolverLanguagePackage.CONDITIONAL_EXPRESSION: | ||
83 | return createConditionalExpression(); | ||
84 | case SolverLanguagePackage.SWITCH: | ||
85 | return createSwitch(); | ||
86 | case SolverLanguagePackage.CASE: | ||
87 | return createCase(); | ||
88 | case SolverLanguagePackage.LET_EXPRESSION: | ||
89 | return createLetExpression(); | ||
90 | case SolverLanguagePackage.LET_BINDING: | ||
91 | return createLetBinding(); | ||
92 | case SolverLanguagePackage.INT_LITERAL: | ||
93 | return createIntLiteral(); | ||
94 | case SolverLanguagePackage.REAL_LITERAL: | ||
95 | return createRealLiteral(); | ||
96 | case SolverLanguagePackage.STRING_LITERAL: | ||
97 | return createStringLiteral(); | ||
98 | case SolverLanguagePackage.LOGIC_LITERAL: | ||
99 | return createLogicLiteral(); | ||
100 | case SolverLanguagePackage.EMPTY_LITERAL: | ||
101 | return createEmptyLiteral(); | ||
102 | case SolverLanguagePackage.CAST_EXPRESSION: | ||
103 | return createCastExpression(); | ||
104 | case SolverLanguagePackage.COUNT: | ||
105 | return createCount(); | ||
106 | case SolverLanguagePackage.AGGREGATION: | ||
107 | return createAggregation(); | ||
108 | case SolverLanguagePackage.FORALL: | ||
109 | return createForall(); | ||
110 | case SolverLanguagePackage.TYPE_REFERENCE: | ||
111 | return createTypeReference(); | ||
112 | case SolverLanguagePackage.INFINITY_LITERAL: | ||
113 | return createInfinityLiteral(); | ||
114 | case SolverLanguagePackage.INTERVAL: | ||
115 | return createInterval(); | ||
116 | case SolverLanguagePackage.BASE_RELATION: | ||
117 | return createBaseRelation(); | ||
118 | case SolverLanguagePackage.PREDICATE: | ||
119 | return createPredicate(); | ||
120 | case SolverLanguagePackage.DATATYPE: | ||
121 | return createDatatype(); | ||
122 | case SolverLanguagePackage.METRIC: | ||
123 | return createMetric(); | ||
124 | case SolverLanguagePackage.OPERATOR: | ||
125 | return createOperator(); | ||
126 | case SolverLanguagePackage.NODE: | ||
127 | return createNode(); | ||
128 | case SolverLanguagePackage.PREDICATE_DEFINITION: | ||
129 | return createPredicateDefinition(); | ||
130 | case SolverLanguagePackage.FUNCTION_DEFINITION: | ||
131 | return createFunctionDefinition(); | ||
132 | case SolverLanguagePackage.EXTERN_PREDICATE_DECLARATION: | ||
133 | return createExternPredicateDeclaration(); | ||
134 | case SolverLanguagePackage.EXTERN_FUNCTION_DECLARATION: | ||
135 | return createExternFunctionDeclaration(); | ||
136 | case SolverLanguagePackage.EXTERN_AGGREGATION_OPERATOR_DECLARATION: | ||
137 | return createExternAggregationOperatorDeclaration(); | ||
138 | case SolverLanguagePackage.EXTERN_DATATYPE_DECLARATION: | ||
139 | return createExternDatatypeDeclaration(); | ||
140 | case SolverLanguagePackage.CLASS_DECLARATION: | ||
141 | return createClassDeclaration(); | ||
142 | case SolverLanguagePackage.ENUM_DECLARATION: | ||
143 | return createEnumDeclaration(); | ||
144 | case SolverLanguagePackage.ENUM_LITERAL: | ||
145 | return createEnumLiteral(); | ||
146 | case SolverLanguagePackage.FIELD: | ||
147 | return createField(); | ||
148 | case SolverLanguagePackage.DEFAULT_ASSERTION: | ||
149 | return createDefaultAssertion(); | ||
150 | case SolverLanguagePackage.ASSERTION: | ||
151 | return createAssertion(); | ||
152 | case SolverLanguagePackage.UNBOUNDED_MULTIPLICITY: | ||
153 | return createUnboundedMultiplicity(); | ||
154 | case SolverLanguagePackage.EXACT_MULTIPLICITY: | ||
155 | return createExactMultiplicity(); | ||
156 | case SolverLanguagePackage.BOUNDED_MULTIPLICITY: | ||
157 | return createBoundedMultiplicity(); | ||
158 | case SolverLanguagePackage.AGGREGATION_OPERATOR: | ||
159 | return createAggregationOperator(); | ||
160 | case SolverLanguagePackage.PROBLEM: | ||
161 | return createProblem(); | ||
162 | case SolverLanguagePackage.TYPED_STAR_ARGUMENT: | ||
163 | return createTypedStarArgument(); | ||
164 | case SolverLanguagePackage.TYPED_VARIABLE_ARGUMENT: | ||
165 | return createTypedVariableArgument(); | ||
166 | case SolverLanguagePackage.UNNAMED_ERROR_PREDICATE_DEFINTION: | ||
167 | return createUnnamedErrorPredicateDefintion(); | ||
168 | case SolverLanguagePackage.OBJECTIVE_DECLARATION: | ||
169 | return createObjectiveDeclaration(); | ||
170 | case SolverLanguagePackage.SCOPE_DECLARATION: | ||
171 | return createScopeDeclaration(); | ||
172 | case SolverLanguagePackage.EXACT_SCOPE: | ||
173 | return createExactScope(); | ||
174 | case SolverLanguagePackage.BOUNDED_SCOPE: | ||
175 | return createBoundedScope(); | ||
176 | case SolverLanguagePackage.LOWER_BOUNDED_SCOPE: | ||
177 | return createLowerBoundedScope(); | ||
178 | case SolverLanguagePackage.NAMESPACE_IMPORT: | ||
179 | return createNamespaceImport(); | ||
180 | case SolverLanguagePackage.IMPORT: | ||
181 | return createImport(); | ||
182 | case SolverLanguagePackage.URI_IMPORT: | ||
183 | return createUriImport(); | ||
184 | default: | ||
185 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
186 | } | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public Object createFromString(EDataType eDataType, String initialValue) { | ||
196 | switch (eDataType.getClassifierID()) { | ||
197 | case SolverLanguagePackage.UNARY_OPERATOR: | ||
198 | return createUnaryOperatorFromString(eDataType, initialValue); | ||
199 | case SolverLanguagePackage.BINARY_OPERATOR: | ||
200 | return createBinaryOperatorFromString(eDataType, initialValue); | ||
201 | case SolverLanguagePackage.LOGIC_VALUE: | ||
202 | return createLogicValueFromString(eDataType, initialValue); | ||
203 | case SolverLanguagePackage.OBJECTIVE_KIND: | ||
204 | return createObjectiveKindFromString(eDataType, initialValue); | ||
205 | case SolverLanguagePackage.ATTRIBUTE_KIND: | ||
206 | return createAttributeKindFromString(eDataType, initialValue); | ||
207 | default: | ||
208 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
209 | } | ||
210 | } | ||
211 | |||
212 | /** | ||
213 | * <!-- begin-user-doc --> | ||
214 | * <!-- end-user-doc --> | ||
215 | * @generated | ||
216 | */ | ||
217 | @Override | ||
218 | public String convertToString(EDataType eDataType, Object instanceValue) { | ||
219 | switch (eDataType.getClassifierID()) { | ||
220 | case SolverLanguagePackage.UNARY_OPERATOR: | ||
221 | return convertUnaryOperatorToString(eDataType, instanceValue); | ||
222 | case SolverLanguagePackage.BINARY_OPERATOR: | ||
223 | return convertBinaryOperatorToString(eDataType, instanceValue); | ||
224 | case SolverLanguagePackage.LOGIC_VALUE: | ||
225 | return convertLogicValueToString(eDataType, instanceValue); | ||
226 | case SolverLanguagePackage.OBJECTIVE_KIND: | ||
227 | return convertObjectiveKindToString(eDataType, instanceValue); | ||
228 | case SolverLanguagePackage.ATTRIBUTE_KIND: | ||
229 | return convertAttributeKindToString(eDataType, instanceValue); | ||
230 | default: | ||
231 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
232 | } | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | public PathComponent createPathComponent() { | ||
241 | PathComponentImpl pathComponent = new PathComponentImpl(); | ||
242 | return pathComponent; | ||
243 | } | ||
244 | |||
245 | /** | ||
246 | * <!-- begin-user-doc --> | ||
247 | * <!-- end-user-doc --> | ||
248 | * @generated | ||
249 | */ | ||
250 | public Call createCall() { | ||
251 | CallImpl call = new CallImpl(); | ||
252 | return call; | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | public Reference createReference() { | ||
261 | ReferenceImpl reference = new ReferenceImpl(); | ||
262 | return reference; | ||
263 | } | ||
264 | |||
265 | /** | ||
266 | * <!-- begin-user-doc --> | ||
267 | * <!-- end-user-doc --> | ||
268 | * @generated | ||
269 | */ | ||
270 | public ArgumentList createArgumentList() { | ||
271 | ArgumentListImpl argumentList = new ArgumentListImpl(); | ||
272 | return argumentList; | ||
273 | } | ||
274 | |||
275 | /** | ||
276 | * <!-- begin-user-doc --> | ||
277 | * <!-- end-user-doc --> | ||
278 | * @generated | ||
279 | */ | ||
280 | public ExpressionArgument createExpressionArgument() { | ||
281 | ExpressionArgumentImpl expressionArgument = new ExpressionArgumentImpl(); | ||
282 | return expressionArgument; | ||
283 | } | ||
284 | |||
285 | /** | ||
286 | * <!-- begin-user-doc --> | ||
287 | * <!-- end-user-doc --> | ||
288 | * @generated | ||
289 | */ | ||
290 | public StarArgument createStarArgument() { | ||
291 | StarArgumentImpl starArgument = new StarArgumentImpl(); | ||
292 | return starArgument; | ||
293 | } | ||
294 | |||
295 | /** | ||
296 | * <!-- begin-user-doc --> | ||
297 | * <!-- end-user-doc --> | ||
298 | * @generated | ||
299 | */ | ||
300 | public Variable createVariable() { | ||
301 | VariableImpl variable = new VariableImpl(); | ||
302 | return variable; | ||
303 | } | ||
304 | |||
305 | /** | ||
306 | * <!-- begin-user-doc --> | ||
307 | * <!-- end-user-doc --> | ||
308 | * @generated | ||
309 | */ | ||
310 | public UnaryExpression createUnaryExpression() { | ||
311 | UnaryExpressionImpl unaryExpression = new UnaryExpressionImpl(); | ||
312 | return unaryExpression; | ||
313 | } | ||
314 | |||
315 | /** | ||
316 | * <!-- begin-user-doc --> | ||
317 | * <!-- end-user-doc --> | ||
318 | * @generated | ||
319 | */ | ||
320 | public BinaryExpression createBinaryExpression() { | ||
321 | BinaryExpressionImpl binaryExpression = new BinaryExpressionImpl(); | ||
322 | return binaryExpression; | ||
323 | } | ||
324 | |||
325 | /** | ||
326 | * <!-- begin-user-doc --> | ||
327 | * <!-- end-user-doc --> | ||
328 | * @generated | ||
329 | */ | ||
330 | public Disjunction createDisjunction() { | ||
331 | DisjunctionImpl disjunction = new DisjunctionImpl(); | ||
332 | return disjunction; | ||
333 | } | ||
334 | |||
335 | /** | ||
336 | * <!-- begin-user-doc --> | ||
337 | * <!-- end-user-doc --> | ||
338 | * @generated | ||
339 | */ | ||
340 | public Conjunction createConjunction() { | ||
341 | ConjunctionImpl conjunction = new ConjunctionImpl(); | ||
342 | return conjunction; | ||
343 | } | ||
344 | |||
345 | /** | ||
346 | * <!-- begin-user-doc --> | ||
347 | * <!-- end-user-doc --> | ||
348 | * @generated | ||
349 | */ | ||
350 | public ConditionalExpression createConditionalExpression() { | ||
351 | ConditionalExpressionImpl conditionalExpression = new ConditionalExpressionImpl(); | ||
352 | return conditionalExpression; | ||
353 | } | ||
354 | |||
355 | /** | ||
356 | * <!-- begin-user-doc --> | ||
357 | * <!-- end-user-doc --> | ||
358 | * @generated | ||
359 | */ | ||
360 | public Switch createSwitch() { | ||
361 | SwitchImpl switch_ = new SwitchImpl(); | ||
362 | return switch_; | ||
363 | } | ||
364 | |||
365 | /** | ||
366 | * <!-- begin-user-doc --> | ||
367 | * <!-- end-user-doc --> | ||
368 | * @generated | ||
369 | */ | ||
370 | public Case createCase() { | ||
371 | CaseImpl case_ = new CaseImpl(); | ||
372 | return case_; | ||
373 | } | ||
374 | |||
375 | /** | ||
376 | * <!-- begin-user-doc --> | ||
377 | * <!-- end-user-doc --> | ||
378 | * @generated | ||
379 | */ | ||
380 | public LetExpression createLetExpression() { | ||
381 | LetExpressionImpl letExpression = new LetExpressionImpl(); | ||
382 | return letExpression; | ||
383 | } | ||
384 | |||
385 | /** | ||
386 | * <!-- begin-user-doc --> | ||
387 | * <!-- end-user-doc --> | ||
388 | * @generated | ||
389 | */ | ||
390 | public LetBinding createLetBinding() { | ||
391 | LetBindingImpl letBinding = new LetBindingImpl(); | ||
392 | return letBinding; | ||
393 | } | ||
394 | |||
395 | /** | ||
396 | * <!-- begin-user-doc --> | ||
397 | * <!-- end-user-doc --> | ||
398 | * @generated | ||
399 | */ | ||
400 | public IntLiteral createIntLiteral() { | ||
401 | IntLiteralImpl intLiteral = new IntLiteralImpl(); | ||
402 | return intLiteral; | ||
403 | } | ||
404 | |||
405 | /** | ||
406 | * <!-- begin-user-doc --> | ||
407 | * <!-- end-user-doc --> | ||
408 | * @generated | ||
409 | */ | ||
410 | public RealLiteral createRealLiteral() { | ||
411 | RealLiteralImpl realLiteral = new RealLiteralImpl(); | ||
412 | return realLiteral; | ||
413 | } | ||
414 | |||
415 | /** | ||
416 | * <!-- begin-user-doc --> | ||
417 | * <!-- end-user-doc --> | ||
418 | * @generated | ||
419 | */ | ||
420 | public StringLiteral createStringLiteral() { | ||
421 | StringLiteralImpl stringLiteral = new StringLiteralImpl(); | ||
422 | return stringLiteral; | ||
423 | } | ||
424 | |||
425 | /** | ||
426 | * <!-- begin-user-doc --> | ||
427 | * <!-- end-user-doc --> | ||
428 | * @generated | ||
429 | */ | ||
430 | public LogicLiteral createLogicLiteral() { | ||
431 | LogicLiteralImpl logicLiteral = new LogicLiteralImpl(); | ||
432 | return logicLiteral; | ||
433 | } | ||
434 | |||
435 | /** | ||
436 | * <!-- begin-user-doc --> | ||
437 | * <!-- end-user-doc --> | ||
438 | * @generated | ||
439 | */ | ||
440 | public EmptyLiteral createEmptyLiteral() { | ||
441 | EmptyLiteralImpl emptyLiteral = new EmptyLiteralImpl(); | ||
442 | return emptyLiteral; | ||
443 | } | ||
444 | |||
445 | /** | ||
446 | * <!-- begin-user-doc --> | ||
447 | * <!-- end-user-doc --> | ||
448 | * @generated | ||
449 | */ | ||
450 | public CastExpression createCastExpression() { | ||
451 | CastExpressionImpl castExpression = new CastExpressionImpl(); | ||
452 | return castExpression; | ||
453 | } | ||
454 | |||
455 | /** | ||
456 | * <!-- begin-user-doc --> | ||
457 | * <!-- end-user-doc --> | ||
458 | * @generated | ||
459 | */ | ||
460 | public Count createCount() { | ||
461 | CountImpl count = new CountImpl(); | ||
462 | return count; | ||
463 | } | ||
464 | |||
465 | /** | ||
466 | * <!-- begin-user-doc --> | ||
467 | * <!-- end-user-doc --> | ||
468 | * @generated | ||
469 | */ | ||
470 | public Aggregation createAggregation() { | ||
471 | AggregationImpl aggregation = new AggregationImpl(); | ||
472 | return aggregation; | ||
473 | } | ||
474 | |||
475 | /** | ||
476 | * <!-- begin-user-doc --> | ||
477 | * <!-- end-user-doc --> | ||
478 | * @generated | ||
479 | */ | ||
480 | public Forall createForall() { | ||
481 | ForallImpl forall = new ForallImpl(); | ||
482 | return forall; | ||
483 | } | ||
484 | |||
485 | /** | ||
486 | * <!-- begin-user-doc --> | ||
487 | * <!-- end-user-doc --> | ||
488 | * @generated | ||
489 | */ | ||
490 | public TypeReference createTypeReference() { | ||
491 | TypeReferenceImpl typeReference = new TypeReferenceImpl(); | ||
492 | return typeReference; | ||
493 | } | ||
494 | |||
495 | /** | ||
496 | * <!-- begin-user-doc --> | ||
497 | * <!-- end-user-doc --> | ||
498 | * @generated | ||
499 | */ | ||
500 | public InfinityLiteral createInfinityLiteral() { | ||
501 | InfinityLiteralImpl infinityLiteral = new InfinityLiteralImpl(); | ||
502 | return infinityLiteral; | ||
503 | } | ||
504 | |||
505 | /** | ||
506 | * <!-- begin-user-doc --> | ||
507 | * <!-- end-user-doc --> | ||
508 | * @generated | ||
509 | */ | ||
510 | public Interval createInterval() { | ||
511 | IntervalImpl interval = new IntervalImpl(); | ||
512 | return interval; | ||
513 | } | ||
514 | |||
515 | /** | ||
516 | * <!-- begin-user-doc --> | ||
517 | * <!-- end-user-doc --> | ||
518 | * @generated | ||
519 | */ | ||
520 | public BaseRelation createBaseRelation() { | ||
521 | BaseRelationImpl baseRelation = new BaseRelationImpl(); | ||
522 | return baseRelation; | ||
523 | } | ||
524 | |||
525 | /** | ||
526 | * <!-- begin-user-doc --> | ||
527 | * <!-- end-user-doc --> | ||
528 | * @generated | ||
529 | */ | ||
530 | public Predicate createPredicate() { | ||
531 | PredicateImpl predicate = new PredicateImpl(); | ||
532 | return predicate; | ||
533 | } | ||
534 | |||
535 | /** | ||
536 | * <!-- begin-user-doc --> | ||
537 | * <!-- end-user-doc --> | ||
538 | * @generated | ||
539 | */ | ||
540 | public Datatype createDatatype() { | ||
541 | DatatypeImpl datatype = new DatatypeImpl(); | ||
542 | return datatype; | ||
543 | } | ||
544 | |||
545 | /** | ||
546 | * <!-- begin-user-doc --> | ||
547 | * <!-- end-user-doc --> | ||
548 | * @generated | ||
549 | */ | ||
550 | public Metric createMetric() { | ||
551 | MetricImpl metric = new MetricImpl(); | ||
552 | return metric; | ||
553 | } | ||
554 | |||
555 | /** | ||
556 | * <!-- begin-user-doc --> | ||
557 | * <!-- end-user-doc --> | ||
558 | * @generated | ||
559 | */ | ||
560 | public Operator createOperator() { | ||
561 | OperatorImpl operator = new OperatorImpl(); | ||
562 | return operator; | ||
563 | } | ||
564 | |||
565 | /** | ||
566 | * <!-- begin-user-doc --> | ||
567 | * <!-- end-user-doc --> | ||
568 | * @generated | ||
569 | */ | ||
570 | public Node createNode() { | ||
571 | NodeImpl node = new NodeImpl(); | ||
572 | return node; | ||
573 | } | ||
574 | |||
575 | /** | ||
576 | * <!-- begin-user-doc --> | ||
577 | * <!-- end-user-doc --> | ||
578 | * @generated | ||
579 | */ | ||
580 | public PredicateDefinition createPredicateDefinition() { | ||
581 | PredicateDefinitionImpl predicateDefinition = new PredicateDefinitionImpl(); | ||
582 | return predicateDefinition; | ||
583 | } | ||
584 | |||
585 | /** | ||
586 | * <!-- begin-user-doc --> | ||
587 | * <!-- end-user-doc --> | ||
588 | * @generated | ||
589 | */ | ||
590 | public FunctionDefinition createFunctionDefinition() { | ||
591 | FunctionDefinitionImpl functionDefinition = new FunctionDefinitionImpl(); | ||
592 | return functionDefinition; | ||
593 | } | ||
594 | |||
595 | /** | ||
596 | * <!-- begin-user-doc --> | ||
597 | * <!-- end-user-doc --> | ||
598 | * @generated | ||
599 | */ | ||
600 | public ExternPredicateDeclaration createExternPredicateDeclaration() { | ||
601 | ExternPredicateDeclarationImpl externPredicateDeclaration = new ExternPredicateDeclarationImpl(); | ||
602 | return externPredicateDeclaration; | ||
603 | } | ||
604 | |||
605 | /** | ||
606 | * <!-- begin-user-doc --> | ||
607 | * <!-- end-user-doc --> | ||
608 | * @generated | ||
609 | */ | ||
610 | public ExternFunctionDeclaration createExternFunctionDeclaration() { | ||
611 | ExternFunctionDeclarationImpl externFunctionDeclaration = new ExternFunctionDeclarationImpl(); | ||
612 | return externFunctionDeclaration; | ||
613 | } | ||
614 | |||
615 | /** | ||
616 | * <!-- begin-user-doc --> | ||
617 | * <!-- end-user-doc --> | ||
618 | * @generated | ||
619 | */ | ||
620 | public ExternAggregationOperatorDeclaration createExternAggregationOperatorDeclaration() { | ||
621 | ExternAggregationOperatorDeclarationImpl externAggregationOperatorDeclaration = new ExternAggregationOperatorDeclarationImpl(); | ||
622 | return externAggregationOperatorDeclaration; | ||
623 | } | ||
624 | |||
625 | /** | ||
626 | * <!-- begin-user-doc --> | ||
627 | * <!-- end-user-doc --> | ||
628 | * @generated | ||
629 | */ | ||
630 | public ExternDatatypeDeclaration createExternDatatypeDeclaration() { | ||
631 | ExternDatatypeDeclarationImpl externDatatypeDeclaration = new ExternDatatypeDeclarationImpl(); | ||
632 | return externDatatypeDeclaration; | ||
633 | } | ||
634 | |||
635 | /** | ||
636 | * <!-- begin-user-doc --> | ||
637 | * <!-- end-user-doc --> | ||
638 | * @generated | ||
639 | */ | ||
640 | public ClassDeclaration createClassDeclaration() { | ||
641 | ClassDeclarationImpl classDeclaration = new ClassDeclarationImpl(); | ||
642 | return classDeclaration; | ||
643 | } | ||
644 | |||
645 | /** | ||
646 | * <!-- begin-user-doc --> | ||
647 | * <!-- end-user-doc --> | ||
648 | * @generated | ||
649 | */ | ||
650 | public EnumDeclaration createEnumDeclaration() { | ||
651 | EnumDeclarationImpl enumDeclaration = new EnumDeclarationImpl(); | ||
652 | return enumDeclaration; | ||
653 | } | ||
654 | |||
655 | /** | ||
656 | * <!-- begin-user-doc --> | ||
657 | * <!-- end-user-doc --> | ||
658 | * @generated | ||
659 | */ | ||
660 | public EnumLiteral createEnumLiteral() { | ||
661 | EnumLiteralImpl enumLiteral = new EnumLiteralImpl(); | ||
662 | return enumLiteral; | ||
663 | } | ||
664 | |||
665 | /** | ||
666 | * <!-- begin-user-doc --> | ||
667 | * <!-- end-user-doc --> | ||
668 | * @generated | ||
669 | */ | ||
670 | public Field createField() { | ||
671 | FieldImpl field = new FieldImpl(); | ||
672 | return field; | ||
673 | } | ||
674 | |||
675 | /** | ||
676 | * <!-- begin-user-doc --> | ||
677 | * <!-- end-user-doc --> | ||
678 | * @generated | ||
679 | */ | ||
680 | public DefaultAssertion createDefaultAssertion() { | ||
681 | DefaultAssertionImpl defaultAssertion = new DefaultAssertionImpl(); | ||
682 | return defaultAssertion; | ||
683 | } | ||
684 | |||
685 | /** | ||
686 | * <!-- begin-user-doc --> | ||
687 | * <!-- end-user-doc --> | ||
688 | * @generated | ||
689 | */ | ||
690 | public Assertion createAssertion() { | ||
691 | AssertionImpl assertion = new AssertionImpl(); | ||
692 | return assertion; | ||
693 | } | ||
694 | |||
695 | /** | ||
696 | * <!-- begin-user-doc --> | ||
697 | * <!-- end-user-doc --> | ||
698 | * @generated | ||
699 | */ | ||
700 | public UnboundedMultiplicity createUnboundedMultiplicity() { | ||
701 | UnboundedMultiplicityImpl unboundedMultiplicity = new UnboundedMultiplicityImpl(); | ||
702 | return unboundedMultiplicity; | ||
703 | } | ||
704 | |||
705 | /** | ||
706 | * <!-- begin-user-doc --> | ||
707 | * <!-- end-user-doc --> | ||
708 | * @generated | ||
709 | */ | ||
710 | public ExactMultiplicity createExactMultiplicity() { | ||
711 | ExactMultiplicityImpl exactMultiplicity = new ExactMultiplicityImpl(); | ||
712 | return exactMultiplicity; | ||
713 | } | ||
714 | |||
715 | /** | ||
716 | * <!-- begin-user-doc --> | ||
717 | * <!-- end-user-doc --> | ||
718 | * @generated | ||
719 | */ | ||
720 | public BoundedMultiplicity createBoundedMultiplicity() { | ||
721 | BoundedMultiplicityImpl boundedMultiplicity = new BoundedMultiplicityImpl(); | ||
722 | return boundedMultiplicity; | ||
723 | } | ||
724 | |||
725 | /** | ||
726 | * <!-- begin-user-doc --> | ||
727 | * <!-- end-user-doc --> | ||
728 | * @generated | ||
729 | */ | ||
730 | public AggregationOperator createAggregationOperator() { | ||
731 | AggregationOperatorImpl aggregationOperator = new AggregationOperatorImpl(); | ||
732 | return aggregationOperator; | ||
733 | } | ||
734 | |||
735 | /** | ||
736 | * <!-- begin-user-doc --> | ||
737 | * <!-- end-user-doc --> | ||
738 | * @generated | ||
739 | */ | ||
740 | public Problem createProblem() { | ||
741 | ProblemImpl problem = new ProblemImpl(); | ||
742 | return problem; | ||
743 | } | ||
744 | |||
745 | /** | ||
746 | * <!-- begin-user-doc --> | ||
747 | * <!-- end-user-doc --> | ||
748 | * @generated | ||
749 | */ | ||
750 | public TypedStarArgument createTypedStarArgument() { | ||
751 | TypedStarArgumentImpl typedStarArgument = new TypedStarArgumentImpl(); | ||
752 | return typedStarArgument; | ||
753 | } | ||
754 | |||
755 | /** | ||
756 | * <!-- begin-user-doc --> | ||
757 | * <!-- end-user-doc --> | ||
758 | * @generated | ||
759 | */ | ||
760 | public TypedVariableArgument createTypedVariableArgument() { | ||
761 | TypedVariableArgumentImpl typedVariableArgument = new TypedVariableArgumentImpl(); | ||
762 | return typedVariableArgument; | ||
763 | } | ||
764 | |||
765 | /** | ||
766 | * <!-- begin-user-doc --> | ||
767 | * <!-- end-user-doc --> | ||
768 | * @generated | ||
769 | */ | ||
770 | public UnnamedErrorPredicateDefintion createUnnamedErrorPredicateDefintion() { | ||
771 | UnnamedErrorPredicateDefintionImpl unnamedErrorPredicateDefintion = new UnnamedErrorPredicateDefintionImpl(); | ||
772 | return unnamedErrorPredicateDefintion; | ||
773 | } | ||
774 | |||
775 | /** | ||
776 | * <!-- begin-user-doc --> | ||
777 | * <!-- end-user-doc --> | ||
778 | * @generated | ||
779 | */ | ||
780 | public ObjectiveDeclaration createObjectiveDeclaration() { | ||
781 | ObjectiveDeclarationImpl objectiveDeclaration = new ObjectiveDeclarationImpl(); | ||
782 | return objectiveDeclaration; | ||
783 | } | ||
784 | |||
785 | /** | ||
786 | * <!-- begin-user-doc --> | ||
787 | * <!-- end-user-doc --> | ||
788 | * @generated | ||
789 | */ | ||
790 | public ScopeDeclaration createScopeDeclaration() { | ||
791 | ScopeDeclarationImpl scopeDeclaration = new ScopeDeclarationImpl(); | ||
792 | return scopeDeclaration; | ||
793 | } | ||
794 | |||
795 | /** | ||
796 | * <!-- begin-user-doc --> | ||
797 | * <!-- end-user-doc --> | ||
798 | * @generated | ||
799 | */ | ||
800 | public ExactScope createExactScope() { | ||
801 | ExactScopeImpl exactScope = new ExactScopeImpl(); | ||
802 | return exactScope; | ||
803 | } | ||
804 | |||
805 | /** | ||
806 | * <!-- begin-user-doc --> | ||
807 | * <!-- end-user-doc --> | ||
808 | * @generated | ||
809 | */ | ||
810 | public BoundedScope createBoundedScope() { | ||
811 | BoundedScopeImpl boundedScope = new BoundedScopeImpl(); | ||
812 | return boundedScope; | ||
813 | } | ||
814 | |||
815 | /** | ||
816 | * <!-- begin-user-doc --> | ||
817 | * <!-- end-user-doc --> | ||
818 | * @generated | ||
819 | */ | ||
820 | public LowerBoundedScope createLowerBoundedScope() { | ||
821 | LowerBoundedScopeImpl lowerBoundedScope = new LowerBoundedScopeImpl(); | ||
822 | return lowerBoundedScope; | ||
823 | } | ||
824 | |||
825 | /** | ||
826 | * <!-- begin-user-doc --> | ||
827 | * <!-- end-user-doc --> | ||
828 | * @generated | ||
829 | */ | ||
830 | public NamespaceImport createNamespaceImport() { | ||
831 | NamespaceImportImpl namespaceImport = new NamespaceImportImpl(); | ||
832 | return namespaceImport; | ||
833 | } | ||
834 | |||
835 | /** | ||
836 | * <!-- begin-user-doc --> | ||
837 | * <!-- end-user-doc --> | ||
838 | * @generated | ||
839 | */ | ||
840 | public Import createImport() { | ||
841 | ImportImpl import_ = new ImportImpl(); | ||
842 | return import_; | ||
843 | } | ||
844 | |||
845 | /** | ||
846 | * <!-- begin-user-doc --> | ||
847 | * <!-- end-user-doc --> | ||
848 | * @generated | ||
849 | */ | ||
850 | public UriImport createUriImport() { | ||
851 | UriImportImpl uriImport = new UriImportImpl(); | ||
852 | return uriImport; | ||
853 | } | ||
854 | |||
855 | /** | ||
856 | * <!-- begin-user-doc --> | ||
857 | * <!-- end-user-doc --> | ||
858 | * @generated | ||
859 | */ | ||
860 | public UnaryOperator createUnaryOperatorFromString(EDataType eDataType, String initialValue) { | ||
861 | UnaryOperator result = UnaryOperator.get(initialValue); | ||
862 | if (result == null) | ||
863 | throw new IllegalArgumentException( | ||
864 | "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
865 | return result; | ||
866 | } | ||
867 | |||
868 | /** | ||
869 | * <!-- begin-user-doc --> | ||
870 | * <!-- end-user-doc --> | ||
871 | * @generated | ||
872 | */ | ||
873 | public String convertUnaryOperatorToString(EDataType eDataType, Object instanceValue) { | ||
874 | return instanceValue == null ? null : instanceValue.toString(); | ||
875 | } | ||
876 | |||
877 | /** | ||
878 | * <!-- begin-user-doc --> | ||
879 | * <!-- end-user-doc --> | ||
880 | * @generated | ||
881 | */ | ||
882 | public BinaryOperator createBinaryOperatorFromString(EDataType eDataType, String initialValue) { | ||
883 | BinaryOperator result = BinaryOperator.get(initialValue); | ||
884 | if (result == null) | ||
885 | throw new IllegalArgumentException( | ||
886 | "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
887 | return result; | ||
888 | } | ||
889 | |||
890 | /** | ||
891 | * <!-- begin-user-doc --> | ||
892 | * <!-- end-user-doc --> | ||
893 | * @generated | ||
894 | */ | ||
895 | public String convertBinaryOperatorToString(EDataType eDataType, Object instanceValue) { | ||
896 | return instanceValue == null ? null : instanceValue.toString(); | ||
897 | } | ||
898 | |||
899 | /** | ||
900 | * <!-- begin-user-doc --> | ||
901 | * <!-- end-user-doc --> | ||
902 | * @generated | ||
903 | */ | ||
904 | public LogicValue createLogicValueFromString(EDataType eDataType, String initialValue) { | ||
905 | LogicValue result = LogicValue.get(initialValue); | ||
906 | if (result == null) | ||
907 | throw new IllegalArgumentException( | ||
908 | "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
909 | return result; | ||
910 | } | ||
911 | |||
912 | /** | ||
913 | * <!-- begin-user-doc --> | ||
914 | * <!-- end-user-doc --> | ||
915 | * @generated | ||
916 | */ | ||
917 | public String convertLogicValueToString(EDataType eDataType, Object instanceValue) { | ||
918 | return instanceValue == null ? null : instanceValue.toString(); | ||
919 | } | ||
920 | |||
921 | /** | ||
922 | * <!-- begin-user-doc --> | ||
923 | * <!-- end-user-doc --> | ||
924 | * @generated | ||
925 | */ | ||
926 | public ObjectiveKind createObjectiveKindFromString(EDataType eDataType, String initialValue) { | ||
927 | ObjectiveKind result = ObjectiveKind.get(initialValue); | ||
928 | if (result == null) | ||
929 | throw new IllegalArgumentException( | ||
930 | "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
931 | return result; | ||
932 | } | ||
933 | |||
934 | /** | ||
935 | * <!-- begin-user-doc --> | ||
936 | * <!-- end-user-doc --> | ||
937 | * @generated | ||
938 | */ | ||
939 | public String convertObjectiveKindToString(EDataType eDataType, Object instanceValue) { | ||
940 | return instanceValue == null ? null : instanceValue.toString(); | ||
941 | } | ||
942 | |||
943 | /** | ||
944 | * <!-- begin-user-doc --> | ||
945 | * <!-- end-user-doc --> | ||
946 | * @generated | ||
947 | */ | ||
948 | public AttributeKind createAttributeKindFromString(EDataType eDataType, String initialValue) { | ||
949 | AttributeKind result = AttributeKind.get(initialValue); | ||
950 | if (result == null) | ||
951 | throw new IllegalArgumentException( | ||
952 | "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
953 | return result; | ||
954 | } | ||
955 | |||
956 | /** | ||
957 | * <!-- begin-user-doc --> | ||
958 | * <!-- end-user-doc --> | ||
959 | * @generated | ||
960 | */ | ||
961 | public String convertAttributeKindToString(EDataType eDataType, Object instanceValue) { | ||
962 | return instanceValue == null ? null : instanceValue.toString(); | ||
963 | } | ||
964 | |||
965 | /** | ||
966 | * <!-- begin-user-doc --> | ||
967 | * <!-- end-user-doc --> | ||
968 | * @generated | ||
969 | */ | ||
970 | public SolverLanguagePackage getSolverLanguagePackage() { | ||
971 | return (SolverLanguagePackage) getEPackage(); | ||
972 | } | ||
973 | |||
974 | /** | ||
975 | * <!-- begin-user-doc --> | ||
976 | * <!-- end-user-doc --> | ||
977 | * @deprecated | ||
978 | * @generated | ||
979 | */ | ||
980 | @Deprecated | ||
981 | public static SolverLanguagePackage getPackage() { | ||
982 | return SolverLanguagePackage.eINSTANCE; | ||
983 | } | ||
984 | |||
985 | } //SolverLanguageFactoryImpl | ||