else if (eClassifier instanceof EEnum) { Map eLiteralMap = new HashMap(); for (Iterator k = ((EEnum)eClassifier).getELiterals().iterator(); k.hasNext(); ) { EEnumLiteral eEnumLiteral = (EEnumLiteral)k.next(); resolveNameConflict(eLiteralMap, eEnumLiteral, ""); eLiteralMap.put(eEnumLiteral.getName().toLowerCase(), eEnumLiteral); } }
  protected void resolveNameConflicts()  {    for (Iterator i = targetNamespaceToEPackageMap.values().iterator(); i.hasNext(); )    {      EPackage ePackage = (EPackage)i.next();      Map eClassifierMap = new HashMap();      for (Iterator j = ePackage.getEClassifiers().iterator(); j.hasNext(); )      {        EClassifier eClassifier = (EClassifier)j.next();        EClassifier otherEClassifier = (EClassifier)eClassifierMap.get(eClassifier.getName().toLowerCase());        if (otherEClassifier != null)        {          resolveNameConflict(eClassifierMap, eClassifier, "");        }        eClassifierMap.put(eClassifier.getName().toLowerCase(), eClassifier);        String xmlName = extendedMetaData.getName(eClassifier);        otherEClassifier = extendedMetaData.getType(ePackage, xmlName);        if (otherEClassifier != eClassifier)        {          if (xmlName.endsWith("_._type"))          {            String baseName = xmlName.substring(0, xmlName.length() - 7);            int index = 1;            while (extendedMetaData.getType(ePackage, baseName + "_._" + index + "_._type") != null)            {              ++index;            }            extendedMetaData.setName(eClassifier, baseName + "_._" + index + "_._type");            fixXMLName(eClassifier);          }        }        if (eClassifier instanceof EClass)        {          Map eFeatureMap = new HashMap();          for (Iterator k = ((EClass)eClassifier).getEAllStructuralFeatures().iterator(); k.hasNext(); )          {            EStructuralFeature eStructuralFeature = (EStructuralFeature)k.next();            resolveNameConflict(eFeatureMap, eStructuralFeature, "");            eFeatureMap.put(eStructuralFeature.getName().toLowerCase(), eStructuralFeature);          }        }      }    }  }