This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes class diagram - level of details Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "class diagram - level of details" Watch "class diagram - level of details" New topic
Author

class diagram - level of details

Arkadiusz Ryckowski
Greenhorn

Joined: May 18, 2004
Posts: 12
Let says there's a case 'a user searches for a car by color and name'. For moderators - it's not my assigment and I belive it's quite general

I'm wondering if I should define method as

Collection findCarsByCriteria()
Collection findCars(Criteria)
Collection findCarsByNameOrColor(String,Color)
findCars()
findCarsByCriteria()

If I choose 1 or 3 should define classes Color or Criteria ?
I think even 5 is ok, it's designer rensposibility to define method sygnatures


SCEA 5.0<br />SCBCD 5.0<br />SCJP 1.4
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63232
    
  69

"Arek R.", please check your private messages.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: class diagram - level of details
 
It's not a secret anymore!