public class Compatibility6_0Utils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADAPTED_ECLASS
The "vcore.target" property for the EClass.
|
Constructor and Description |
---|
Compatibility6_0Utils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isAdaptedEClass(StructuredReference sRef,
org.eclipse.emf.ecore.EClass eClass)
Tests whether a given
vr is adapted to a particular
EClass . |
static StructuredReference |
setAdaptedEClass(StructuredReference sRef,
org.eclipse.emf.ecore.EClass eClass)
Sets the target
EClass for this
StructuredReference . |
public static final java.lang.String ADAPTED_ECLASS
public static StructuredReference setAdaptedEClass(StructuredReference sRef, org.eclipse.emf.ecore.EClass eClass)
EClass
for this
StructuredReference
.sRef
- StructuredReference
for which the target type
has to be set.eClass
- Target EClass
.vr
public static boolean isAdaptedEClass(StructuredReference sRef, org.eclipse.emf.ecore.EClass eClass)
vr
is adapted to a particular
EClass
.sRef
- StructuredReference to be testedeClass
- EClass
to be checked in vr
true
if the StructuredReference is adapted to
given eClass
else false
.