FlatServe Validator Plugin
1.1

com.small_it_office.flatserve.validator.rule
クラス MessageProcessValidationRule<T extends java.lang.annotation.Annotation>

java.lang.Object
  上位を拡張 com.small_it_office.flatserve.validator.rule.MessageProcessValidationRule<T>
型パラメータ:
T - バリデーションルールを引数またはフィールドに適用するためのアノテーションの型。
すべての実装されたインタフェース:
ValidationRule<T>

public abstract class MessageProcessValidationRule<T extends java.lang.annotation.Annotation>
extends java.lang.Object
implements ValidationRule<T>

バリデーションルールを実装の基底クラスです。 このクラスを継承したバリデーションルール実装では、アノテーションのmessage要素から エラーメッセージを生成します。 アノテーションにmessage要素がない場合、エラーメッセージは空文字列となります。


コンストラクタの概要
MessageProcessValidationRule()
           
 
メソッドの概要
 java.lang.String getMessage(java.lang.Object rawValue, T annotation, MessageResource messageResource)
          このルールでバリデーションエラーが発生した場合のエラーメッセージを返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース com.small_it_office.flatserve.validator.rule.ValidationRule から継承されたメソッド
isValid
 

コンストラクタの詳細

MessageProcessValidationRule

public MessageProcessValidationRule()
メソッドの詳細

getMessage

public java.lang.String getMessage(java.lang.Object rawValue,
                                   T annotation,
                                   MessageResource messageResource)
このルールでバリデーションエラーが発生した場合のエラーメッセージを返します。 このメソッドでは、@ItemNameで指定された項目名を考慮する必要はありません。

定義:
インタフェース ValidationRule<T extends java.lang.annotation.Annotation> 内の getMessage
パラメータ:
rawValue - バリデーションエラーとなった値。入力されたままの、型変換やフォーマット変換を行う前の状態のもの。
annotation - 引数またはJavaBeanのフィールドに指定された、バリデーションルールアノテーション。
messageResource - バリデーションエラーメッセージのメッセージリソース。
戻り値:
バリデーションエラーの場合のエラーメッセージ

FlatServe Validator Plugin
1.1