Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 24845 invoked from network); 26 May 2006 02:27:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 May 2006 02:27:22 -0000 Received: (qmail 23465 invoked by uid 500); 26 May 2006 02:27:14 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 23353 invoked by uid 500); 26 May 2006 02:27:13 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 23329 invoked by uid 99); 26 May 2006 02:27:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 May 2006 19:27:13 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 May 2006 19:27:13 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9C28A71428E for ; Fri, 26 May 2006 02:26:30 +0000 (GMT) Message-ID: <27948386.1148610390636.JavaMail.jira@brutus> Date: Fri, 26 May 2006 02:26:30 +0000 (GMT+00:00) From: "Gabriel Belingueres (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Updated: (VALIDATOR-188) Extend ISBN validator to support smooth transition to ISBN-13 / EAN-13 standard In-Reply-To: <8758491.1148610091173.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/VALIDATOR-188?page=all ] Gabriel Belingueres updated VALIDATOR-188: ------------------------------------------ Attachment: ISBNValidator.java ISBNValidatorTest.java The modified ISBNValidator class and its test cases. Regards, Gabriel Belingueres > Extend ISBN validator to support smooth transition to ISBN-13 / EAN-13 standard > ------------------------------------------------------------------------------- > > Key: VALIDATOR-188 > URL: http://issues.apache.org/jira/browse/VALIDATOR-188 > Project: Commons Validator > Type: Improvement > Versions: 1.2 Final > Reporter: Gabriel Belingueres > Attachments: ISBNValidator.java, ISBNValidatorTest.java > > Hi, > I just revised the ISBNValidator to support ISBN-13 / EAN-13 standards, which will begin its use on 2007 (see http://www.isbn.org/standards/home/isbn/transition.asp for more information). > To support a smooth transition, I changed the isValid(String) method so that it can validate all ISBN-10, ISBN-13 and EAN-13 codes. In addition, I created methods for validating only ISBN-10, only EAN-13, or ISBN-13 / EAN-13 codes. This way, anyone could have support for > the new standard by just changing the .jar file. > Please note that I've changed a few method names, and you may want to check the code style to match the existing one (however I tried to follow it whenever I could). > Regards, > Gabriel Belingueres -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org