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

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

+ generated resources

  • Property svn:mime-type set to text/plain
File size: 17.4 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 caseRepeatRange(RepeatRange object)
189      {
190        return createRepeatRangeAdapter();
191      }
192      @Override
193      public Adapter defaultCase(EObject object)
194      {
195        return createEObjectAdapter();
196      }
197    };
198
199  /**
200   * Creates an adapter for the <code>target</code>.
201   * <!-- begin-user-doc -->
202   * <!-- end-user-doc -->
203   * @param target the object to adapt.
204   * @return the adapter for the <code>target</code>.
205   * @generated
206   */
207  @Override
208  public Adapter createAdapter(Notifier target)
209  {
210    return modelSwitch.doSwitch((EObject)target);
211  }
212
213
214  /**
215   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.EtsiBnf <em>Etsi Bnf</em>}'.
216   * <!-- begin-user-doc -->
217   * This default implementation returns null so that we can easily ignore cases;
218   * it's useful to ignore a case when inheritance will catch all the cases anyway.
219   * <!-- end-user-doc -->
220   * @return the new adapter.
221   * @see de.ugoe.cs.swe.bnftools.ebnf.EtsiBnf
222   * @generated
223   */
224  public Adapter createEtsiBnfAdapter()
225  {
226    return null;
227  }
228
229  /**
230   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.ImportSection <em>Import Section</em>}'.
231   * <!-- begin-user-doc -->
232   * This default implementation returns null so that we can easily ignore cases;
233   * it's useful to ignore a case when inheritance will catch all the cases anyway.
234   * <!-- end-user-doc -->
235   * @return the new adapter.
236   * @see de.ugoe.cs.swe.bnftools.ebnf.ImportSection
237   * @generated
238   */
239  public Adapter createImportSectionAdapter()
240  {
241    return null;
242  }
243
244  /**
245   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.BnfEntry <em>Bnf Entry</em>}'.
246   * <!-- begin-user-doc -->
247   * This default implementation returns null so that we can easily ignore cases;
248   * it's useful to ignore a case when inheritance will catch all the cases anyway.
249   * <!-- end-user-doc -->
250   * @return the new adapter.
251   * @see de.ugoe.cs.swe.bnftools.ebnf.BnfEntry
252   * @generated
253   */
254  public Adapter createBnfEntryAdapter()
255  {
256    return null;
257  }
258
259  /**
260   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.DeltaEntry <em>Delta Entry</em>}'.
261   * <!-- begin-user-doc -->
262   * This default implementation returns null so that we can easily ignore cases;
263   * it's useful to ignore a case when inheritance will catch all the cases anyway.
264   * <!-- end-user-doc -->
265   * @return the new adapter.
266   * @see de.ugoe.cs.swe.bnftools.ebnf.DeltaEntry
267   * @generated
268   */
269  public Adapter createDeltaEntryAdapter()
270  {
271    return null;
272  }
273
274  /**
275   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.MergeEntry <em>Merge Entry</em>}'.
276   * <!-- begin-user-doc -->
277   * This default implementation returns null so that we can easily ignore cases;
278   * it's useful to ignore a case when inheritance will catch all the cases anyway.
279   * <!-- end-user-doc -->
280   * @return the new adapter.
281   * @see de.ugoe.cs.swe.bnftools.ebnf.MergeEntry
282   * @generated
283   */
284  public Adapter createMergeEntryAdapter()
285  {
286    return null;
287  }
288
289  /**
290   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.SectionHeading <em>Section Heading</em>}'.
291   * <!-- begin-user-doc -->
292   * This default implementation returns null so that we can easily ignore cases;
293   * it's useful to ignore a case when inheritance will catch all the cases anyway.
294   * <!-- end-user-doc -->
295   * @return the new adapter.
296   * @see de.ugoe.cs.swe.bnftools.ebnf.SectionHeading
297   * @generated
298   */
299  public Adapter createSectionHeadingAdapter()
300  {
301    return null;
302  }
303
304  /**
305   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.Import <em>Import</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 de.ugoe.cs.swe.bnftools.ebnf.Import
312   * @generated
313   */
314  public Adapter createImportAdapter()
315  {
316    return null;
317  }
318
319  /**
320   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.Rule <em>Rule</em>}'.
321   * <!-- begin-user-doc -->
322   * This default implementation returns null so that we can easily ignore cases;
323   * it's useful to ignore a case when inheritance will catch all the cases anyway.
324   * <!-- end-user-doc -->
325   * @return the new adapter.
326   * @see de.ugoe.cs.swe.bnftools.ebnf.Rule
327   * @generated
328   */
329  public Adapter createRuleAdapter()
330  {
331    return null;
332  }
333
334  /**
335   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.ExtRule <em>Ext Rule</em>}'.
336   * <!-- begin-user-doc -->
337   * This default implementation returns null so that we can easily ignore cases;
338   * it's useful to ignore a case when inheritance will catch all the cases anyway.
339   * <!-- end-user-doc -->
340   * @return the new adapter.
341   * @see de.ugoe.cs.swe.bnftools.ebnf.ExtRule
342   * @generated
343   */
344  public Adapter createExtRuleAdapter()
345  {
346    return null;
347  }
348
349  /**
350   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.MergeRule <em>Merge Rule</em>}'.
351   * <!-- begin-user-doc -->
352   * This default implementation returns null so that we can easily ignore cases;
353   * it's useful to ignore a case when inheritance will catch all the cases anyway.
354   * <!-- end-user-doc -->
355   * @return the new adapter.
356   * @see de.ugoe.cs.swe.bnftools.ebnf.MergeRule
357   * @generated
358   */
359  public Adapter createMergeRuleAdapter()
360  {
361    return null;
362  }
363
364  /**
365   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.GlobalCombinator <em>Global Combinator</em>}'.
366   * <!-- begin-user-doc -->
367   * This default implementation returns null so that we can easily ignore cases;
368   * it's useful to ignore a case when inheritance will catch all the cases anyway.
369   * <!-- end-user-doc -->
370   * @return the new adapter.
371   * @see de.ugoe.cs.swe.bnftools.ebnf.GlobalCombinator
372   * @generated
373   */
374  public Adapter createGlobalCombinatorAdapter()
375  {
376    return null;
377  }
378
379  /**
380   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.RuleCombinator <em>Rule Combinator</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.ugoe.cs.swe.bnftools.ebnf.RuleCombinator
387   * @generated
388   */
389  public Adapter createRuleCombinatorAdapter()
390  {
391    return null;
392  }
393
394  /**
395   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.HookCombinator <em>Hook Combinator</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 de.ugoe.cs.swe.bnftools.ebnf.HookCombinator
402   * @generated
403   */
404  public Adapter createHookCombinatorAdapter()
405  {
406    return null;
407  }
408
409  /**
410   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.DefinitionList <em>Definition List</em>}'.
411   * <!-- begin-user-doc -->
412   * This default implementation returns null so that we can easily ignore cases;
413   * it's useful to ignore a case when inheritance will catch all the cases anyway.
414   * <!-- end-user-doc -->
415   * @return the new adapter.
416   * @see de.ugoe.cs.swe.bnftools.ebnf.DefinitionList
417   * @generated
418   */
419  public Adapter createDefinitionListAdapter()
420  {
421    return null;
422  }
423
424  /**
425   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.SingleDefinition <em>Single Definition</em>}'.
426   * <!-- begin-user-doc -->
427   * This default implementation returns null so that we can easily ignore cases;
428   * it's useful to ignore a case when inheritance will catch all the cases anyway.
429   * <!-- end-user-doc -->
430   * @return the new adapter.
431   * @see de.ugoe.cs.swe.bnftools.ebnf.SingleDefinition
432   * @generated
433   */
434  public Adapter createSingleDefinitionAdapter()
435  {
436    return null;
437  }
438
439  /**
440   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.Term <em>Term</em>}'.
441   * <!-- begin-user-doc -->
442   * This default implementation returns null so that we can easily ignore cases;
443   * it's useful to ignore a case when inheritance will catch all the cases anyway.
444   * <!-- end-user-doc -->
445   * @return the new adapter.
446   * @see de.ugoe.cs.swe.bnftools.ebnf.Term
447   * @generated
448   */
449  public Adapter createTermAdapter()
450  {
451    return null;
452  }
453
454  /**
455   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.Atom <em>Atom</em>}'.
456   * <!-- begin-user-doc -->
457   * This default implementation returns null so that we can easily ignore cases;
458   * it's useful to ignore a case when inheritance will catch all the cases anyway.
459   * <!-- end-user-doc -->
460   * @return the new adapter.
461   * @see de.ugoe.cs.swe.bnftools.ebnf.Atom
462   * @generated
463   */
464  public Adapter createAtomAdapter()
465  {
466    return null;
467  }
468
469  /**
470   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.RuleReference <em>Rule Reference</em>}'.
471   * <!-- begin-user-doc -->
472   * This default implementation returns null so that we can easily ignore cases;
473   * it's useful to ignore a case when inheritance will catch all the cases anyway.
474   * <!-- end-user-doc -->
475   * @return the new adapter.
476   * @see de.ugoe.cs.swe.bnftools.ebnf.RuleReference
477   * @generated
478   */
479  public Adapter createRuleReferenceAdapter()
480  {
481    return null;
482  }
483
484  /**
485   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.StringRule <em>String Rule</em>}'.
486   * <!-- begin-user-doc -->
487   * This default implementation returns null so that we can easily ignore cases;
488   * it's useful to ignore a case when inheritance will catch all the cases anyway.
489   * <!-- end-user-doc -->
490   * @return the new adapter.
491   * @see de.ugoe.cs.swe.bnftools.ebnf.StringRule
492   * @generated
493   */
494  public Adapter createStringRuleAdapter()
495  {
496    return null;
497  }
498
499  /**
500   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.GroupedSequence <em>Grouped Sequence</em>}'.
501   * <!-- begin-user-doc -->
502   * This default implementation returns null so that we can easily ignore cases;
503   * it's useful to ignore a case when inheritance will catch all the cases anyway.
504   * <!-- end-user-doc -->
505   * @return the new adapter.
506   * @see de.ugoe.cs.swe.bnftools.ebnf.GroupedSequence
507   * @generated
508   */
509  public Adapter createGroupedSequenceAdapter()
510  {
511    return null;
512  }
513
514  /**
515   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.OptionalSequence <em>Optional Sequence</em>}'.
516   * <!-- begin-user-doc -->
517   * This default implementation returns null so that we can easily ignore cases;
518   * it's useful to ignore a case when inheritance will catch all the cases anyway.
519   * <!-- end-user-doc -->
520   * @return the new adapter.
521   * @see de.ugoe.cs.swe.bnftools.ebnf.OptionalSequence
522   * @generated
523   */
524  public Adapter createOptionalSequenceAdapter()
525  {
526    return null;
527  }
528
529  /**
530   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.RepeatedSequence <em>Repeated Sequence</em>}'.
531   * <!-- begin-user-doc -->
532   * This default implementation returns null so that we can easily ignore cases;
533   * it's useful to ignore a case when inheritance will catch all the cases anyway.
534   * <!-- end-user-doc -->
535   * @return the new adapter.
536   * @see de.ugoe.cs.swe.bnftools.ebnf.RepeatedSequence
537   * @generated
538   */
539  public Adapter createRepeatedSequenceAdapter()
540  {
541    return null;
542  }
543
544  /**
545   * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.RepeatRange <em>Repeat Range</em>}'.
546   * <!-- begin-user-doc -->
547   * This default implementation returns null so that we can easily ignore cases;
548   * it's useful to ignore a case when inheritance will catch all the cases anyway.
549   * <!-- end-user-doc -->
550   * @return the new adapter.
551   * @see de.ugoe.cs.swe.bnftools.ebnf.RepeatRange
552   * @generated
553   */
554  public Adapter createRepeatRangeAdapter()
555  {
556    return null;
557  }
558
559  /**
560   * Creates a new adapter for the default case.
561   * <!-- begin-user-doc -->
562   * This default implementation returns null.
563   * <!-- end-user-doc -->
564   * @return the new adapter.
565   * @generated
566   */
567  public Adapter createEObjectAdapter()
568  {
569    return null;
570  }
571
572} //EbnfAdapterFactory
Note: See TracBrowser for help on using the repository browser.