Author Topic: Objects whose type is array-of-something  (Read 3262 times)

Christopher_Wells

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Objects whose type is array-of-something
« on: April 11, 2005, 07:18:55 am »
The 'Set Element Classifier' dialog should have a 'Array' checkbox.

If for example I create a class named Foo, then this checkbox should allow me to classify an object as being of type 'Foo' and/or of type Foo[]'.

Christopher_Wells

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Objects whose type is array-of-something
« Reply #1 on: April 11, 2005, 07:32:41 am »
Even when the 'Return Array' checkbox is checked in the definition of a method, when the method is used in a sequence diagram the fact that the method returns an array appears to be ignored: for example, if I define that myMethod returns Foo and check the 'Return Array' checkbox, currently when I invoke this method on a sequence diagram the method displays as "Foo = myMethod" whereas instead I think it should display as Foo[] = myMethod".

jonniesavell

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Objects whose type is array-of-something
« Reply #2 on: January 31, 2007, 10:30:34 pm »
EA/UML Newbie here.

I am not interested in code generation.

I am interested purely in the meaning of "Return Array" check-box in the Operations properties for a class/interface.

Question: Does checking this check-box mean that the actual return type is some sort of collection of the type specified in field "Return Type"?

Concern:
When I check this check-box, the class/interface diagram shows what appears to be Array notation rather than the multiplicity thing that I would really like.

Concern:
In UML, there appears to be no properties notation for the return type when modeling an operation (whereas the operation allows properties notation for the parameters and the operation itself). Why do I yearn for properties notation on the return type? I would like to use order and unique to say something about the collection being returned.

Thanks in advance to any who have made it this far.

Sincerely,
Jon Savell