public class EObjectExt extends EcoreUtil2
defaultPattern| Constructor and Description |
|---|
EObjectExt() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<org.eclipse.emf.ecore.EObject> |
getAll(org.eclipse.emf.ecore.EObject currentElement,
org.eclipse.emf.ecore.EClass targetType) |
static org.eclipse.emf.ecore.resource.ResourceSet |
getCommonResourceSet(java.util.Collection<? extends org.eclipse.emf.ecore.EObject> eObjects) |
static org.eclipse.emf.ecore.resource.ResourceSet |
getCommonResourceSet(java.util.List<org.eclipse.emf.ecore.resource.Resource> resources) |
static java.util.List<org.eclipse.emf.ecore.EObject> |
getReferencers(org.eclipse.emf.ecore.EObject eObjectRef)
This method retrieves all Object who have a EReference toward the EObject 'eObjectRef'
|
static java.util.List<org.eclipse.emf.ecore.EObject> |
getReferencers(org.eclipse.emf.ecore.EObject eObjectRef,
org.eclipse.emf.ecore.EClass metaClass,
org.eclipse.emf.ecore.EReference eRef)
This method retrieves all Object of metaClass 'metaClass' who have a EReference 'eRef' toward the Object 'eObjectRef'
|
static <T extends org.eclipse.emf.ecore.EObject> |
getReferencers(org.eclipse.emf.ecore.EObject eObjectRef,
org.eclipse.emf.ecore.EReference eRef)
This method retrieves all Object who have a EReference 'eRef' toward the EObject 'eObjectRef'
|
static <T extends org.eclipse.emf.ecore.EObject> |
getReferencers(org.eclipse.emf.ecore.EObject eObjectRef,
org.eclipse.emf.ecore.EReference eRef,
SemanticEditingDomainFactory.SemanticEditingDomain editingDomain)
This method retrieves all Object who have a EReference 'eRef' toward the Object 'eObjectRef'
|
static <T extends org.eclipse.emf.ecore.EObject> |
getReferencers(org.eclipse.emf.ecore.EObject eObjectRef,
org.eclipse.emf.ecore.EReference eRef,
SemanticEditingDomainFactory.SemanticEditingDomain editingDomain,
boolean ignoreDerivedFeature)
This method retrieves all Object who have a EReference 'eRef' toward the Object 'eObjectRef'
|
static java.util.List<org.eclipse.emf.ecore.EObject> |
getReferencers(org.eclipse.emf.ecore.EObject eObjectRef,
java.util.List<org.eclipse.emf.ecore.EReference> eRefs)
This method retrieves all Object who have any EReference from 'eRefs' toward the Object 'eObjectRef'
|
static java.lang.String |
getText(org.eclipse.emf.ecore.EObject object)
This method shall replace EObjectLabelProviderHelper.getText() until bugzilla 2036 is solved
|
static boolean |
isInstanceOf(org.eclipse.emf.ecore.EObject elt,
java.util.List<org.eclipse.emf.ecore.EClass> expectedContainerType)
True if the given element is instance of at least one of the given eClasses
|
attachLikeSourceContainer, attachLikeSourceContainmentFeature, getAllContents, getCommonAncestor, getCommonAncestor, getContainmentLevel, getEditingDomain, getFile, getFirstContainer, getFirstContainer, getProject, getReferencingElements, getResourceContainer, getResourceURI, getUniqueName, getUniqueName, getURI, isContainedBy, isContainedBy, isContainedBy, isEqualOrSuperClass, isOrIsContainedBy, isOrIsContainedBy, isReadOnly, removeContainerpublic static java.util.Set<org.eclipse.emf.ecore.EObject> getAll(org.eclipse.emf.ecore.EObject currentElement,
org.eclipse.emf.ecore.EClass targetType)
currentElement - targetType - public static java.util.List<org.eclipse.emf.ecore.EObject> getReferencers(org.eclipse.emf.ecore.EObject eObjectRef,
org.eclipse.emf.ecore.EClass metaClass,
org.eclipse.emf.ecore.EReference eRef)
eObjectRef - : EObjectmetaClass - : EClasseRef - : EReference relationpublic static java.util.List<org.eclipse.emf.ecore.EObject> getReferencers(org.eclipse.emf.ecore.EObject eObjectRef)
eObjectRef - : EObjectpublic static <T extends org.eclipse.emf.ecore.EObject> java.util.List<T> getReferencers(org.eclipse.emf.ecore.EObject eObjectRef,
org.eclipse.emf.ecore.EReference eRef)
eObjectRef - : EObjecteRef - : EReference relationpublic static <T extends org.eclipse.emf.ecore.EObject> java.util.List<T> getReferencers(org.eclipse.emf.ecore.EObject eObjectRef,
org.eclipse.emf.ecore.EReference eRef,
SemanticEditingDomainFactory.SemanticEditingDomain editingDomain,
boolean ignoreDerivedFeature)
eObjectRef - : EObjecteRef - : EReference relation (if null, all references are considered)editingDomain - : SemanticEditingDomainignoreDerivedFeature - : whether derived feature is ignored while finding referencing objectspublic static <T extends org.eclipse.emf.ecore.EObject> java.util.List<T> getReferencers(org.eclipse.emf.ecore.EObject eObjectRef,
org.eclipse.emf.ecore.EReference eRef,
SemanticEditingDomainFactory.SemanticEditingDomain editingDomain)
eObjectRef - : EObjecteRef - : EReference relation (if null, all references are considered)editingDomain - : SemanticEditingDomainpublic static java.util.List<org.eclipse.emf.ecore.EObject> getReferencers(org.eclipse.emf.ecore.EObject eObjectRef,
java.util.List<org.eclipse.emf.ecore.EReference> eRefs)
eObjectRef - : EObjecteRefs - : EReference relations listpublic static boolean isInstanceOf(org.eclipse.emf.ecore.EObject elt,
java.util.List<org.eclipse.emf.ecore.EClass> expectedContainerType)
elt - expectedContainerType - public static org.eclipse.emf.ecore.resource.ResourceSet getCommonResourceSet(java.util.Collection<? extends org.eclipse.emf.ecore.EObject> eObjects)
eObjects - a collection of EObject(s) from which the resource set will be retrievedpublic static org.eclipse.emf.ecore.resource.ResourceSet getCommonResourceSet(java.util.List<org.eclipse.emf.ecore.resource.Resource> resources)
resources - a collection of resources from which the resource set will be retrievedpublic static java.lang.String getText(org.eclipse.emf.ecore.EObject object)