henning     2003/06/19 08:22:02

  Modified:    src/java/org/apache/turbine/services/intake/validator
                        NumberKeyValidator.java
  Log:
  Changes for working with the new validator class hierarchy
  
  Patch donated by Colin Chalmers <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.10      +11 -11    
jakarta-turbine-2/src/java/org/apache/turbine/services/intake/validator/NumberKeyValidator.java
  
  Index: NumberKeyValidator.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/intake/validator/NumberKeyValidator.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- NumberKeyValidator.java   24 Apr 2003 21:50:52 -0000      1.9
  +++ NumberKeyValidator.java   19 Jun 2003 15:22:01 -0000      1.10
  @@ -133,7 +133,7 @@
        * @exception ValidationException containing an error message if the
        * testValue did not pass the validation tests.
        */
  -    protected void doAssertValidity(String testValue)
  +    public void assertValidity(String testValue)
               throws ValidationException
       {
           NumberKey nk = null;
  @@ -143,17 +143,17 @@
           }
           catch (RuntimeException e)
           {
  -            message = invalidNumberMessage;
  +            errorMessage = invalidNumberMessage;
               throw new ValidationException(invalidNumberMessage);
           }
           if (minValue != null && nk.compareTo(minValue) < 0)
           {
  -            message = minValueMessage;
  +            errorMessage = minValueMessage;
               throw new ValidationException(minValueMessage);
           }
           if (maxValue != null && nk.compareTo(maxValue) > 0)
           {
  -            message = maxValueMessage;
  +            errorMessage = maxValueMessage;
               throw new ValidationException(maxValueMessage);
           }
       }
  @@ -176,11 +176,11 @@
       /**
        * Set the value of minValue.
        *
  -     * @param v  Value to assign to minValue.
  +     * @param minValue Value to assign to minValue.
        */
  -    public void setMinValue(NumberKey v)
  +    public void setMinValue(NumberKey minValue)
       {
  -        this.minValue = v;
  +        this.minValue = minValue;
       }
   
       /**
  @@ -196,10 +196,10 @@
       /**
        * Set the value of maxValue.
        *
  -     * @param value  Value to assign to maxValue.
  +     * @param maxValue Value to assign to maxValue.
        */
  -    public void setMaxValue(NumberKey value)
  +    public void setMaxValue(NumberKey maxValue)
       {
  -        this.maxValue = value;
  +        this.maxValue = maxValue;
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to