Creating types

Types represent data elements that instantiate using a type. When you add a type using the CHA Editor, the editor adds the definition for the type to the type definition file.

To create a type:

  1. In the CHA Type view, right-click anywhere.
  2. Select Add new type.
  3. From the list of type categories, select one:
    • DataField - for a simple type
    • IndexedCollection - for an indexed collection of types
    • KeyedCollection - for a keyed collection of types
  4. From the listed descriptors, select the appropriate one.
  5. If you created a DataField and want to add a converter:
    1. Expand the type so that you can see its descriptor.
    2. Right-click the descriptor.
    3. Select Add converter.
    4. From the list of converters, select the one you want the type to use.
  6. If you created a DataField and want to add a validator:
    1. Expand the type so that you can see its descriptor.
    2. Right-click the descriptor.
    3. Select Add validator.
    4. From the list of validators, select the one you want the type to use.