/** * Creates an adapter for the <code>target</code>. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param target the object to adapt. * @return the adapter for the <code>target</code>. * @generated */ @Override public Adapter createAdapter(Notifier target) { return modelSwitch.doSwitch((EObject)target); }
T result = caseXSDAnnotation(xsdAnnotation); if (result == null) result = caseXSDComponent(xsdAnnotation); if (result == null) result = caseXSDRedefineContent(xsdAnnotation); if (result == null) result = caseXSDSchemaContent(xsdAnnotation); if (result == null) result = caseXSDConcreteComponent(xsdAnnotation); if (result == null) result = defaultCase(theEObject); return result; T result = caseXSDAttributeDeclaration(xsdAttributeDeclaration); if (result == null) result = caseXSDFeature(xsdAttributeDeclaration); if (result == null) result = caseXSDSchemaContent(xsdAttributeDeclaration); if (result == null) result = caseXSDNamedComponent(xsdAttributeDeclaration); if (result == null) result = caseXSDComponent(xsdAttributeDeclaration); if (result == null) result = caseXSDConcreteComponent(xsdAttributeDeclaration); if (result == null) result = defaultCase(theEObject); return result; T result = caseXSDAttributeGroupContent(xsdAttributeGroupContent); if (result == null) result = caseXSDConcreteComponent(xsdAttributeGroupContent); if (result == null) result = defaultCase(theEObject); return result; T result = caseXSDAttributeGroupDefinition(xsdAttributeGroupDefinition); if (result == null) result = caseXSDRedefinableComponent(xsdAttributeGroupDefinition); if (result == null) result = caseXSDAttributeGroupContent(xsdAttributeGroupDefinition); if (result == null) result = caseXSDNamedComponent(xsdAttributeGroupDefinition); if (result == null) result = caseXSDRedefineContent(xsdAttributeGroupDefinition); if (result == null) result = caseXSDComponent(xsdAttributeGroupDefinition); if (result == null) result = caseXSDSchemaContent(xsdAttributeGroupDefinition);
/** * 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 T doSwitch(EClass theEClass, EObject theEObject) { if (theEClass.eContainer() == modelPackage) { return doSwitch(theEClass.getClassifierID(), theEObject); } else { List<EClass> eSuperTypes = theEClass.getESuperTypes(); return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject); } }
T result = caseXSDAnnotation(xsdAnnotation); if (result == null) result = caseXSDComponent(xsdAnnotation); if (result == null) result = caseXSDRedefineContent(xsdAnnotation); if (result == null) result = caseXSDConcreteComponent(xsdAnnotation); if (result == null) result = caseXSDSchemaContent(xsdAnnotation); if (result == null) result = defaultCase(theEObject); return result; T result = caseXSDAttributeDeclaration(xsdAttributeDeclaration); if (result == null) result = caseXSDFeature(xsdAttributeDeclaration); if (result == null) result = caseXSDSchemaContent(xsdAttributeDeclaration); if (result == null) result = caseXSDNamedComponent(xsdAttributeDeclaration); if (result == null) result = caseXSDConcreteComponent(xsdAttributeDeclaration); if (result == null) result = caseXSDComponent(xsdAttributeDeclaration); if (result == null) result = defaultCase(theEObject); return result; T result = caseXSDAttributeGroupContent(xsdAttributeGroupContent); if (result == null) result = caseXSDConcreteComponent(xsdAttributeGroupContent); if (result == null) result = defaultCase(theEObject); return result; T result = caseXSDAttributeGroupDefinition(xsdAttributeGroupDefinition); if (result == null) result = caseXSDRedefinableComponent(xsdAttributeGroupDefinition); if (result == null) result = caseXSDAttributeGroupContent(xsdAttributeGroupDefinition); if (result == null) result = caseXSDRedefineContent(xsdAttributeGroupDefinition); if (result == null) result = caseXSDNamedComponent(xsdAttributeGroupDefinition); if (result == null) result = caseXSDConcreteComponent(xsdAttributeGroupDefinition); if (result == null) result = caseXSDSchemaContent(xsdAttributeGroupDefinition);
/** * Creates an adapter for the <code>target</code>. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param target the object to adapt. * @return the adapter for the <code>target</code>. * @generated */ @Override public Adapter createAdapter(Notifier target) { return modelSwitch.doSwitch((EObject)target); }
/** * 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 */ public T doSwitch(EObject theEObject) { return doSwitch(theEObject.eClass(), theEObject); }
theSwitch.doSwitch((EObject)object);
Object o = xsdSwitch.doSwitch((EObject) target); Adapter result = null; if (o instanceof Adapter)
xsdSwitch.doSwitch(xsdRedefineContent);
xsdSwitch.doSwitch(xsdRedefineContent);