Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to indicate collection in return type of a method (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
 
Madhan Sundararajan Devaki
Ranch Hand
Posts: 312
Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may add a Stereotype to explain...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic