View Javadoc

1   /**
2    * <copyright>
3    * </copyright>
4    *
5    * $Id$
6    */
7   package org.mod4j.dsl.datacontract.mm.DataContractDsl.util;
8   
9   import org.eclipse.emf.common.notify.Adapter;
10  import org.eclipse.emf.common.notify.Notifier;
11  
12  import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
13  
14  import org.eclipse.emf.ecore.EObject;
15  
16  import org.mod4j.dsl.datacontract.mm.DataContractDsl.*;
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 org.mod4j.dsl.datacontract.mm.DataContractDsl.DataContractDslPackage
24   * @generated
25   */
26  public class DataContractDslAdapterFactory extends AdapterFactoryImpl {
27  	/**
28       * The cached model package.
29       * <!-- begin-user-doc -->
30  	 * <!-- end-user-doc -->
31       * @generated
32       */
33  	protected static DataContractDslPackage modelPackage;
34  
35  	/**
36       * Creates an instance of the adapter factory.
37       * <!-- begin-user-doc -->
38  	 * <!-- end-user-doc -->
39       * @generated
40       */
41  	public DataContractDslAdapterFactory() {
42          if (modelPackage == null) {
43              modelPackage = DataContractDslPackage.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 DataContractDslSwitch<Adapter> modelSwitch =
73  		new DataContractDslSwitch<Adapter>() {
74              @Override
75              public Adapter caseDataContractModel(DataContractModel object) {
76                  return createDataContractModelAdapter();
77              }
78              @Override
79              public Adapter caseDto(Dto object) {
80                  return createDtoAdapter();
81              }
82              @Override
83              public Adapter caseBusinessClassDto(BusinessClassDto object) {
84                  return createBusinessClassDtoAdapter();
85              }
86              @Override
87              public Adapter caseDtoProperty(DtoProperty object) {
88                  return createDtoPropertyAdapter();
89              }
90              @Override
91              public Adapter caseDtoDataProperty(DtoDataProperty object) {
92                  return createDtoDataPropertyAdapter();
93              }
94              @Override
95              public Adapter caseDtoStringProperty(DtoStringProperty object) {
96                  return createDtoStringPropertyAdapter();
97              }
98              @Override
99              public Adapter caseDtoBooleanProperty(DtoBooleanProperty object) {
100                 return createDtoBooleanPropertyAdapter();
101             }
102             @Override
103             public Adapter caseEnumerationDto(EnumerationDto object) {
104                 return createEnumerationDtoAdapter();
105             }
106             @Override
107             public Adapter caseEnumerationDtoLiteral(EnumerationDtoLiteral object) {
108                 return createEnumerationDtoLiteralAdapter();
109             }
110             @Override
111             public Adapter caseModelElement(ModelElement object) {
112                 return createModelElementAdapter();
113             }
114             @Override
115             public Adapter caseCustomDto(CustomDto object) {
116                 return createCustomDtoAdapter();
117             }
118             @Override
119             public Adapter caseDtoIntegerProperty(DtoIntegerProperty object) {
120                 return createDtoIntegerPropertyAdapter();
121             }
122             @Override
123             public Adapter caseDtoDecimalProperty(DtoDecimalProperty object) {
124                 return createDtoDecimalPropertyAdapter();
125             }
126             @Override
127             public Adapter caseDtoEnumerationProperty(DtoEnumerationProperty object) {
128                 return createDtoEnumerationPropertyAdapter();
129             }
130             @Override
131             public Adapter caseDtoDateTimeProperty(DtoDateTimeProperty object) {
132                 return createDtoDateTimePropertyAdapter();
133             }
134             @Override
135             public Adapter caseBusinessClassPropertyReference(BusinessClassPropertyReference object) {
136                 return createBusinessClassPropertyReferenceAdapter();
137             }
138             @Override
139             public Adapter caseBusinessClassAssociationRoleReference(BusinessClassAssociationRoleReference object) {
140                 return createBusinessClassAssociationRoleReferenceAdapter();
141             }
142             @Override
143             public Adapter caseDtoAssociationRoleProperty(DtoAssociationRoleProperty object) {
144                 return createDtoAssociationRolePropertyAdapter();
145             }
146             @Override
147             public Adapter caseExternalReference(ExternalReference object) {
148                 return createExternalReferenceAdapter();
149             }
150             @Override
151             public Adapter defaultCase(EObject object) {
152                 return createEObjectAdapter();
153             }
154         };
155 
156 	/**
157      * Creates an adapter for the <code>target</code>.
158      * <!-- begin-user-doc -->
159 	 * <!-- end-user-doc -->
160      * @param target the object to adapt.
161      * @return the adapter for the <code>target</code>.
162      * @generated
163      */
164 	@Override
165 	public Adapter createAdapter(Notifier target) {
166         return modelSwitch.doSwitch((EObject)target);
167     }
168 
169 
170 	/**
171      * Creates a new adapter for an object of class '{@link org.mod4j.dsl.datacontract.mm.DataContractDsl.DataContractModel <em>Data Contract Model</em>}'.
172      * <!-- begin-user-doc -->
173 	 * This default implementation returns null so that we can easily ignore cases;
174 	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
175 	 * <!-- end-user-doc -->
176      * @return the new adapter.
177      * @see org.mod4j.dsl.datacontract.mm.DataContractDsl.DataContractModel
178      * @generated
179      */
180 	public Adapter createDataContractModelAdapter() {
181         return null;
182     }
183 
184 	/**
185      * Creates a new adapter for an object of class '{@link org.mod4j.dsl.datacontract.mm.DataContractDsl.Dto <em>Dto</em>}'.
186      * <!-- begin-user-doc -->
187 	 * This default implementation returns null so that we can easily ignore cases;
188 	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
189 	 * <!-- end-user-doc -->
190      * @return the new adapter.
191      * @see org.mod4j.dsl.datacontract.mm.DataContractDsl.Dto
192      * @generated
193      */
194 	public Adapter createDtoAdapter() {
195         return null;
196     }
197 
198 	/**
199      * Creates a new adapter for an object of class '{@link org.mod4j.dsl.datacontract.mm.DataContractDsl.BusinessClassDto <em>Business Class Dto</em>}'.
200      * <!-- begin-user-doc -->
201 	 * This default implementation returns null so that we can easily ignore cases;
202 	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
203 	 * <!-- end-user-doc -->
204      * @return the new adapter.
205      * @see org.mod4j.dsl.datacontract.mm.DataContractDsl.BusinessClassDto
206      * @generated
207      */
208 	public Adapter createBusinessClassDtoAdapter() {
209         return null;
210     }
211 
212 	/**
213      * Creates a new adapter for an object of class '{@link org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoProperty <em>Dto Property</em>}'.
214      * <!-- begin-user-doc -->
215 	 * This default implementation returns null so that we can easily ignore cases;
216 	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
217 	 * <!-- end-user-doc -->
218      * @return the new adapter.
219      * @see org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoProperty
220      * @generated
221      */
222 	public Adapter createDtoPropertyAdapter() {
223         return null;
224     }
225 
226 	/**
227      * Creates a new adapter for an object of class '{@link org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoDataProperty <em>Dto Data Property</em>}'.
228      * <!-- begin-user-doc -->
229 	 * This default implementation returns null so that we can easily ignore cases;
230 	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
231 	 * <!-- end-user-doc -->
232      * @return the new adapter.
233      * @see org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoDataProperty
234      * @generated
235      */
236 	public Adapter createDtoDataPropertyAdapter() {
237         return null;
238     }
239 
240 	/**
241      * Creates a new adapter for an object of class '{@link org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoStringProperty <em>Dto String Property</em>}'.
242      * <!-- begin-user-doc -->
243 	 * This default implementation returns null so that we can easily ignore cases;
244 	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
245 	 * <!-- end-user-doc -->
246      * @return the new adapter.
247      * @see org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoStringProperty
248      * @generated
249      */
250 	public Adapter createDtoStringPropertyAdapter() {
251         return null;
252     }
253 
254 	/**
255      * Creates a new adapter for an object of class '{@link org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoBooleanProperty <em>Dto Boolean Property</em>}'.
256      * <!-- begin-user-doc -->
257 	 * This default implementation returns null so that we can easily ignore cases;
258 	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
259 	 * <!-- end-user-doc -->
260      * @return the new adapter.
261      * @see org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoBooleanProperty
262      * @generated
263      */
264 	public Adapter createDtoBooleanPropertyAdapter() {
265         return null;
266     }
267 
268 	/**
269      * Creates a new adapter for an object of class '{@link org.mod4j.dsl.datacontract.mm.DataContractDsl.EnumerationDto <em>Enumeration Dto</em>}'.
270      * <!-- begin-user-doc -->
271 	 * This default implementation returns null so that we can easily ignore cases;
272 	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
273 	 * <!-- end-user-doc -->
274      * @return the new adapter.
275      * @see org.mod4j.dsl.datacontract.mm.DataContractDsl.EnumerationDto
276      * @generated
277      */
278 	public Adapter createEnumerationDtoAdapter() {
279         return null;
280     }
281 
282 	/**
283      * Creates a new adapter for an object of class '{@link org.mod4j.dsl.datacontract.mm.DataContractDsl.EnumerationDtoLiteral <em>Enumeration Dto Literal</em>}'.
284      * <!-- begin-user-doc -->
285 	 * This default implementation returns null so that we can easily ignore cases;
286 	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
287 	 * <!-- end-user-doc -->
288      * @return the new adapter.
289      * @see org.mod4j.dsl.datacontract.mm.DataContractDsl.EnumerationDtoLiteral
290      * @generated
291      */
292 	public Adapter createEnumerationDtoLiteralAdapter() {
293         return null;
294     }
295 
296 	/**
297      * Creates a new adapter for an object of class '{@link org.mod4j.dsl.datacontract.mm.DataContractDsl.ModelElement <em>Model Element</em>}'.
298      * <!-- begin-user-doc -->
299 	 * This default implementation returns null so that we can easily ignore cases;
300 	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
301 	 * <!-- end-user-doc -->
302      * @return the new adapter.
303      * @see org.mod4j.dsl.datacontract.mm.DataContractDsl.ModelElement
304      * @generated
305      */
306 	public Adapter createModelElementAdapter() {
307         return null;
308     }
309 
310 	/**
311      * Creates a new adapter for an object of class '{@link org.mod4j.dsl.datacontract.mm.DataContractDsl.CustomDto <em>Custom Dto</em>}'.
312      * <!-- begin-user-doc -->
313 	 * This default implementation returns null so that we can easily ignore cases;
314 	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
315 	 * <!-- end-user-doc -->
316      * @return the new adapter.
317      * @see org.mod4j.dsl.datacontract.mm.DataContractDsl.CustomDto
318      * @generated
319      */
320 	public Adapter createCustomDtoAdapter() {
321         return null;
322     }
323 
324 	/**
325      * Creates a new adapter for an object of class '{@link org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoIntegerProperty <em>Dto Integer Property</em>}'.
326      * <!-- begin-user-doc -->
327 	 * This default implementation returns null so that we can easily ignore cases;
328 	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
329 	 * <!-- end-user-doc -->
330      * @return the new adapter.
331      * @see org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoIntegerProperty
332      * @generated
333      */
334 	public Adapter createDtoIntegerPropertyAdapter() {
335         return null;
336     }
337 
338 	/**
339      * Creates a new adapter for an object of class '{@link org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoDecimalProperty <em>Dto Decimal Property</em>}'.
340      * <!-- begin-user-doc -->
341 	 * This default implementation returns null so that we can easily ignore cases;
342 	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
343 	 * <!-- end-user-doc -->
344      * @return the new adapter.
345      * @see org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoDecimalProperty
346      * @generated
347      */
348 	public Adapter createDtoDecimalPropertyAdapter() {
349         return null;
350     }
351 
352 	/**
353      * Creates a new adapter for an object of class '{@link org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoEnumerationProperty <em>Dto Enumeration Property</em>}'.
354      * <!-- begin-user-doc -->
355 	 * This default implementation returns null so that we can easily ignore cases;
356 	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
357 	 * <!-- end-user-doc -->
358      * @return the new adapter.
359      * @see org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoEnumerationProperty
360      * @generated
361      */
362 	public Adapter createDtoEnumerationPropertyAdapter() {
363         return null;
364     }
365 
366 	/**
367      * Creates a new adapter for an object of class '{@link org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoDateTimeProperty <em>Dto Date Time Property</em>}'.
368      * <!-- begin-user-doc -->
369 	 * This default implementation returns null so that we can easily ignore cases;
370 	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
371 	 * <!-- end-user-doc -->
372      * @return the new adapter.
373      * @see org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoDateTimeProperty
374      * @generated
375      */
376 	public Adapter createDtoDateTimePropertyAdapter() {
377         return null;
378     }
379 
380 	/**
381      * Creates a new adapter for an object of class '{@link org.mod4j.dsl.datacontract.mm.DataContractDsl.BusinessClassPropertyReference <em>Business Class Property Reference</em>}'.
382      * <!-- begin-user-doc -->
383 	 * This default implementation returns null so that we can easily ignore cases;
384 	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
385 	 * <!-- end-user-doc -->
386      * @return the new adapter.
387      * @see org.mod4j.dsl.datacontract.mm.DataContractDsl.BusinessClassPropertyReference
388      * @generated
389      */
390 	public Adapter createBusinessClassPropertyReferenceAdapter() {
391         return null;
392     }
393 
394 	/**
395      * Creates a new adapter for an object of class '{@link org.mod4j.dsl.datacontract.mm.DataContractDsl.BusinessClassAssociationRoleReference <em>Business Class Association Role Reference</em>}'.
396      * <!-- begin-user-doc -->
397 	 * This default implementation returns null so that we can easily ignore cases;
398 	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
399 	 * <!-- end-user-doc -->
400      * @return the new adapter.
401      * @see org.mod4j.dsl.datacontract.mm.DataContractDsl.BusinessClassAssociationRoleReference
402      * @generated
403      */
404 	public Adapter createBusinessClassAssociationRoleReferenceAdapter() {
405         return null;
406     }
407 
408 	/**
409      * Creates a new adapter for an object of class '{@link org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoAssociationRoleProperty <em>Dto Association Role Property</em>}'.
410      * <!-- begin-user-doc -->
411 	 * This default implementation returns null so that we can easily ignore cases;
412 	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
413 	 * <!-- end-user-doc -->
414      * @return the new adapter.
415      * @see org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoAssociationRoleProperty
416      * @generated
417      */
418 	public Adapter createDtoAssociationRolePropertyAdapter() {
419         return null;
420     }
421 
422 	/**
423      * Creates a new adapter for an object of class '{@link org.mod4j.dsl.datacontract.mm.DataContractDsl.ExternalReference <em>External Reference</em>}'.
424      * <!-- begin-user-doc -->
425 	 * This default implementation returns null so that we can easily ignore cases;
426 	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
427 	 * <!-- end-user-doc -->
428      * @return the new adapter.
429      * @see org.mod4j.dsl.datacontract.mm.DataContractDsl.ExternalReference
430      * @generated
431      */
432 	public Adapter createExternalReferenceAdapter() {
433         return null;
434     }
435 
436 	/**
437      * Creates a new adapter for the default case.
438      * <!-- begin-user-doc -->
439 	 * This default implementation returns null.
440 	 * <!-- end-user-doc -->
441      * @return the new adapter.
442      * @generated
443      */
444 	public Adapter createEObjectAdapter() {
445         return null;
446     }
447 
448 } //DataContractDslAdapterFactory