|Re: Querying properties that are EFeatureMapEntry Objects [message #692746 is a reply to message #692715]
||Tue, 05 July 2011 06:43
| Ed Willink
Registered: July 2009
The current Xtext-based OCL support is for EMOF (Ecore) with some UML
EFeatureMapEntry have no EMOF counterpart, they are part of Ecore's
support for UML-like qualified associations.
You should thereforee be using some form of "property[another-property]"
syntax, which might get you past the
parser, but it certainly won't evaluate.
If you'd like to file a Bugzilla with a simple model, it will motivate
me to tackle qualified associations. We're planning
a further release before Juno; This irritates me sufficiently to try to
tackle it before Juno.
I'm afraid that doesn't help you today.
On 05/07/2011 06:25, Mark Sluser wrote:
> I have an ecore metamodel I created from an XML Schema. I have
> generated an editor and I created a model.
> When I launch the XText OCL Console, I can issue queries against model
> properties that are of type EString, however when I issue a query
> against an property that is of type EFeatureMapEntry, or a property
> that is grouped with a property that is a EFeatureMapEntry (as is
> quite common in XML Schemas) I get the following:
> Parsing failure
> Unresolved property 'paramValue' for 'OclInvalid'
> What am I doing wrong?
> I am using the Indigo-Modeling release of Eclipse.
> Thank you
> Calgary, AB
Powered by FUDForum
. Page generated in 0.11433 seconds