org.eclipse.xtend.util.stdlib
Class EmfUtils

java.lang.Object
  extended by org.eclipse.xtend.util.stdlib.EmfUtils

public class EmfUtils
extends java.lang.Object


Constructor Summary
EmfUtils()
           
 
Method Summary
static java.lang.String getID(org.eclipse.emf.ecore.EObject obj)
          Retrieves an object's identifier.
static java.util.List<org.eclipse.emf.ecore.EObject> getReferencingObjects(org.eclipse.emf.ecore.EObject target)
          Retrieves objects that reference a given object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmfUtils

public EmfUtils()
Method Detail

getReferencingObjects

public static final java.util.List<org.eclipse.emf.ecore.EObject> getReferencingObjects(org.eclipse.emf.ecore.EObject target)
Retrieves objects that reference a given object

Parameters:
target - The target object
Returns:
A list of objects referencing the target

getID

public static java.lang.String getID(org.eclipse.emf.ecore.EObject obj)
Retrieves an object's identifier. The object must be read from a XMLResource.

Parameters:
obj - An object
Returns:
The object's id.
Since:
4.3.1