public final class LocationUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ResourceLocation |
asResourceLocation(Location location) |
static EObjectLocation |
getEObjectLocation(Delta delta)
Return EObjectLocation for list/change deltas
|
static org.eclipse.emf.ecore.EStructuralFeature |
getEStructuralFeature(Delta delta)
Returns EStructuralFeature for location
|
static org.eclipse.emf.ecore.EObject |
getLocationContainer(Delta delta)
Returns container of delta location
|
static java.lang.String |
getLocationContainerID(Delta delta)
Returns matching id of container of delta location
|
static boolean |
isAttribute(Location location)
Returns whether or not a location is an eObject location and it's feature
is an eAttribute.
|
static boolean |
isContainmentReference(Location location)
Returns whether or not a location is an eObject location and it's feature
is a containment eReference.
|
static boolean |
isEAnnotation(Location location)
Returns whether or not a location is an eAnnotation location.
|
static boolean |
isEObject(Location location)
Returns whether or not a location is an eObject location.
|
static boolean |
isMany(Location location)
Returns whether or not a location is an eObject location and it's feature
is many.
|
static boolean |
isReference(org.eclipse.emf.ecore.EStructuralFeature feature)
Returns whether or not a feature is a reference.
|
static boolean |
isReference(Location location)
Returns whether or not a location is an eObject location and it's feature
is a reference.
|
static boolean |
isResource(Location location)
Returns whether or not a location is a resource location.
|
static boolean |
isUnique(Location location)
Returns whether or not a location is an eObject location and it's feature
is unique.
|
static boolean |
matchLocation(Delta delta,
org.eclipse.emf.ecore.EStructuralFeature... locations)
Match delta location against specific list of features
|
public static boolean isEObject(Location location)
location
- a locationpublic static boolean isResource(Location location)
location
- a locationpublic static ResourceLocation asResourceLocation(Location location)
public static boolean isEAnnotation(Location location)
location
- a locationpublic static boolean isReference(Location location)
location
- a locationpublic static boolean isReference(org.eclipse.emf.ecore.EStructuralFeature feature)
feature
- a structural featurepublic static boolean isContainmentReference(Location location)
location
- a locationpublic static boolean isAttribute(Location location)
location
- a locationpublic static boolean isMany(Location location)
location
- a locationpublic static boolean isUnique(Location location)
location
- a locationpublic static boolean matchLocation(Delta delta, org.eclipse.emf.ecore.EStructuralFeature... locations)
delta
- - List or Change deltalocations
- public static org.eclipse.emf.ecore.EObject getLocationContainer(Delta delta)
delta
- - List or Change deltapublic static java.lang.String getLocationContainerID(Delta delta)
delta
- - List or Change deltapublic static org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature(Delta delta)
delta
- public static EObjectLocation getEObjectLocation(Delta delta)
delta
-