public static class NumberRange.NumberRangeValidator extends RangeValidatorSupport<NumberRange>
RangeValidatorSupport.Range
Constructor and Description |
---|
NumberRangeValidator() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildMessage(javax.validation.ConstraintValidatorContext context)
検証エラー時のメッセージを構築する。
|
protected RangeValidatorSupport.Range |
getRange(NumberRange constraintAnnotation)
バリデーション範囲(
RangeValidatorSupport.Range )を取得する。 |
void |
initialize(NumberRange constraintAnnotation) |
getDecimalValue, isValid
isValid
public void initialize(NumberRange constraintAnnotation)
initialize
in interface javax.validation.ConstraintValidator<NumberRange,java.lang.Object>
initialize
in class RangeValidatorSupport<NumberRange>
protected RangeValidatorSupport.Range getRange(NumberRange constraintAnnotation)
RangeValidatorSupport
RangeValidatorSupport.Range
)を取得する。getRange
in class RangeValidatorSupport<NumberRange>
constraintAnnotation
- バリデーション用のアノテーションprotected void buildMessage(javax.validation.ConstraintValidatorContext context)
NumberValidatorSupport
buildMessage
in class NumberValidatorSupport<NumberRange>
context
- コンテキスト