Multiplicity Questions

Mark Fortner <[email protected]> Tue, 27 Mar 2012 14:04:23 -0700
Newsgroups gmane.comp.lang.uml.argouml.user
Message-ID <CAOwy01t=ZYt2R1mhUt2-44chAqx9Na25UPEL3zBrreCrWGJEew@mail.gmail.com>
------=_Part_11133_1012350935.1332882265587
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I've been trying to figure out how the changing multiplicity between
classes, effects the code that gets generated.

Let's say that you have a class like Department.  This class has multiple
Employees.

Department <>----- [1..*]Employee


When I name the association to "employeeList", and add some
documentation, and look at the source for the Department, I see this:

  /**
   *  A list of employees in the Department.
   * @element-type Employee
   */
   public Vector employeeList


Ideally, I'd like to see *private List<Employee> employeeList*.  At a
minimum, is there anyway to display the generic type for the list?

If I select the endpoint within Department, and set the visibility to
Private, the code still shows up as public.

Is there anyway of changing the type for an association?  For
example,*MultiMap<Skill, Employee>
*.

Also, when I add something that has a multiplicity of 1, I still get a
Vector.  Is there anyway of changing that?

Regards,

Mark

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=449&dsMessageId=2941245

To unsubscribe from this discussion, e-mail: [[email protected]].
------=_Part_11133_1012350935.1332882265587
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div>I&#39;ve been trying to figure out how the changing multiplicity betwe=
en classes, effects the code that gets generated.</div><div><br></div>Let&#=
39;s say that you have a class like Department. =A0This class has multiple =
Employees.
<div><br></div><blockquote style=3D"margin:0 0 0 40px;border:none;padding:0=
px"><div>Department &lt;&gt;----- [1..*]Employee</div></blockquote><div><br=
></div><div>When I name the association to &quot;employeeList&quot;, and ad=
d some documentation,=A0and look at the source for the Department, I see th=
is:</div>
<div><br></div><blockquote style=3D"margin:0 0 0 40px;border:none;padding:0=
px"><div>=A0 /**=A0</div><div>=A0 =A0* =A0A list of employees in the Depart=
ment.</div><div>=A0 =A0* @element-type Employee</div><div>=A0 =A0*/</div><d=
iv>=A0 =A0public Vector employeeList</div>
</blockquote><div><br></div><div>Ideally, I&#39;d like to see <b>private Li=
st&lt;Employee&gt; employeeList</b>. =A0At a minimum, is there anyway to di=
splay the generic type for the list? =A0</div><div><br></div><div>If I sele=
ct the endpoint within Department, and set the visibility to Private, the c=
ode still shows up as public.</div>
<div><br></div><div>Is there anyway of changing the type for an association=
? =A0For example,<b> MultiMap&lt;Skill, Employee&gt;</b>.=A0</div><div><br>=
</div><div>Also, when I add something that has a multiplicity of 1, I still=
 get a Vector. =A0Is there anyway of changing that?</div>
<div><br></div><div>Regards,</div><div><br></div><div>Mark</div>

------=_Part_11133_1012350935.1332882265587--