Package jamopp.resolution.util
Class JavaInterruptibleEcoreResolver
- java.lang.Object
-
- jamopp.resolution.util.JavaInterruptibleEcoreResolver
-
public class JavaInterruptibleEcoreResolver extends Object
A utility class to resolve proxy objects that allows to terminate the resolution.
-
-
Constructor Summary
Constructors Constructor Description JavaInterruptibleEcoreResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<EObject>
findUnresolvedProxies(Resource resource)
Searches for all unresolved proxy objects in the given resource.Set<EObject>
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
terminate()
-
-
-
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.
-
-