Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to show that a method/operation returns and array of objects (rather than just a single object) in Visio 2007?

I am making particular reference to producing a Static Structure (class diagram). I notice that you can set the return type to a particular object, but there appears to be no way to select that collection of objects be returned instead.

like image 387
Barjavel Avatar asked Feb 13 '11 19:02

Barjavel


People also ask

How do I display shape data in Visio?

To view the shape data for any Visio object: Right-click the shape, and then select Data > Shape Data. The Shape Data window opens.

What is shape protection in Visio?

Preventing changes to shape attributes in Visio (like width or height) and locking shapes from being selected are handy ways to prevent changes to your drawings. Newer versionsOffice 2007. Shape protection requires the Developer tab to be visible. By default, this tab is hidden.

Which is one of the eight supported Visio shape data types?

Specifies a data type for the shape data item value: string (0), a fixed list (1), a number (2), a Boolean value (3), a variable list (4), a date or time (5), a duration (6), or a currency (7).

What are shape data fields in Visio?

Displayed fields Shape data fields are data fields where you can enter values associated with shapes. For example, by default, organization chart shapes have these shape data fields: Department, Telephone, Name, Title, and E-mail.


1 Answers

Select the class, go to Properties, find the Operation, click on Properties and you'll see Prefix and Suffix fields in the dialog box. You can use these fields to modify the return expression, for example:

  • You can type "col " as Prefix to express a collection of objects.
  • You can type "[]" as Suffix to express an array of objects.

Or anything else.

like image 141
CesarGon Avatar answered Sep 21 '22 13:09

CesarGon