HI All:

This is for the string to Boolean converter, but I suppose this applies to
other converters.

Would providing an alternate string for "true" be in the spirit of
[convert]? What about for "false"?

The current converter would be enhanced to support this, the alt strings
would be provided in the ctor.

What is the thinking WRT to validation? For example I want a boolean
converter that throws an exception if the string is not "true" or "false"
(ignoring case). Would this be more appropriate in a
"ValidatingStringToBooleanConverter" instead of an extra setting in the
ctor?

Gary

-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to