Task - Override a Property
A CIM Class inherits all properties from all parent classes, including
any property qualifiers. When creating a new subclass, sometimes, one
wants to change the value of an inherited property qualifier. Examples
of the two most common cases will be provided. They are:
- To change the Description qualifier for an inherited property to
more accurately describe how to use it in the subclass
- To change the referenced class in one or both properties in an
association class.
Override the Description Qualifier
- Follow the instructions to Create a
New Class.
- To override the Description qualifier for the inherited property
ElementName, select ElementName from the Properties for Class group in
the Properties sub-folder.

- Click on Override in the Properties sub-folder tab. The Override
qualifier is now listed in the Qualifiers for Property group. The
Resulting MOF field now shows the inherited ElementName property,
including its Description qualifier. The Override button in the
Properties for Class group has now changed to Modify.

- In the Qualifiers for Property group, select the Description
qualifier and click on Modify to show the Modify Qualifier window.
Change the Value field to "The name of the CR Tool Service"

- Click on OK to return to the CIM Class Change folder. The Value
for Qualifier field in the Properties folder tab and the Resulting MOF
field now shows the new value of the Description property qualifier.

Override the Referenced Class in an Association
For this example, CIM_ElementChassisFRU will created as a new
subclass of CIM_ElementFRU. The following example changes one of
the referenced classes in the CIM_ElementFRU association class.
- Select the CIM Class Change folder tab
- In the Name field of the Class Information group, enter
CIM_ElementFRU and press Tab.
- Click on Modify in the Class Information group to show the CIM
Class window.
- Click on Find to show the Find window
- Enter CIM_ElementFRU and click on OK to return to the CIM Class
window
- Click on OK to return to the CIM Class Change folder tab. The
inherited reference properties are now listed in the Properties
sub-folder tab.

- In the Properties for Class group, select the ReplaceableElement
property in the Properties for Class group. Click on Override. The
Resulting MOF field now shows the definition for inherited property
ReplaceableElement. The Override button has now become a Modify button.

- In the Properties for Class group, select the ReplaceableElement
property in the Properties for Class group. Click on Modify to show the
Modify Property window.
- Change the Reference Class field to CIM_Chassis

- Click on OK to return to the Properties folder tab. The
Properties for Class group and Resulting MOF field now shows that the
ReplaceableElement property references CIM_Chassis instead of
CIM_PhysicalElement.

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