Sun WBEM SDK Developer's Guide

Deleting Classes and Their Attributes

CIM WorkShop provides a way to delete classes, properties, methods, and qualifiers that you no longer need or use.


Note –

When you delete a class, you delete all subclasses it contains. You also delete all associated properties, methods, and qualifiers of the class and its subclasses.


Deleting a Class

Use the following procedure to delete a class from the class inheritance tree.

How to Delete a Class
  1. Select the class that you want to delete.

  2. Click Action->Delete Class and click OK in the dialog box that asks you to confirm your decision to delete a class.

    The class is deleted.

Deleting a Property of a Class

You can delete only a property that you created in a new class. Otherwise, you can view but not modify or delete properties of classes. You cannot delete an inherited property in a subclass. However, when you create a new class, you can delete any new properties added to the class. For information about how to create a class, see Adding a Class.

How to Delete a Property of a Class
  1. In the Properties tab of the New Class dialog box, select the property name or type and click Delete Property.

Deleting Qualifiers

When you create a new class, you can delete qualifiers of properties or methods inherited from the parent class. For information about how to create a class, see Adding a Class.

How to Delete a Qualifier of a Property
  1. In the Properties tab of the New Class dialog box, select the property that you want to delete.

  2. Click Property Qualfiers.

  3. In the Qualifiers dialog box, select the qualifier to delete, Sclick Delete Qualifier, then click OK.

    The selected qualifier is deleted. The New Class dialog box is displayed.

How to Delete a Qualifier of a Method
  1. In the Methods tab of the New Class dialog box, right-click the method with the qualifier you want to delete.

  2. Click Qualifiers in the pop-up menu.

  3. Select the qualifier you want to delete.

  4. Right click the qualifier and select Delete Qualifier or select the qualifier to delete and click the Delete Qualifier button.

  5. Select Qualifier to list the qualifiers for this method.

How to Add a Qualifier to a Method
  1. In the Methods tab of the New Class dialog box, right-click the method to add a qualifier to and then select Qualifiers.

  2. Click the Add Qualifier button in the Qualifiers dialog box.

  3. Select the name of the qualifier type to add and then click OK. Click OK to close the Qualifiers dialog box.