oclIsKindOf returning unexpected values [message #1833603] |
Mon, 19 October 2020 16:07 |
Thomas Chiang Messages: 100 Registered: March 2020 |
Senior Member |
|
|
Is there an AQL query for the interpreter that can do a getType of a selected model element? I am trying to build some validation rules but when I query a model element for it's type using oclIsKindOf() or oclIsTypeOf() I get false for everything that I check; stuff from my ecore model and stuff that is built into Sirius.
I have been following this documentation to try and figure out what is going on and why I can't get the expected returns that I want from those methods.
https://www.eclipse.org/acceleo/documentation/
I have inheritances in my ecore model which is why I am using oclIsKindOf() to check if it conforms to the expected supertype. my inheritance is defined as such:
Is there a way to get the type of the elements that are created in my editor? Or at least some way I can check what the type of the element actually is? Or why I keep getting false? This is the command that I am using in the interpreter: aql:[ self.oclIsKindOf(wFP_V2::Data)/]
[Updated on: Mon, 19 October 2020 16:09] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02823 seconds