Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Validator |
build() |
Validator.Builder |
excludingByName(String... className)
Skip any checks with the given names.
|
Validator.Builder |
excludingByPattern(String... patterns)
Skip any checks with names matching the given regular expressions.
|
Validator.Builder |
excludingByType(Class<?>... types)
Skips any checks of the given types (includes checks that are subclasses or implementations
of the given types).
|
Validator.Builder |
includingByName(String... className)
Retain only checks with the given names.
|
Validator.Builder |
includingByPattern(String... patterns)
Retain any checks with names matching the given regular expressions.
|
Validator.Builder |
includingByType(Class<?>... types)
Retain any checks of the given types (includes checks that are subclasses or implementations
of the given types).
|
Validator.Builder |
withAutoDetectedChecks()
Enable auto-detection of checks (the default behavior).
|
Validator.Builder |
withCheck(CasValidationCheck check)
Add the given check instance to the validator.
|
Validator.Builder |
withoutAutoDetectedChecks()
Disable auto-detection of checks.
|
public Validator.Builder withCheck(CasValidationCheck check)
Note: Includes/excludes do also apply do checks added via this method.
check
- a check instance to use.public Validator.Builder withoutAutoDetectedChecks()
public Validator.Builder withAutoDetectedChecks()
public Validator.Builder excludingByName(String... className)
Note: Excludes are applied after includes.
className
- names of check classes to be excluded.public Validator.Builder excludingByPattern(String... patterns)
Note: Excludes are applied after includes.
patterns
- regular expressions matching check class names to be excluded.public Validator.Builder excludingByType(Class<?>... types)
Note: Excludes are applied after includes.
types
- check type names to be excluded.public Validator.Builder includingByName(String... className)
Note: Excludes are applied after includes.
className
- names of check classes to be included.public Validator.Builder includingByPattern(String... patterns)
Note: Excludes are applied after includes.
patterns
- regular expressions matching check class names to be included.public Validator.Builder includingByType(Class<?>... types)
Note: Excludes are applied after includes.
types
- check type names to be included.public Validator build()
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.