<?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="requiredArray"
  	    classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateArraysIndex"
        methodParams="java.lang.Object,
    	    org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        msg="errors.required"/>

	<!-- 正規表現一致 -->
    <validator name="maskArray"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateArraysIndex"
        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="byteArray"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateArraysIndex"
        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="shortArray"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateArraysIndex"
        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="integerArray"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateArraysIndex"
        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="longArray"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateArraysIndex"
        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="floatArray"
    	classname="jp.terasoluna.fw.validation.FieldChecks"
       	method="validateArraysIndex"
        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="doubleArray"
    	classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateArraysIndex"
        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="dateArray"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateArraysIndex"
        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="intRangeArray"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateArraysIndex"
        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="doubleRangeArray"
    	classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateArraysIndex"
        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="floatRangeArray"
    	classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateArraysIndex"
        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="maxLengthArray"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateArraysIndex"
        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="minLengthArray"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateArraysIndex"
        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="alphaNumericStringArray"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateArraysIndex"
        methodParams="java.lang.Object,
      		org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        msg="errors.alphaNumericString"/>

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

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

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

    <!-- 全角文字列 -->
    <validator name="zenkakuStringArray"
	    classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateArraysIndex"
        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="zenkakuKanaStringArray"
    	classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateArraysIndex"
        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="prohibitedArray"
	    classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateArraysIndex"
        methodParams="java.lang.Object,
    	    org.apache.commons.validator.ValidatorAction,
            org.apache.commons.validator.Field,
            jp.terasoluna.fw.validation.ValidationErrors"
        msg="errors.prohibited"/>

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

    <!-- 文字列長一致 -->
    <validator name="stringLengthArray"
        classname="jp.terasoluna.fw.validation.FieldChecks"
        method="validateArraysIndex"
        methodParams="java.lang.Object,
 	       org.apache.commons.validator.ValidatorAction,
           org.apache.commons.validator.Field,
           jp.terasoluna.fw.validation.ValidationErrors"
        msg="errors.stringLength"/>
      
    <!-- URL -->
    <validator name="urlArray" 
    	classname="jp.terasoluna.fw.validation.FieldChecks" 
		method="validateArraysIndex" 
		methodParams="java.lang.Object, 
			org.apache.commons.validator.ValidatorAction, 
		    org.apache.commons.validator.Field, 
		    jp.terasoluna.fw.validation.ValidationErrors"
		msg="errors.url"/>
	  
	<!-- バイト範囲 -->
    <validator name="byteRangeArray" 
    	classname="jp.terasoluna.fw.validation.FieldChecks" 
		method="validateArraysIndex" 
		methodParams="java.lang.Object, 
			org.apache.commons.validator.ValidatorAction, 
		    org.apache.commons.validator.Field, 
		    jp.terasoluna.fw.validation.ValidationErrors"
		msg="errors.byteRange"/>
	  
    <!-- 日付範囲 -->
    <validator name="dateRangeArray" 
    	classname="jp.terasoluna.fw.validation.FieldChecks" 
		method="validateArraysIndex" 
		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>