<!DOCTYPE form-validation PUBLIC
          "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
          "http://jakarta.apache.org/commons/dtds/validator_1_3.dtd">
<!--

   This file contains the default Validator pluggable validator
   definitions.  

   These are the default error messages associated with
   each validator defined in this file.  You can associate 
   new ones by modifying the
   pluggable validators msg attributes in this file.

   # Struts Validator Error Messages
   errors.required={0} is required.
   errors.minlength={0} can not be less than {1} characters.
   errors.maxlength={0} can not be greater than {1} characters.
   errors.invalid={0} is invalid.

   errors.byte={0} must be a byte.
   errors.short={0} must be a short.
   errors.integer={0} must be an integer.
   errors.long={0} must be a long.
   errors.float={0} must be a float.
   errors.double={0} must be a double.

   errors.date={0} is not a date.
   errors.range={0} is not in the range {1} through {2}.
   errors.creditcard={0} is an invalid credit card number.
   errors.email={0} is an invalid e-mail address.

-->

<form-validation>

   <global>

      <validator name="required"
            classname="es.dalocar.software.validator.BasicValidator"
               method="validateRequired"
         methodParams="java.lang.Object,
                       org.apache.commons.validator.Field"
                  msg="errors.required">
      </validator>

      <validator name="positive"
            classname="es.dalocar.software.validator.BasicValidator"
               method="validatePositive"
         methodParams="java.lang.Object,
                       org.apache.commons.validator.Field"
                  msg="errors.positive">
      </validator>

      <validator name="requiredif"
                 classname="es.dalocar.software.validator.BasicValidator"
                 method="validateRequiredIf"
           methodParams="java.lang.Object,
                       org.apache.commons.validator.Field,
                       org.apache.commons.validator.Validator"
                 msg="errors.required">
      </validator>

      <validator name="minlength"
            classname="es.dalocar.software.validator.BasicValidator"
               method="validateMinLength"
         methodParams="java.lang.Object,
                       org.apache.commons.validator.Field"
              depends=""
                  msg="errors.minlength">

      </validator>


      <validator name="maxlength"
            classname="es.dalocar.software.validator.BasicValidator"
               method="validateMaxLength"
         methodParams="java.lang.Object,
                       org.apache.commons.validator.Field"
              depends=""
                  msg="errors.maxlength">

      </validator>


      <validator name="mask"
            classname="es.dalocar.software.validator.BasicValidator"
               method="validateMask"
         methodParams="java.lang.Object,
                       org.apache.commons.validator.ValidatorAction,
                       org.apache.commons.validator.Field,
                       org.apache.struts.action.ActionErrors,
                       javax.servlet.http.HttpServletRequest"
              depends=""
                  msg="errors.invalid">

      </validator>


      <validator name="byte"
            classname="es.dalocar.software.validator.BasicValidator"
               method="validateByte"
         methodParams="java.lang.Object,
                       org.apache.commons.validator.Field"
              depends=""
                  msg="errors.byte">

      </validator>


      <validator name="short"
            classname="es.dalocar.software.validator.BasicValidator"
               method="validateShort"
         methodParams="java.lang.Object,
         			   org.apache.commons.validator.Field"
              depends=""
                  msg="errors.short">

      </validator>


      <validator name="integer"
            classname="es.dalocar.software.validator.BasicValidator"
               method="validateInteger"
         methodParams="java.lang.Object,
                       org.apache.commons.validator.Field"
              depends=""
                  msg="errors.integer">

      </validator>


      <validator name="long"
            classname="es.dalocar.software.validator.BasicValidator"
               method="validateLong"
         methodParams="java.lang.Object,
                       org.apache.commons.validator.Field"
              depends=""
                  msg="errors.long"/>


      <validator name="float"
            classname="es.dalocar.software.validator.BasicValidator"
               method="validateFloat"
         methodParams="java.lang.Object,
                       org.apache.commons.validator.Field"
              depends=""
                  msg="errors.float">

      </validator>


      <validator name="double"
            classname="es.dalocar.software.validator.BasicValidator"
               method="validateDouble"
         methodParams="java.lang.Object,
                       org.apache.commons.validator.Field"
              depends=""
                  msg="errors.double"/>


      <validator name="date"
            classname="es.dalocar.software.validator.BasicValidator"
               method="validateDate"
         methodParams="java.lang.Object,
                       org.apache.commons.validator.Field"
              depends=""
                  msg="errors.date">

      </validator>

      <validator name="intRange"
            classname="es.dalocar.software.validator.IntegerValidator"
               method="validateIntRange"
         methodParams="java.lang.Object,
                       org.apache.commons.validator.Field"
              depends="integer"
                  msg="errors.range">

      </validator>

      <validator name="floatRange"
            classname="es.dalocar.software.validator.BasicValidator"
               method="validateFloatRange"
         methodParams="java.lang.Object,
                       org.apache.commons.validator.Field"
              depends="float"
                  msg="errors.range">

      </validator>

      <validator name="creditCard"
            classname="es.dalocar.software.validator.BasicValidator"
               method="validateCreditCard"
         methodParams="java.lang.Object,
                       org.apache.commons.validator.Field"
              depends=""
                  msg="errors.creditcard">

      </validator>


      <validator name="email"
            classname="es.dalocar.software.validator.BasicValidator"
               method="validateEmail"
         methodParams="java.lang.Object,
                       org.apache.commons.validator.Field"
              depends=""
                  msg="errors.email">

      </validator>
      
      <validator name="listEmpty"
            classname="es.dalocar.software.validator.ListValidator"
               method="validateIsEmpty"
         methodParams="java.lang.Object,
                       org.apache.commons.validator.Field"
              depends=""
                  msg="errors.listEmpty">

      </validator>
      
      <validator name="lessThan"
            classname="es.dalocar.software.validator.IntegerValidator"
               method="validateLessThan"
         methodParams="java.lang.Object,
                       org.apache.commons.validator.Field"
              depends=""
                  msg="errors.lessThan">

      </validator>
        
	   
   </global>

</form-validation>
