public interface ValidationRequest
A validation request.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addViolation
(ValidationContext.Message message, String propertyName) Add a constraint violation for the given property.groups()
The groups tied to this ValidationRequestboolean
return true if there are violations in this request.void
popPath()
Pop the nested property path.void
Push the nested property path.void
Throw ConstraintViolationException if there are violations in this request.Return the violations
-
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
-
violations
Set<ConstraintViolation> violations()Return the violations -
hasViolations
boolean hasViolations()return true if there are violations in this request.
-