Class ValidationMatcherLibrary
java.lang.Object
org.citrusframework.validation.matcher.ValidationMatcherLibrary
Library holding a set of validation matchers. Each library defines a validation prefix as namespace, so
there will be no naming conflicts when using multiple libraries at a time.
- Author:
- Christian Wied
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the matcher library members.getName()Get the validationMatcher library name.Get the library prefix.getValidationMatcher(String validationMatcherName) Try to find validationMatcher in library by name.booleanknowsValidationMatcher(String validationMatcherName) Does this library know a validationMatcher with the given name.voidsetMembers(Map<String, ValidationMatcher> members) Set the validationMatcher library content.voidGet the name of the validationMatcher library.voidSet the library prefix.
-
Constructor Details
-
ValidationMatcherLibrary
public ValidationMatcherLibrary()
-
-
Method Details
-
getValidationMatcher
public ValidationMatcher getValidationMatcher(String validationMatcherName) throws NoSuchValidationMatcherException Try to find validationMatcher in library by name.- Parameters:
validationMatcherName- validationMatcher name.- Returns:
- the validationMatcher instance.
- Throws:
NoSuchValidationMatcherException
-
knowsValidationMatcher
Does this library know a validationMatcher with the given name.- Parameters:
validationMatcherName- name to search for.- Returns:
- boolean flag to mark existence.
-
setMembers
Set the validationMatcher library content.- Parameters:
members-
-
getMembers
Gets the matcher library members.- Returns:
-
getPrefix
Get the library prefix.- Returns:
-
setPrefix
Set the library prefix.- Parameters:
prefix-
-
getName
Get the validationMatcher library name.- Returns:
-
setName
Get the name of the validationMatcher library.- Parameters:
name-
-