Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » emf validation and allInstances
emf validation and allInstances [message #580663] Mon, 12 June 2006 16:47
Eclipse UserFriend
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 Mar 20 10:48:45 EDT 2025

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

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

Back to the top