capint
11/24/2015 - 12:46 PM

EMF >> Resource >> XML Handler

EMF >> Resource >> XML Handler

//*** This class is used to load XML files and creating EObjects from them

  protected EObject createObject(EFactory eFactory, EClassifier type, boolean documentRoot)
  {
    //*** Use an XMLHelper to create an object given an EFactory and a type
    EObject newObject = helper.createObject(eFactory, type);
    if (newObject != null && !documentRoot)
    {
      if (disableNotify)
      {
        newObject.eSetDeliver(false);
      }
      //*** Process the XML attributes for the newly created object.
      handleObjectAttribs(newObject);
    }
    return newObject;
  }
SAXXMLHandler extends XMLHandler extends DefaultHandler (from SAX)