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:
-
Grouping classes, the API name set in the previous step of the wizard is prefixed with DM_ for the data model grouping class, and RP_ for the resource proxy grouping class.
-
Data model classes, the names are as close as possible to those in the specification, except the first character uppercase if required, any invalid characters are replaced by underscore characters, and any clashes are resolved by appending _1 (or _2, _3, and so on, for multiple clashes).
-
Resource classes, any parameters will be removed, and the name will be suffixed with s (resources are by convention described as plural). Then the same process as for the data model classes will be applied to ensure a valid JADE class name with no clashes.
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.