[
https://issues.apache.org/jira/browse/VALIDATOR-493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Leonard Wicke updated VALIDATOR-493:
------------------------------------
Description:
*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".
was:
*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 would like to use
the individual checks within that method and for each give the user a different
message.
*Code*
The only thing within #isValid that is not public is the check for the length
of the iban.
Add a getter-method for the attribute "ibanLength" in IBANValidator.Validator -
like "getRegexValidator".
> Add getter for "ibanLength" in IBANValidator.Validator
> ------------------------------------------------------
>
> Key: VALIDATOR-493
> URL: https://issues.apache.org/jira/browse/VALIDATOR-493
> Project: Commons Validator
> Issue Type: New Feature
> Reporter: Leonard Wicke
> 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)