Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: [argouml-users] Multiplicity Questions

argouml
Discussion topic

Back to topic list

Re: [argouml-users] Multiplicity Questions

Author tfmorris
Full name Tom Morris
Date 2012-03-28 08:32:54 PDT
Message On Wed, Mar 28, 2012 at 11:06 AM, Mark Fortner <phidias51 at gmail dot com> wrote:
> Hi Linus,
> I created the association again, clicked on the link in the Properties panel
> to go to the Department association end, and then clicked Private.  When I
> looked at the source tab, it still showed up as public.  Oddly enough, on
> the diagram we see "-employeeList" indicating that the association end is
> private.

I've lost track of the ends now, but my impression from the original
message was that you were changing the visibility on the wrong
association end. Remember that it's the *far* end that you need to
change for things like visibility and navigability.

> What's also odd is the fact that Employee also ends up with a public Vector
> employeeList declaration.

Is the association navigable in both directions? (the default) If so,
you'll get data structures on both ends to allow you to get to the
other end. Set isNavigable to false on the end opposite where you
want the data structure to disappear from.

> I suspect changing Vectors into generified Lists, and fixing the
> Multiplicity=1 issue are probably trivial changes and I'll look into that
> within the next few days.

Support for UML Templates and Java generics is only partially
implemented. You could probably special case the code generation for
this specific use case without generics support, but you might need to
take backward compatibility into account (e.g. provide a preference
setting for what type to generate).

Note also that ArrayList and Vector have slightly different semantics,
particularly vis a vis synchronization, so the two types aren't
completely interchangeable.

Tom

« Previous message in topic | 5 of 9 | Next message in topic »

Messages

Show all messages in topic

[argouml-users] Multiplicity Questions phidias Mark Fortner 2012-03-27 14:04:24 PDT
     Re: [argouml-users] Multiplicity Questions linus Linus Tolke 2012-03-27 21:54:05 PDT
     Re: [argouml-users] Multiplicity Questions bobtarling Bob Tarling 2012-03-27 23:37:18 PDT
         Re: [argouml-users] Multiplicity Questions phidias Mark Fortner 2012-03-28 08:07:00 PDT
             Re: [argouml-users] Multiplicity Questions tfmorris Tom Morris 2012-03-28 08:32:54 PDT
                 Re: [argouml-users] Multiplicity Questions phidias Mark Fortner 2012-03-28 09:33:12 PDT
                     Re: [argouml-users] Multiplicity Questions phidias Mark Fortner 2012-03-29 08:11:23 PDT
                         Re: [argouml-users] Multiplicity Questions phidias Mark Fortner 2012-04-04 07:32:59 PDT
                             [argouml-dev] Re: [argouml-users] Multiplicity Questions bobtarling Bob Tarling 2012-04-04 09:54:33 PDT
Messages per page: