public interface ValidationEngine
This is not a replacement for the Bean Validation spec, is only a way to simplify validations that should be done programatically.
Modifier and Type | Method and Description |
---|---|
ValidationEngine |
filter(java.util.function.Predicate<Element> filter)
Validates only the elements that matches the given filter.
|
ValidationResult |
validate(java.lang.Object target)
Validates all elements in the given target.
|
ValidationEngine filter(java.util.function.Predicate<Element> filter)
filter
- the filter to restrict the elements.ValidationResult validate(java.lang.Object target)
target
- the target to validate.