This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Representing collections in UML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Representing collections in UML" Watch "Representing collections in UML" New topic

Representing collections in UML

Vijay keshava
Ranch Hand

Joined: Jul 05, 2011
Posts: 40

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?

Ravishanker kumar
Ranch Hand

Joined: Jul 20, 2006
Posts: 53
I think,

searchOrders():Collection<Order> OR

can be used.
I agree. Here's the link:
subject: Representing collections in UML
jQuery in Action, 3rd edition