@FunctionalInterface public static interface Field.Validator
| Modifier and Type | Method and Description |
|---|---|
default Field.Validator |
and(Field.Validator other)
Obtain a new
Field.Validator object that validates using this validator and the supplied validator. |
int |
validate(Configuration config,
Field field,
Field.ValidationOutput problems)
Validate the supplied value for the field, and report any problems to the designated consumer.
|
int validate(Configuration config, Field field, Field.ValidationOutput problems)
config - the configuration containing the field to be validated; may not be nullfield - the Field being validated; never nullproblems - the consumer to be called with each problem; never nulldefault Field.Validator and(Field.Validator other)
Field.Validator object that validates using this validator and the supplied validator.other - the validation function to call after thisother is null or equal to thisCopyright © 2020 JBoss by Red Hat. All rights reserved.