source: default/v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf/util/EbnfAdapterFactory.java @ 100

Last change on this file since 100 was 100, checked in by phdmakk, 8 years ago

+ generated resources

  • Property svn:mime-type set to text/plain
File size: 18.0 KB
Line 
1/**
2 */
3package de.ugoe.cs.swe.bnftools.ebnf.util;
4
5import de.ugoe.cs.swe.bnftools.ebnf.*;
6
7import org.eclipse.emf.common.notify.Adapter;
8import org.eclipse.emf.common.notify.Notifier;
9
10import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
11
12import org.eclipse.emf.ecore.EObject;
13
14/**
15 * <!-- begin-user-doc -->
16 * The <b>Adapter Factory</b> for the model.
17 * It provides an adapter <code>createXXX</code> method for each class of the model.
18 * <!-- end-user-doc -->
19 * @see de.ugoe.cs.swe.bnftools.ebnf.EbnfPackage
20 * @generated
21 */
22public class EbnfAdapterFactory extends AdapterFactoryImpl
23{
24  /**
25   * The cached model package.
26   * <!-- begin-user-doc -->
27   * <!-- end-user-doc -->
28   * @generated
29   */
30  protected static EbnfPackage modelPackage;
31
32  /**
33   * Creates an instance of the adapter factory.
34   * <!-- begin-user-doc -->
35   * <!-- end-user-doc -->
36   * @generated
37   */
38  public EbnfAdapterFactory()
39  {
40    if (modelPackage == null)
41    {
42      modelPackage = EbnfPackage.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  {
57    if (object == modelPackage)
58    {
59      return true;
60    }
61    if (object instanceof EObject)
62    {
63      return ((EObject)object).eClass().getEPackage() == modelPackage;
64    }
65    return false;
66  }
67
68  /**
69   * The switch that delegates to the <code>createXXX</code> methods.
70   * <!-- begin-user-doc -->
71   * <!-- end-user-doc -->
72   * @generated
73   */
74  protected EbnfSwitch<Adapter> modelSwitch =
75    new EbnfSwitch<Adapter>()
76    {
77      @Override
78      public Adapter caseEtsiBnf(EtsiBnf object)
79      {
80        return createEtsiBnfAdapter();
81      }
82      @Override
83      public Adapter caseImportSection(ImportSection object)
84      {
85        return createImportSectionAdapter();
86      }
87      @Override
88      public Adapter caseBnfEntry(BnfEntry object)
89      {
90        return createBnfEntryAdapter();
91      }
92      @Override
93      public Adapter caseDeltaEntry(DeltaEntry object)
94      {
95        return createDeltaEntryAdapter();
96      }
97      @Override
98      public Adapter caseMergeEntry(MergeEntry object)
99      {
100        return createMergeEntryAdapter();
101      }
102      @Override
103      public Adapter caseSectionHeading(SectionHeading object)
104      {
105        return createSectionHeadingAdapter();
106      }
107      @Override
108      public Adapter caseComment(Comment object)
109      {
110        return createCommentAdapter();
111      }
112      @Override
113      public Adapter caseImport(Import object)
114      {
115        return createImportAdapter();
116      }
117      @Override
118      public Adapter caseRule(Rule object)
119      {
120        return createRuleAdapter();
121      }
122      @Override
123      public Adapter caseExtRule(ExtRule object)
124      {
125        return createExtRuleAdapter();
126      }
127      @Override
128      public Adapter caseMergeRule(MergeRule object)
129      {
130        return createMergeRuleAdapter();
131      }
132      @Override
133      public Adapter caseGlobalCombinator(GlobalCombinator object)
134      {
135        return createGlobalCombinatorAdapter();
136      }
137      @Override
138      public Adapter caseRuleCombinator(RuleCombinator object)
139      {
140        return createRuleCombinatorAdapter();
141      }
142      @Override
143      public Adapter caseHookCombinator(HookCombinator object)
144      {
145        return createHookCombinatorAdapter();
146      }
147      @Override
148      public Adapter caseDefinitionList(DefinitionList object)
149      {
150        return createDefinitionListAdapter();
151      }
152      @Override
153      public Adapter caseSingleDefinition(SingleDefinition object)
154      {
155        return createSingleDefinitionAdapter();
156      }
157      @Override
158      public Adapter caseTerm(Term object)
159      {
160        return createTermAdapter();
161      }
162      @Override
163      public Adapter caseAtom(Atom object)
164      {
165        return createAtomAdapter();
166      }
167      @Override
168      public Adapter caseRuleReference(RuleReference object)
169      {
170        return createRuleReferenceAdapter();
171      }
172      @Override
173      public Adapter caseStringRule(StringRule object)
174      {
175        return createStringRuleAdapter();
176      }
177      @Override
178      public Adapter caseGroupedSequence(GroupedSequence object)
179      {
180        return createGroupedSequenceAdapter();
181      }
182      @Override
183      public Adapter caseOptionalSequence(OptionalSequence object)
184      {
185        return createOptionalSequenceAdapter();
186      }
187      @Override
188      public Adapter caseRepeatedSequence(RepeatedSequence object)
189      {
190        return createRepeatedSequenceAdapter();
191      }
192      @Override
193      public Adapter caseRepeatRange(RepeatRange object)
194      {
195        return createRepeatRangeAdapter();
196      }
197      @Override
198      public Adapter defaultCase(EObject object)
199      {
200        return createEObjectAdapter();
201      }
202    };
203
204  /**
205   * Creates an adapter for the <code>target</code>.
206   * <!-- begin-user-doc -->
207   * <!-- end-user-doc -->
208   * @param target the object to adapt.
209   * @return the adapter for the <code>target</code>.
210   * @generated
211   */
212  @Override
213  public Adapter createAdapter(Notifier target)
214  {
215    return modelSwitch.doSwitch((EObject)target);
216  }
217
218
219  /**
220   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.EtsiBnf <em>Etsi Bnf</em>}'.
221   * <!-- begin-user-doc -->
222   * This default implementation returns null so that we can easily ignore cases;
223   * it's useful to ignore a case when inheritance will catch all the cases anyway.
224   * <!-- end-user-doc -->
225   * @return the new adapter.
226   * @see de.ugoe.cs.swe.bnftools.ebnf.EtsiBnf
227   * @generated
228   */
229  public Adapter createEtsiBnfAdapter()
230  {
231    return null;
232  }
233
234  /**
235   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.ImportSection <em>Import Section</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 de.ugoe.cs.swe.bnftools.ebnf.ImportSection
242   * @generated
243   */
244  public Adapter createImportSectionAdapter()
245  {
246    return null;
247  }
248
249  /**
250   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.BnfEntry <em>Bnf Entry</em>}'.
251   * <!-- begin-user-doc -->
252   * This default implementation returns null so that we can easily ignore cases;
253   * it's useful to ignore a case when inheritance will catch all the cases anyway.
254   * <!-- end-user-doc -->
255   * @return the new adapter.
256   * @see de.ugoe.cs.swe.bnftools.ebnf.BnfEntry
257   * @generated
258   */
259  public Adapter createBnfEntryAdapter()
260  {
261    return null;
262  }
263
264  /**
265   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.DeltaEntry <em>Delta Entry</em>}'.
266   * <!-- begin-user-doc -->
267   * This default implementation returns null so that we can easily ignore cases;
268   * it's useful to ignore a case when inheritance will catch all the cases anyway.
269   * <!-- end-user-doc -->
270   * @return the new adapter.
271   * @see de.ugoe.cs.swe.bnftools.ebnf.DeltaEntry
272   * @generated
273   */
274  public Adapter createDeltaEntryAdapter()
275  {
276    return null;
277  }
278
279  /**
280   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.MergeEntry <em>Merge Entry</em>}'.
281   * <!-- begin-user-doc -->
282   * This default implementation returns null so that we can easily ignore cases;
283   * it's useful to ignore a case when inheritance will catch all the cases anyway.
284   * <!-- end-user-doc -->
285   * @return the new adapter.
286   * @see de.ugoe.cs.swe.bnftools.ebnf.MergeEntry
287   * @generated
288   */
289  public Adapter createMergeEntryAdapter()
290  {
291    return null;
292  }
293
294  /**
295   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.SectionHeading <em>Section Heading</em>}'.
296   * <!-- begin-user-doc -->
297   * This default implementation returns null so that we can easily ignore cases;
298   * it's useful to ignore a case when inheritance will catch all the cases anyway.
299   * <!-- end-user-doc -->
300   * @return the new adapter.
301   * @see de.ugoe.cs.swe.bnftools.ebnf.SectionHeading
302   * @generated
303   */
304  public Adapter createSectionHeadingAdapter()
305  {
306    return null;
307  }
308
309  /**
310   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.Comment <em>Comment</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.ugoe.cs.swe.bnftools.ebnf.Comment
317   * @generated
318   */
319  public Adapter createCommentAdapter()
320  {
321    return null;
322  }
323
324  /**
325   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.Import <em>Import</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 de.ugoe.cs.swe.bnftools.ebnf.Import
332   * @generated
333   */
334  public Adapter createImportAdapter()
335  {
336    return null;
337  }
338
339  /**
340   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.Rule <em>Rule</em>}'.
341   * <!-- begin-user-doc -->
342   * This default implementation returns null so that we can easily ignore cases;
343   * it's useful to ignore a case when inheritance will catch all the cases anyway.
344   * <!-- end-user-doc -->
345   * @return the new adapter.
346   * @see de.ugoe.cs.swe.bnftools.ebnf.Rule
347   * @generated
348   */
349  public Adapter createRuleAdapter()
350  {
351    return null;
352  }
353
354  /**
355   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.ExtRule <em>Ext Rule</em>}'.
356   * <!-- begin-user-doc -->
357   * This default implementation returns null so that we can easily ignore cases;
358   * it's useful to ignore a case when inheritance will catch all the cases anyway.
359   * <!-- end-user-doc -->
360   * @return the new adapter.
361   * @see de.ugoe.cs.swe.bnftools.ebnf.ExtRule
362   * @generated
363   */
364  public Adapter createExtRuleAdapter()
365  {
366    return null;
367  }
368
369  /**
370   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.MergeRule <em>Merge Rule</em>}'.
371   * <!-- begin-user-doc -->
372   * This default implementation returns null so that we can easily ignore cases;
373   * it's useful to ignore a case when inheritance will catch all the cases anyway.
374   * <!-- end-user-doc -->
375   * @return the new adapter.
376   * @see de.ugoe.cs.swe.bnftools.ebnf.MergeRule
377   * @generated
378   */
379  public Adapter createMergeRuleAdapter()
380  {
381    return null;
382  }
383
384  /**
385   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.GlobalCombinator <em>Global Combinator</em>}'.
386   * <!-- begin-user-doc -->
387   * This default implementation returns null so that we can easily ignore cases;
388   * it's useful to ignore a case when inheritance will catch all the cases anyway.
389   * <!-- end-user-doc -->
390   * @return the new adapter.
391   * @see de.ugoe.cs.swe.bnftools.ebnf.GlobalCombinator
392   * @generated
393   */
394  public Adapter createGlobalCombinatorAdapter()
395  {
396    return null;
397  }
398
399  /**
400   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.RuleCombinator <em>Rule Combinator</em>}'.
401   * <!-- begin-user-doc -->
402   * This default implementation returns null so that we can easily ignore cases;
403   * it's useful to ignore a case when inheritance will catch all the cases anyway.
404   * <!-- end-user-doc -->
405   * @return the new adapter.
406   * @see de.ugoe.cs.swe.bnftools.ebnf.RuleCombinator
407   * @generated
408   */
409  public Adapter createRuleCombinatorAdapter()
410  {
411    return null;
412  }
413
414  /**
415   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.HookCombinator <em>Hook Combinator</em>}'.
416   * <!-- begin-user-doc -->
417   * This default implementation returns null so that we can easily ignore cases;
418   * it's useful to ignore a case when inheritance will catch all the cases anyway.
419   * <!-- end-user-doc -->
420   * @return the new adapter.
421   * @see de.ugoe.cs.swe.bnftools.ebnf.HookCombinator
422   * @generated
423   */
424  public Adapter createHookCombinatorAdapter()
425  {
426    return null;
427  }
428
429  /**
430   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.DefinitionList <em>Definition List</em>}'.
431   * <!-- begin-user-doc -->
432   * This default implementation returns null so that we can easily ignore cases;
433   * it's useful to ignore a case when inheritance will catch all the cases anyway.
434   * <!-- end-user-doc -->
435   * @return the new adapter.
436   * @see de.ugoe.cs.swe.bnftools.ebnf.DefinitionList
437   * @generated
438   */
439  public Adapter createDefinitionListAdapter()
440  {
441    return null;
442  }
443
444  /**
445   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.SingleDefinition <em>Single Definition</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 de.ugoe.cs.swe.bnftools.ebnf.SingleDefinition
452   * @generated
453   */
454  public Adapter createSingleDefinitionAdapter()
455  {
456    return null;
457  }
458
459  /**
460   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.Term <em>Term</em>}'.
461   * <!-- begin-user-doc -->
462   * This default implementation returns null so that we can easily ignore cases;
463   * it's useful to ignore a case when inheritance will catch all the cases anyway.
464   * <!-- end-user-doc -->
465   * @return the new adapter.
466   * @see de.ugoe.cs.swe.bnftools.ebnf.Term
467   * @generated
468   */
469  public Adapter createTermAdapter()
470  {
471    return null;
472  }
473
474  /**
475   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.Atom <em>Atom</em>}'.
476   * <!-- begin-user-doc -->
477   * This default implementation returns null so that we can easily ignore cases;
478   * it's useful to ignore a case when inheritance will catch all the cases anyway.
479   * <!-- end-user-doc -->
480   * @return the new adapter.
481   * @see de.ugoe.cs.swe.bnftools.ebnf.Atom
482   * @generated
483   */
484  public Adapter createAtomAdapter()
485  {
486    return null;
487  }
488
489  /**
490   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.RuleReference <em>Rule Reference</em>}'.
491   * <!-- begin-user-doc -->
492   * This default implementation returns null so that we can easily ignore cases;
493   * it's useful to ignore a case when inheritance will catch all the cases anyway.
494   * <!-- end-user-doc -->
495   * @return the new adapter.
496   * @see de.ugoe.cs.swe.bnftools.ebnf.RuleReference
497   * @generated
498   */
499  public Adapter createRuleReferenceAdapter()
500  {
501    return null;
502  }
503
504  /**
505   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.StringRule <em>String Rule</em>}'.
506   * <!-- begin-user-doc -->
507   * This default implementation returns null so that we can easily ignore cases;
508   * it's useful to ignore a case when inheritance will catch all the cases anyway.
509   * <!-- end-user-doc -->
510   * @return the new adapter.
511   * @see de.ugoe.cs.swe.bnftools.ebnf.StringRule
512   * @generated
513   */
514  public Adapter createStringRuleAdapter()
515  {
516    return null;
517  }
518
519  /**
520   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.GroupedSequence <em>Grouped Sequence</em>}'.
521   * <!-- begin-user-doc -->
522   * This default implementation returns null so that we can easily ignore cases;
523   * it's useful to ignore a case when inheritance will catch all the cases anyway.
524   * <!-- end-user-doc -->
525   * @return the new adapter.
526   * @see de.ugoe.cs.swe.bnftools.ebnf.GroupedSequence
527   * @generated
528   */
529  public Adapter createGroupedSequenceAdapter()
530  {
531    return null;
532  }
533
534  /**
535   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.OptionalSequence <em>Optional Sequence</em>}'.
536   * <!-- begin-user-doc -->
537   * This default implementation returns null so that we can easily ignore cases;
538   * it's useful to ignore a case when inheritance will catch all the cases anyway.
539   * <!-- end-user-doc -->
540   * @return the new adapter.
541   * @see de.ugoe.cs.swe.bnftools.ebnf.OptionalSequence
542   * @generated
543   */
544  public Adapter createOptionalSequenceAdapter()
545  {
546    return null;
547  }
548
549  /**
550   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.RepeatedSequence <em>Repeated Sequence</em>}'.
551   * <!-- begin-user-doc -->
552   * This default implementation returns null so that we can easily ignore cases;
553   * it's useful to ignore a case when inheritance will catch all the cases anyway.
554   * <!-- end-user-doc -->
555   * @return the new adapter.
556   * @see de.ugoe.cs.swe.bnftools.ebnf.RepeatedSequence
557   * @generated
558   */
559  public Adapter createRepeatedSequenceAdapter()
560  {
561    return null;
562  }
563
564  /**
565   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.RepeatRange <em>Repeat Range</em>}'.
566   * <!-- begin-user-doc -->
567   * This default implementation returns null so that we can easily ignore cases;
568   * it's useful to ignore a case when inheritance will catch all the cases anyway.
569   * <!-- end-user-doc -->
570   * @return the new adapter.
571   * @see de.ugoe.cs.swe.bnftools.ebnf.RepeatRange
572   * @generated
573   */
574  public Adapter createRepeatRangeAdapter()
575  {
576    return null;
577  }
578
579  /**
580   * Creates a new adapter for the default case.
581   * <!-- begin-user-doc -->
582   * This default implementation returns null.
583   * <!-- end-user-doc -->
584   * @return the new adapter.
585   * @generated
586   */
587  public Adapter createEObjectAdapter()
588  {
589    return null;
590  }
591
592} //EbnfAdapterFactory
Note: See TracBrowser for help on using the repository browser.