URI uriResult = handleDanglingHREF(object); return uriResult == null || !uriResult.hasFragment() ? null : uriResult.fragment(); URI uriResult = handleDanglingHREF(object); return uriResult == null || !uriResult.hasFragment() ? null : uriResult.fragment();
URI uriResult = handleDanglingHREF(object); return uriResult == null || !uriResult.hasFragment() ? null : uriResult.fragment(); URI uriResult = handleDanglingHREF(object); return uriResult == null || !uriResult.hasFragment() ? null : uriResult.fragment();
public String getHREF(EObject obj) { InternalEObject o = (InternalEObject) obj; URI objectURI = o.eProxyURI(); if (objectURI == null) { Resource otherResource = obj.eResource(); if (otherResource == null) { if (resource != null && resource.getID(obj) != null) { objectURI = getHREF(resource, obj); } else { objectURI = handleDanglingHREF(obj); if (objectURI == null) { return null; } } } else { objectURI = getHREF(otherResource, obj); } } objectURI = deresolve(objectURI); return objectURI.toString(); }
public String getHREF(EObject obj) { InternalEObject o = (InternalEObject) obj; URI objectURI = o.eProxyURI(); if (objectURI == null) { Resource otherResource = obj.eResource(); if (otherResource == null) { if (resource != null && resource.getID(obj) != null) { objectURI = getHREF(resource, obj); } else { objectURI = handleDanglingHREF(obj); if (objectURI == null) { return null; } } } else { objectURI = getHREF(otherResource, obj); } } objectURI = deresolve(objectURI); return objectURI.toString(); }