You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2006/01/08 00:23:33 UTC
DO NOT REPLY [Bug 37704] - [validator] API Bug in org.apache.commons.validator.ValidatorResult
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37704>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37704
------- Additional Comments From niallp@apache.org 2006-01-08 00:23 -------
I agree its inconsistent, but orginally the Map contained just Boolean objects
rather than ResultStatus objects.
Its not completely useless as there is a way round this (in Validator 1.2.0) -
you can get the Map and iterate through the keys and then use those keys to
call the following ValidatorResult methods to access the ValidatorStatus values
for an action:
public boolean isValid(String validatorName)
public Object getResult(String validatorName)
>From what you say would a general isValid() method which checks all the actions
the ValidatorResult contains be more useful to you?
Another option would be to deprecate the getActionMap() method and replace it
with a method that returns an Iterator of the action names.
Opnions?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org