You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2014/01/30 15:26:09 UTC
[jira] [Updated] (VALIDATOR-217)
org.apache.commons.validator.ValidatorResults should contain a method which
will tell whether all the validators are true
[ https://issues.apache.org/jira/browse/VALIDATOR-217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb updated VALIDATOR-217:
---------------------------
Priority: Major (was: Critical)
> org.apache.commons.validator.ValidatorResults should contain a method which will tell whether all the validators are true
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: VALIDATOR-217
> URL: https://issues.apache.org/jira/browse/VALIDATOR-217
> Project: Commons Validator
> Issue Type: Improvement
> Components: Framework
> Environment: All
> Reporter: raj
> Fix For: Validator2
>
>
> The org.apache.commons.validator.ValidatorResults does not contain any method which gives me a consolidated result. As a developer i am interested in knowing whether all the validations are true. Only if there is any failure i will go through the individual ValidatorResult. But ValidatorResults doesnt provide me such a method. Because of this each time i run the Validator.validate method i get a ValidatorResults and i need to parse through each ValidatorResult in ValidatorResults to know whether the validation is successful.
> If there is a method in ValidatorResults which will give me a consolidated result probably a boolean true then i need not parse the ValidatorResults for each field and check whether it is validated.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)