public static class EcoreUtil.UsageCrossReferencer extends EcoreUtil.CrossReferencer
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Collection<?> |
eObjectsOfInterest
The collection of usage target objects.
|
emfObjects| Modifier | Constructor and Description |
|---|---|
protected |
UsageCrossReferencer(java.util.Collection<?> emfObjects)
Creates an instance for the given collection of objects.
|
protected |
UsageCrossReferencer(EObject eObject)
Creates an instance for the given object.
|
protected |
UsageCrossReferencer(Resource resource)
Creates an instance for the given resource.
|
protected |
UsageCrossReferencer(ResourceSet resourceSet)
Creates an instance for the given resource set.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
crossReference(EObject eObject,
EReference eReference,
EObject crossReferencedEObject)
Return true if the specified eReference from eObject to crossReferencedEObject should be
considered a cross reference by this cross referencer.
|
static java.util.Collection<EStructuralFeature.Setting> |
find(EObject eObjectOfInterest,
java.util.Collection<?> emfObjectsToSearch)
Returns a collection of usage references from the combined content trees of the specified collection of objects.
|
static java.util.Collection<EStructuralFeature.Setting> |
find(EObject eObjectOfInterest,
EObject eObject)
Returns a collection of usage references from the specified content tree.
|
static java.util.Collection<EStructuralFeature.Setting> |
find(EObject eObjectOfInterest,
Resource resource)
Returns a collection of usage references from the specified content tree.
|
static java.util.Collection<EStructuralFeature.Setting> |
find(EObject eObjectOfInterest,
ResourceSet resourceSet)
Returns a collection of usage references from the specified content tree.
|
static java.util.Map<EObject,java.util.Collection<EStructuralFeature.Setting>> |
findAll(java.util.Collection<?> eObjectsOfInterest,
java.util.Collection<?> emfObjectsToSearch)
Returns a map of usage references from the combined content trees of the specified collection of objects.
|
static java.util.Map<EObject,java.util.Collection<EStructuralFeature.Setting>> |
findAll(java.util.Collection<?> eObjectsOfInterest,
EObject eObject)
Returns a map of usage references from the specified content tree.
|
static java.util.Map<EObject,java.util.Collection<EStructuralFeature.Setting>> |
findAll(java.util.Collection<?> eObjectsOfInterest,
Resource resource)
Returns a map of usage references from the specified content tree.
|
static java.util.Map<EObject,java.util.Collection<EStructuralFeature.Setting>> |
findAll(java.util.Collection<?> eObjectsOfInterest,
ResourceSet resourceSet)
Returns a map of usage references from the specified content tree.
|
protected java.util.Map<EObject,java.util.Collection<EStructuralFeature.Setting>> |
findAllUsage(java.util.Collection<?> eObjectsOfInterest)
Returns the map of usage references to objects in the specified collection.
|
protected java.util.Collection<EStructuralFeature.Setting> |
findUsage(EObject eObject)
Returns the collection of usage references to the specified object.
|
add, containment, crossReference, done, find, getCollection, getCrossReferences, handleCrossReference, newCollection, newContentsIterator, print, print, resolve, toStringclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesprotected java.util.Collection<?> eObjectsOfInterest
protected UsageCrossReferencer(EObject eObject)
eObject - the object to cross reference.protected UsageCrossReferencer(Resource resource)
resource - the resource to cross reference.protected UsageCrossReferencer(ResourceSet resourceSet)
resourceSet - the resource set to cross reference.protected UsageCrossReferencer(java.util.Collection<?> emfObjects)
emfObjects - the collection of objects to cross reference.protected boolean crossReference(EObject eObject, EReference eReference, EObject crossReferencedEObject)
crossReference in class EcoreUtil.CrossReferencereObject - an object in the cross referencer's content tree.eReference - a reference from the object.crossReferencedEObject - the target of the specified reference.protected java.util.Collection<EStructuralFeature.Setting> findUsage(EObject eObject)
eObject - the usage target.protected java.util.Map<EObject,java.util.Collection<EStructuralFeature.Setting>> findAllUsage(java.util.Collection<?> eObjectsOfInterest)
eObjectsOfInterest - a collection of usage targets.public static java.util.Collection<EStructuralFeature.Setting> find(EObject eObjectOfInterest, EObject eObject)
eObjectOfInterest - the usage target.eObject - an object whose content trees should be considered.public static java.util.Collection<EStructuralFeature.Setting> find(EObject eObjectOfInterest, Resource resource)
eObjectOfInterest - the usage target.resource - a resource whose content tree should be considered.public static java.util.Collection<EStructuralFeature.Setting> find(EObject eObjectOfInterest, ResourceSet resourceSet)
eObjectOfInterest - the usage target.resourceSet - a resource set whose content tree should be considered.public static java.util.Collection<EStructuralFeature.Setting> find(EObject eObjectOfInterest, java.util.Collection<?> emfObjectsToSearch)
eObjectOfInterest - the usage target.emfObjectsToSearch - a collection of objects whose combined content trees should be considered.public static java.util.Map<EObject,java.util.Collection<EStructuralFeature.Setting>> findAll(java.util.Collection<?> eObjectsOfInterest, EObject eObject)
eObjectsOfInterest - a collection of usage targets.eObject - an object whose content trees should be considered.public static java.util.Map<EObject,java.util.Collection<EStructuralFeature.Setting>> findAll(java.util.Collection<?> eObjectsOfInterest, Resource resource)
eObjectsOfInterest - a collection of usage targets.resource - a resource whose content tree should be considered.public static java.util.Map<EObject,java.util.Collection<EStructuralFeature.Setting>> findAll(java.util.Collection<?> eObjectsOfInterest, ResourceSet resourceSet)
eObjectsOfInterest - a collection of usage targets.resourceSet - a resource set whose content tree should be considered.public static java.util.Map<EObject,java.util.Collection<EStructuralFeature.Setting>> findAll(java.util.Collection<?> eObjectsOfInterest, java.util.Collection<?> emfObjectsToSearch)
eObjectsOfInterest - a collection of usage targets.emfObjectsToSearch - a collection of objects whose combined content trees should be considered.Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature