Commons validator serves two functions: 1) To provide validation routines 2) To provide a mini validation framework
I'd like to more clearly separate out these two aspects, so as a first step in this process I have created a new "routines" package with the intention that validation routines, which can be used on their own, with no other dependencies are all moved into that package. As a first step in the process I have added new (hopefully) improved validators for the basic date and number validations. I believe these have a number of advantages: * Not static methods - allowing them to be extended/reused and also duplicated "parsing" code removed. * Support pattern or locale or "locale pattern" parsing for all types. * Support for BigInteger and BigDecimal added. * Support for Calendar and Time validation added. * Support for Currency and Percent validation added. * New Date/Time.Calendar "Compare" functions added. * Support for time zones for date validation added. The package javadoc has some examples here: http://tinyurl.com/cc7a2 The next stage would be to move other validators (i.e. credit card, ISBN, Email and URL) into this package (with some refactoring). After that a real challenge is going to be to develop JavaScript equivalents of these validators. Once thats done, I'd like to start work on tackling the framework's short comings. I've probably used up my "open source" cycles for a little while - but I hope to keep returning chipping away at this. Opinions/comments welcome. Niall --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
