public interface EcoreTraversalHelper
Modifier and Type | Method and Description |
---|---|
boolean |
collectReachableObjectsOfTypeUnderObject(java.util.Collection<org.eclipse.emf.ecore.EObject> result,
org.eclipse.emf.ecore.EObject root,
org.eclipse.emf.ecore.EClassifier type)
Collects all EObjects of a specified type which are descendants of the given EObject.
|
java.util.List<? extends org.eclipse.emf.ecore.EStructuralFeature> |
getFeaturesToTraverseFor(org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.ecore.EClassifier type) |
java.util.Collection<org.eclipse.emf.ecore.EObject> |
getReachableEObjects(org.eclipse.emf.ecore.EObject referenceSource,
org.eclipse.emf.ecore.EReference reference)
Returns all EObjects reachable from a specified EObject with a given EReference.
|
java.util.Collection<org.eclipse.emf.ecore.EObject> getReachableEObjects(org.eclipse.emf.ecore.EObject referenceSource, org.eclipse.emf.ecore.EReference reference)
referenceSource
to the EObject can be established with the provided
reference
.referenceSource
- The EObject from which a direct connection to the returned EObjects could be established by the
reference
provided.reference
- The EReference describing the type of reference.referenceSource
directly via the given
EReference.org.eclipse.sphinx.emf.resource.IResourceFilter
java.util.List<? extends org.eclipse.emf.ecore.EStructuralFeature> getFeaturesToTraverseFor(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EClassifier type)
boolean collectReachableObjectsOfTypeUnderObject(java.util.Collection<org.eclipse.emf.ecore.EObject> result, org.eclipse.emf.ecore.EObject root, org.eclipse.emf.ecore.EClassifier type)
result
- The EObjects of the specified type
found beneath the root
.root
- The EObject from which the descending search starts.type
- The type of which the collected EObjects are to be of.