|Re: Trying to define attribute in class in diagram of type "Set<ComponentType>" [message #625326 is a reply to message #625320]
||Fri, 04 December 2009 14:02
| Ed Merks
Registered: July 2009
Your question appears to be about Java generics but that isn't directly
supported by UML itself. I suppose something equivalent is a
multi-valued property that's unordered and unique, but even this, if
mapped to Ecore and then to Java will result in EList<Category> not
David M. Karr wrote:
> I have a simple class diagram, with classes "Catalog" and "Category".
> I'll be adding many more classes, but these are the first two. There
> is a property of "Catalog" called "rootCategories", which should be a
> "Set<Category>". It's easy enough to define an association from
> Catalog to Category and label it on the source end with
> "rootCategories", but I'd like to define a "rootCategories" attribute
> of "Catalog" of type "Set<Category>".
> I've created the two class icons, along with the association, but I
> don't understand the steps required to get that attribute created with
> that type.
Powered by FUDForum
. Page generated in 0.02401 seconds