Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Problem with Property Redefinition and Subsetting
Problem with Property Redefinition and Subsetting [message #626562] Wed, 14 May 2008 17:48
Eclipse UserFriend
Originally posted by:

I have redefined properties, thus:

class A
- property u1 [0..1] {derived union}

class B -> A
- property p1 [1] {subsets u1}

class C -> B
- property p2 [1] {redefines p1}

If, given an instance 'c' of C, I to


and subsequently do


I get a null result. If, instead, I had first done


I would have got the expected result from the getU1() call.

The reason why this is happening is that the implementation of getU1()
is in the BImpl class; C does not override it. getU1() checks whether
p1 is set (eIsSet method), which does not consider the fact that it may
be implicitly set by p2 having been set.

Does this sound right?

I am using UML2 2.1.1 release.
Previous Topic:Copy-paste Association as a side-effect when pasting a Class
Next Topic:How to access referenced models
Goto Forum:

Current Time: Thu May 24 18:04:39 GMT 2018

Powered by FUDForum. Page generated in 0.02184 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top