Task - Deprecate a Class, Property or Method
A deprecated class, property or method indicates that the CIM element
can still be used but should be avoided because it has been superseded
by a newer, more useful CIM element. To deprecate a class, property or
method, the Deprecated qualifier is added to the CIM element. The value
of the Deprecated qualifier informs the user which CIM element to use
instead.
Deprecate a Class
For example, to deprecate the class CIM_Door in preference for CIM_Panel
- Select the CIM Class Change folder tab
- In the Name field, enter CIM_Door and press Tab. The Properties
sub-folder tab now shows the local and inherited properties for
CIM_Door. The Resulting MOF shows the class definition for CIM_Door
- Select the Class Qualifiers sub-folder tab. The class qualifiers
for CIM_Door are now displayed.

- Click on Add to show the Add Qualifier window.
- Select Deprecated from the Qualifier drop-down list
- In the Value field, enter CIM_Panel

- Press OK to return to the Change Request window. The Deprecated
class qualifier is now listed. The Resulting MOF field shows that the
Deprecated
class qualifier has been added in blue highlight.

Deprecate
a
Property
For
example,
to
deprecate
the
Capabilities
properties
in CIM_Door
- Select the CIM Class Change folder tab
- In the Name field, enter CIM_Door and press Tab. The Properties
sub-folder tab now shows the local and inherited properties for
CIM_Door. The Resulting MOF shows the class definition for CIM_Door
- Select the Capabilities property in the Properties sub-folder
tab. The property qualifiers are now shown in the Qualifiers for
Property sub-group

- Click on Add to show the Add Qualifier window.
- Select Deprecated from the Qualifier drop-down list
- In the Value field, enter
CIM_Panel.LockType,CIM_Panel.Preconditions. Here, the single property
CIM_Door.Capabilities is deprecated in preference to two different
properties in another class. NOTE: The tool will automatically insert
quotes as needed.

- Press OK to return to the Change Request window. The Deprecated
property qualifier is now listed in the Qualifiers for Property group.
Its value is listed in the Value for Qualifier field. The
Resulting MOF field shows that the Deprecated
property qualifier added in blue
highlight.

Deprecate a Method
For example, to deprecate the Capabilities properties in
CIM_Door
- Select the CIM Class Change folder tab
- In the Name field, enter CIM_Log and press Tab. The Properties
sub-folder tab now shows the local and inherited properties for
CIM_Log. The Resulting MOF shows the class definition for CIM_Log
- Select the Methods sub-folder tab. The local and inherited
methods for CIM_Log are listed.
- Select the ClearLog Method. The method qualifiers are now
listed in the Qualifiers for Method sub-group

- Click on Add to show the Add Qualifier window.
- Select Deprecated from the Qualifier drop-down list
- In the Value field, enter
CIM_Log.ResetLog.

- Press OK to return to the Change Request window. The Deprecated
method qualifier is now listed in the Qualifiers for Method sub-group.
Its value is listed in the Value for Qualifier field.
The Resulting MOF field shows that the Deprecated method qualifier
added in blue highlight.

Copyright © 2016 WBEM Solutions,
Inc.
All Rights Reserved.