views:

90

answers:

1

How do I represent integer array as attribute of a class in Visual Studio 2010's UML class diagrams? I know hot to add normal integers, but I'm hoping that there is a way to do it other than adding [] to integer's name.

I'm new to UML, so I could be missing something obvious here.

Should I use Is ordered and Is unique?

+1  A: 

I would simply indicate the type as Integer and the multiplicity as *.

It is not Ordered. Ordered is for collections that are sorted.

John Saunders
I meant under class's attributes field. For example I have a class called Producer which has private int[] array; Is there any way to indicate that it is array inside the diagram? Putting [] as part of attribute's name seems a bit stupid to me and I'm hoping that there's another way to do it.
AndrejaKo
Oh, sorry. I didn't understand what you meant. You should consider editing your question with this information.
John Saunders
i think question was obvious,no need to edit that!
mawia
@mawia: Thanks. It was apparently not obvious to me. Assuming I'm not unique, it may also not be obvious to others.
John Saunders
Well, I edited it, just in case. :)
AndrejaKo