Checks User-defined checks You can create user-defined checks, which are also known as external checks, which are customized checks that you code yourself. System profiles, for example, often require domain-specific checks. Just as the predefined internal checks provided by Rational Rhapsody, you can define if external checks are called from code generation or not. In addition, you can define on which metaclasses external checks will be executed. You can implement user-defined external checks through the Rational Rhapsody API and use the GUI already in place in Rational Rhapsody to run them (the Checks tab as described in The Checks tab ).
Whether it is an internal check or an external check, the checks are performed and their results displayed through the same GUI in Rational Rhapsody. Creating user-defined checks Rational Rhapsody provides an API for registering, enumerating, and removing user-defined external checks through the use of the COM API for C++ and VB users, and the Java API for Java users. COM callbacks (connection points) allow you to open user-defined code when checks are executed. This capability is available for those users who use the COM API or Java API so that you can add, execute, or remove user-defined checks.
You decide which metaclasses (or new terms) you want to check, and your checks are called to check elements of whichever metaclasses you decided upon. For example, for COM API users to create a user-defined check: 1. Implement a class defined from the interface IRPExternalCheck in the COM API. 2. Register this class using the IRPExternalCheckRegister Add method. You get this singleton via a method on IRPApplication . 3. You must implement IRPExternalCheck on your client machine. 886 User Guide