WBEMfor Solaris on Sun Developer's Guide

Creating a Class

The first step in creating a class is to specify a name for the class. In CIM WorkShop, class names are displayed using standard CIM syntax: SchemaIndicator_ClassName. If you create a class of a CIM Schema class, the acronym CIM is used before the class name. If you create a class of a Solaris Schema class, the name Solaris is used before the class name. The underscore character (_) is required in the name of all classes that inherit a Key qualifier.

How to Add a class
  1. In the class inheritance tree of the CIM WorkShop window, select the class from which to create a class.

  2. Choose one of the following procedures for creating a class:

    • Click Action->Add Class.

      or

    • Click the New Class icon in the toolbar of the CIM WorkShop window.

      or

    • Right-click the selected class and click Add Class.

      The New Class dialog box is displayed.

  3. In the Class Name field, type the name of the new class.

    For example, you can create a class of the class solaris_computersystem titled ultra1_computersystem.

  4. To retain inherited properties and methods of the class, click OK. To add new properties, click Add Property.

    If you click OK, a class is created that uses inherited properties, methods, qualifiers, and their values. If you click Add Property, the Add Properties dialog box is displayed, in which you can specify properties to add to the class. For information about how to add properties to a class, see "Adding New Properties to a Class".