Adding a Method Mapping for a Property

Use the Create Mapping Method command from the Properties menu to add a method mapping for the property selected in the Properties List of a hierarchy browser (for example, the Class Browser). (For details about mapping methods, see "mapping Option", in Chapter 1 of the JADE Developer's Reference.

The Create Mapping Method command is enabled if a mapping method can be created for the selected property, in which case the menu command changes to Create Mapping Method For Property 'property‑name'. If a mapping method already exists or a mapping method cannot be created for a selected property, the command is disabled.

When you select the command, the Jade Mapping Method Definition dialog, shown in the following image, is then displayed, with the selected property displayed and disabled in the Name text box. In addition, the dialog title is displayed as Jade Mapping Method Definition For class‑name::property‑name.

For details about the controls on this dialog, see "Adding JADE Methods to Classes or Primitive Types", earlier in this chapter.

You can change the mapping method options and then click the OK button. If the method is added, the appropriate mapping method source is constructed. (Alternatively, click the Cancel button to abandon the addition of the mapping method.)

2016.0.02 (Service Pack 1)