diff options
author | 2018-05-14 12:55:47 +0200 | |
---|---|---|
committer | 2018-05-14 12:55:47 +0200 | |
commit | a993b72eb3e038897767c79d054467a6986d2085 (patch) | |
tree | 6ebd0c0e4d074bc7a97651e780c228014dccf42d /Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partial2logicannotations/util | |
parent | derived feature -> partial relation bugfix (diff) | |
download | VIATRA-Generator-a993b72eb3e038897767c79d054467a6986d2085.tar.gz VIATRA-Generator-a993b72eb3e038897767c79d054467a6986d2085.tar.zst VIATRA-Generator-a993b72eb3e038897767c79d054467a6986d2085.zip |
Moved partial model management is moved to one project (+1 PM edge fix)
Diffstat (limited to 'Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partial2logicannotations/util')
2 files changed, 304 insertions, 0 deletions
diff --git a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partial2logicannotations/util/Partial2logicannotationsAdapterFactory.java b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partial2logicannotations/util/Partial2logicannotationsAdapterFactory.java new file mode 100644 index 00000000..2777a18d --- /dev/null +++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partial2logicannotations/util/Partial2logicannotationsAdapterFactory.java | |||
@@ -0,0 +1,159 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partial2logicannotations.util; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.Annotation; | ||
6 | import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.AssertionAnnotation; | ||
7 | |||
8 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partial2logicannotations.*; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Adapter; | ||
11 | import org.eclipse.emf.common.notify.Notifier; | ||
12 | |||
13 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; | ||
14 | |||
15 | import org.eclipse.emf.ecore.EObject; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * The <b>Adapter Factory</b> for the model. | ||
20 | * It provides an adapter <code>createXXX</code> method for each class of the model. | ||
21 | * <!-- end-user-doc --> | ||
22 | * @see hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partial2logicannotations.Partial2logicannotationsPackage | ||
23 | * @generated | ||
24 | */ | ||
25 | public class Partial2logicannotationsAdapterFactory extends AdapterFactoryImpl { | ||
26 | /** | ||
27 | * The cached model package. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | protected static Partial2logicannotationsPackage modelPackage; | ||
33 | |||
34 | /** | ||
35 | * Creates an instance of the adapter factory. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @generated | ||
39 | */ | ||
40 | public Partial2logicannotationsAdapterFactory() { | ||
41 | if (modelPackage == null) { | ||
42 | modelPackage = Partial2logicannotationsPackage.eINSTANCE; | ||
43 | } | ||
44 | } | ||
45 | |||
46 | /** | ||
47 | * Returns whether this factory is applicable for the type of the object. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. | ||
50 | * <!-- end-user-doc --> | ||
51 | * @return whether this factory is applicable for the type of the object. | ||
52 | * @generated | ||
53 | */ | ||
54 | @Override | ||
55 | public boolean isFactoryForType(Object object) { | ||
56 | if (object == modelPackage) { | ||
57 | return true; | ||
58 | } | ||
59 | if (object instanceof EObject) { | ||
60 | return ((EObject)object).eClass().getEPackage() == modelPackage; | ||
61 | } | ||
62 | return false; | ||
63 | } | ||
64 | |||
65 | /** | ||
66 | * The switch that delegates to the <code>createXXX</code> methods. | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @generated | ||
70 | */ | ||
71 | protected Partial2logicannotationsSwitch<Adapter> modelSwitch = | ||
72 | new Partial2logicannotationsSwitch<Adapter>() { | ||
73 | @Override | ||
74 | public Adapter casePartialModelRelation2Assertion(PartialModelRelation2Assertion object) { | ||
75 | return createPartialModelRelation2AssertionAdapter(); | ||
76 | } | ||
77 | @Override | ||
78 | public Adapter caseAnnotation(Annotation object) { | ||
79 | return createAnnotationAdapter(); | ||
80 | } | ||
81 | @Override | ||
82 | public Adapter caseAssertionAnnotation(AssertionAnnotation object) { | ||
83 | return createAssertionAnnotationAdapter(); | ||
84 | } | ||
85 | @Override | ||
86 | public Adapter defaultCase(EObject object) { | ||
87 | return createEObjectAdapter(); | ||
88 | } | ||
89 | }; | ||
90 | |||
91 | /** | ||
92 | * Creates an adapter for the <code>target</code>. | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @param target the object to adapt. | ||
96 | * @return the adapter for the <code>target</code>. | ||
97 | * @generated | ||
98 | */ | ||
99 | @Override | ||
100 | public Adapter createAdapter(Notifier target) { | ||
101 | return modelSwitch.doSwitch((EObject)target); | ||
102 | } | ||
103 | |||
104 | |||
105 | /** | ||
106 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partial2logicannotations.PartialModelRelation2Assertion <em>Partial Model Relation2 Assertion</em>}'. | ||
107 | * <!-- begin-user-doc --> | ||
108 | * This default implementation returns null so that we can easily ignore cases; | ||
109 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
110 | * <!-- end-user-doc --> | ||
111 | * @return the new adapter. | ||
112 | * @see hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partial2logicannotations.PartialModelRelation2Assertion | ||
113 | * @generated | ||
114 | */ | ||
115 | public Adapter createPartialModelRelation2AssertionAdapter() { | ||
116 | return null; | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.Annotation <em>Annotation</em>}'. | ||
121 | * <!-- begin-user-doc --> | ||
122 | * This default implementation returns null so that we can easily ignore cases; | ||
123 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
124 | * <!-- end-user-doc --> | ||
125 | * @return the new adapter. | ||
126 | * @see hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.Annotation | ||
127 | * @generated | ||
128 | */ | ||
129 | public Adapter createAnnotationAdapter() { | ||
130 | return null; | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.AssertionAnnotation <em>Assertion Annotation</em>}'. | ||
135 | * <!-- begin-user-doc --> | ||
136 | * This default implementation returns null so that we can easily ignore cases; | ||
137 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
138 | * <!-- end-user-doc --> | ||
139 | * @return the new adapter. | ||
140 | * @see hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.AssertionAnnotation | ||
141 | * @generated | ||
142 | */ | ||
143 | public Adapter createAssertionAnnotationAdapter() { | ||
144 | return null; | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * Creates a new adapter for the default case. | ||
149 | * <!-- begin-user-doc --> | ||
150 | * This default implementation returns null. | ||
151 | * <!-- end-user-doc --> | ||
152 | * @return the new adapter. | ||
153 | * @generated | ||
154 | */ | ||
155 | public Adapter createEObjectAdapter() { | ||
156 | return null; | ||
157 | } | ||
158 | |||
159 | } //Partial2logicannotationsAdapterFactory | ||
diff --git a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partial2logicannotations/util/Partial2logicannotationsSwitch.java b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partial2logicannotations/util/Partial2logicannotationsSwitch.java new file mode 100644 index 00000000..f2a194e9 --- /dev/null +++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/ecore-gen/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/partial2logicannotations/util/Partial2logicannotationsSwitch.java | |||
@@ -0,0 +1,145 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partial2logicannotations.util; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.Annotation; | ||
6 | import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.AssertionAnnotation; | ||
7 | |||
8 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partial2logicannotations.*; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EObject; | ||
11 | import org.eclipse.emf.ecore.EPackage; | ||
12 | |||
13 | import org.eclipse.emf.ecore.util.Switch; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * The <b>Switch</b> for the model's inheritance hierarchy. | ||
18 | * It supports the call {@link #doSwitch(EObject) doSwitch(object)} | ||
19 | * to invoke the <code>caseXXX</code> method for each class of the model, | ||
20 | * starting with the actual class of the object | ||
21 | * and proceeding up the inheritance hierarchy | ||
22 | * until a non-null result is returned, | ||
23 | * which is the result of the switch. | ||
24 | * <!-- end-user-doc --> | ||
25 | * @see hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partial2logicannotations.Partial2logicannotationsPackage | ||
26 | * @generated | ||
27 | */ | ||
28 | public class Partial2logicannotationsSwitch<T> extends Switch<T> { | ||
29 | /** | ||
30 | * The cached model package | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | protected static Partial2logicannotationsPackage modelPackage; | ||
36 | |||
37 | /** | ||
38 | * Creates an instance of the switch. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @generated | ||
42 | */ | ||
43 | public Partial2logicannotationsSwitch() { | ||
44 | if (modelPackage == null) { | ||
45 | modelPackage = Partial2logicannotationsPackage.eINSTANCE; | ||
46 | } | ||
47 | } | ||
48 | |||
49 | /** | ||
50 | * Checks whether this is a switch for the given package. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @param ePackage the package in question. | ||
54 | * @return whether this is a switch for the given package. | ||
55 | * @generated | ||
56 | */ | ||
57 | @Override | ||
58 | protected boolean isSwitchFor(EPackage ePackage) { | ||
59 | return ePackage == modelPackage; | ||
60 | } | ||
61 | |||
62 | /** | ||
63 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @return the first non-null result returned by a <code>caseXXX</code> call. | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | protected T doSwitch(int classifierID, EObject theEObject) { | ||
71 | switch (classifierID) { | ||
72 | case Partial2logicannotationsPackage.PARTIAL_MODEL_RELATION2_ASSERTION: { | ||
73 | PartialModelRelation2Assertion partialModelRelation2Assertion = (PartialModelRelation2Assertion)theEObject; | ||
74 | T result = casePartialModelRelation2Assertion(partialModelRelation2Assertion); | ||
75 | if (result == null) result = caseAssertionAnnotation(partialModelRelation2Assertion); | ||
76 | if (result == null) result = caseAnnotation(partialModelRelation2Assertion); | ||
77 | if (result == null) result = defaultCase(theEObject); | ||
78 | return result; | ||
79 | } | ||
80 | default: return defaultCase(theEObject); | ||
81 | } | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * Returns the result of interpreting the object as an instance of '<em>Partial Model Relation2 Assertion</em>'. | ||
86 | * <!-- begin-user-doc --> | ||
87 | * This implementation returns null; | ||
88 | * returning a non-null result will terminate the switch. | ||
89 | * <!-- end-user-doc --> | ||
90 | * @param object the target of the switch. | ||
91 | * @return the result of interpreting the object as an instance of '<em>Partial Model Relation2 Assertion</em>'. | ||
92 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
93 | * @generated | ||
94 | */ | ||
95 | public T casePartialModelRelation2Assertion(PartialModelRelation2Assertion object) { | ||
96 | return null; | ||
97 | } | ||
98 | |||
99 | /** | ||
100 | * Returns the result of interpreting the object as an instance of '<em>Annotation</em>'. | ||
101 | * <!-- begin-user-doc --> | ||
102 | * This implementation returns null; | ||
103 | * returning a non-null result will terminate the switch. | ||
104 | * <!-- end-user-doc --> | ||
105 | * @param object the target of the switch. | ||
106 | * @return the result of interpreting the object as an instance of '<em>Annotation</em>'. | ||
107 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
108 | * @generated | ||
109 | */ | ||
110 | public T caseAnnotation(Annotation object) { | ||
111 | return null; | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * Returns the result of interpreting the object as an instance of '<em>Assertion Annotation</em>'. | ||
116 | * <!-- begin-user-doc --> | ||
117 | * This implementation returns null; | ||
118 | * returning a non-null result will terminate the switch. | ||
119 | * <!-- end-user-doc --> | ||
120 | * @param object the target of the switch. | ||
121 | * @return the result of interpreting the object as an instance of '<em>Assertion Annotation</em>'. | ||
122 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
123 | * @generated | ||
124 | */ | ||
125 | public T caseAssertionAnnotation(AssertionAnnotation object) { | ||
126 | return null; | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
131 | * <!-- begin-user-doc --> | ||
132 | * This implementation returns null; | ||
133 | * returning a non-null result will terminate the switch, but this is the last case anyway. | ||
134 | * <!-- end-user-doc --> | ||
135 | * @param object the target of the switch. | ||
136 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
137 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) | ||
138 | * @generated | ||
139 | */ | ||
140 | @Override | ||
141 | public T defaultCase(EObject object) { | ||
142 | return null; | ||
143 | } | ||
144 | |||
145 | } //Partial2logicannotationsSwitch | ||