jp.co.fujitsu.reffi.client.nexaweb.validator
クラス IndispensableValidator

java.lang.Object
  上位を拡張 com.nexaweb.plugin.validation.validators.Validator
      上位を拡張 jp.co.fujitsu.reffi.client.nexaweb.validator.CustomValidator
          上位を拡張 jp.co.fujitsu.reffi.client.nexaweb.validator.IndispensableValidator

public class IndispensableValidator
extends CustomValidator

[概 要]

必須バリデータクラスです。

[詳 細]

[備 考]

作成者:
Project Reffi

コンストラクタの概要
IndispensableValidator(Element element)
          [概 要] コンストラクタです。
 
メソッドの概要
 String registerErrorMessage()
          [概 要] エラー文言登録メソッドです。
protected  boolean validate(Object value)
          [概 要] 必須バリデーションを行います。
 
クラス jp.co.fujitsu.reffi.client.nexaweb.validator.CustomValidator から継承されたメソッド
getErrorMessage, getHeadWord, getValue, setErrorMessage, setHeadWord
 
クラス com.nexaweb.plugin.validation.validators.Validator から継承されたメソッド
addValidationListener, execute, getElement, getSession, initialize, isWhitespaceTrimmed, onFailure, onSuccess, removeValidationListener, setElement, setIsWhitespaceTrimmed, setSession
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

IndispensableValidator

public IndispensableValidator(Element element)

[概 要]

コンストラクタです。

[詳 細]

引数element付きでsuper()を呼び出します。

[備 考]

パラメータ:
element -
メソッドの詳細

registerErrorMessage

public String registerErrorMessage()

[概 要]

エラー文言登録メソッドです。

[詳 細]

jp.co.fujitsu.reffi.shared.exception.corelogic_message.properties から対応するエラーメッセージを取得して返却します。

[備 考]

定義:
クラス CustomValidator 内の registerErrorMessage
戻り値:
エラー時メッセージ

validate

protected boolean validate(Object value)
                    throws com.nexaweb.plugin.validation.exceptions.ValidationException

[概 要]

必須バリデーションを行います。

[詳 細]

[備 考]

定義:
クラス com.nexaweb.plugin.validation.validators.Validator 内の validate
パラメータ:
value - エレメント値
戻り値:
エラー有:false、エラー無:true
例外:
com.nexaweb.plugin.validation.exceptions.ValidationException


Copyright(C) Fujitsu All Rights Reserved.