<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE form-validation PUBLIC
     "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.3.0//EN"
     "http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd">
<!--
   TERASOLUNAの入力チェック機能で使用する、入力チェックルールの定義。
-->

<form-validation>
  <global>
    <!-- 必須入力 -->
    <validator name="required"
  	    classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateRequired"
        methodParams="java.lang.Object,
    	    org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        msg="errors.required"/>

	<!-- 正規表現一致 -->
    <validator name="mask"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateMask"
        methodParams="java.lang.Object,
            org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"   
        depends=""
        msg="errors.mask"/>

	<!-- byte型 -->
    <validator name="byte"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateByte"
        methodParams="java.lang.Object,
            org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        depends=""
        msg="errors.byte"/>

	<!-- short型 -->
    <validator name="short"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateShort"
        methodParams="java.lang.Object,
            org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        depends=""
        msg="errors.short"/>

	<!-- int型 -->
    <validator name="integer"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateInteger"
        methodParams="java.lang.Object,
            org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        depends=""
        msg="errors.integer"/>

	<!-- long型 -->
    <validator name="long"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateLong"
        methodParams="java.lang.Object,
            org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        depends=""
        msg="errors.long"/>

	<!-- float型 -->
    <validator name="float"
    	classname="jp.terasoluna.fw.validation.FieldChecks"
       	method="validateFloat"
        methodParams="java.lang.Object,
        	org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        depends=""
        msg="errors.float"/>

	<!-- double型 -->
    <validator name="double"
    	classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateDouble"
        methodParams="java.lang.Object,
        	org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
        	jp.terasoluna.fw.validation.ValidationErrors"
        depends=""
        msg="errors.double"/>

	<!-- 日付形式 -->
    <validator name="date"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateDate"
        methodParams="java.lang.Object,
	        org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
    	depends=""
        msg="errors.date"/>

	<!-- int型範囲 -->
    <validator name="intRange"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateIntRange"
        methodParams="java.lang.Object,
    		org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        depends=""
        msg="errors.range"/>
        
    <!-- double型範囲 -->
    <validator name="doubleRange"
    	classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateDoubleRange"
        methodParams="java.lang.Object,
        	org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        depends=""
        msg="errors.range"/>

	<!-- float型範囲 -->
    <validator name="floatRange"
    	classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateFloatRange"
        methodParams="java.lang.Object,
        	org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        depends=""
        msg="errors.range"/>
        
    <!-- 最大文字数制限 -->
    <validator name="maxLength"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateMaxLength"
        methodParams="java.lang.Object,
            org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        depends=""
        msg="errors.maxlength"/>
        
    <!-- 最小文字数制限 -->
    <validator name="minLength"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateMinLength"
        methodParams="java.lang.Object,
            org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        depends=""     
        msg="errors.minlength"/>
        
    <!-- 半角英数字 -->
    <validator name="alphaNumericString"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateAlphaNumericString"
        methodParams="java.lang.Object,
      		org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        msg="errors.alphaNumericString"/>

    <!-- 大文字英数字 -->
    <validator name="capAlphaNumericString"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateCapAlphaNumericString"
        methodParams="java.lang.Object,
        	org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        msg="errors.capAlphaNumericString"/>

    <!-- 数値 -->
    <validator name="number"
    	classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateNumber"
        methodParams="java.lang.Object,
        	org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        msg="errors.number"/>

	<!-- 半角カナ -->
    <validator name="hankakuKanaString"
	    classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateHankakuKanaString"
        methodParams="java.lang.Object,
    	    org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        msg="errors.hankakuKanaString"/>
        
    <!-- 半角文字列 -->
    <validator name="hankakuString"
    	classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateHankakuString"
        methodParams="java.lang.Object,
        	org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        msg="errors.hankakuString"/>

    <!-- 全角文字列 -->
    <validator name="zenkakuString"
	    classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateZenkakuString"
        methodParams="java.lang.Object,
    	    org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        msg="errors.zenkakuString">
    </validator>

    <!-- 全角カナ文字列 -->
    <validator name="zenkakuKanaString"
    	classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateZenkakuKanaString"
        methodParams="java.lang.Object,
        	org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        msg="errors.zenkakuKanaString">
    </validator>
    
    <!-- 禁止文字列 -->
    <validator name="prohibited"
	    classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateProhibited"
        methodParams="java.lang.Object,
    	    org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        msg="errors.prohibited"/>

    <!-- 数字文字列 -->
    <validator name="numericString"
	    classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateNumericString"
        methodParams="java.lang.Object,
    	    org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        msg="errors.numericString"/>

    <!-- 文字列長一致 -->
    <validator name="stringLength"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateStringLength"
        methodParams="java.lang.Object,
 	       org.apache.commons.validator.ValidatorAction,
           org.apache.commons.validator.Field,
           jp.terasoluna.fw.validation.ValidationErrors"
        msg="errors.stringLength"/>
      
    <!-- 配列の長さ一致 -->
    <validator name="arrayRange"
	    classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateArrayRange"
        methodParams="java.lang.Object,
    	    org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
		msg="errors.arrayRange"/>
      
    <!-- URL -->
    <validator name="url" 
    	classname="jp.terasoluna.fw.validation.FieldChecks" 
		method="validateUrl" 
		methodParams="java.lang.Object, 
			org.apache.commons.validator.ValidatorAction, 
		    org.apache.commons.validator.Field, 
		    jp.terasoluna.fw.validation.ValidationErrors"
		msg="errors.url"/>
	  
	<!-- バイト範囲 -->
    <validator name="byteRange" 
    	classname="jp.terasoluna.fw.validation.FieldChecks" 
		method="validateByteRange" 
		methodParams="java.lang.Object, 
			org.apache.commons.validator.ValidatorAction, 
		    org.apache.commons.validator.Field, 
		    jp.terasoluna.fw.validation.ValidationErrors"
		msg="errors.byteRange"/>
	  
    <!-- 日付範囲 -->
    <validator name="dateRange" 
    	classname="jp.terasoluna.fw.validation.FieldChecks" 
		method="validateDateRange" 
		methodParams="java.lang.Object, 
			org.apache.commons.validator.ValidatorAction, 
		    org.apache.commons.validator.Field, 
		    jp.terasoluna.fw.validation.ValidationErrors"
		msg="errors.dateRange"/>
   </global>
</form-validation>