1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.util; |
8 | |
9 | import de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.*; |
10 | |
11 | import de.uka.ipd.sdq.dsexplore.qml.declarations.QMLDeclarations.QMLDeclaration; |
12 | |
13 | import de.uka.ipd.sdq.identifier.Identifier; |
14 | |
15 | import de.uka.ipd.sdq.pcm.core.entity.Entity; |
16 | import de.uka.ipd.sdq.pcm.core.entity.NamedElement; |
17 | |
18 | import org.eclipse.emf.common.notify.Adapter; |
19 | import org.eclipse.emf.common.notify.Notifier; |
20 | |
21 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; |
22 | |
23 | import org.eclipse.emf.ecore.EObject; |
24 | |
25 | /** |
26 | * <!-- begin-user-doc --> |
27 | * The <b>Adapter Factory</b> for the model. |
28 | * It provides an adapter <code>createXXX</code> method for each class of the model. |
29 | * <!-- end-user-doc --> |
30 | * @see de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.QMLContractTypePackage |
31 | * @generated |
32 | */ |
33 | public class QMLContractTypeAdapterFactory extends AdapterFactoryImpl { |
34 | /** |
35 | * The cached model package. |
36 | * <!-- begin-user-doc --> |
37 | * <!-- end-user-doc --> |
38 | * @generated |
39 | */ |
40 | protected static QMLContractTypePackage modelPackage; |
41 | |
42 | /** |
43 | * Creates an instance of the adapter factory. |
44 | * <!-- begin-user-doc --> |
45 | * <!-- end-user-doc --> |
46 | * @generated |
47 | */ |
48 | public QMLContractTypeAdapterFactory() { |
49 | if (modelPackage == null) { |
50 | modelPackage = QMLContractTypePackage.eINSTANCE; |
51 | } |
52 | } |
53 | |
54 | /** |
55 | * Returns whether this factory is applicable for the type of the object. |
56 | * <!-- begin-user-doc --> |
57 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. |
58 | * <!-- end-user-doc --> |
59 | * @return whether this factory is applicable for the type of the object. |
60 | * @generated |
61 | */ |
62 | @Override |
63 | public boolean isFactoryForType(Object object) { |
64 | if (object == modelPackage) { |
65 | return true; |
66 | } |
67 | if (object instanceof EObject) { |
68 | return ((EObject)object).eClass().getEPackage() == modelPackage; |
69 | } |
70 | return false; |
71 | } |
72 | |
73 | /** |
74 | * The switch that delegates to the <code>createXXX</code> methods. |
75 | * <!-- begin-user-doc --> |
76 | * <!-- end-user-doc --> |
77 | * @generated |
78 | */ |
79 | protected QMLContractTypeSwitch<Adapter> modelSwitch = |
80 | new QMLContractTypeSwitch<Adapter>() { |
81 | @Override |
82 | public Adapter caseDimensionTypeSet(DimensionTypeSet object) { |
83 | return createDimensionTypeSetAdapter(); |
84 | } |
85 | @Override |
86 | public Adapter caseDimensionType(DimensionType object) { |
87 | return createDimensionTypeAdapter(); |
88 | } |
89 | @Override |
90 | public Adapter caseRelationSemantics(RelationSemantics object) { |
91 | return createRelationSemanticsAdapter(); |
92 | } |
93 | @Override |
94 | public Adapter caseElement(Element object) { |
95 | return createElementAdapter(); |
96 | } |
97 | @Override |
98 | public Adapter caseOrder(Order object) { |
99 | return createOrderAdapter(); |
100 | } |
101 | @Override |
102 | public Adapter caseDimensionTypeEnum(DimensionTypeEnum object) { |
103 | return createDimensionTypeEnumAdapter(); |
104 | } |
105 | @Override |
106 | public Adapter caseUnit(Unit object) { |
107 | return createUnitAdapter(); |
108 | } |
109 | @Override |
110 | public Adapter caseDimensionTypeNumeric(DimensionTypeNumeric object) { |
111 | return createDimensionTypeNumericAdapter(); |
112 | } |
113 | @Override |
114 | public Adapter caseNumericRange(NumericRange object) { |
115 | return createNumericRangeAdapter(); |
116 | } |
117 | @Override |
118 | public Adapter caseQMLContractType(QMLContractType object) { |
119 | return createQMLContractTypeAdapter(); |
120 | } |
121 | @Override |
122 | public Adapter caseUnitRepository(UnitRepository object) { |
123 | return createUnitRepositoryAdapter(); |
124 | } |
125 | @Override |
126 | public Adapter caseDimensionTypeRepository(DimensionTypeRepository object) { |
127 | return createDimensionTypeRepositoryAdapter(); |
128 | } |
129 | @Override |
130 | public Adapter caseDimension(Dimension object) { |
131 | return createDimensionAdapter(); |
132 | } |
133 | @Override |
134 | public Adapter caseIdentifier(Identifier object) { |
135 | return createIdentifierAdapter(); |
136 | } |
137 | @Override |
138 | public Adapter caseNamedElement(NamedElement object) { |
139 | return createNamedElementAdapter(); |
140 | } |
141 | @Override |
142 | public Adapter caseEntity(Entity object) { |
143 | return createEntityAdapter(); |
144 | } |
145 | @Override |
146 | public Adapter caseQMLDeclaration(QMLDeclaration object) { |
147 | return createQMLDeclarationAdapter(); |
148 | } |
149 | @Override |
150 | public Adapter defaultCase(EObject object) { |
151 | return createEObjectAdapter(); |
152 | } |
153 | }; |
154 | |
155 | /** |
156 | * Creates an adapter for the <code>target</code>. |
157 | * <!-- begin-user-doc --> |
158 | * <!-- end-user-doc --> |
159 | * @param target the object to adapt. |
160 | * @return the adapter for the <code>target</code>. |
161 | * @generated |
162 | */ |
163 | @Override |
164 | public Adapter createAdapter(Notifier target) { |
165 | return modelSwitch.doSwitch((EObject)target); |
166 | } |
167 | |
168 | |
169 | /** |
170 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.DimensionTypeSet <em>Dimension Type Set</em>}'. |
171 | * <!-- begin-user-doc --> |
172 | * This default implementation returns null so that we can easily ignore cases; |
173 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
174 | * <!-- end-user-doc --> |
175 | * @return the new adapter. |
176 | * @see de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.DimensionTypeSet |
177 | * @generated |
178 | */ |
179 | public Adapter createDimensionTypeSetAdapter() { |
180 | return null; |
181 | } |
182 | |
183 | /** |
184 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.DimensionType <em>Dimension Type</em>}'. |
185 | * <!-- begin-user-doc --> |
186 | * This default implementation returns null so that we can easily ignore cases; |
187 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
188 | * <!-- end-user-doc --> |
189 | * @return the new adapter. |
190 | * @see de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.DimensionType |
191 | * @generated |
192 | */ |
193 | public Adapter createDimensionTypeAdapter() { |
194 | return null; |
195 | } |
196 | |
197 | /** |
198 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.RelationSemantics <em>Relation Semantics</em>}'. |
199 | * <!-- begin-user-doc --> |
200 | * This default implementation returns null so that we can easily ignore cases; |
201 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
202 | * <!-- end-user-doc --> |
203 | * @return the new adapter. |
204 | * @see de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.RelationSemantics |
205 | * @generated |
206 | */ |
207 | public Adapter createRelationSemanticsAdapter() { |
208 | return null; |
209 | } |
210 | |
211 | /** |
212 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.Element <em>Element</em>}'. |
213 | * <!-- begin-user-doc --> |
214 | * This default implementation returns null so that we can easily ignore cases; |
215 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
216 | * <!-- end-user-doc --> |
217 | * @return the new adapter. |
218 | * @see de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.Element |
219 | * @generated |
220 | */ |
221 | public Adapter createElementAdapter() { |
222 | return null; |
223 | } |
224 | |
225 | /** |
226 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.Order <em>Order</em>}'. |
227 | * <!-- begin-user-doc --> |
228 | * This default implementation returns null so that we can easily ignore cases; |
229 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
230 | * <!-- end-user-doc --> |
231 | * @return the new adapter. |
232 | * @see de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.Order |
233 | * @generated |
234 | */ |
235 | public Adapter createOrderAdapter() { |
236 | return null; |
237 | } |
238 | |
239 | /** |
240 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.DimensionTypeEnum <em>Dimension Type Enum</em>}'. |
241 | * <!-- begin-user-doc --> |
242 | * This default implementation returns null so that we can easily ignore cases; |
243 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
244 | * <!-- end-user-doc --> |
245 | * @return the new adapter. |
246 | * @see de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.DimensionTypeEnum |
247 | * @generated |
248 | */ |
249 | public Adapter createDimensionTypeEnumAdapter() { |
250 | return null; |
251 | } |
252 | |
253 | /** |
254 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.Unit <em>Unit</em>}'. |
255 | * <!-- begin-user-doc --> |
256 | * This default implementation returns null so that we can easily ignore cases; |
257 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
258 | * <!-- end-user-doc --> |
259 | * @return the new adapter. |
260 | * @see de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.Unit |
261 | * @generated |
262 | */ |
263 | public Adapter createUnitAdapter() { |
264 | return null; |
265 | } |
266 | |
267 | /** |
268 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.DimensionTypeNumeric <em>Dimension Type Numeric</em>}'. |
269 | * <!-- begin-user-doc --> |
270 | * This default implementation returns null so that we can easily ignore cases; |
271 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
272 | * <!-- end-user-doc --> |
273 | * @return the new adapter. |
274 | * @see de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.DimensionTypeNumeric |
275 | * @generated |
276 | */ |
277 | public Adapter createDimensionTypeNumericAdapter() { |
278 | return null; |
279 | } |
280 | |
281 | /** |
282 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.NumericRange <em>Numeric Range</em>}'. |
283 | * <!-- begin-user-doc --> |
284 | * This default implementation returns null so that we can easily ignore cases; |
285 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
286 | * <!-- end-user-doc --> |
287 | * @return the new adapter. |
288 | * @see de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.NumericRange |
289 | * @generated |
290 | */ |
291 | public Adapter createNumericRangeAdapter() { |
292 | return null; |
293 | } |
294 | |
295 | /** |
296 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.QMLContractType <em>QML Contract Type</em>}'. |
297 | * <!-- begin-user-doc --> |
298 | * This default implementation returns null so that we can easily ignore cases; |
299 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
300 | * <!-- end-user-doc --> |
301 | * @return the new adapter. |
302 | * @see de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.QMLContractType |
303 | * @generated |
304 | */ |
305 | public Adapter createQMLContractTypeAdapter() { |
306 | return null; |
307 | } |
308 | |
309 | /** |
310 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.UnitRepository <em>Unit Repository</em>}'. |
311 | * <!-- begin-user-doc --> |
312 | * This default implementation returns null so that we can easily ignore cases; |
313 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
314 | * <!-- end-user-doc --> |
315 | * @return the new adapter. |
316 | * @see de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.UnitRepository |
317 | * @generated |
318 | */ |
319 | public Adapter createUnitRepositoryAdapter() { |
320 | return null; |
321 | } |
322 | |
323 | /** |
324 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.DimensionTypeRepository <em>Dimension Type Repository</em>}'. |
325 | * <!-- begin-user-doc --> |
326 | * This default implementation returns null so that we can easily ignore cases; |
327 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
328 | * <!-- end-user-doc --> |
329 | * @return the new adapter. |
330 | * @see de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.DimensionTypeRepository |
331 | * @generated |
332 | */ |
333 | public Adapter createDimensionTypeRepositoryAdapter() { |
334 | return null; |
335 | } |
336 | |
337 | /** |
338 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.Dimension <em>Dimension</em>}'. |
339 | * <!-- begin-user-doc --> |
340 | * This default implementation returns null so that we can easily ignore cases; |
341 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
342 | * <!-- end-user-doc --> |
343 | * @return the new adapter. |
344 | * @see de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.Dimension |
345 | * @generated |
346 | */ |
347 | public Adapter createDimensionAdapter() { |
348 | return null; |
349 | } |
350 | |
351 | /** |
352 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.identifier.Identifier <em>Identifier</em>}'. |
353 | * <!-- begin-user-doc --> |
354 | * This default implementation returns null so that we can easily ignore cases; |
355 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
356 | * <!-- end-user-doc --> |
357 | * @return the new adapter. |
358 | * @see de.uka.ipd.sdq.identifier.Identifier |
359 | * @generated |
360 | */ |
361 | public Adapter createIdentifierAdapter() { |
362 | return null; |
363 | } |
364 | |
365 | /** |
366 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.NamedElement <em>Named Element</em>}'. |
367 | * <!-- begin-user-doc --> |
368 | * This default implementation returns null so that we can easily ignore cases; |
369 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
370 | * <!-- end-user-doc --> |
371 | * @return the new adapter. |
372 | * @see de.uka.ipd.sdq.pcm.core.entity.NamedElement |
373 | * @generated |
374 | */ |
375 | public Adapter createNamedElementAdapter() { |
376 | return null; |
377 | } |
378 | |
379 | /** |
380 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.Entity <em>Entity</em>}'. |
381 | * <!-- begin-user-doc --> |
382 | * This default implementation returns null so that we can easily ignore cases; |
383 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
384 | * <!-- end-user-doc --> |
385 | * @return the new adapter. |
386 | * @see de.uka.ipd.sdq.pcm.core.entity.Entity |
387 | * @generated |
388 | */ |
389 | public Adapter createEntityAdapter() { |
390 | return null; |
391 | } |
392 | |
393 | /** |
394 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.dsexplore.qml.declarations.QMLDeclarations.QMLDeclaration <em>QML Declaration</em>}'. |
395 | * <!-- begin-user-doc --> |
396 | * This default implementation returns null so that we can easily ignore cases; |
397 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
398 | * <!-- end-user-doc --> |
399 | * @return the new adapter. |
400 | * @see de.uka.ipd.sdq.dsexplore.qml.declarations.QMLDeclarations.QMLDeclaration |
401 | * @generated |
402 | */ |
403 | public Adapter createQMLDeclarationAdapter() { |
404 | return null; |
405 | } |
406 | |
407 | /** |
408 | * Creates a new adapter for the default case. |
409 | * <!-- begin-user-doc --> |
410 | * This default implementation returns null. |
411 | * <!-- end-user-doc --> |
412 | * @return the new adapter. |
413 | * @generated |
414 | */ |
415 | public Adapter createEObjectAdapter() { |
416 | return null; |
417 | } |
418 | |
419 | } //QMLContractTypeAdapterFactory |