public interface Validator
Modifier and Type | Method and Description |
---|---|
String |
getWarningMessage()
In a validator class, returns an explanation why a tested value is invalid
|
boolean |
isApplicableTo(Object value)
When implemented in a validator class, used to define if this validation is relevant for a value
|
boolean |
test(Object value)
When implemented in a validator class, tests the provided
Annotation , primitive, or primitive wrapper
against some criteria |
String getWarningMessage()
boolean isApplicableTo(Object value)
value
- Value being testedboolean test(Object value)
Annotation
, primitive, or primitive wrapper
against some criteriavalue
- Value being testedCopyright © 2024 Exadel, Inc.. All rights reserved.