aboutsummaryrefslogtreecommitdiffstats
path: root/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/util/ProblemAdapterFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/util/ProblemAdapterFactory.java')
-rw-r--r--language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/util/ProblemAdapterFactory.java594
1 files changed, 594 insertions, 0 deletions
diff --git a/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/util/ProblemAdapterFactory.java b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/util/ProblemAdapterFactory.java
new file mode 100644
index 00000000..3fc3ca75
--- /dev/null
+++ b/language-model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/util/ProblemAdapterFactory.java
@@ -0,0 +1,594 @@
1/**
2 */
3package org.eclipse.viatra.solver.language.model.problem.util;
4
5import org.eclipse.emf.common.notify.Adapter;
6import org.eclipse.emf.common.notify.Notifier;
7
8import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
9
10import org.eclipse.emf.ecore.EObject;
11
12import org.eclipse.viatra.solver.language.model.problem.*;
13
14/**
15 * <!-- begin-user-doc -->
16 * The <b>Adapter Factory</b> for the model.
17 * It provides an adapter <code>createXXX</code> method for each class of the model.
18 * <!-- end-user-doc -->
19 * @see org.eclipse.viatra.solver.language.model.problem.ProblemPackage
20 * @generated
21 */
22public class ProblemAdapterFactory extends AdapterFactoryImpl {
23 /**
24 * The cached model package.
25 * <!-- begin-user-doc -->
26 * <!-- end-user-doc -->
27 * @generated
28 */
29 protected static ProblemPackage modelPackage;
30
31 /**
32 * Creates an instance of the adapter factory.
33 * <!-- begin-user-doc -->
34 * <!-- end-user-doc -->
35 * @generated
36 */
37 public ProblemAdapterFactory() {
38 if (modelPackage == null) {
39 modelPackage = ProblemPackage.eINSTANCE;
40 }
41 }
42
43 /**
44 * Returns whether this factory is applicable for the type of the object.
45 * <!-- begin-user-doc -->
46 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
47 * <!-- end-user-doc -->
48 * @return whether this factory is applicable for the type of the object.
49 * @generated
50 */
51 @Override
52 public boolean isFactoryForType(Object object) {
53 if (object == modelPackage) {
54 return true;
55 }
56 if (object instanceof EObject) {
57 return ((EObject) object).eClass().getEPackage() == modelPackage;
58 }
59 return false;
60 }
61
62 /**
63 * The switch that delegates to the <code>createXXX</code> methods.
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 protected ProblemSwitch<Adapter> modelSwitch = new ProblemSwitch<Adapter>() {
69 @Override
70 public Adapter caseProblem(Problem object) {
71 return createProblemAdapter();
72 }
73
74 @Override
75 public Adapter caseRelation(Relation object) {
76 return createRelationAdapter();
77 }
78
79 @Override
80 public Adapter caseClassDeclaration(ClassDeclaration object) {
81 return createClassDeclarationAdapter();
82 }
83
84 @Override
85 public Adapter caseReferenceDeclaration(ReferenceDeclaration object) {
86 return createReferenceDeclarationAdapter();
87 }
88
89 @Override
90 public Adapter caseNamedElement(NamedElement object) {
91 return createNamedElementAdapter();
92 }
93
94 @Override
95 public Adapter casePredicateDefinition(PredicateDefinition object) {
96 return createPredicateDefinitionAdapter();
97 }
98
99 @Override
100 public Adapter caseParameter(Parameter object) {
101 return createParameterAdapter();
102 }
103
104 @Override
105 public Adapter caseVariable(Variable object) {
106 return createVariableAdapter();
107 }
108
109 @Override
110 public Adapter caseConjunction(Conjunction object) {
111 return createConjunctionAdapter();
112 }
113
114 @Override
115 public Adapter caseLiteral(Literal object) {
116 return createLiteralAdapter();
117 }
118
119 @Override
120 public Adapter caseAtom(Atom object) {
121 return createAtomAdapter();
122 }
123
124 @Override
125 public Adapter caseImplicitVariable(ImplicitVariable object) {
126 return createImplicitVariableAdapter();
127 }
128
129 @Override
130 public Adapter caseNegativeLiteral(NegativeLiteral object) {
131 return createNegativeLiteralAdapter();
132 }
133
134 @Override
135 public Adapter caseExistentialQuantifier(ExistentialQuantifier object) {
136 return createExistentialQuantifierAdapter();
137 }
138
139 @Override
140 public Adapter caseAssertion(Assertion object) {
141 return createAssertionAdapter();
142 }
143
144 @Override
145 public Adapter caseNode(Node object) {
146 return createNodeAdapter();
147 }
148
149 @Override
150 public Adapter caseScopeDeclaration(ScopeDeclaration object) {
151 return createScopeDeclarationAdapter();
152 }
153
154 @Override
155 public Adapter caseStatement(Statement object) {
156 return createStatementAdapter();
157 }
158
159 @Override
160 public Adapter caseTypeScope(TypeScope object) {
161 return createTypeScopeAdapter();
162 }
163
164 @Override
165 public Adapter caseMultiplicity(Multiplicity object) {
166 return createMultiplicityAdapter();
167 }
168
169 @Override
170 public Adapter caseRangeMultiplicity(RangeMultiplicity object) {
171 return createRangeMultiplicityAdapter();
172 }
173
174 @Override
175 public Adapter caseExactMultiplicity(ExactMultiplicity object) {
176 return createExactMultiplicityAdapter();
177 }
178
179 @Override
180 public Adapter caseUnboundedMultiplicity(UnboundedMultiplicity object) {
181 return createUnboundedMultiplicityAdapter();
182 }
183
184 @Override
185 public Adapter caseArgument(Argument object) {
186 return createArgumentAdapter();
187 }
188
189 @Override
190 public Adapter caseEnumDeclaration(EnumDeclaration object) {
191 return createEnumDeclarationAdapter();
192 }
193
194 @Override
195 public Adapter caseVariableOrNode(VariableOrNode object) {
196 return createVariableOrNodeAdapter();
197 }
198
199 @Override
200 public Adapter defaultCase(EObject object) {
201 return createEObjectAdapter();
202 }
203 };
204
205 /**
206 * Creates an adapter for the <code>target</code>.
207 * <!-- begin-user-doc -->
208 * <!-- end-user-doc -->
209 * @param target the object to adapt.
210 * @return the adapter for the <code>target</code>.
211 * @generated
212 */
213 @Override
214 public Adapter createAdapter(Notifier target) {
215 return modelSwitch.doSwitch((EObject) target);
216 }
217
218 /**
219 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Problem <em>Problem</em>}'.
220 * <!-- begin-user-doc -->
221 * This default implementation returns null so that we can easily ignore cases;
222 * it's useful to ignore a case when inheritance will catch all the cases anyway.
223 * <!-- end-user-doc -->
224 * @return the new adapter.
225 * @see org.eclipse.viatra.solver.language.model.problem.Problem
226 * @generated
227 */
228 public Adapter createProblemAdapter() {
229 return null;
230 }
231
232 /**
233 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Relation <em>Relation</em>}'.
234 * <!-- begin-user-doc -->
235 * This default implementation returns null so that we can easily ignore cases;
236 * it's useful to ignore a case when inheritance will catch all the cases anyway.
237 * <!-- end-user-doc -->
238 * @return the new adapter.
239 * @see org.eclipse.viatra.solver.language.model.problem.Relation
240 * @generated
241 */
242 public Adapter createRelationAdapter() {
243 return null;
244 }
245
246 /**
247 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.ClassDeclaration <em>Class Declaration</em>}'.
248 * <!-- begin-user-doc -->
249 * This default implementation returns null so that we can easily ignore cases;
250 * it's useful to ignore a case when inheritance will catch all the cases anyway.
251 * <!-- end-user-doc -->
252 * @return the new adapter.
253 * @see org.eclipse.viatra.solver.language.model.problem.ClassDeclaration
254 * @generated
255 */
256 public Adapter createClassDeclarationAdapter() {
257 return null;
258 }
259
260 /**
261 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration <em>Reference Declaration</em>}'.
262 * <!-- begin-user-doc -->
263 * This default implementation returns null so that we can easily ignore cases;
264 * it's useful to ignore a case when inheritance will catch all the cases anyway.
265 * <!-- end-user-doc -->
266 * @return the new adapter.
267 * @see org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration
268 * @generated
269 */
270 public Adapter createReferenceDeclarationAdapter() {
271 return null;
272 }
273
274 /**
275 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.NamedElement <em>Named Element</em>}'.
276 * <!-- begin-user-doc -->
277 * This default implementation returns null so that we can easily ignore cases;
278 * it's useful to ignore a case when inheritance will catch all the cases anyway.
279 * <!-- end-user-doc -->
280 * @return the new adapter.
281 * @see org.eclipse.viatra.solver.language.model.problem.NamedElement
282 * @generated
283 */
284 public Adapter createNamedElementAdapter() {
285 return null;
286 }
287
288 /**
289 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.PredicateDefinition <em>Predicate Definition</em>}'.
290 * <!-- begin-user-doc -->
291 * This default implementation returns null so that we can easily ignore cases;
292 * it's useful to ignore a case when inheritance will catch all the cases anyway.
293 * <!-- end-user-doc -->
294 * @return the new adapter.
295 * @see org.eclipse.viatra.solver.language.model.problem.PredicateDefinition
296 * @generated
297 */
298 public Adapter createPredicateDefinitionAdapter() {
299 return null;
300 }
301
302 /**
303 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Parameter <em>Parameter</em>}'.
304 * <!-- begin-user-doc -->
305 * This default implementation returns null so that we can easily ignore cases;
306 * it's useful to ignore a case when inheritance will catch all the cases anyway.
307 * <!-- end-user-doc -->
308 * @return the new adapter.
309 * @see org.eclipse.viatra.solver.language.model.problem.Parameter
310 * @generated
311 */
312 public Adapter createParameterAdapter() {
313 return null;
314 }
315
316 /**
317 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Variable <em>Variable</em>}'.
318 * <!-- begin-user-doc -->
319 * This default implementation returns null so that we can easily ignore cases;
320 * it's useful to ignore a case when inheritance will catch all the cases anyway.
321 * <!-- end-user-doc -->
322 * @return the new adapter.
323 * @see org.eclipse.viatra.solver.language.model.problem.Variable
324 * @generated
325 */
326 public Adapter createVariableAdapter() {
327 return null;
328 }
329
330 /**
331 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Conjunction <em>Conjunction</em>}'.
332 * <!-- begin-user-doc -->
333 * This default implementation returns null so that we can easily ignore cases;
334 * it's useful to ignore a case when inheritance will catch all the cases anyway.
335 * <!-- end-user-doc -->
336 * @return the new adapter.
337 * @see org.eclipse.viatra.solver.language.model.problem.Conjunction
338 * @generated
339 */
340 public Adapter createConjunctionAdapter() {
341 return null;
342 }
343
344 /**
345 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Literal <em>Literal</em>}'.
346 * <!-- begin-user-doc -->
347 * This default implementation returns null so that we can easily ignore cases;
348 * it's useful to ignore a case when inheritance will catch all the cases anyway.
349 * <!-- end-user-doc -->
350 * @return the new adapter.
351 * @see org.eclipse.viatra.solver.language.model.problem.Literal
352 * @generated
353 */
354 public Adapter createLiteralAdapter() {
355 return null;
356 }
357
358 /**
359 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Atom <em>Atom</em>}'.
360 * <!-- begin-user-doc -->
361 * This default implementation returns null so that we can easily ignore cases;
362 * it's useful to ignore a case when inheritance will catch all the cases anyway.
363 * <!-- end-user-doc -->
364 * @return the new adapter.
365 * @see org.eclipse.viatra.solver.language.model.problem.Atom
366 * @generated
367 */
368 public Adapter createAtomAdapter() {
369 return null;
370 }
371
372 /**
373 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.ImplicitVariable <em>Implicit Variable</em>}'.
374 * <!-- begin-user-doc -->
375 * This default implementation returns null so that we can easily ignore cases;
376 * it's useful to ignore a case when inheritance will catch all the cases anyway.
377 * <!-- end-user-doc -->
378 * @return the new adapter.
379 * @see org.eclipse.viatra.solver.language.model.problem.ImplicitVariable
380 * @generated
381 */
382 public Adapter createImplicitVariableAdapter() {
383 return null;
384 }
385
386 /**
387 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.NegativeLiteral <em>Negative Literal</em>}'.
388 * <!-- begin-user-doc -->
389 * This default implementation returns null so that we can easily ignore cases;
390 * it's useful to ignore a case when inheritance will catch all the cases anyway.
391 * <!-- end-user-doc -->
392 * @return the new adapter.
393 * @see org.eclipse.viatra.solver.language.model.problem.NegativeLiteral
394 * @generated
395 */
396 public Adapter createNegativeLiteralAdapter() {
397 return null;
398 }
399
400 /**
401 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.ExistentialQuantifier <em>Existential Quantifier</em>}'.
402 * <!-- begin-user-doc -->
403 * This default implementation returns null so that we can easily ignore cases;
404 * it's useful to ignore a case when inheritance will catch all the cases anyway.
405 * <!-- end-user-doc -->
406 * @return the new adapter.
407 * @see org.eclipse.viatra.solver.language.model.problem.ExistentialQuantifier
408 * @generated
409 */
410 public Adapter createExistentialQuantifierAdapter() {
411 return null;
412 }
413
414 /**
415 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Assertion <em>Assertion</em>}'.
416 * <!-- begin-user-doc -->
417 * This default implementation returns null so that we can easily ignore cases;
418 * it's useful to ignore a case when inheritance will catch all the cases anyway.
419 * <!-- end-user-doc -->
420 * @return the new adapter.
421 * @see org.eclipse.viatra.solver.language.model.problem.Assertion
422 * @generated
423 */
424 public Adapter createAssertionAdapter() {
425 return null;
426 }
427
428 /**
429 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Node <em>Node</em>}'.
430 * <!-- begin-user-doc -->
431 * This default implementation returns null so that we can easily ignore cases;
432 * it's useful to ignore a case when inheritance will catch all the cases anyway.
433 * <!-- end-user-doc -->
434 * @return the new adapter.
435 * @see org.eclipse.viatra.solver.language.model.problem.Node
436 * @generated
437 */
438 public Adapter createNodeAdapter() {
439 return null;
440 }
441
442 /**
443 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.ScopeDeclaration <em>Scope Declaration</em>}'.
444 * <!-- begin-user-doc -->
445 * This default implementation returns null so that we can easily ignore cases;
446 * it's useful to ignore a case when inheritance will catch all the cases anyway.
447 * <!-- end-user-doc -->
448 * @return the new adapter.
449 * @see org.eclipse.viatra.solver.language.model.problem.ScopeDeclaration
450 * @generated
451 */
452 public Adapter createScopeDeclarationAdapter() {
453 return null;
454 }
455
456 /**
457 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Statement <em>Statement</em>}'.
458 * <!-- begin-user-doc -->
459 * This default implementation returns null so that we can easily ignore cases;
460 * it's useful to ignore a case when inheritance will catch all the cases anyway.
461 * <!-- end-user-doc -->
462 * @return the new adapter.
463 * @see org.eclipse.viatra.solver.language.model.problem.Statement
464 * @generated
465 */
466 public Adapter createStatementAdapter() {
467 return null;
468 }
469
470 /**
471 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.TypeScope <em>Type Scope</em>}'.
472 * <!-- begin-user-doc -->
473 * This default implementation returns null so that we can easily ignore cases;
474 * it's useful to ignore a case when inheritance will catch all the cases anyway.
475 * <!-- end-user-doc -->
476 * @return the new adapter.
477 * @see org.eclipse.viatra.solver.language.model.problem.TypeScope
478 * @generated
479 */
480 public Adapter createTypeScopeAdapter() {
481 return null;
482 }
483
484 /**
485 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Multiplicity <em>Multiplicity</em>}'.
486 * <!-- begin-user-doc -->
487 * This default implementation returns null so that we can easily ignore cases;
488 * it's useful to ignore a case when inheritance will catch all the cases anyway.
489 * <!-- end-user-doc -->
490 * @return the new adapter.
491 * @see org.eclipse.viatra.solver.language.model.problem.Multiplicity
492 * @generated
493 */
494 public Adapter createMultiplicityAdapter() {
495 return null;
496 }
497
498 /**
499 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity <em>Range Multiplicity</em>}'.
500 * <!-- begin-user-doc -->
501 * This default implementation returns null so that we can easily ignore cases;
502 * it's useful to ignore a case when inheritance will catch all the cases anyway.
503 * <!-- end-user-doc -->
504 * @return the new adapter.
505 * @see org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity
506 * @generated
507 */
508 public Adapter createRangeMultiplicityAdapter() {
509 return null;
510 }
511
512 /**
513 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.ExactMultiplicity <em>Exact Multiplicity</em>}'.
514 * <!-- begin-user-doc -->
515 * This default implementation returns null so that we can easily ignore cases;
516 * it's useful to ignore a case when inheritance will catch all the cases anyway.
517 * <!-- end-user-doc -->
518 * @return the new adapter.
519 * @see org.eclipse.viatra.solver.language.model.problem.ExactMultiplicity
520 * @generated
521 */
522 public Adapter createExactMultiplicityAdapter() {
523 return null;
524 }
525
526 /**
527 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.UnboundedMultiplicity <em>Unbounded Multiplicity</em>}'.
528 * <!-- begin-user-doc -->
529 * This default implementation returns null so that we can easily ignore cases;
530 * it's useful to ignore a case when inheritance will catch all the cases anyway.
531 * <!-- end-user-doc -->
532 * @return the new adapter.
533 * @see org.eclipse.viatra.solver.language.model.problem.UnboundedMultiplicity
534 * @generated
535 */
536 public Adapter createUnboundedMultiplicityAdapter() {
537 return null;
538 }
539
540 /**
541 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.Argument <em>Argument</em>}'.
542 * <!-- begin-user-doc -->
543 * This default implementation returns null so that we can easily ignore cases;
544 * it's useful to ignore a case when inheritance will catch all the cases anyway.
545 * <!-- end-user-doc -->
546 * @return the new adapter.
547 * @see org.eclipse.viatra.solver.language.model.problem.Argument
548 * @generated
549 */
550 public Adapter createArgumentAdapter() {
551 return null;
552 }
553
554 /**
555 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.EnumDeclaration <em>Enum Declaration</em>}'.
556 * <!-- begin-user-doc -->
557 * This default implementation returns null so that we can easily ignore cases;
558 * it's useful to ignore a case when inheritance will catch all the cases anyway.
559 * <!-- end-user-doc -->
560 * @return the new adapter.
561 * @see org.eclipse.viatra.solver.language.model.problem.EnumDeclaration
562 * @generated
563 */
564 public Adapter createEnumDeclarationAdapter() {
565 return null;
566 }
567
568 /**
569 * Creates a new adapter for an object of class '{@link org.eclipse.viatra.solver.language.model.problem.VariableOrNode <em>Variable Or Node</em>}'.
570 * <!-- begin-user-doc -->
571 * This default implementation returns null so that we can easily ignore cases;
572 * it's useful to ignore a case when inheritance will catch all the cases anyway.
573 * <!-- end-user-doc -->
574 * @return the new adapter.
575 * @see org.eclipse.viatra.solver.language.model.problem.VariableOrNode
576 * @generated
577 */
578 public Adapter createVariableOrNodeAdapter() {
579 return null;
580 }
581
582 /**
583 * Creates a new adapter for the default case.
584 * <!-- begin-user-doc -->
585 * This default implementation returns null.
586 * <!-- end-user-doc -->
587 * @return the new adapter.
588 * @generated
589 */
590 public Adapter createEObjectAdapter() {
591 return null;
592 }
593
594} //ProblemAdapterFactory