public EReference getXSISchemaLocationMapFeature(EClass eClass) { if (getContentKind(eClass) == MIXED_CONTENT) { List<EReference> eAllReferences = eClass.getEAllReferences(); for (int i = 0, size = eAllReferences.size(); i < size; ++i) { EReference eReference = eAllReferences.get(i); if ("xsi:schemaLocation".equals(getName(eReference))) { return eReference; } } } return null; }
public EReference getXMLNSPrefixMapFeature(EClass eClass) { if (getContentKind(eClass) == MIXED_CONTENT) { List<EReference> eAllReferences = eClass.getEAllReferences(); for (int i = 0, size = eAllReferences.size(); i < size; ++i) { EReference eReference = eAllReferences.get(i); if ("xmlns:prefix".equals(getName(eReference))) { return eReference; } } } return null; }
public EReference getXSISchemaLocationMapFeature(EClass eClass) { if (getContentKind(eClass) == MIXED_CONTENT) { List<EReference> eAllReferences = eClass.getEAllReferences(); for (int i = 0, size = eAllReferences.size(); i < size; ++i) { EReference eReference = eAllReferences.get(i); if ("xsi:schemaLocation".equals(getName(eReference))) { return eReference; } } } return null; }
public EReference getXMLNSPrefixMapFeature(EClass eClass) { if (getContentKind(eClass) == MIXED_CONTENT) { List<EReference> eAllReferences = eClass.getEAllReferences(); for (int i = 0, size = eAllReferences.size(); i < size; ++i) { EReference eReference = eAllReferences.get(i); if ("xmlns:prefix".equals(getName(eReference))) { return eReference; } } } return null; }
public EAttribute getMixedFeature(EClass eClass) { switch (getContentKind(eClass)) { case MIXED_CONTENT: case SIMPLE_CONTENT: { List<EAttribute> eAllAttributes = eClass.getEAllAttributes(); for (int i = 0, size = eAllAttributes.size(); i < size; ++i) { EAttribute eAttribute = eAllAttributes.get(i); if (getFeatureKind(eAttribute) == ExtendedMetaData.ELEMENT_WILDCARD_FEATURE) { return eAttribute; } } break; } } return null; }
public EAttribute getMixedFeature(EClass eClass) { switch (getContentKind(eClass)) { case MIXED_CONTENT: case SIMPLE_CONTENT: { List<EAttribute> eAllAttributes = eClass.getEAllAttributes(); for (int i = 0, size = eAllAttributes.size(); i < size; ++i) { EAttribute eAttribute = eAllAttributes.get(i); if (getFeatureKind(eAttribute) == ExtendedMetaData.ELEMENT_WILDCARD_FEATURE) { return eAttribute; } } break; } } return null; }
public EStructuralFeature getSimpleFeature(EClass eClass) { if (getContentKind(eClass) == SIMPLE_CONTENT) { for (int i = 0, size = eClass.getFeatureCount(); i < size; ++i) { EStructuralFeature eStructuralFeature = eClass.getEStructuralFeature(i); if (getFeatureKind(eStructuralFeature) == ExtendedMetaData.SIMPLE_FEATURE) { return eStructuralFeature; } } } return null; }
public EStructuralFeature getSimpleFeature(EClass eClass) { if (getContentKind(eClass) == SIMPLE_CONTENT) { for (int i = 0, size = eClass.getFeatureCount(); i < size; ++i) { EStructuralFeature eStructuralFeature = eClass.getEStructuralFeature(i); if (getFeatureKind(eStructuralFeature) == ExtendedMetaData.SIMPLE_FEATURE) { return eStructuralFeature; } } } return null; }