Hello,
I am using EMF Query to search my model. My model looks something like this:
<items>
<item name="item1" description="test"/>
<item name="test" description="description"/>
</items
I want to query all attributes of the elements (name and description), but it seems upon first successful match query does not continue. Here is my code:
EObjectCondition condition_name = new EObjectAttributeValueCondition(ModelPackage.Literals.OBJECT_TYPE__NAME,"test");
EObjectCondition condition_description = new ObjectAttributeValueCondition(ModelPackage.Literals.OBJECT_TYPE__DESCRIPTION,"test");
condition_name.OR(condition_description);
....
....
So in this case <item name="test" description="description"/> will be returned, and if I reverse the OR then the other element will be returned. Is this not case where ORing should be used?
thanks,
Alex