SmachDSLAdapterFactory.java
Go to the documentation of this file.
00001 
00003 package org.best.of.robotics.smachDSL.util;
00004 
00005 import org.best.of.robotics.smachDSL.*;
00006 
00007 import org.eclipse.emf.common.notify.Adapter;
00008 import org.eclipse.emf.common.notify.Notifier;
00009 
00010 import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
00011 
00012 import org.eclipse.emf.ecore.EObject;
00013 
00022 public class SmachDSLAdapterFactory extends AdapterFactoryImpl
00023 {
00030   protected static SmachDSLPackage modelPackage;
00031 
00038   public SmachDSLAdapterFactory()
00039   {
00040     if (modelPackage == null)
00041     {
00042       modelPackage = SmachDSLPackage.eINSTANCE;
00043     }
00044   }
00045 
00054   @Override
00055   public boolean isFactoryForType(Object object)
00056   {
00057     if (object == modelPackage)
00058     {
00059       return true;
00060     }
00061     if (object instanceof EObject)
00062     {
00063       return ((EObject)object).eClass().getEPackage() == modelPackage;
00064     }
00065     return false;
00066   }
00067 
00074   protected SmachDSLSwitch<Adapter> modelSwitch =
00075     new SmachDSLSwitch<Adapter>()
00076     {
00077       @Override
00078       public Adapter casePrimitivePackage(PrimitivePackage object)
00079       {
00080         return createPrimitivePackageAdapter();
00081       }
00082       @Override
00083       public Adapter caseTest(Test object)
00084       {
00085         return createTestAdapter();
00086       }
00087       @Override
00088       public Adapter caseStateMachine(StateMachine object)
00089       {
00090         return createStateMachineAdapter();
00091       }
00092       @Override
00093       public Adapter caseActionClient(ActionClient object)
00094       {
00095         return createActionClientAdapter();
00096       }
00097       @Override
00098       public Adapter caseServiceClient(ServiceClient object)
00099       {
00100         return createServiceClientAdapter();
00101       }
00102       @Override
00103       public Adapter caseActionState(ActionState object)
00104       {
00105         return createActionStateAdapter();
00106       }
00107       @Override
00108       public Adapter caseTransition(Transition object)
00109       {
00110         return createTransitionAdapter();
00111       }
00112       @Override
00113       public Adapter defaultCase(EObject object)
00114       {
00115         return createEObjectAdapter();
00116       }
00117     };
00118 
00127   @Override
00128   public Adapter createAdapter(Notifier target)
00129   {
00130     return modelSwitch.doSwitch((EObject)target);
00131   }
00132 
00133 
00144   public Adapter createPrimitivePackageAdapter()
00145   {
00146     return null;
00147   }
00148 
00159   public Adapter createTestAdapter()
00160   {
00161     return null;
00162   }
00163 
00174   public Adapter createStateMachineAdapter()
00175   {
00176     return null;
00177   }
00178 
00189   public Adapter createActionClientAdapter()
00190   {
00191     return null;
00192   }
00193 
00204   public Adapter createServiceClientAdapter()
00205   {
00206     return null;
00207   }
00208 
00219   public Adapter createActionStateAdapter()
00220   {
00221     return null;
00222   }
00223 
00234   public Adapter createTransitionAdapter()
00235   {
00236     return null;
00237   }
00238 
00247   public Adapter createEObjectAdapter()
00248   {
00249     return null;
00250   }
00251 
00252 } //SmachDSLAdapterFactory


bride_plugin_source
Author(s): Alexander Bubeck
autogenerated on Sun Oct 5 2014 22:38:34