Package jamopp.resolution.util
Class JavaInterruptibleEcoreResolver
java.lang.Object
jamopp.resolution.util.JavaInterruptibleEcoreResolver
A utility class to resolve proxy objects that allows to terminate the resolution.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindUnresolvedProxies
(Resource resource) Searches for all unresolved proxy objects in the given resource.findUnresolvedProxies
(ResourceSet resourceSet) Searches for all unresolved proxy objects in the given ResourceSet.void
resolveAll
(EObject eObject) Visits all proxies referenced by the object and recursively any of its contained objects.void
resolveAll
(Resource resource) Visits all proxies in the Resource and tries to resolve them.void
resolveAll
(ResourceSet resourceSet) Visits all proxies in the ResourceSet and tries to resolve them.protected void
resolveCrossReferences
(EObject eObject) void
-
Constructor Details
-
JavaInterruptibleEcoreResolver
public JavaInterruptibleEcoreResolver()
-
-
Method Details
-
terminate
public void terminate() -
resolveAll
Visits all proxies in the ResourceSet and tries to resolve them.- Parameters:
resourceSet
- the objects to visit.
-
resolveAll
Visits all proxies in the Resource and tries to resolve them.- Parameters:
resource
- the objects to visit.
-
resolveAll
Visits all proxies referenced by the object and recursively any of its contained objects.- Parameters:
eObject
- the object to visit.
-
resolveCrossReferences
-
findUnresolvedProxies
Searches for all unresolved proxy objects in the given resource.- Parameters:
resource
- the Resource.- Returns:
- all proxy objects that are not resolvable.
-
findUnresolvedProxies
Searches for all unresolved proxy objects in the given ResourceSet.- Parameters:
resourceSet
- the ResourceSet.- Returns:
- all proxy objects that are not resolvable.
-