emf validation and allInstances [message #580663] |
Mon, 12 June 2006 16:47 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03060 seconds