Renaming Proxy Classes

A JADE class is created for each data model class and resource in the specification. In addition, a grouping class is created as the superclass of the data model classes, and another as the superclass of the resource classes.

You can rename each of these classes on the Rename Proxy Classes sheet of the wizard, as shown in the example in the following image.

The classes have the following default names. For the:

You can rename any of these classes; for example, you can rename Store_inventorys to Store_inventories. Any class that has been renamed from its default value, including by use of _1 (and so on) to avoid conflicts is colored blue.

As you rename classes, the names are automatically validated and if there are any conflicts, either within the generated classes or with an existing class of the schema, a validation error message is displayed and the Next button is disabled until all classes pass validation.

If you want to add a prefix to all data model classes or all resource proxy classes, enter the prefix in the Data Model Prefix or the Resource Prefix text box and then click the appropriate Apply button.

You can also use a regular expression (Regex) to modify the class names. Click on the Regex button to open the OpenAPI Wizard Regex dialog. If you want to test a Regex pattern before applying it to the class names, you can use one of the Test buttons on the dialog to apply the Regex pattern to the example text, which enables you to verify that it behaves as you expect before applying it to the class names.

When you are satisfied with the class names, click the Next button on the OpenAPI Wizard form.