traverseToRootForPatching();
if (!isReconciling && isIncrementalUpdate) { for (Iterator i = getContents().iterator(); i.hasNext(); ) { Object content = i.next(); if (content instanceof XSDNamedComponentImpl) { ((XSDNamedComponentImpl)content).patchTargetNamespaceAttribute(); } } reset(); }
  protected void changeAttribute(EAttribute eAttribute)  {    if (eAttribute == XSDPackage.Literals.XSD_SCHEMA__SCHEMA_LOCATION)    {      patch();    }    else    {      super.changeAttribute(eAttribute);      Element theElement = getElement();      if (theElement != null)      {        if (eAttribute == null || eAttribute == XSDPackage.Literals.XSD_SCHEMA__VERSION)        {          niceSetAttribute            (theElement,              XSDConstants.VERSION_ATTRIBUTE,              getVersion());          if (eAttribute != null)          {            traverseToRootForPatching();          }        }        if (eAttribute == null || eAttribute == XSDPackage.Literals.XSD_SCHEMA__TARGET_NAMESPACE)        {          niceSetAttribute            (theElement,              XSDConstants.TARGETNAMESPACE_ATTRIBUTE,              getTargetNamespace());          if (eAttribute != null)          {            traverseToRootForPatching();          }        }        if (eAttribute == null || eAttribute == XSDPackage.Literals.XSD_SCHEMA__ATTRIBUTE_FORM_DEFAULT)        {          niceSetAttribute            (theElement,              XSDConstants.ATTRIBUTEFORMDEFAULT_ATTRIBUTE,              isSetAttributeFormDefault() ? getAttributeFormDefault().getName() : null);          if (eAttribute != null)          {            traverseToRootForPatching();          }        }        if (eAttribute == null || eAttribute == XSDPackage.Literals.XSD_SCHEMA__ELEMENT_FORM_DEFAULT)        {          niceSetAttribute            (theElement,              XSDConstants.ELEMENTFORMDEFAULT_ATTRIBUTE,              isSetElementFormDefault() ? getElementFormDefault().getName() : null);          if (eAttribute != null)          {            traverseToRootForPatching();          }        }        if (eAttribute == null || eAttribute == XSDPackage.Literals.XSD_SCHEMA__BLOCK_DEFAULT)        {          niceSetAttribute            (theElement,              XSDConstants.BLOCKDEFAULT_ATTRIBUTE,              getStringBlockDefault());          if (eAttribute != null)          {            traverseToRootForPatching();          }        }        if (eAttribute == null || eAttribute == XSDPackage.Literals.XSD_SCHEMA__FINAL_DEFAULT)        {          niceSetAttribute            (theElement,              XSDConstants.FINALDEFAULT_ATTRIBUTE,              getStringFinalDefault());          if (eAttribute != null)          {            traverseToRootForPatching();          }        }      }    }  }