aboutsummaryrefslogtreecommitdiffstats
path: root/Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/util
diff options
context:
space:
mode:
Diffstat (limited to 'Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/util')
-rw-r--r--Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/util/Ecore2logicannotationsAdapterFactory.java213
-rw-r--r--Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/util/Ecore2logicannotationsSwitch.java216
2 files changed, 429 insertions, 0 deletions
diff --git a/Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/util/Ecore2logicannotationsAdapterFactory.java b/Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/util/Ecore2logicannotationsAdapterFactory.java
new file mode 100644
index 00000000..38b4f411
--- /dev/null
+++ b/Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/util/Ecore2logicannotationsAdapterFactory.java
@@ -0,0 +1,213 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.util;
4
5import hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.*;
6
7import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.Annotation;
8import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.AssertionAnnotation;
9
10import org.eclipse.emf.common.notify.Adapter;
11import org.eclipse.emf.common.notify.Notifier;
12
13import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
14
15import 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.ecore2logic.ecore2logicannotations.Ecore2logicannotationsPackage
23 * @generated
24 */
25public class Ecore2logicannotationsAdapterFactory extends AdapterFactoryImpl {
26 /**
27 * The cached model package.
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 protected static Ecore2logicannotationsPackage modelPackage;
33
34 /**
35 * Creates an instance of the adapter factory.
36 * <!-- begin-user-doc -->
37 * <!-- end-user-doc -->
38 * @generated
39 */
40 public Ecore2logicannotationsAdapterFactory() {
41 if (modelPackage == null) {
42 modelPackage = Ecore2logicannotationsPackage.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 Ecore2logicannotationsSwitch<Adapter> modelSwitch =
72 new Ecore2logicannotationsSwitch<Adapter>() {
73 @Override
74 public Adapter caseMultiplicityAssertion(MultiplicityAssertion object) {
75 return createMultiplicityAssertionAdapter();
76 }
77 @Override
78 public Adapter caseInverseRelationAssertion(InverseRelationAssertion object) {
79 return createInverseRelationAssertionAdapter();
80 }
81 @Override
82 public Adapter caseLowerMultiplicityAssertion(LowerMultiplicityAssertion object) {
83 return createLowerMultiplicityAssertionAdapter();
84 }
85 @Override
86 public Adapter caseUpperMultiplicityAssertion(UpperMultiplicityAssertion object) {
87 return createUpperMultiplicityAssertionAdapter();
88 }
89 @Override
90 public Adapter caseAnnotation(Annotation object) {
91 return createAnnotationAdapter();
92 }
93 @Override
94 public Adapter caseAssertionAnnotation(AssertionAnnotation object) {
95 return createAssertionAnnotationAdapter();
96 }
97 @Override
98 public Adapter defaultCase(EObject object) {
99 return createEObjectAdapter();
100 }
101 };
102
103 /**
104 * Creates an adapter for the <code>target</code>.
105 * <!-- begin-user-doc -->
106 * <!-- end-user-doc -->
107 * @param target the object to adapt.
108 * @return the adapter for the <code>target</code>.
109 * @generated
110 */
111 @Override
112 public Adapter createAdapter(Notifier target) {
113 return modelSwitch.doSwitch((EObject)target);
114 }
115
116
117 /**
118 * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.MultiplicityAssertion <em>Multiplicity Assertion</em>}'.
119 * <!-- begin-user-doc -->
120 * This default implementation returns null so that we can easily ignore cases;
121 * it's useful to ignore a case when inheritance will catch all the cases anyway.
122 * <!-- end-user-doc -->
123 * @return the new adapter.
124 * @see hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.MultiplicityAssertion
125 * @generated
126 */
127 public Adapter createMultiplicityAssertionAdapter() {
128 return null;
129 }
130
131 /**
132 * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.InverseRelationAssertion <em>Inverse Relation Assertion</em>}'.
133 * <!-- begin-user-doc -->
134 * This default implementation returns null so that we can easily ignore cases;
135 * it's useful to ignore a case when inheritance will catch all the cases anyway.
136 * <!-- end-user-doc -->
137 * @return the new adapter.
138 * @see hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.InverseRelationAssertion
139 * @generated
140 */
141 public Adapter createInverseRelationAssertionAdapter() {
142 return null;
143 }
144
145 /**
146 * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.LowerMultiplicityAssertion <em>Lower Multiplicity Assertion</em>}'.
147 * <!-- begin-user-doc -->
148 * This default implementation returns null so that we can easily ignore cases;
149 * it's useful to ignore a case when inheritance will catch all the cases anyway.
150 * <!-- end-user-doc -->
151 * @return the new adapter.
152 * @see hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.LowerMultiplicityAssertion
153 * @generated
154 */
155 public Adapter createLowerMultiplicityAssertionAdapter() {
156 return null;
157 }
158
159 /**
160 * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.UpperMultiplicityAssertion <em>Upper Multiplicity Assertion</em>}'.
161 * <!-- begin-user-doc -->
162 * This default implementation returns null so that we can easily ignore cases;
163 * it's useful to ignore a case when inheritance will catch all the cases anyway.
164 * <!-- end-user-doc -->
165 * @return the new adapter.
166 * @see hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.UpperMultiplicityAssertion
167 * @generated
168 */
169 public Adapter createUpperMultiplicityAssertionAdapter() {
170 return null;
171 }
172
173 /**
174 * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.Annotation <em>Annotation</em>}'.
175 * <!-- begin-user-doc -->
176 * This default implementation returns null so that we can easily ignore cases;
177 * it's useful to ignore a case when inheritance will catch all the cases anyway.
178 * <!-- end-user-doc -->
179 * @return the new adapter.
180 * @see hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.Annotation
181 * @generated
182 */
183 public Adapter createAnnotationAdapter() {
184 return null;
185 }
186
187 /**
188 * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.AssertionAnnotation <em>Assertion Annotation</em>}'.
189 * <!-- begin-user-doc -->
190 * This default implementation returns null so that we can easily ignore cases;
191 * it's useful to ignore a case when inheritance will catch all the cases anyway.
192 * <!-- end-user-doc -->
193 * @return the new adapter.
194 * @see hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.AssertionAnnotation
195 * @generated
196 */
197 public Adapter createAssertionAnnotationAdapter() {
198 return null;
199 }
200
201 /**
202 * Creates a new adapter for the default case.
203 * <!-- begin-user-doc -->
204 * This default implementation returns null.
205 * <!-- end-user-doc -->
206 * @return the new adapter.
207 * @generated
208 */
209 public Adapter createEObjectAdapter() {
210 return null;
211 }
212
213} //Ecore2logicannotationsAdapterFactory
diff --git a/Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/util/Ecore2logicannotationsSwitch.java b/Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/util/Ecore2logicannotationsSwitch.java
new file mode 100644
index 00000000..06d3fe84
--- /dev/null
+++ b/Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/ecore2logic/ecore2logicannotations/util/Ecore2logicannotationsSwitch.java
@@ -0,0 +1,216 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.util;
4
5import hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.*;
6
7import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.Annotation;
8import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.AssertionAnnotation;
9
10import org.eclipse.emf.ecore.EObject;
11import org.eclipse.emf.ecore.EPackage;
12
13import 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.ecore2logic.ecore2logicannotations.Ecore2logicannotationsPackage
26 * @generated
27 */
28public class Ecore2logicannotationsSwitch<T> extends Switch<T> {
29 /**
30 * The cached model package
31 * <!-- begin-user-doc -->
32 * <!-- end-user-doc -->
33 * @generated
34 */
35 protected static Ecore2logicannotationsPackage modelPackage;
36
37 /**
38 * Creates an instance of the switch.
39 * <!-- begin-user-doc -->
40 * <!-- end-user-doc -->
41 * @generated
42 */
43 public Ecore2logicannotationsSwitch() {
44 if (modelPackage == null) {
45 modelPackage = Ecore2logicannotationsPackage.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 Ecore2logicannotationsPackage.MULTIPLICITY_ASSERTION: {
73 MultiplicityAssertion multiplicityAssertion = (MultiplicityAssertion)theEObject;
74 T result = caseMultiplicityAssertion(multiplicityAssertion);
75 if (result == null) result = caseAssertionAnnotation(multiplicityAssertion);
76 if (result == null) result = caseAnnotation(multiplicityAssertion);
77 if (result == null) result = defaultCase(theEObject);
78 return result;
79 }
80 case Ecore2logicannotationsPackage.INVERSE_RELATION_ASSERTION: {
81 InverseRelationAssertion inverseRelationAssertion = (InverseRelationAssertion)theEObject;
82 T result = caseInverseRelationAssertion(inverseRelationAssertion);
83 if (result == null) result = caseAssertionAnnotation(inverseRelationAssertion);
84 if (result == null) result = caseAnnotation(inverseRelationAssertion);
85 if (result == null) result = defaultCase(theEObject);
86 return result;
87 }
88 case Ecore2logicannotationsPackage.LOWER_MULTIPLICITY_ASSERTION: {
89 LowerMultiplicityAssertion lowerMultiplicityAssertion = (LowerMultiplicityAssertion)theEObject;
90 T result = caseLowerMultiplicityAssertion(lowerMultiplicityAssertion);
91 if (result == null) result = caseMultiplicityAssertion(lowerMultiplicityAssertion);
92 if (result == null) result = caseAssertionAnnotation(lowerMultiplicityAssertion);
93 if (result == null) result = caseAnnotation(lowerMultiplicityAssertion);
94 if (result == null) result = defaultCase(theEObject);
95 return result;
96 }
97 case Ecore2logicannotationsPackage.UPPER_MULTIPLICITY_ASSERTION: {
98 UpperMultiplicityAssertion upperMultiplicityAssertion = (UpperMultiplicityAssertion)theEObject;
99 T result = caseUpperMultiplicityAssertion(upperMultiplicityAssertion);
100 if (result == null) result = caseMultiplicityAssertion(upperMultiplicityAssertion);
101 if (result == null) result = caseAssertionAnnotation(upperMultiplicityAssertion);
102 if (result == null) result = caseAnnotation(upperMultiplicityAssertion);
103 if (result == null) result = defaultCase(theEObject);
104 return result;
105 }
106 default: return defaultCase(theEObject);
107 }
108 }
109
110 /**
111 * Returns the result of interpreting the object as an instance of '<em>Multiplicity Assertion</em>'.
112 * <!-- begin-user-doc -->
113 * This implementation returns null;
114 * returning a non-null result will terminate the switch.
115 * <!-- end-user-doc -->
116 * @param object the target of the switch.
117 * @return the result of interpreting the object as an instance of '<em>Multiplicity Assertion</em>'.
118 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
119 * @generated
120 */
121 public T caseMultiplicityAssertion(MultiplicityAssertion object) {
122 return null;
123 }
124
125 /**
126 * Returns the result of interpreting the object as an instance of '<em>Inverse Relation Assertion</em>'.
127 * <!-- begin-user-doc -->
128 * This implementation returns null;
129 * returning a non-null result will terminate the switch.
130 * <!-- end-user-doc -->
131 * @param object the target of the switch.
132 * @return the result of interpreting the object as an instance of '<em>Inverse Relation Assertion</em>'.
133 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
134 * @generated
135 */
136 public T caseInverseRelationAssertion(InverseRelationAssertion object) {
137 return null;
138 }
139
140 /**
141 * Returns the result of interpreting the object as an instance of '<em>Lower Multiplicity Assertion</em>'.
142 * <!-- begin-user-doc -->
143 * This implementation returns null;
144 * returning a non-null result will terminate the switch.
145 * <!-- end-user-doc -->
146 * @param object the target of the switch.
147 * @return the result of interpreting the object as an instance of '<em>Lower Multiplicity Assertion</em>'.
148 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
149 * @generated
150 */
151 public T caseLowerMultiplicityAssertion(LowerMultiplicityAssertion object) {
152 return null;
153 }
154
155 /**
156 * Returns the result of interpreting the object as an instance of '<em>Upper Multiplicity Assertion</em>'.
157 * <!-- begin-user-doc -->
158 * This implementation returns null;
159 * returning a non-null result will terminate the switch.
160 * <!-- end-user-doc -->
161 * @param object the target of the switch.
162 * @return the result of interpreting the object as an instance of '<em>Upper Multiplicity Assertion</em>'.
163 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
164 * @generated
165 */
166 public T caseUpperMultiplicityAssertion(UpperMultiplicityAssertion object) {
167 return null;
168 }
169
170 /**
171 * Returns the result of interpreting the object as an instance of '<em>Annotation</em>'.
172 * <!-- begin-user-doc -->
173 * This implementation returns null;
174 * returning a non-null result will terminate the switch.
175 * <!-- end-user-doc -->
176 * @param object the target of the switch.
177 * @return the result of interpreting the object as an instance of '<em>Annotation</em>'.
178 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
179 * @generated
180 */
181 public T caseAnnotation(Annotation object) {
182 return null;
183 }
184
185 /**
186 * Returns the result of interpreting the object as an instance of '<em>Assertion Annotation</em>'.
187 * <!-- begin-user-doc -->
188 * This implementation returns null;
189 * returning a non-null result will terminate the switch.
190 * <!-- end-user-doc -->
191 * @param object the target of the switch.
192 * @return the result of interpreting the object as an instance of '<em>Assertion Annotation</em>'.
193 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
194 * @generated
195 */
196 public T caseAssertionAnnotation(AssertionAnnotation object) {
197 return null;
198 }
199
200 /**
201 * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
202 * <!-- begin-user-doc -->
203 * This implementation returns null;
204 * returning a non-null result will terminate the switch, but this is the last case anyway.
205 * <!-- end-user-doc -->
206 * @param object the target of the switch.
207 * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
208 * @see #doSwitch(org.eclipse.emf.ecore.EObject)
209 * @generated
210 */
211 @Override
212 public T defaultCase(EObject object) {
213 return null;
214 }
215
216} //Ecore2logicannotationsSwitch