|Re: How define an ocl expression on type of an object [message #837522 is a reply to message #837510]
||Thu, 05 April 2012 15:31
| Ed Willink
Registered: July 2009
As I wrote earlier oclType() is supported in a fully reflective fashion
the new pivot-based Eclipse OCL.
oclType() is not supported on the Ecore-based Eclipse OCL; where you may
find that eClass() works.
On 05/04/2012 20:16, sohrab Mising name wrote:
> Thanks Ed,
> But in my problem, I don't know class names. Indeed my constraint
> should be independent of class names (I can't determine class names
> implicitly). for example 'ejob' can be other classes like 'etask'.
> Is 'oclType()' supported for any object in OCL? (i.e. can I write
> this: "self.oclType()='ejob'")
> It not works for my models ("self.values.classes->at(1).oclType()")!
Powered by FUDForum
. Page generated in 0.01727 seconds