/** * @generated This field/method will be replaced during code generation. */ public Adapter createAdapterGen(Notifier target) { return (Adapter)modelSwitch.doSwitch((EObject)target); }
public Adapter createAdapter(Notifier target) { return (Adapter) sw.doSwitch((EObject) target); }
/** * @generated This field/method will be replaced during code generation. */ public Object doSwitchGen(EObject theEObject) { return doSwitch(theEObject.eClass(), theEObject); }
/** * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the first non-null result returned by a <code>caseXXX</code> call. * @generated */ protected Object doSwitch(EClass theEClass, EObject theEObject) { if (theEClass.eContainer() == modelPackage) { return doSwitch(theEClass.getClassifierID(), theEObject); } else { List eSuperTypes = theEClass.getESuperTypes(); return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch((EClass)eSuperTypes.get(0), theEObject); } }