Creating OCL resources

You create an OCL resource to store OCL statements. You can then parse your OCL statements to ensure that they are syntactically valid or evaluate your OCL statements to query the characteristics of your metamodel.

To create an OCL resource, you must have at least one open project in your workspace.
To create an OCL resource in the Modeling perspective:
  1. Click File > New > Other.
  2. Expand Modeling, expand UML Extensibility, click OCL Resource, and click Next.
  3. On the OCL Resource page, specify a parent folder for the OCL resource.
  4. In the File name field, type a file name for the OCL resource and click Finish. The OCL resource is displayed in the Model Explorer view.
Related concepts
OCL resources and statements
Related tasks
Writing OCL statements
Parsing OCL statements
Evaluating OCL statements
Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.