public EStructuralFeature getAttribute(String namespace, String name) { EPackage ePackage = getPackage(namespace); if (ePackage != null) { EClass documentRoot = getDocumentRoot(ePackage); if (documentRoot != null) { return getLocalAttribute(documentRoot, namespace, name); } } return null; }
public EStructuralFeature getAttribute(String namespace, String name) { EPackage ePackage = getPackage(namespace); if (ePackage != null) { EClass documentRoot = getDocumentRoot(ePackage); if (documentRoot != null) { return getLocalAttribute(documentRoot, namespace, name); } } return null; }
public EStructuralFeature getElement(String namespace, String name) { EPackage ePackage = getPackage(namespace); if (ePackage != null) { EClass documentRoot = getDocumentRoot(ePackage); if (documentRoot != null) { return getLocalElement(documentRoot, namespace, name); } } return null; }
public EStructuralFeature getElement(String namespace, String name) { EPackage ePackage = getPackage(namespace); if (ePackage != null) { EClass documentRoot = getDocumentRoot(ePackage); if (documentRoot != null) { return getLocalElement(documentRoot, namespace, name); } } return null; }
protected EStructuralFeature basicGetAffiliation(EStructuralFeature eStructuralFeature) { EAnnotation eAnnotation = getAnnotation(eStructuralFeature, false); if (eAnnotation != null) { String qualifiedName = eAnnotation.getDetails().get("affiliation"); if (qualifiedName != null) { int fragmentIndex = qualifiedName.lastIndexOf('#'); if (fragmentIndex == -1) { EPackage ePackage = eStructuralFeature.getEContainingClass().getEPackage(); EClass documentRoot = getDocumentRoot(ePackage); if (documentRoot != null) { return getLocalElement(documentRoot, getNamespace(ePackage), qualifiedName); } } else if (fragmentIndex == 0) { return getElement(null, qualifiedName.substring(1)); } else { return getElement(qualifiedName.substring(0, fragmentIndex), qualifiedName.substring(fragmentIndex + 1)); } } } return null; }
if (ePackage != null) EClass documentRoot = getDocumentRoot(ePackage); if (documentRoot != null)
public EStructuralFeature demandFeature(String namespace, String name, boolean isElement, boolean isReference) EClass documentRootEClass = getDocumentRoot(ePackage); EStructuralFeature eStructuralFeature = isElement ?
public EStructuralFeature demandFeature(String namespace, String name, boolean isElement, boolean isReference) EClass documentRootEClass = getDocumentRoot(ePackage); EStructuralFeature eStructuralFeature = isElement ?