ObjectExtender User's Guide and Reference


Creating a class in the model

The first entity that we will create in the TstUniversity model is the department model class. This is a relatively simple class with four attributes.

  1. Select TstUniversity in the Models view.
  2. Select New Class from the Classes menu.
  3. Enter a class name: TstDepartment.

Add the four attributes as follows:

Attribute name Attribute type Value required
department String Yes
building String No
phone String No
room String No

For each attribute, do the following:

  1. Click New in the Attributes tabbed dialog box. This launches the Attribute Editor.
  2. Type the attribute name: department, for example.
  3. Select String from the Type menu.
  4. Select OK.

For an object to exist in ObjectExtender it must have a unique identifier. This is also known as an object identifier (OID). We will use the attribute, department, as the OID for the Department class.

To define an object identifier, do the following:

  1. Select the attribute, department, in the Attributes view.
  2. Click >>.

    This displays the name of the attribute in the Object ID list.

This concludes creating the class, TstDepartment.

Save the model.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]