my dog learned polymorphism*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Do I follow specification or implement the interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Do I follow specification or implement the interface" Watch "Do I follow specification or implement the interface" New topic
Author

Do I follow specification or implement the interface

Ta Ri Ki Sun
Ranch Hand

Joined: Mar 26, 2002
Posts: 442
the instructions.html emphasizes the importance of satisfying any requirement where the word "must" is used.
that said the interface contradicts one of the requirements.
in the javadoc for the interface the findByCriteria method says '(For example, "Fred" matches "Fred" or "Freddy".)
and a requirement in the User Interface says "records where .... exactly match values specified by the user."
I suppose I could implement either one and defend it in my documentation, the interface being a little more user friendly, but the UI spec is very clear about this requirement.
do I e-mail sun or is this one of those choices i have to make and defend ?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

If you use JComboBoxes with actual values from the db.db file, and that is all that the user can select, then your criteria string will always have exact matches. So just code for those matches and you will be fine.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Max Habibi
town drunk
( and author)
Sheriff

Joined: Jun 27, 2002
Posts: 4118
Tariq,
Are you sure that's not for two different methods? I seem to recall that it was.
M, author
The Sun Certified Java Developer Exam with J2SE 1.4


Java Regular Expressions
Ta Ri Ki Sun
Ranch Hand

Joined: Mar 26, 2002
Posts: 442
Originally posted by Max Habibi:
Tariq,
Are you sure that's not for two different methods? I seem to recall that it was.
M, author
The Sun Certified Java Developer Exam with J2SE 1.4

just double checked, and theres only one finder method Max
Ta Ri Ki Sun
Ranch Hand

Joined: Mar 26, 2002
Posts: 442
Originally posted by Mark Spritzler:
If you use JComboBoxes with actual values from the db.db file, and that is all that the user can select, then your criteria string will always have exact matches. So just code for those matches and you will be fine.
Mark


thanks Mark, I hadn't thought of that, its been almost 3 years since I smelled anything swing, and I also haven't started designing this app yet, but I'll definately keep that in mind
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Do I follow specification or implement the interface
 
Similar Threads
how to define criteria for search
NX: Search criteria.
URLyBird 1.2.1 findByCriteria()
Exception chaining
Exact match and starts with