Validating a class model


Open ModelSphere has more flexibility in class modeling than what the Java language permits. To ensure that the generated code is Java conform, the application has a validation function. Use this powerful feature to monitor potential errors in your Java code as you build your models. You can choose to validate a class, a group of classes (package-level), or all the classes in a model (project-level).

Follow these easy steps:
  1. Highlight the class model

  2. In the menu choose Tools > Validate for Java

  3. A report will appear indicating if and where the model is not valid. It is also possible to save or print the report using the File menu.

Class/Exception/Interface (Abstract Data Type - adt) Validations
Field Type Validations
Class Field Validations
Interface Field Validations
Operations Method Parameters Validations
Class Method Validations
Interface Method Validations