public interface ConstraintValidator
A validator for annotation based constraints. Validators may validate one or more constraint types.
Copyright 2010 (C) by Martin Ganserer
| Modifier and Type | Method and Description |
|---|---|
ConstraintViolation |
validate(Object value,
Annotation constraint)
Validates the given value against the supplied constraint.
|
ConstraintViolation validate(Object value, Annotation constraint)
value - the value that will be checkedconstraint - the constraint that the value will be checked againstIllegalArgumentException - if constraint is either null or not one of the constraint types supported by this validatorCopyright © 2018. All rights reserved.