Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » emf validation and allInstances
emf validation and allInstances [message #580663] Mon, 12 June 2006 20:47
Selcuk Aya is currently offline Selcuk AyaFriend
Messages: 13
Registered: July 2009
Junior Member
Is there a way to use ocl allInstances() in the invariants that are
provided in through constraint provider extensions? I have tried
specifying an invariant like Address.allInstances()->asSet()->size()=3 in
the xml file (Address is an EClass) but, when I run batch validation on an
instance of Address, the satus says that this constraint was disabled
becuase of a NullPointerException. When I evaluate a ocl query on an
eObject, I can use query.setExtentMap(). Is there a way to do this with
the validation framework?

I would appreciate any pointer. We have some constraints on our metadata
that require us to know all instances of an EClass and we need a construct
like allInstances().

Previous Topic:[Announce] EMFT JETEDITOR 1.0.0 I200606082216 is available
Next Topic:emf validation and allInstances
Goto Forum:

Current Time: Thu Jun 13 08:13:01 GMT 2024

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

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

Back to the top