资 源 简 介
xtext-ocl2javavalidator
The idea for this project was formed during my Master (Application Architecture Master) at the University of Applied Science in Furtwangen (Blackforest). Link: HS-Furtwangen WI
Xtext has two possibilities to check a model; the check-language and a Java-Validator. Currently there is no applied solution to use OCL to validate models in Xtext.
Here, DresdenOCL (Link: DresdenOCL) is used to import a OCL-file, parse it and generate a Java Source Code. Java-Validators for Xtext are then generated from the OCL-file. DresdenOCL is under Lesser General Public License (LGPL).
More information can be found in the attached document (only available in german) in the Downloads-area.
I think neither the source code nor the documentation is perfect. But i wanted to share my experience.