public EStructuralFeature getFeature(EClass eClass, String namespaceURI, String name) { EStructuralFeature feature = getFeatureWithoutMap(eClass, name); if (feature == null) { if (xmlMap != null) { feature = xmlMap.getFeature(eClass, namespaceURI, name); if (feature != null) { computeFeatureKind(feature); } } else if (laxFeatureProcessing && extendedMetaData != null) { List<EStructuralFeature> structuralFeatures = eClass.getEAllStructuralFeatures(); for (int i = 0, size = structuralFeatures.size(); i < size; ++i) { EStructuralFeature eStructuralFeature = structuralFeatures.get(i); if (name.equals(extendedMetaData.getName(eStructuralFeature)) && (namespaceURI == null ? extendedMetaData.getNamespace(eStructuralFeature) == null : namespaceURI.equals(extendedMetaData.getNamespace(eStructuralFeature)))) { return eStructuralFeature; } } } } return feature; }
public EStructuralFeature getFeature(EClass eClass, String namespaceURI, String name) { EStructuralFeature feature = getFeatureWithoutMap(eClass, name); if (feature == null) { if (xmlMap != null) { feature = xmlMap.getFeature(eClass, namespaceURI, name); if (feature != null) { computeFeatureKind(feature); } } else if (laxFeatureProcessing && extendedMetaData != null) { List<EStructuralFeature> structuralFeatures = eClass.getEAllStructuralFeatures(); for (int i = 0, size = structuralFeatures.size(); i < size; ++i) { EStructuralFeature eStructuralFeature = structuralFeatures.get(i); if (name.equals(extendedMetaData.getName(eStructuralFeature)) && (namespaceURI == null ? extendedMetaData.getNamespace(eStructuralFeature) == null : namespaceURI.equals(extendedMetaData.getNamespace(eStructuralFeature)))) { return eStructuralFeature; } } } } return feature; }