public interface ValidationListener
ValidationContext.addValidationListener(ValidationListener)
Modifier and Type | Method and Description |
---|---|
void |
didValidate(ValidationContext ctx,
AnyConstraint<?> c,
java.lang.Object o,
boolean success)
This function will be called after the constraint c had validate the object
o.
|
void |
willValidate(ValidationContext ctx,
AnyConstraint<?> c,
java.lang.Object o)
This function will be called before the constraint will validate the
object.
|
void willValidate(ValidationContext ctx, AnyConstraint<?> c, java.lang.Object o)
ctx,
- the context which controls the validationc,
- a constrainto,
- the object which will be checkedvoid didValidate(ValidationContext ctx, AnyConstraint<?> c, java.lang.Object o, boolean success)
ctx,
- the context which controls the validationc,
- a constrainto,
- the object which was checkedsuccess,
- is false
when the constraint was broken