Quote: I would think this would be modeled appropriately though inheritance: A book extends/specializes a publication, therefore a book is a special type of publication. (end of quote)
This is precisely what I'm trying to accomplish. I've modelled Book as a generalization of Publication (http://www.rcfile.org/model.png). I need to get a list of Publications and be able to determine the "type" of each Publication, which is why I need to have a "type" attribute, be it a String or a PublicationType, on Publication whose value is provided by the subclass (Book).[/quote] _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2329#2329 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user