java.lang.Objectorg.eclipse.gmt.umlx.alien.mapping.MappingUtils
public abstract class MappingUtils
Constructor Summary | |
---|---|
MappingUtils()
|
Method Summary | ||
---|---|---|
static
|
asClassUnchecked(java.lang.Object object,
T requiredClassObject)
|
|
static java.util.Map<java.lang.String,org.eclipse.emf.ecore.EPackage> |
createPackageMap(org.eclipse.emf.ecore.resource.Resource resource)
Return a Map from EPackage.nsURI to EPackage for all packages within resource. |
|
static void |
createPackageMapRecursion(java.util.Map<java.lang.String,org.eclipse.emf.ecore.EPackage> uriToPackageMap,
java.util.List<? extends org.eclipse.emf.ecore.EObject> eObjects)
|
|
static java.util.List<org.eclipse.emf.ecore.EGenericType> |
excludeNonGenericTypes(java.util.List<org.eclipse.emf.ecore.EGenericType> genericTypes)
Return a list of generic types, all of which are generic. |
|
static java.lang.String |
formatFeatureName(AbstractFeatureElement<?> feature)
|
|
static java.lang.String |
formatFeatureName(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)
|
|
static java.lang.String |
formatFullName(java.lang.Object object)
|
|
static java.lang.String |
formatLocalName(java.lang.Object object)
|
|
static java.lang.String |
formatString(java.lang.Object object)
|
|
static boolean |
isGeneric(org.eclipse.emf.ecore.EGenericType eGenericType)
Return true if eGenericType is a generic type. |
|
static boolean |
isGeneric(org.eclipse.emf.ecore.ETypedElement eTypedElement)
Return true if eTypedElement uses a generic type. |
|
static void |
promoteReferencesToSelfToSelf(org.eclipse.emf.ecore.resource.Resource resource)
Redirect the target of all references from within resource that could be resolved within resource to be resolved within resource. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MappingUtils()
Method Detail |
---|
public static <T> T asClassUnchecked(java.lang.Object object, T requiredClassObject)
public static java.util.Map<java.lang.String,org.eclipse.emf.ecore.EPackage> createPackageMap(org.eclipse.emf.ecore.resource.Resource resource)
public static void createPackageMapRecursion(java.util.Map<java.lang.String,org.eclipse.emf.ecore.EPackage> uriToPackageMap, java.util.List<? extends org.eclipse.emf.ecore.EObject> eObjects)
public static java.util.List<org.eclipse.emf.ecore.EGenericType> excludeNonGenericTypes(java.util.List<org.eclipse.emf.ecore.EGenericType> genericTypes)
public static java.lang.String formatFeatureName(AbstractFeatureElement<?> feature)
public static java.lang.String formatFeatureName(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)
public static java.lang.String formatFullName(java.lang.Object object)
public static java.lang.String formatLocalName(java.lang.Object object)
public static java.lang.String formatString(java.lang.Object object)
public static boolean isGeneric(org.eclipse.emf.ecore.ETypedElement eTypedElement)
public static boolean isGeneric(org.eclipse.emf.ecore.EGenericType eGenericType)
public static void promoteReferencesToSelfToSelf(org.eclipse.emf.ecore.resource.Resource resource)