Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-217

org.apache.commons.validator.ValidatorResults should contain a method which will tell whether all the validators are true

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Abandoned
    • None
    • 2.0
    • Framework
    • None
    • All

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rajesh.india raj
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: