aspose file tools*
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
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: 60059
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: class diagram - level of details
 
Similar Threads
Transforming between collections
How to get search criteria:Field vs ComboBox
Using an Iterator to filter an arbitrary Collection
How to get generic type?
Private variables in superclass accessed by subclass