Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse EMF Validation Framework
Previous Page Home Next Page

OCL Validation Example


This example describes the usage of validation constraints within the SDK. It demonstrates how to contribute constraints in XML, written in OCL for the library meta-model.


Please refer to the document EMF Validation Framework Examples Overview for reviewing the library meta-model used as the basis for demonstrating the capabilities in this example.


This example plug-in is named org.eclipse.emf.validation.examples.ocl. This example requires the Validation Adapter Example functionality and therfore should also be installed. This plug-in does not contribute any menu items. It defines a live and a batch constraint in the plugin.xml file. This plug-in uses the EValidator implementation defined in the plug-in org.eclipse.emf.validation.examples.adapter. The funtionality is triggered by invoking the menu item Validate from the editor's context menu or main menu.

Please refer to the tutorial OCL Validation Tutorial for reviewing the code samples within this example.

OCL Validation Trigger


Refer to this example if you need:

  1. To contribute constraints in XML, written in OCL.

Copyright (c) 2000,2005 IBM Corporation and others. All Rights Reserved.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire