org.eclipse.emf.ecore.util
Class EcoreUtil.UnresolvedProxyCrossReferencer
java.lang.Object
|
+--java.util.AbstractMap
|
+--java.util.HashMap
|
+--org.eclipse.emf.ecore.util.EcoreUtil.CrossReferencer
|
+--org.eclipse.emf.ecore.util.EcoreUtil.UnresolvedProxyCrossReferencer
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable
- Enclosing class:
- EcoreUtil
- public static class EcoreUtil.UnresolvedProxyCrossReferencer
- extends EcoreUtil.CrossReferencer
A cross referencer that finds proxies that cannot be resolved.
- See Also:
- Serialized Form
Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
Method Summary |
protected boolean |
crossReference(EObject eObject,
EReference eReference,
EObject crossReferencedEObject)
Return true if the specified eReference from eObject to crossReferencedEObject should be
considiered a cross reference by this cross referencer. |
static java.util.Map |
find(java.util.Collection emfObjects)
Returns a map of all unresolvable proxies from the specified content tree. |
static java.util.Map |
find(EObject eObject)
Returns a map of all unresolvable proxies from the specified content tree. |
static java.util.Map |
find(Resource resource)
Returns a map of all unresolvable proxies from the specified content tree. |
static java.util.Map |
find(ResourceSet resourceSet)
Returns a map of all unresolvable proxies from the specified content tree. |
protected java.util.Map |
findUnresolvedProxyCrossReferences()
Returns the map of unresolvable proxies for this cross referencer. |
Methods inherited from class org.eclipse.emf.ecore.util.EcoreUtil.CrossReferencer |
containment, crossReference, done, getCollection, handleCrossReference, newCollection, newContentsIterator, print, print, resolve, toString |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
EcoreUtil.UnresolvedProxyCrossReferencer
protected EcoreUtil.UnresolvedProxyCrossReferencer(EObject eObject)
- Creates an instance for the given object.
- Parameters:
eObject
- the object to cross reference.
EcoreUtil.UnresolvedProxyCrossReferencer
protected EcoreUtil.UnresolvedProxyCrossReferencer(Resource resource)
- Creates an instance for the given resource.
- Parameters:
resource
- the resource to cross reference.
EcoreUtil.UnresolvedProxyCrossReferencer
protected EcoreUtil.UnresolvedProxyCrossReferencer(ResourceSet resourceSet)
- Creates an instance for the given resource set.
- Parameters:
resourceSet
- the resource set to cross reference.
EcoreUtil.UnresolvedProxyCrossReferencer
protected EcoreUtil.UnresolvedProxyCrossReferencer(java.util.Collection emfObjects)
- Creates an instance for the given collection of objects.
- Parameters:
emfObjects
- the collection of objects to cross reference.
crossReference
protected boolean crossReference(EObject eObject,
EReference eReference,
EObject crossReferencedEObject)
- Return true if the specified eReference from eObject to crossReferencedEObject should be
considiered a cross reference by this cross referencer.
- Overrides:
crossReference
in class EcoreUtil.CrossReferencer
- Parameters:
eObject
- an object in the cross referencer's content tree.eReference
- a reference from the object.crossReferencedEObject
- the target of the specified reference.- Returns:
- if the cross referencer should consider the specified reference a cross reference.
findUnresolvedProxyCrossReferences
protected java.util.Map findUnresolvedProxyCrossReferences()
- Returns the map of unresolvable proxies for this cross referencer.
- Returns:
- a map of cross references.
find
public static java.util.Map find(EObject eObject)
- Returns a map of all unresolvable proxies from the specified content tree.
- Parameters:
eObject
- an object whose content trees should be considered.- Returns:
- a map of cross references.
find
public static java.util.Map find(Resource resource)
- Returns a map of all unresolvable proxies from the specified content tree.
- Parameters:
resource
- a resource whose content tree should be considered.- Returns:
- a map of cross references.
find
public static java.util.Map find(ResourceSet resourceSet)
- Returns a map of all unresolvable proxies from the specified content tree.
- Parameters:
resourceSet
- a resourceSet whose content tree should be considered.- Returns:
- a map of cross references.
find
public static java.util.Map find(java.util.Collection emfObjects)
- Returns a map of all unresolvable proxies from the specified content tree.
- Parameters:
emfObjectsToSearch
- a collection of objects whose combined content trees should be considered.- Returns:
- a map of cross references.