protected EStructuralFeature getFeatureWithoutMap(EClass eClass, String name) { EStructuralFeature feature = eClass.getEStructuralFeature(name); if (feature != null) computeFeatureKind(feature); return feature; }
protected EStructuralFeature getFeatureWithoutMap(EClass eClass, String name) { EStructuralFeature feature = eClass.getEStructuralFeature(name); if (feature != null) computeFeatureKind(feature); return feature; }
public int getFeatureKind(EStructuralFeature feature) { Integer kind = featuresToKinds.get(feature); if (kind != null) { return kind; } else { computeFeatureKind(feature); kind = featuresToKinds.get(feature); if (kind != null) { return kind; } else { featuresToKinds.put(feature, INTEGER_OTHER); return OTHER; } } }
public int getFeatureKind(EStructuralFeature feature) { Integer kind = featuresToKinds.get(feature); if (kind != null) { return kind; } else { computeFeatureKind(feature); kind = featuresToKinds.get(feature); if (kind != null) { return kind; } else { featuresToKinds.put(feature, INTEGER_OTHER); return OTHER; } } }
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; }
if (eStructuralFeature != null) computeFeatureKind(eStructuralFeature);
if (eStructuralFeature != null) computeFeatureKind(eStructuralFeature);