File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!