public interface ValidationRequest
A validation request.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddViolation(ValidationContext.Message message, String propertyName) Add a constraint violation for the given property.groups()The groups tied to this ValidationRequestvoidpopPath()Pop the nested property path.voidPush the nested property path.voidThrow ConstraintViolationException if there are violations in this request.
-
Method Details
-
groups
The groups tied to this ValidationRequest -
addViolation
Add a constraint violation for the given property.- Parameters:
message- The messagepropertyName- The property that failed the constraint
-
pushPath
Push the nested property path. -
popPath
void popPath()Pop the nested property path. -
throwWithViolations
Throw ConstraintViolationException if there are violations in this request.- Throws:
ConstraintViolationException
-