EnumerationDef Object

Meta Data Services Programming

Meta Data Services Programming

EnumerationDef Object

An enumeration definition object represents an association of enumerated values. The enumerated values that you provide to an enumeration definition are defined through a series of EnumerationValueDef objects. The enumeration definition itself can be associated with a PropertyDef object.

You can combine enumeration definition objects in collections. Collections allow you to limit the number or filter the range of values that appear to the end user. You can also allow a property definition object to reference an enumeration definition object that is defined in another information model.

Note  The repository engine does not restrict objects to the enumeration values associated with a property. Specifying a value that is not in the enumeration value set does not produce an error.

An EnumerationDef object is also a RepositoryObject and a RepositoryObjectVersion object. You can also access members that are defined for these objects and members of IRepositoryObjectStorage, IReposTypeInfo2, and IVersionAdminInfo2. For more information about accessing a member of an interface that is not the default interface, see Accessing Automation Object Members.

When to Use

Use an EnumerationDef object to define a property that uses enumerated values comprised of a fixed set of constant string or integer values.

Properties
Property Description
Name Contains the name of the EnumerationDef object. The name must be unique within the information model.
Description Contains a description of the enumeration.
IsFlag Indicates that the enumeration defines a logical flag. The selected enumeration values should be combined logically using OR. This only applies to numeric enumeration values.
Collections
Collection Description
Values Collection of EnumerationValueDef objects

See Also

EnumerationValueDef Object

Filtering Collections

IRepositoryObjectStorage Interface

IVersionAdminInfo2 Interface

PropertyDef Object

RepositoryObject Object

RepositoryObjectVersion Object