Package nablarch.core.validation.ee
Class NumberRange.NumberRangeValidator
java.lang.Object
nablarch.core.validation.ee.NumberValidatorSupport<T>
nablarch.core.validation.ee.RangeValidatorSupport<NumberRange>
nablarch.core.validation.ee.NumberRange.NumberRangeValidator
- All Implemented Interfaces:
jakarta.validation.ConstraintValidator<NumberRange,
Object>
- Enclosing class:
- NumberRange
指定された整数の範囲の数値であることを検証するバリデータ。
-
Nested Class Summary
Nested classes/interfaces inherited from class nablarch.core.validation.ee.RangeValidatorSupport
RangeValidatorSupport.Range
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
buildMessage
(jakarta.validation.ConstraintValidatorContext context) 検証エラー時のメッセージを構築する。protected RangeValidatorSupport.Range
getRange
(NumberRange constraintAnnotation) バリデーション範囲(RangeValidatorSupport.Range
)を取得する。void
initialize
(NumberRange constraintAnnotation) Methods inherited from class nablarch.core.validation.ee.RangeValidatorSupport
getDecimalValue, isValid
Methods inherited from class nablarch.core.validation.ee.NumberValidatorSupport
isValid
-
Constructor Details
-
NumberRangeValidator
public NumberRangeValidator()
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfacejakarta.validation.ConstraintValidator<NumberRange,
Object> - Overrides:
initialize
in classRangeValidatorSupport<NumberRange>
-
getRange
Description copied from class:RangeValidatorSupport
バリデーション範囲(RangeValidatorSupport.Range
)を取得する。- Specified by:
getRange
in classRangeValidatorSupport<NumberRange>
- Parameters:
constraintAnnotation
- バリデーション用のアノテーション- Returns:
- バリデーション範囲
-
buildMessage
protected void buildMessage(jakarta.validation.ConstraintValidatorContext context) Description copied from class:NumberValidatorSupport
検証エラー時のメッセージを構築する。- Specified by:
buildMessage
in classNumberValidatorSupport<NumberRange>
- Parameters:
context
- コンテキスト
-