public abstract class BHiveConstraintValidator<A extends Annotation,T> extends Object implements javax.validation.ConstraintValidator<A,T>
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
BHiveConstraintValidator() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
initialize(A constraintAnnotation)
Initialize the validator in preparation for isValid calls.
|
abstract boolean |
isValid(T value,
javax.validation.ConstraintValidatorContext context)
Implement the validation logic.
|
public abstract void initialize(A constraintAnnotation)
initialize in interface javax.validation.ConstraintValidator<A extends Annotation,T>constraintAnnotation - annotation instance for a given constraint declarationpublic abstract boolean isValid(T value, javax.validation.ConstraintValidatorContext context)
value must not be altered.
This method can be accessed concurrently, thread-safety must be ensured
by the implementation.isValid in interface javax.validation.ConstraintValidator<A extends Annotation,T>value - object to validatecontext - context in which the constraint is evaluatedvalue does not pass the constraintCopyright © 2018. All rights reserved.