public Set < URI > collectOutgoingReferences ( IResourceDescription description ) { URI resourceURI = description . getURI ( ) ; Set < URI > result = null ; for ( IReferenceDescription reference : description . getReferenceDescriptions ( ) ) { URI targetResource = reference . getTargetEObjectUri ( ) . trimFragment ( ) ; if ( ! resourceURI . equals ( targetResource ) ) { if ( result == null ) result = Sets . newHashSet ( targetResource ) ; else result . add ( targetResource ) ; } } if ( result != null ) return result ; return Collections . emptySet ( ) ; }
Collect the URIs of resources that are referenced by the given description .