Re: Is it possible to attach composition line to an enumeration?

"Bob Tarling" <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.user
Message-ID <[email protected]>
I've investigated this and it seems that ArgoUML is enforcing one of
the OMG well-formedness rules by not allowing this to be drawn.

Well-formedness rule 2.5.3.3
"The Classifier of an AssociationEnd cannot be an Interface or a
DataType if the  association is navigable away from that end."

As a enumeration is a subclass of DataType this rule comes in to play.

There are two ways you can workaround this

1) Select a directed composition from the composition dropdown tool.
You will be able to draw this.

2) Do as they appear to have done at
http://www.xml.com/pub/a/2002/08/07/wxs_uml.html and use a class with
an <<Enumeration>> stereotype rather the an actual stereotype. My
suspicion that that is what they are showing is based on the
capitilazation of <<Enumeration>> as opposed to the lowercase
<<enumeration>> keyword.

You could create an issue in argouml to either

a) remove enforcement of this rule
and/or
b) argouml manages in a simlar way to interface and auto convert a
bidirectional association to unidirectional.

Regards

Bob.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.