org.eclipse.ocl.examples.domain.ids
Class IdManager

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.ids.IdManager

public final class IdManager
extends java.lang.Object

IdManager supervises the thread-safe allocation of unique hierarchical identifier to each metamodel element.

See Also:
ElementId

Field Summary
static IdManager INSTANCE
          Deprecated. 
 
Method Summary
static BindingsId getBindingsId(DomainType... types)
           
static BindingsId getBindingsId(ElementId... elementIds)
          Return the bindingsId for a given type list.
static ClassId getClassId(DomainType aType)
          Return the classId for aType.
static CollectionTypeId getCollectionTypeId(java.lang.String collectionTypeName)
          Return the named collection typeId.
static DataTypeId getDataTypeId(DomainType aType)
          Return the dataTypeId for aType.
static EnumerationId getEnumerationId(DomainEnumeration anEnumeration)
          Return the typeId for aType.
static EnumerationId getEnumerationId(org.eclipse.emf.ecore.EEnum eEnum)
          Return the typeId for an EEnum.
static EnumerationLiteralId getEnumerationLiteralId(org.eclipse.emf.ecore.EEnumLiteral eEnumLiteral)
           
static LambdaTypeId getLambdaTypeId(DomainLambdaType 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 NsURIPackageId getNsURIPackageId(java.lang.String nsURI, org.eclipse.emf.ecore.EPackage ePackage)
          Deprecated. 
static NsURIPackageId getNsURIPackageId(java.lang.String nsURI, java.lang.String nsPrefix, org.eclipse.emf.ecore.EPackage ePackage)
           
static OperationId getOperationId(DomainOperation 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(DomainPackage aPackage)
          Return the typeId for aPackage.
static PackageId getPackageId(org.eclipse.emf.ecore.EPackage aPackage)
          Return the typeId for ePackage.
static ParametersId getParametersId(DomainType[] 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(DomainType aType)
          Return the typeId for aType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

@Deprecated
@NonNull
public static IdManager INSTANCE
Deprecated. 
Method Detail

getBindingsId

@NonNull
public static BindingsId getBindingsId(@NonNull
                                               DomainType... types)

getBindingsId

@NonNull
public static BindingsId getBindingsId(@NonNull
                                               ElementId... elementIds)
Return the bindingsId for a given type list.


getClassId

@NonNull
public static ClassId getClassId(@NonNull
                                         DomainType aType)
Return the classId for aType.


getCollectionTypeId

@NonNull
public static CollectionTypeId getCollectionTypeId(@NonNull
                                                           java.lang.String collectionTypeName)
Return the named collection typeId.


getDataTypeId

@NonNull
public static DataTypeId getDataTypeId(@NonNull
                                               DomainType aType)
Return the dataTypeId for aType.


getEnumerationId

@NonNull
public static EnumerationId getEnumerationId(@NonNull
                                                     DomainEnumeration anEnumeration)
Return the typeId for aType.


getEnumerationId

@NonNull
public static EnumerationId getEnumerationId(@NonNull
                                                     org.eclipse.emf.ecore.EEnum eEnum)
Return the typeId for an EEnum.


getEnumerationLiteralId

@NonNull
public static EnumerationLiteralId getEnumerationLiteralId(@NonNull
                                                                   org.eclipse.emf.ecore.EEnumLiteral eEnumLiteral)

getLambdaTypeId

@NonNull
public static LambdaTypeId getLambdaTypeId(@NonNull
                                                   DomainLambdaType lambdaType)
Return the typeId for aLambdaType.


getLambdaTypeId

@NonNull
public static LambdaTypeId getLambdaTypeId(@NonNull
                                                   java.lang.String name,
                                                   @NonNull
                                                   TypeId... typeIds)
Return the named lambda typeId with the defined type parameters.


getLambdaTypeId

@NonNull
public static LambdaTypeId getLambdaTypeId(@NonNull
                                                   java.lang.String name,
                                                   @NonNull
                                                   ParametersId parametersId)
Return the named lambda typeId with the defined type parameters.


getNsURIPackageId

@Deprecated
@NonNull
public static NsURIPackageId getNsURIPackageId(@NonNull
                                                                  java.lang.String nsURI,
                                                                  @Nullable
                                                                  org.eclipse.emf.ecore.EPackage ePackage)
Deprecated. 

Return the URIed package typeId.


getNsURIPackageId

@NonNull
public static NsURIPackageId getNsURIPackageId(@NonNull
                                                       java.lang.String nsURI,
                                                       @Nullable
                                                       java.lang.String nsPrefix,
                                                       @Nullable
                                                       org.eclipse.emf.ecore.EPackage ePackage)

getOperationId

@NonNull
public static OperationId getOperationId(@NonNull
                                                 DomainOperation anOperation)
Return the OperationId for anOperation.


getOrderedTupleTypeId

@NonNull
public static TupleTypeId getOrderedTupleTypeId(@NonNull
                                                        java.lang.String name,
                                                        @NonNull
                                                        TuplePartId[] parts)
Return the named tuple typeId with the defined parts (which are alphabetically ordered by part name).


getPackageId

@NonNull
public static PackageId getPackageId(@NonNull
                                             DomainPackage aPackage)
Return the typeId for aPackage.


getPackageId

@NonNull
public static PackageId getPackageId(@NonNull
                                             org.eclipse.emf.ecore.EPackage aPackage)
Return the typeId for ePackage.


getParametersId

@NonNull
public static ParametersId getParametersId(@NonNull
                                                   DomainType[] parameterTypes)

getParametersId

@NonNull
public static ParametersId getParametersId(@NonNull
                                                   TypeId... typeIds)
Return the parametersId for a given type list.


getPrimitiveTypeId

@NonNull
public static PrimitiveTypeId getPrimitiveTypeId(@NonNull
                                                         java.lang.String name)
Return the named primitive typeId.


getPropertyId

@NonNull
public static PropertyId getPropertyId(@NonNull
                                               org.eclipse.emf.ecore.EStructuralFeature eFeature)
Return the propertyId for an EStructuralFeature.


getRootPackageId

@NonNull
public static RootPackageId getRootPackageId(@NonNull
                                                     java.lang.String name)
Return the URI-less unnested package typeId.


getTemplateParameterId

@NonNull
public static TemplateParameterId getTemplateParameterId(int index)

getTuplePartId

@NonNull
public static TuplePartId getTuplePartId(int index,
                                                 @NonNull
                                                 java.lang.String name,
                                                 @NonNull
                                                 TypeId typeId)
Return the named tuplePartId with the defined name and type.


getTupleTypeId

@NonNull
public static TupleTypeId getTupleTypeId(@NonNull
                                                 java.lang.String name,
                                                 @NonNull
                                                 java.util.Collection<? extends TuplePartId> parts)
Return the named tuple typeId with the defined parts (which need not be alphabetically ordered).


getTupleTypeId

@NonNull
public static TupleTypeId getTupleTypeId(@NonNull
                                                 java.lang.String name,
                                                 @NonNull
                                                 TuplePartId... parts)

getTypeId

@NonNull
public static TypeId getTypeId(@NonNull
                                       org.eclipse.emf.ecore.EClassifier eClassifier)
Return the typeId for an EClassifier.


getUnspecifiedTypeId

@NonNull
public static UnspecifiedIdImpl getUnspecifiedTypeId(@NonNull
                                                             DomainType aType)
Return the typeId for aType.