Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Accessing extensions and tagged values in OCL constraints
Accessing extensions and tagged values in OCL constraints [message #66640] Thu, 05 February 2009 11:43 Go to previous message
Michael Felderer is currently offline Michael Felderer
Messages: 11
Registered: July 2009
Junior Member
Hi,

I have created the following OCL query based on a user defined profile, where CallBehaviorAction has a stereotype Servicecall and a tagged value service which refers to an element whose type is itself a stereotype.

context CallBehaviorAction
def servicecallService:
servicecallService(): Profile::Service = self.extension_Servicecall->any(true).service

Eclipse OCL parses this definition but it is not evaluated right because it always returns org.eclipse.uml2.uml.internal.impl.InstanceSpecificationImpl @f73ca4 (name: OclInvalid, visibility: <unset>) for an CallBehaviorAction-element which indeed has a value set for service. I think that already the
extension_Servicecall returns an invalid value.
Is this the right way to access tagged values? Can this type of query principally be handled and how?


I am using org.eclipse.feature.group in version 1.3.0.v20081119 !

thanks in advance,
Michael Felderer
 
Read Message
Read Message
Previous Topic:[Announce] MDT OCL 1.3.0M5 is available
Next Topic:Re: [EMF] How to create an instance of an ecore model
Goto Forum:
  


Current Time: Fri May 24 04:31:06 EDT 2013

Powered by FUDForum. Page generated in 0.04756 seconds