Class JavaInterruptibleEcoreResolver


  • public class JavaInterruptibleEcoreResolver
    extends Object
    A utility class to resolve proxy objects that allows to terminate the resolution.
    • Constructor Detail

      • JavaInterruptibleEcoreResolver

        public JavaInterruptibleEcoreResolver()
    • Method Detail

      • terminate

        public void terminate()
      • resolveAll

        public void resolveAll​(ResourceSet resourceSet)
        Visits all proxies in the ResourceSet and tries to resolve them.
        Parameters:
        resourceSet - the objects to visit.
      • resolveAll

        public void resolveAll​(Resource resource)
        Visits all proxies in the Resource and tries to resolve them.
        Parameters:
        resource - the objects to visit.
      • resolveAll

        public void resolveAll​(EObject eObject)
        Visits all proxies referenced by the object and recursively any of its contained objects.
        Parameters:
        eObject - the object to visit.
      • resolveCrossReferences

        protected void resolveCrossReferences​(EObject eObject)
      • findUnresolvedProxies

        public Set<EObject> findUnresolvedProxies​(Resource resource)
        Searches for all unresolved proxy objects in the given resource.
        Parameters:
        resource - the Resource.
        Returns:
        all proxy objects that are not resolvable.
      • findUnresolvedProxies

        public Set<EObject> findUnresolvedProxies​(ResourceSet resourceSet)
        Searches for all unresolved proxy objects in the given ResourceSet.
        Parameters:
        resourceSet - the ResourceSet.
        Returns:
        all proxy objects that are not resolvable.