[ 
https://issues.apache.org/jira/browse/VALIDATOR-493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary D. Gregory updated VALIDATOR-493:
--------------------------------------
    Assignee: Gary D. Gregory

> Add getter for "ibanLength" in IBANValidator.Validator
> ------------------------------------------------------
>
>                 Key: VALIDATOR-493
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-493
>             Project: Commons Validator
>          Issue Type: Improvement
>          Components: Routines
>            Reporter: Leonard Wicke
>            Assignee: Gary D. Gregory
>            Priority: Major
>
> *Use case*
> We are using the class to validate the input by our users.
> We would like to give the user accurate validation messages of what about 
> their input is invalid.
> Thats why we dont use Validator#isValid but use the individual checks within 
> that method and for each give the user a different response if invalid.
> We want to give the user a specific message if the length of the iban is 
> invalid (does not match the expected length for the country).
> *Code*
> The attribute "ibanLength" is not public and has no public getter so its not 
> accessible.
> Therefore we currently cant (except via reflection) check if the length of 
> the iban is valid.
> *Request*
> Add a getter-method for the attribute "ibanLength" in IBANValidator.Validator 
> - like "getRegexValidator".



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to