You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by dg...@apache.org on 2003/08/14 05:54:51 UTC

cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator ValidatorResult.java

dgraham     2003/08/13 20:54:51

  Modified:    validator/src/share/org/apache/commons/validator
                        ValidatorResult.java
  Log:
  Added getField() to give access to protected field property.
  
  Revision  Changes    Path
  1.7       +13 -6     jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorResult.java
  
  Index: ValidatorResult.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorResult.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ValidatorResult.java	8 Jun 2003 07:14:51 -0000	1.6
  +++ ValidatorResult.java	14 Aug 2003 03:54:51 -0000	1.7
  @@ -99,7 +99,7 @@
        * Add the result of a validator action.
        */
       public void add(String validatorName, boolean result) {
  -        add(validatorName, result, null);
  +        this.add(validatorName, result, null);
       }
   
      /**
  @@ -123,6 +123,13 @@
       }
         
       /**
  +     * Returns the Field that was validated.
  +     */
  +    public Field getField() {
  +        return this.field;
  +    }
  +      
  +    /**
        * Contains the status of the validation.
        */
       protected class ResultStatus implements Serializable {
  @@ -175,5 +182,5 @@
           }
       
       }
  -   
  +
   }
  
  
  

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