Interface ValidationMatcher
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
General validation matcher interface.
- Author:
- Christian Wied
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.slf4j.LoggerLoggerstatic final Map<String,ValidationMatcher> static final StringMessage validator resource lookup path -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<String,ValidationMatcher> lookup()Resolves all available validators from resource path lookup.voidMethod called on validation.
-
Field Details
-
logger
static final org.slf4j.Logger loggerLogger -
RESOURCE_PATH
Message validator resource lookup path- See Also:
-
matcher
-
-
Method Details
-
lookup
Resolves all available validators from resource path lookup. Scans classpath for validator meta information and instantiates those validators.- Returns:
-
validate
void validate(String fieldName, String value, List<String> controlParameters, TestContext context) throws ValidationException Method called on validation.- Parameters:
fieldName- the fieldName for logging purpose.value- the value to be validated.controlParameters- the control parameters.context-- Throws:
ValidationException- when validation fails
-