1 /**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7 package BusinessDomainDsl.util;
8
9 import BusinessDomainDsl.*;
10
11 import org.eclipse.emf.common.notify.Adapter;
12 import org.eclipse.emf.common.notify.Notifier;
13
14 import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
15
16 import org.eclipse.emf.ecore.EObject;
17
18 /**
19 * <!-- begin-user-doc -->
20 * The <b>Adapter Factory</b> for the model.
21 * It provides an adapter <code>createXXX</code> method for each class of the model.
22 * <!-- end-user-doc -->
23 * @see BusinessDomainDsl.BusinessDomainDslPackage
24 * @generated
25 */
26 public class BusinessDomainDslAdapterFactory extends AdapterFactoryImpl {
27 /**
28 * The cached model package.
29 * <!-- begin-user-doc -->
30 * <!-- end-user-doc -->
31 * @generated
32 */
33 protected static BusinessDomainDslPackage modelPackage;
34
35 /**
36 * Creates an instance of the adapter factory.
37 * <!-- begin-user-doc -->
38 * <!-- end-user-doc -->
39 * @generated
40 */
41 public BusinessDomainDslAdapterFactory() {
42 if (modelPackage == null) {
43 modelPackage = BusinessDomainDslPackage.eINSTANCE;
44 }
45 }
46
47 /**
48 * Returns whether this factory is applicable for the type of the object.
49 * <!-- begin-user-doc -->
50 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
51 * <!-- end-user-doc -->
52 * @return whether this factory is applicable for the type of the object.
53 * @generated
54 */
55 @Override
56 public boolean isFactoryForType(Object object) {
57 if (object == modelPackage) {
58 return true;
59 }
60 if (object instanceof EObject) {
61 return ((EObject)object).eClass().getEPackage() == modelPackage;
62 }
63 return false;
64 }
65
66 /**
67 * The switch that delegates to the <code>createXXX</code> methods.
68 * <!-- begin-user-doc -->
69 * <!-- end-user-doc -->
70 * @generated
71 */
72 protected BusinessDomainDslSwitch<Adapter> modelSwitch =
73 new BusinessDomainDslSwitch<Adapter>() {
74 @Override
75 public Adapter caseModelElement(ModelElement object) {
76 return createModelElementAdapter();
77 }
78 @Override
79 public Adapter caseBusinessDomainModel(BusinessDomainModel object) {
80 return createBusinessDomainModelAdapter();
81 }
82 @Override
83 public Adapter caseBusinessClass(BusinessClass object) {
84 return createBusinessClassAdapter();
85 }
86 @Override
87 public Adapter caseProperty(Property object) {
88 return createPropertyAdapter();
89 }
90 @Override
91 public Adapter caseEnumeration(Enumeration object) {
92 return createEnumerationAdapter();
93 }
94 @Override
95 public Adapter caseEnumerationLiteral(EnumerationLiteral object) {
96 return createEnumerationLiteralAdapter();
97 }
98 @Override
99 public Adapter caseAbstractBusinessRule(AbstractBusinessRule object) {
100 return createAbstractBusinessRuleAdapter();
101 }
102 @Override
103 public Adapter caseBoolProperty(BoolProperty object) {
104 return createBoolPropertyAdapter();
105 }
106 @Override
107 public Adapter caseDateTimeProperty(DateTimeProperty object) {
108 return createDateTimePropertyAdapter();
109 }
110 @Override
111 public Adapter caseEnumerationProperty(EnumerationProperty object) {
112 return createEnumerationPropertyAdapter();
113 }
114 @Override
115 public Adapter caseIntegerProperty(IntegerProperty object) {
116 return createIntegerPropertyAdapter();
117 }
118 @Override
119 public Adapter caseStringProperty(StringProperty object) {
120 return createStringPropertyAdapter();
121 }
122 @Override
123 public Adapter caseAbstractType(AbstractType object) {
124 return createAbstractTypeAdapter();
125 }
126 @Override
127 public Adapter caseBlobBinaryProperty(BlobBinaryProperty object) {
128 return createBlobBinaryPropertyAdapter();
129 }
130 @Override
131 public Adapter caseBlobTextProperty(BlobTextProperty object) {
132 return createBlobTextPropertyAdapter();
133 }
134 @Override
135 public Adapter caseAssociation(Association object) {
136 return createAssociationAdapter();
137 }
138 @Override
139 public Adapter caseDecimalProperty(DecimalProperty object) {
140 return createDecimalPropertyAdapter();
141 }
142 @Override
143 public Adapter caseAbstractBusinessClass(AbstractBusinessClass object) {
144 return createAbstractBusinessClassAdapter();
145 }
146 @Override
147 public Adapter caseBusinessClassReference(BusinessClassReference object) {
148 return createBusinessClassReferenceAdapter();
149 }
150 @Override
151 public Adapter caseUniqueRule(UniqueRule object) {
152 return createUniqueRuleAdapter();
153 }
154 @Override
155 public Adapter caseBusinessRule(BusinessRule object) {
156 return createBusinessRuleAdapter();
157 }
158 @Override
159 public Adapter defaultCase(EObject object) {
160 return createEObjectAdapter();
161 }
162 };
163
164 /**
165 * Creates an adapter for the <code>target</code>.
166 * <!-- begin-user-doc -->
167 * <!-- end-user-doc -->
168 * @param target the object to adapt.
169 * @return the adapter for the <code>target</code>.
170 * @generated
171 */
172 @Override
173 public Adapter createAdapter(Notifier target) {
174 return modelSwitch.doSwitch((EObject)target);
175 }
176
177
178 /**
179 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.ModelElement <em>Model Element</em>}'.
180 * <!-- begin-user-doc -->
181 * This default implementation returns null so that we can easily ignore cases;
182 * it's useful to ignore a case when inheritance will catch all the cases anyway.
183 * <!-- end-user-doc -->
184 * @return the new adapter.
185 * @see BusinessDomainDsl.ModelElement
186 * @generated
187 */
188 public Adapter createModelElementAdapter() {
189 return null;
190 }
191
192 /**
193 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.BusinessDomainModel <em>Business Domain Model</em>}'.
194 * <!-- begin-user-doc -->
195 * This default implementation returns null so that we can easily ignore cases;
196 * it's useful to ignore a case when inheritance will catch all the cases anyway.
197 * <!-- end-user-doc -->
198 * @return the new adapter.
199 * @see BusinessDomainDsl.BusinessDomainModel
200 * @generated
201 */
202 public Adapter createBusinessDomainModelAdapter() {
203 return null;
204 }
205
206 /**
207 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.BusinessClass <em>Business Class</em>}'.
208 * <!-- begin-user-doc -->
209 * This default implementation returns null so that we can easily ignore cases;
210 * it's useful to ignore a case when inheritance will catch all the cases anyway.
211 * <!-- end-user-doc -->
212 * @return the new adapter.
213 * @see BusinessDomainDsl.BusinessClass
214 * @generated
215 */
216 public Adapter createBusinessClassAdapter() {
217 return null;
218 }
219
220 /**
221 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.Property <em>Property</em>}'.
222 * <!-- begin-user-doc -->
223 * This default implementation returns null so that we can easily ignore cases;
224 * it's useful to ignore a case when inheritance will catch all the cases anyway.
225 * <!-- end-user-doc -->
226 * @return the new adapter.
227 * @see BusinessDomainDsl.Property
228 * @generated
229 */
230 public Adapter createPropertyAdapter() {
231 return null;
232 }
233
234 /**
235 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.Enumeration <em>Enumeration</em>}'.
236 * <!-- begin-user-doc -->
237 * This default implementation returns null so that we can easily ignore cases;
238 * it's useful to ignore a case when inheritance will catch all the cases anyway.
239 * <!-- end-user-doc -->
240 * @return the new adapter.
241 * @see BusinessDomainDsl.Enumeration
242 * @generated
243 */
244 public Adapter createEnumerationAdapter() {
245 return null;
246 }
247
248 /**
249 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.EnumerationLiteral <em>Enumeration Literal</em>}'.
250 * <!-- begin-user-doc -->
251 * This default implementation returns null so that we can easily ignore cases;
252 * it's useful to ignore a case when inheritance will catch all the cases anyway.
253 * <!-- end-user-doc -->
254 * @return the new adapter.
255 * @see BusinessDomainDsl.EnumerationLiteral
256 * @generated
257 */
258 public Adapter createEnumerationLiteralAdapter() {
259 return null;
260 }
261
262 /**
263 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.AbstractBusinessRule <em>Abstract Business Rule</em>}'.
264 * <!-- begin-user-doc -->
265 * This default implementation returns null so that we can easily ignore cases;
266 * it's useful to ignore a case when inheritance will catch all the cases anyway.
267 * <!-- end-user-doc -->
268 * @return the new adapter.
269 * @see BusinessDomainDsl.AbstractBusinessRule
270 * @generated
271 */
272 public Adapter createAbstractBusinessRuleAdapter() {
273 return null;
274 }
275
276 /**
277 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.BoolProperty <em>Bool Property</em>}'.
278 * <!-- begin-user-doc -->
279 * This default implementation returns null so that we can easily ignore cases;
280 * it's useful to ignore a case when inheritance will catch all the cases anyway.
281 * <!-- end-user-doc -->
282 * @return the new adapter.
283 * @see BusinessDomainDsl.BoolProperty
284 * @generated
285 */
286 public Adapter createBoolPropertyAdapter() {
287 return null;
288 }
289
290 /**
291 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.DateTimeProperty <em>Date Time Property</em>}'.
292 * <!-- begin-user-doc -->
293 * This default implementation returns null so that we can easily ignore cases;
294 * it's useful to ignore a case when inheritance will catch all the cases anyway.
295 * <!-- end-user-doc -->
296 * @return the new adapter.
297 * @see BusinessDomainDsl.DateTimeProperty
298 * @generated
299 */
300 public Adapter createDateTimePropertyAdapter() {
301 return null;
302 }
303
304 /**
305 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.EnumerationProperty <em>Enumeration Property</em>}'.
306 * <!-- begin-user-doc -->
307 * This default implementation returns null so that we can easily ignore cases;
308 * it's useful to ignore a case when inheritance will catch all the cases anyway.
309 * <!-- end-user-doc -->
310 * @return the new adapter.
311 * @see BusinessDomainDsl.EnumerationProperty
312 * @generated
313 */
314 public Adapter createEnumerationPropertyAdapter() {
315 return null;
316 }
317
318 /**
319 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.IntegerProperty <em>Integer Property</em>}'.
320 * <!-- begin-user-doc -->
321 * This default implementation returns null so that we can easily ignore cases;
322 * it's useful to ignore a case when inheritance will catch all the cases anyway.
323 * <!-- end-user-doc -->
324 * @return the new adapter.
325 * @see BusinessDomainDsl.IntegerProperty
326 * @generated
327 */
328 public Adapter createIntegerPropertyAdapter() {
329 return null;
330 }
331
332 /**
333 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.StringProperty <em>String Property</em>}'.
334 * <!-- begin-user-doc -->
335 * This default implementation returns null so that we can easily ignore cases;
336 * it's useful to ignore a case when inheritance will catch all the cases anyway.
337 * <!-- end-user-doc -->
338 * @return the new adapter.
339 * @see BusinessDomainDsl.StringProperty
340 * @generated
341 */
342 public Adapter createStringPropertyAdapter() {
343 return null;
344 }
345
346 /**
347 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.AbstractType <em>Abstract Type</em>}'.
348 * <!-- begin-user-doc -->
349 * This default implementation returns null so that we can easily ignore cases;
350 * it's useful to ignore a case when inheritance will catch all the cases anyway.
351 * <!-- end-user-doc -->
352 * @return the new adapter.
353 * @see BusinessDomainDsl.AbstractType
354 * @generated
355 */
356 public Adapter createAbstractTypeAdapter() {
357 return null;
358 }
359
360 /**
361 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.BlobBinaryProperty <em>Blob Binary Property</em>}'.
362 * <!-- begin-user-doc -->
363 * This default implementation returns null so that we can easily ignore cases;
364 * it's useful to ignore a case when inheritance will catch all the cases anyway.
365 * <!-- end-user-doc -->
366 * @return the new adapter.
367 * @see BusinessDomainDsl.BlobBinaryProperty
368 * @generated
369 */
370 public Adapter createBlobBinaryPropertyAdapter() {
371 return null;
372 }
373
374 /**
375 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.BlobTextProperty <em>Blob Text Property</em>}'.
376 * <!-- begin-user-doc -->
377 * This default implementation returns null so that we can easily ignore cases;
378 * it's useful to ignore a case when inheritance will catch all the cases anyway.
379 * <!-- end-user-doc -->
380 * @return the new adapter.
381 * @see BusinessDomainDsl.BlobTextProperty
382 * @generated
383 */
384 public Adapter createBlobTextPropertyAdapter() {
385 return null;
386 }
387
388 /**
389 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.Association <em>Association</em>}'.
390 * <!-- begin-user-doc -->
391 * This default implementation returns null so that we can easily ignore cases;
392 * it's useful to ignore a case when inheritance will catch all the cases anyway.
393 * <!-- end-user-doc -->
394 * @return the new adapter.
395 * @see BusinessDomainDsl.Association
396 * @generated
397 */
398 public Adapter createAssociationAdapter() {
399 return null;
400 }
401
402 /**
403 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.DecimalProperty <em>Decimal Property</em>}'.
404 * <!-- begin-user-doc -->
405 * This default implementation returns null so that we can easily ignore cases;
406 * it's useful to ignore a case when inheritance will catch all the cases anyway.
407 * <!-- end-user-doc -->
408 * @return the new adapter.
409 * @see BusinessDomainDsl.DecimalProperty
410 * @generated
411 */
412 public Adapter createDecimalPropertyAdapter() {
413 return null;
414 }
415
416 /**
417 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.AbstractBusinessClass <em>Abstract Business Class</em>}'.
418 * <!-- begin-user-doc -->
419 * This default implementation returns null so that we can easily ignore cases;
420 * it's useful to ignore a case when inheritance will catch all the cases anyway.
421 * <!-- end-user-doc -->
422 * @return the new adapter.
423 * @see BusinessDomainDsl.AbstractBusinessClass
424 * @generated
425 */
426 public Adapter createAbstractBusinessClassAdapter() {
427 return null;
428 }
429
430 /**
431 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.BusinessClassReference <em>Business Class Reference</em>}'.
432 * <!-- begin-user-doc -->
433 * This default implementation returns null so that we can easily ignore cases;
434 * it's useful to ignore a case when inheritance will catch all the cases anyway.
435 * <!-- end-user-doc -->
436 * @return the new adapter.
437 * @see BusinessDomainDsl.BusinessClassReference
438 * @generated
439 */
440 public Adapter createBusinessClassReferenceAdapter() {
441 return null;
442 }
443
444 /**
445 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.UniqueRule <em>Unique Rule</em>}'.
446 * <!-- begin-user-doc -->
447 * This default implementation returns null so that we can easily ignore cases;
448 * it's useful to ignore a case when inheritance will catch all the cases anyway.
449 * <!-- end-user-doc -->
450 * @return the new adapter.
451 * @see BusinessDomainDsl.UniqueRule
452 * @generated
453 */
454 public Adapter createUniqueRuleAdapter() {
455 return null;
456 }
457
458 /**
459 * Creates a new adapter for an object of class '{@link BusinessDomainDsl.BusinessRule <em>Business Rule</em>}'.
460 * <!-- begin-user-doc -->
461 * This default implementation returns null so that we can easily ignore cases;
462 * it's useful to ignore a case when inheritance will catch all the cases anyway.
463 * <!-- end-user-doc -->
464 * @return the new adapter.
465 * @see BusinessDomainDsl.BusinessRule
466 * @generated
467 */
468 public Adapter createBusinessRuleAdapter() {
469 return null;
470 }
471
472 /**
473 * Creates a new adapter for the default case.
474 * <!-- begin-user-doc -->
475 * This default implementation returns null.
476 * <!-- end-user-doc -->
477 * @return the new adapter.
478 * @generated
479 */
480 public Adapter createEObjectAdapter() {
481 return null;
482 }
483
484 } //BusinessDomainDslAdapterFactory