Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Ecore derived attribute's derivation specialization
Ecore derived attribute's derivation specialization [message #949959] Fri, 19 October 2012 09:42 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 498
Registered: June 2011
Senior Member
Hi,

I would like to know the possibility of overriding the ocl derivation statements of derived attribute in specialization class?

Is it supported in Ecore?

Cheers,
Re: Ecore derived attribute's derivation specialization [message #949983 is a reply to message #949959] Fri, 19 October 2012 10:10 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4003
Registered: July 2009
Senior Member
Hi

I'm not entirely clear what you mean.

Generally (UML, Java, Ecore), Properties are not overrideable, although
in UML they are redefinable.

If you want overriding you should use Operations, and if you want it to
look like a Property, introduce a Property at the root that delegates to
an Operation.

Regards

Ed Willink


On 19/10/2012 14:42, ModelGeek Mising name wrote:
> Hi,
>
> I would like to know the possibility of overriding the ocl derivation
> statements of derived attribute in specialization class?
>
> Is it supported in Ecore?
>
> Cheers,
>
Re: Ecore derived attribute's derivation specialization [message #950002 is a reply to message #949983] Fri, 19 October 2012 10:32 Go to previous message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 498
Registered: June 2011
Senior Member
thanks!
Previous Topic:Validate OCL constraints on XMI model
Next Topic:OCL in XText Editor
Goto Forum:
  


Current Time: Tue Jul 22 07:37:54 EDT 2014

Powered by FUDForum. Page generated in 0.01906 seconds