Package org.citrusframework.validation
Interface ValueMatcher
public interface ValueMatcher
- Author:
- Christoph Deppisch
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.slf4j.LoggerLoggerstatic final StringMessage validator resource lookup pathstatic final TypeResolverType resolver to find custom message validators on classpath via resource path lookupstatic final Map<String,ValueMatcher> -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<String,ValueMatcher> lookup()Resolves all available validators from resource path lookup.static Optional<ValueMatcher>Resolves validator from resource path lookup with given validator resource name.booleanFilter supported value typesbooleanvalidate(Object received, Object control, TestContext context) Value matcher verifies the match of given received and control values.
-
Field Details
-
logger
static final org.slf4j.Logger loggerLogger -
RESOURCE_PATH
Message validator resource lookup path- See Also:
-
TYPE_RESOLVER
Type resolver to find custom message validators on classpath via resource path lookup -
validators
-
-
Method Details
-
lookup
Resolves all available validators from resource path lookup. Scans classpath for validator meta information and instantiates those validators.- Returns:
-
lookup
Resolves validator from resource path lookup with given validator resource name. Scans classpath for validator meta information with given name and returns instance of validator. Returns optional instead of throwing exception when no validator could be found.- Parameters:
validator-- Returns:
-
supports
Filter supported value types- Parameters:
controlType-- Returns:
-
validate
Value matcher verifies the match of given received and control values.- Parameters:
received-control-context-
-