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
Hi,
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().

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


Current Time: Thu Apr 18 13:06:17 GMT 2024

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

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

Back to the top