commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r289168 - /jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/ValidatorResult.java
Date Thu, 15 Sep 2005 06:40:55 GMT
Author: niallp
Date: Wed Sep 14 23:40:47 2005
New Revision: 289168

URL: http://svn.apache.org/viewcvs?rev=289168&view=rev
Log:
Bug #27671 Add getResult() method to ValidatorResult - requested by Manish Inala 

Modified:
    jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/ValidatorResult.java

Modified: jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/ValidatorResult.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/ValidatorResult.java?rev=289168&r1=289167&r2=289168&view=diff
==============================================================================
--- jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/ValidatorResult.java
(original)
+++ jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/ValidatorResult.java
Wed Sep 14 23:40:47 2005
@@ -92,6 +92,16 @@
     }
 
     /**
+     * Return the result of a validation.
+     * @param validatorName Name of the validator.
+     * @return The validation result.
+     */
+    public Object getResult(String validatorName) {
+        ResultStatus status = (ResultStatus) hAction.get(validatorName);
+        return (status == null) ? null : status.getResult();
+    }
+
+    /**
      * Return a Map of the validator actions in this Result.
      * @return Map of validator actions.
      */



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message