public final class IdManager
extends java.lang.Object
ElementId
Modifier and Type | Field and Description |
---|---|
static RootPackageId |
METAMODEL |
Modifier and Type | Method and Description |
---|---|
static void |
addMetamodelEPackage(java.lang.String metamodelNsURI,
java.lang.String metamodelName)
Define a metamodelNsURI as a contributor to the metamodelName.
|
static BindingsId |
getBindingsId(ElementId... elementIds)
Return the bindingsId for a given type list.
|
static BindingsId |
getBindingsId(Type... types) |
static ClassId |
getClassId(Class aType)
Return the classId for aType.
|
static ClassId |
getClassId(org.eclipse.emf.ecore.EClass eClass)
Return the classId for eClass.
|
static CollectionTypeId |
getCollectionTypeId(java.lang.String collectionTypeName)
Return the named collection typeId.
|
static DataTypeId |
getDataTypeId(Class aType)
Return the dataTypeId for aType.
|
static EnumerationId |
getEnumerationId(org.eclipse.emf.ecore.EEnum eEnum)
Return the typeId for an EEnum.
|
static EnumerationId |
getEnumerationId(Enumeration anEnumeration)
Return the typeId for aType.
|
static EnumerationLiteralId |
getEnumerationLiteralId(org.eclipse.emf.ecore.EEnumLiteral eEnumLiteral) |
static LambdaTypeId |
getLambdaTypeId(LambdaType lambdaType)
Return the typeId for aLambdaType.
|
static LambdaTypeId |
getLambdaTypeId(java.lang.String name,
ParametersId parametersId)
Return the named lambda typeId with the defined type parameters.
|
static LambdaTypeId |
getLambdaTypeId(java.lang.String name,
TypeId... typeIds)
Return the named lambda typeId with the defined type parameters.
|
static MapTypeId |
getMapTypeId(java.lang.String mapTypeName)
Return the named collection typeId.
|
static NsURIPackageId |
getNsURIPackageId(java.lang.String nsURI,
java.lang.String nsPrefix,
org.eclipse.emf.ecore.EPackage ePackage)
Return the URIed package typeId.
|
static OperationId |
getOperationId(Operation anOperation)
Return the OperationId for anOperation.
|
static TupleTypeId |
getOrderedTupleTypeId(java.lang.String name,
TuplePartId[] parts)
Return the named tuple typeId with the defined parts (which are alphabetically ordered by part name).
|
static PackageId |
getPackageId(org.eclipse.emf.ecore.EPackage aPackage)
Return the typeId for ePackage.
|
static PackageId |
getPackageId(Package aPackage)
Return the typeId for aPackage.
|
static ParametersId |
getParametersId(Type[] parameterTypes) |
static ParametersId |
getParametersId(TypeId... typeIds)
Return the parametersId for a given type list.
|
static PrimitiveTypeId |
getPrimitiveTypeId(java.lang.String name)
Return the named primitive typeId.
|
static PropertyId |
getPropertyId(org.eclipse.emf.ecore.EStructuralFeature eFeature)
Return the propertyId for an EStructuralFeature.
|
static RootPackageId |
getRootPackageId(java.lang.String name)
Return the URI-less unnested package typeId.
|
static TemplateParameterId |
getTemplateParameterId(int index) |
static TuplePartId |
getTuplePartId(int index,
java.lang.String name,
TypeId typeId)
Return the named tuplePartId with the defined name and type.
|
static TupleTypeId |
getTupleTypeId(java.lang.String name,
java.util.Collection<? extends TuplePartId> parts)
Return the named tuple typeId with the defined parts (which need not be alphabetically ordered).
|
static TupleTypeId |
getTupleTypeId(java.lang.String name,
TuplePartId... parts) |
static TypeId |
getTypeId(org.eclipse.emf.ecore.EClassifier eClassifier)
Return the typeId for an EClassifier.
|
static UnspecifiedIdImpl |
getUnspecifiedTypeId(Type aType)
Return the typeId for aType.
|
@NonNull public static final RootPackageId METAMODEL
public static void addMetamodelEPackage(@NonNull java.lang.String metamodelNsURI, @NonNull java.lang.String metamodelName)
@NonNull public static BindingsId getBindingsId(@NonNull Type... types)
@NonNull public static BindingsId getBindingsId(@NonNull ElementId... elementIds)
@NonNull public static ClassId getClassId(@NonNull org.eclipse.emf.ecore.EClass eClass)
@NonNull public static CollectionTypeId getCollectionTypeId(@NonNull java.lang.String collectionTypeName)
@NonNull public static DataTypeId getDataTypeId(Class aType)
@NonNull public static EnumerationId getEnumerationId(@NonNull Enumeration anEnumeration)
@NonNull public static EnumerationId getEnumerationId(@NonNull org.eclipse.emf.ecore.EEnum eEnum)
@NonNull public static EnumerationLiteralId getEnumerationLiteralId(@NonNull org.eclipse.emf.ecore.EEnumLiteral eEnumLiteral)
@NonNull public static LambdaTypeId getLambdaTypeId(@NonNull LambdaType lambdaType)
@NonNull public static LambdaTypeId getLambdaTypeId(@NonNull java.lang.String name, @NonNull TypeId... typeIds)
@NonNull public static LambdaTypeId getLambdaTypeId(@NonNull java.lang.String name, @NonNull ParametersId parametersId)
@NonNull public static MapTypeId getMapTypeId(@NonNull java.lang.String mapTypeName)
@NonNull public static NsURIPackageId getNsURIPackageId(@NonNull java.lang.String nsURI, @Nullable java.lang.String nsPrefix, @Nullable org.eclipse.emf.ecore.EPackage ePackage)
@NonNull public static OperationId getOperationId(@NonNull Operation anOperation)
@NonNull public static TupleTypeId getOrderedTupleTypeId(@NonNull java.lang.String name, @NonNull TuplePartId[] parts)
@NonNull public static PackageId getPackageId(Package aPackage)
@NonNull public static PackageId getPackageId(@NonNull org.eclipse.emf.ecore.EPackage aPackage)
@NonNull public static ParametersId getParametersId(@NonNull Type[] parameterTypes)
@NonNull public static ParametersId getParametersId(@NonNull TypeId... typeIds)
@NonNull public static PrimitiveTypeId getPrimitiveTypeId(@NonNull java.lang.String name)
@NonNull public static PropertyId getPropertyId(@NonNull org.eclipse.emf.ecore.EStructuralFeature eFeature)
@NonNull public static RootPackageId getRootPackageId(@NonNull java.lang.String name)
@NonNull public static TemplateParameterId getTemplateParameterId(int index)
@NonNull public static TuplePartId getTuplePartId(int index, @NonNull java.lang.String name, @NonNull TypeId typeId)
@NonNull public static TupleTypeId getTupleTypeId(@NonNull java.lang.String name, @NonNull java.util.Collection<? extends TuplePartId> parts)
@NonNull public static TupleTypeId getTupleTypeId(@NonNull java.lang.String name, @NonNull TuplePartId... parts)
@NonNull public static TypeId getTypeId(@NonNull org.eclipse.emf.ecore.EClassifier eClassifier)
@NonNull public static UnspecifiedIdImpl getUnspecifiedTypeId(@NonNull Type aType)