[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.mdt.uml2] Re: Creating Stereotype extending AssociationEnd

It seems that my newsreader doesn't know how to reply to cross-posted messages, so here is my reply from the EMF newsgroup.

-----8<-----

Hi, Gilbert,

There is no AssociationEnd metaclass:  it was removed in UML 2.0.  Instead, association ends are represented by the Property metaclass.  So, your Event stereotype needs to extend Property.

To assert that the ends of a <<dataChannel>> association are <<events>> you will need to use OCL.  e.g.:

  context DataChannel
  inv ends_are_events: base_Assocation.end->forAll(e | e.extension_Event->notEmpty())

HTH,

Christian

----->8-----

On Wed, 2009-05-27 at 10:23 +0200, Gilbert Mirenque wrote:
no suggestions?