File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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: 17250
    
    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