Type Information Aliasing
The information model elements that you create support type information aliasing. This form of aliasing enables you to define an alternate name for the meta data type so that you can reuse an existing definition in a new context. You can also use type information aliases to preserve existing work when information model names change. For example, Open Information Model (OIM) or Unified Modeling Language (UML) name changes that result from new versions of a model can be accommodated by applying aliases to a changed name.
To define a type information alias, use the following interfaces:
- IReposTypeInfo2 defines aliases for Classdef, Interfacedef, Relationshipdef, and Enumerationdef objects.
- IInterfaceMember2 defines aliases for Propertydef, Methoddef, Alias, and Collectiondef objects.
To use the alias, specify it just as you would the meta data type name. The repository engine keeps track of type information aliases. When you invoke a type information alias, the repository engine returns the appropriate class, interface, or property to which the alias is mapped.
Note Aliasing provides additional functionality when it is applied to interface members. For more information, see Derived Members.