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

Last change on this file since 88 was 88, checked in by phdmakk, 9 years ago

+ generated resources

  • Property svn:mime-type set to text/plain
File size: 16.7 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 caseImport(Import object)
109      {
110        return createImportAdapter();
111      }
112      @Override
113      public Adapter caseRule(Rule object)
114      {
115        return createRuleAdapter();
116      }
117      @Override
118      public Adapter caseExtRule(ExtRule object)
119      {
120        return createExtRuleAdapter();
121      }
122      @Override
123      public Adapter caseMergeRule(MergeRule object)
124      {
125        return createMergeRuleAdapter();
126      }
127      @Override
128      public Adapter caseGlobalCombinator(GlobalCombinator object)
129      {
130        return createGlobalCombinatorAdapter();
131      }
132      @Override
133      public Adapter caseRuleCombinator(RuleCombinator object)
134      {
135        return createRuleCombinatorAdapter();
136      }
137      @Override
138      public Adapter caseHookCombinator(HookCombinator object)
139      {
140        return createHookCombinatorAdapter();
141      }
142      @Override
143      public Adapter caseDefinitionList(DefinitionList object)
144      {
145        return createDefinitionListAdapter();
146      }
147      @Override
148      public Adapter caseSingleDefinition(SingleDefinition object)
149      {
150        return createSingleDefinitionAdapter();
151      }
152      @Override
153      public Adapter caseTerm(Term object)
154      {
155        return createTermAdapter();
156      }
157      @Override
158      public Adapter caseAtom(Atom object)
159      {
160        return createAtomAdapter();
161      }
162      @Override
163      public Adapter caseRuleReference(RuleReference object)
164      {
165        return createRuleReferenceAdapter();
166      }
167      @Override
168      public Adapter caseStringRule(StringRule object)
169      {
170        return createStringRuleAdapter();
171      }
172      @Override
173      public Adapter caseGroupedSequence(GroupedSequence object)
174      {
175        return createGroupedSequenceAdapter();
176      }
177      @Override
178      public Adapter caseOptionalSequence(OptionalSequence object)
179      {
180        return createOptionalSequenceAdapter();
181      }
182      @Override
183      public Adapter caseRepeatedSequence(RepeatedSequence object)
184      {
185        return createRepeatedSequenceAdapter();
186      }
187      @Override
188      public Adapter defaultCase(EObject object)
189      {
190        return createEObjectAdapter();
191      }
192    };
193
194  /**
195   * Creates an adapter for the <code>target</code>.
196   * <!-- begin-user-doc -->
197   * <!-- end-user-doc -->
198   * @param target the object to adapt.
199   * @return the adapter for the <code>target</code>.
200   * @generated
201   */
202  @Override
203  public Adapter createAdapter(Notifier target)
204  {
205    return modelSwitch.doSwitch((EObject)target);
206  }
207
208
209  /**
210   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.EtsiBnf <em>Etsi Bnf</em>}'.
211   * <!-- begin-user-doc -->
212   * This default implementation returns null so that we can easily ignore cases;
213   * it's useful to ignore a case when inheritance will catch all the cases anyway.
214   * <!-- end-user-doc -->
215   * @return the new adapter.
216   * @see de.ugoe.cs.swe.bnftools.ebnf.EtsiBnf
217   * @generated
218   */
219  public Adapter createEtsiBnfAdapter()
220  {
221    return null;
222  }
223
224  /**
225   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.ImportSection <em>Import Section</em>}'.
226   * <!-- begin-user-doc -->
227   * This default implementation returns null so that we can easily ignore cases;
228   * it's useful to ignore a case when inheritance will catch all the cases anyway.
229   * <!-- end-user-doc -->
230   * @return the new adapter.
231   * @see de.ugoe.cs.swe.bnftools.ebnf.ImportSection
232   * @generated
233   */
234  public Adapter createImportSectionAdapter()
235  {
236    return null;
237  }
238
239  /**
240   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.BnfEntry <em>Bnf Entry</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.ugoe.cs.swe.bnftools.ebnf.BnfEntry
247   * @generated
248   */
249  public Adapter createBnfEntryAdapter()
250  {
251    return null;
252  }
253
254  /**
255   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.DeltaEntry <em>Delta Entry</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 de.ugoe.cs.swe.bnftools.ebnf.DeltaEntry
262   * @generated
263   */
264  public Adapter createDeltaEntryAdapter()
265  {
266    return null;
267  }
268
269  /**
270   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.MergeEntry <em>Merge Entry</em>}'.
271   * <!-- begin-user-doc -->
272   * This default implementation returns null so that we can easily ignore cases;
273   * it's useful to ignore a case when inheritance will catch all the cases anyway.
274   * <!-- end-user-doc -->
275   * @return the new adapter.
276   * @see de.ugoe.cs.swe.bnftools.ebnf.MergeEntry
277   * @generated
278   */
279  public Adapter createMergeEntryAdapter()
280  {
281    return null;
282  }
283
284  /**
285   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.SectionHeading <em>Section Heading</em>}'.
286   * <!-- begin-user-doc -->
287   * This default implementation returns null so that we can easily ignore cases;
288   * it's useful to ignore a case when inheritance will catch all the cases anyway.
289   * <!-- end-user-doc -->
290   * @return the new adapter.
291   * @see de.ugoe.cs.swe.bnftools.ebnf.SectionHeading
292   * @generated
293   */
294  public Adapter createSectionHeadingAdapter()
295  {
296    return null;
297  }
298
299  /**
300   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.Import <em>Import</em>}'.
301   * <!-- begin-user-doc -->
302   * This default implementation returns null so that we can easily ignore cases;
303   * it's useful to ignore a case when inheritance will catch all the cases anyway.
304   * <!-- end-user-doc -->
305   * @return the new adapter.
306   * @see de.ugoe.cs.swe.bnftools.ebnf.Import
307   * @generated
308   */
309  public Adapter createImportAdapter()
310  {
311    return null;
312  }
313
314  /**
315   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.Rule <em>Rule</em>}'.
316   * <!-- begin-user-doc -->
317   * This default implementation returns null so that we can easily ignore cases;
318   * it's useful to ignore a case when inheritance will catch all the cases anyway.
319   * <!-- end-user-doc -->
320   * @return the new adapter.
321   * @see de.ugoe.cs.swe.bnftools.ebnf.Rule
322   * @generated
323   */
324  public Adapter createRuleAdapter()
325  {
326    return null;
327  }
328
329  /**
330   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.ExtRule <em>Ext Rule</em>}'.
331   * <!-- begin-user-doc -->
332   * This default implementation returns null so that we can easily ignore cases;
333   * it's useful to ignore a case when inheritance will catch all the cases anyway.
334   * <!-- end-user-doc -->
335   * @return the new adapter.
336   * @see de.ugoe.cs.swe.bnftools.ebnf.ExtRule
337   * @generated
338   */
339  public Adapter createExtRuleAdapter()
340  {
341    return null;
342  }
343
344  /**
345   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.MergeRule <em>Merge Rule</em>}'.
346   * <!-- begin-user-doc -->
347   * This default implementation returns null so that we can easily ignore cases;
348   * it's useful to ignore a case when inheritance will catch all the cases anyway.
349   * <!-- end-user-doc -->
350   * @return the new adapter.
351   * @see de.ugoe.cs.swe.bnftools.ebnf.MergeRule
352   * @generated
353   */
354  public Adapter createMergeRuleAdapter()
355  {
356    return null;
357  }
358
359  /**
360   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.GlobalCombinator <em>Global Combinator</em>}'.
361   * <!-- begin-user-doc -->
362   * This default implementation returns null so that we can easily ignore cases;
363   * it's useful to ignore a case when inheritance will catch all the cases anyway.
364   * <!-- end-user-doc -->
365   * @return the new adapter.
366   * @see de.ugoe.cs.swe.bnftools.ebnf.GlobalCombinator
367   * @generated
368   */
369  public Adapter createGlobalCombinatorAdapter()
370  {
371    return null;
372  }
373
374  /**
375   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.RuleCombinator <em>Rule Combinator</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 de.ugoe.cs.swe.bnftools.ebnf.RuleCombinator
382   * @generated
383   */
384  public Adapter createRuleCombinatorAdapter()
385  {
386    return null;
387  }
388
389  /**
390   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.HookCombinator <em>Hook Combinator</em>}'.
391   * <!-- begin-user-doc -->
392   * This default implementation returns null so that we can easily ignore cases;
393   * it's useful to ignore a case when inheritance will catch all the cases anyway.
394   * <!-- end-user-doc -->
395   * @return the new adapter.
396   * @see de.ugoe.cs.swe.bnftools.ebnf.HookCombinator
397   * @generated
398   */
399  public Adapter createHookCombinatorAdapter()
400  {
401    return null;
402  }
403
404  /**
405   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.DefinitionList <em>Definition List</em>}'.
406   * <!-- begin-user-doc -->
407   * This default implementation returns null so that we can easily ignore cases;
408   * it's useful to ignore a case when inheritance will catch all the cases anyway.
409   * <!-- end-user-doc -->
410   * @return the new adapter.
411   * @see de.ugoe.cs.swe.bnftools.ebnf.DefinitionList
412   * @generated
413   */
414  public Adapter createDefinitionListAdapter()
415  {
416    return null;
417  }
418
419  /**
420   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.SingleDefinition <em>Single Definition</em>}'.
421   * <!-- begin-user-doc -->
422   * This default implementation returns null so that we can easily ignore cases;
423   * it's useful to ignore a case when inheritance will catch all the cases anyway.
424   * <!-- end-user-doc -->
425   * @return the new adapter.
426   * @see de.ugoe.cs.swe.bnftools.ebnf.SingleDefinition
427   * @generated
428   */
429  public Adapter createSingleDefinitionAdapter()
430  {
431    return null;
432  }
433
434  /**
435   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.Term <em>Term</em>}'.
436   * <!-- begin-user-doc -->
437   * This default implementation returns null so that we can easily ignore cases;
438   * it's useful to ignore a case when inheritance will catch all the cases anyway.
439   * <!-- end-user-doc -->
440   * @return the new adapter.
441   * @see de.ugoe.cs.swe.bnftools.ebnf.Term
442   * @generated
443   */
444  public Adapter createTermAdapter()
445  {
446    return null;
447  }
448
449  /**
450   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.Atom <em>Atom</em>}'.
451   * <!-- begin-user-doc -->
452   * This default implementation returns null so that we can easily ignore cases;
453   * it's useful to ignore a case when inheritance will catch all the cases anyway.
454   * <!-- end-user-doc -->
455   * @return the new adapter.
456   * @see de.ugoe.cs.swe.bnftools.ebnf.Atom
457   * @generated
458   */
459  public Adapter createAtomAdapter()
460  {
461    return null;
462  }
463
464  /**
465   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.RuleReference <em>Rule Reference</em>}'.
466   * <!-- begin-user-doc -->
467   * This default implementation returns null so that we can easily ignore cases;
468   * it's useful to ignore a case when inheritance will catch all the cases anyway.
469   * <!-- end-user-doc -->
470   * @return the new adapter.
471   * @see de.ugoe.cs.swe.bnftools.ebnf.RuleReference
472   * @generated
473   */
474  public Adapter createRuleReferenceAdapter()
475  {
476    return null;
477  }
478
479  /**
480   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.StringRule <em>String Rule</em>}'.
481   * <!-- begin-user-doc -->
482   * This default implementation returns null so that we can easily ignore cases;
483   * it's useful to ignore a case when inheritance will catch all the cases anyway.
484   * <!-- end-user-doc -->
485   * @return the new adapter.
486   * @see de.ugoe.cs.swe.bnftools.ebnf.StringRule
487   * @generated
488   */
489  public Adapter createStringRuleAdapter()
490  {
491    return null;
492  }
493
494  /**
495   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.GroupedSequence <em>Grouped Sequence</em>}'.
496   * <!-- begin-user-doc -->
497   * This default implementation returns null so that we can easily ignore cases;
498   * it's useful to ignore a case when inheritance will catch all the cases anyway.
499   * <!-- end-user-doc -->
500   * @return the new adapter.
501   * @see de.ugoe.cs.swe.bnftools.ebnf.GroupedSequence
502   * @generated
503   */
504  public Adapter createGroupedSequenceAdapter()
505  {
506    return null;
507  }
508
509  /**
510   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.OptionalSequence <em>Optional Sequence</em>}'.
511   * <!-- begin-user-doc -->
512   * This default implementation returns null so that we can easily ignore cases;
513   * it's useful to ignore a case when inheritance will catch all the cases anyway.
514   * <!-- end-user-doc -->
515   * @return the new adapter.
516   * @see de.ugoe.cs.swe.bnftools.ebnf.OptionalSequence
517   * @generated
518   */
519  public Adapter createOptionalSequenceAdapter()
520  {
521    return null;
522  }
523
524  /**
525   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.RepeatedSequence <em>Repeated Sequence</em>}'.
526   * <!-- begin-user-doc -->
527   * This default implementation returns null so that we can easily ignore cases;
528   * it's useful to ignore a case when inheritance will catch all the cases anyway.
529   * <!-- end-user-doc -->
530   * @return the new adapter.
531   * @see de.ugoe.cs.swe.bnftools.ebnf.RepeatedSequence
532   * @generated
533   */
534  public Adapter createRepeatedSequenceAdapter()
535  {
536    return null;
537  }
538
539  /**
540   * Creates a new adapter for the default case.
541   * <!-- begin-user-doc -->
542   * This default implementation returns null.
543   * <!-- end-user-doc -->
544   * @return the new adapter.
545   * @generated
546   */
547  public Adapter createEObjectAdapter()
548  {
549    return null;
550  }
551
552} //EbnfAdapterFactory
Note: See TracBrowser for help on using the repository browser.