Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Validating an EMF model programatically
Validating an EMF model programatically [message #628460] Mon, 24 May 2010 18:42
Hector Chavez is currently offline Hector ChavezFriend
Messages: 34
Registered: February 2010
I was going over the EMF Validation Framework example and I was able to set everything up and add a few extra constraints. Then I run the plugin as an eclipse application, I create the model and then in the editor menu I can select validate to check the constraints and everything works fine.

But I was wondering if it is possible to validate a model programmatically, without using the editor.

// For example, create a few objects:

Book myBook = EXTLibraryFactory.eINSTANCE.createBook();
myBook.setTitle("EMF Validation");
Writer writer = EXTLibraryFactory.eINSTANCE.createWriter();

//And then do the validation

I've been searching the web with no luck. Can something like this be done? I would appreciate any hints.

Previous Topic:how to make instance model from ecore file
Next Topic:Re: Validating an EMF model programatically
Goto Forum:

Current Time: Sat Jun 23 21:59:49 GMT 2018

Powered by FUDForum. Page generated in 0.02369 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top