Class AbstractValidatorForLocalizedValue<A extends Annotation>
java.lang.Object
de.knightsoftnet.validators.shared.impl.AbstractValidatorForLocalizedValue<A>
- Type Parameters:
A- annotation interface for check
- All Implemented Interfaces:
jakarta.validation.ConstraintValidator<A,LocalizedValue<?, ?>>
- Direct Known Subclasses:
NotBlankValidatorForLocalizedValue,NotEmptyValidatorForLocalizedValue,PatternValidatorForLocalizedValue
public abstract class AbstractValidatorForLocalizedValue<A extends Annotation>
extends Object
implements jakarta.validation.ConstraintValidator<A,LocalizedValue<?,?>>
abstract validatior for localized value.
- Author:
- Manfred Tremmel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract booleancheckEntryValue(Object value) check single localized value.protected booleancheckValue(Map.Entry<?, ?> entry, jakarta.validation.ConstraintValidatorContext constraintValidatorContext) protected voidextendValidationContext(jakarta.validation.ConstraintValidatorContext constraintValidatorContext) booleanisValid(LocalizedValue<?, ?> localizedValue, jakarta.validation.ConstraintValidatorContext constraintValidatorContext) Checks that the localized value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.validation.ConstraintValidator
initialize
-
Field Details
-
message
-
-
Constructor Details
-
AbstractValidatorForLocalizedValue
public AbstractValidatorForLocalizedValue()
-
-
Method Details
-
checkValue
protected boolean checkValue(Map.Entry<?, ?> entry, jakarta.validation.ConstraintValidatorContext constraintValidatorContext) -
extendValidationContext
protected void extendValidationContext(jakarta.validation.ConstraintValidatorContext constraintValidatorContext) -
checkEntryValue
check single localized value.- Parameters:
value- object to check- Returns:
- true if it's valid