• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Representing collections in UML

 
Vijay keshava
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would like to indicate the return type of a method as collection of an object, say List of Orders. How do I indicate the same in a class diagram?

searchOrders():Order[] -> this is not allowed in StarUML
searchOrders():Order[*] -> is this UML compliant?

Regards,
Vijay
 
Ravishanker kumar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think,

searchOrders():Collection<Order> OR
searchOrders():List<Order>

can be used.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic