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

"Tom Morris" <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.user
Message-ID <008a01c79f05$034a6ad0$0301a8c0@micronxp>
> 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.

I presume Bob meant "rather than an actual *enumeration*" above and that
would be my suggestion as well -- use a Class with an <<Enumeration>>
stereotype.  The two figures in the article are inconsistent in that one
uses <<Enumeration>> and the other uses <<enumeration>>, but even with the
<<enumeration>> version is impossible to tell visually whether it's what UML
calls a "keyword" or a real stereotype (something I consider to be a flaw in
the way UML has specified this).

It seems that using a Class with an <<Enumeration>> stereotype is actually
fairly common.  The other reason this gets used is that a UML Enumeration
element does not have rich enough semantics to model the semantics of a Java
enum.

Tom
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.