mikeh       01/05/15 14:45:29

  Modified:    src/java/org/apache/turbine/util/validation
                        InputValidator.java
  Log:
  added set methods, removed unneeded constructor
  
  Revision  Changes    Path
  1.2       +26 -11    
jakarta-turbine/src/java/org/apache/turbine/util/validation/InputValidator.java
  
  Index: InputValidator.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine/src/java/org/apache/turbine/util/validation/InputValidator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- InputValidator.java       2001/05/15 20:48:31     1.1
  +++ InputValidator.java       2001/05/15 21:45:24     1.2
  @@ -57,7 +57,7 @@
   
   /**
    * @author <a href="mailto:[EMAIL PROTECTED]";>Mike Haberman</a>
  - * @version $Id: InputValidator.java,v 1.1 2001/05/15 20:48:31 mikeh Exp $ 
  + * @version $Id: InputValidator.java,v 1.2 2001/05/15 21:45:24 mikeh Exp $ 
    *
    *
    */
  @@ -87,16 +87,7 @@
   
       /**
        * Constructor, 
  -     * @param boolean allEmptyInput 
  -    */
  -    public InputValidator(boolean allowEmptyInput)
  -    {
  -       this(allowEmptyInput, NoMaxSize, EmptyArgv);
  -    }
  -
  -    /**
  -     * Constructor, 
  -     * @param boolean allEmptyInput 
  +     * @param boolean allowEmptyInput 
        * @param int maxSize 
        * @param String argv 
       */
  @@ -107,6 +98,30 @@
          this.allowEmptyInput = allowEmptyInput;
          this.maxSize         = maxSize;
          this.argv            = argv;
  +    }
  +
  +    /**
  +     * @param boolean allowEmptyInput, set allowEmptyInput
  +     */
  +    public void setAllowEmptyInput(boolean allowEmptyInput)
  +    {
  +       this.allowEmptyInput = allowEmptyInput;
  +    }
  +
  +    /**
  +     * @param int maxSize, set maxSize
  +     */
  +    public void setMaxSize(int maxSize)
  +    {
  +       this.maxSize = maxSize;
  +    }
  +
  +    /**
  +     * @param String argv, set argv
  +     */
  +    public void setArgv(String argv)
  +    {
  +       this.argv = argv;
       }
   
   
  
  
  

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

Reply via email to