public interface Validator
| Modifier and Type | Field and Description |
|---|---|
static Validator |
INVALID
Validator object providing validation behavior in which validation always
fails
|
static Validator |
VALID
Validator object providing validation behavior in which validation always
passes
|
| Modifier and Type | Method and Description |
|---|---|
ValidationResult |
validate(java.lang.String subject,
java.lang.String input,
ValidationContext context) |
static final Validator INVALID
static final Validator VALID
ValidationResult validate(java.lang.String subject, java.lang.String input, ValidationContext context)
subject - what is being validatedinput - the string to be validatedcontext - the ValidationContext to use when validating propertiesjava.lang.NullPointerException - of given input is null