Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » validation with ocl: Reading constraints from a custom file
validation with ocl: Reading constraints from a custom file [message #36685] Fri, 09 June 2006 03:34 Go to next message
Eclipse UserFriend
Originally posted by: saya.txesystems.com

Hi,
I have some files with a custom format and they include OCL constraints
which point to my meta model. I would like to be able to feed them to the
emft validation framework so that they can be enforced on my emf model. It
seems to me that, the right way of providing a dynamic constraint provider
like this would be to extend the AbstractConstraintProvider class. The new
class should ideally read the constraints from the custom file and provide
it to the validation framework. However, how do we integrate this dynamic
provider to the rest of the validation framework? When a constraint
provider extension is read, the class attribute of the extension is
checked to see if a provider other the XMLCostraintProvider should be
created. However, constraint_provider exsd says this class attribute is
for internal use. Should I use this attribute or is there another way of
integrating a custom provider with the rest of the framework?

I would appreciate any pointers,
thanks
Re: validation with ocl: Reading constraints from a custom file [message #36719 is a reply to message #36685] Fri, 09 June 2006 11:59 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Selcuk,

I think that remark about the class attribute being for internal use is an
anachronism. The AbstractConstraintProvider API is public, and there
should be no restriction on the use of this attribute. It looks like the
documentation needs to be fixed.

Cheers,

Christian


Selcuk Aya wrote:

> Hi,
> I have some files with a custom format and they include OCL constraints
> which point to my meta model. I would like to be able to feed them to the
> emft validation framework so that they can be enforced on my emf model. It
> seems to me that, the right way of providing a dynamic constraint provider
> like this would be to extend the AbstractConstraintProvider class. The new
> class should ideally read the constraints from the custom file and provide
> it to the validation framework. However, how do we integrate this dynamic
> provider to the rest of the validation framework? When a constraint
> provider extension is read, the class attribute of the extension is
> checked to see if a provider other the XMLCostraintProvider should be
> created. However, constraint_provider exsd says this class attribute is
> for internal use. Should I use this attribute or is there another way of
> integrating a custom provider with the rest of the framework?
>
> I would appreciate any pointers,
> thanks
Re: validation with ocl: Reading constraints from a custom file [message #580259 is a reply to message #36685] Fri, 09 June 2006 11:59 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Selcuk,

I think that remark about the class attribute being for internal use is an
anachronism. The AbstractConstraintProvider API is public, and there
should be no restriction on the use of this attribute. It looks like the
documentation needs to be fixed.

Cheers,

Christian


Selcuk Aya wrote:

> Hi,
> I have some files with a custom format and they include OCL constraints
> which point to my meta model. I would like to be able to feed them to the
> emft validation framework so that they can be enforced on my emf model. It
> seems to me that, the right way of providing a dynamic constraint provider
> like this would be to extend the AbstractConstraintProvider class. The new
> class should ideally read the constraints from the custom file and provide
> it to the validation framework. However, how do we integrate this dynamic
> provider to the rest of the validation framework? When a constraint
> provider extension is read, the class attribute of the extension is
> checked to see if a provider other the XMLCostraintProvider should be
> created. However, constraint_provider exsd says this class attribute is
> for internal use. Should I use this attribute or is there another way of
> integrating a custom provider with the rest of the framework?
>
> I would appreciate any pointers,
> thanks
Previous Topic:validation with ocl: Reading constraints from a custom file
Next Topic:JETEDITOR - read-only package exception
Goto Forum:
  


Current Time: Fri Apr 26 02:15:57 GMT 2024

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

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

Back to the top