DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14146>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14146

Support for preconditions





------- Additional Comments From [EMAIL PROTECTED]  2002-10-31 21:07 -------
I started by using variables to specify my conditions with a naming convention 
like run<validator>if<property> as var-name, did not feel right putting my 
condition into a variable name.

I can use requiredIf but then I would have to write XXXIf for every XXX 
validator I need to validate which is what I am trying to avoid. 

Being able to separate the conditional logic allows me to plug any validator I 
wish with out having to customize it for every condition.  

Also if the condition fails I should not run the validator, there is no result. 
This would work very well with the type validators like date validator that 
returns a parsed date or a null value, there is no third state.

My implementation may not be ideal, however separating the conditional logic 
from the validator would help reuse them and make my validators generic which 
allows me to plug them in for various scenarios.

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@;jakarta.apache.org>

Reply via email to