public interface ValidatorService
Modifier and Type | Interface and Description |
---|---|
static class |
ValidatorService.Provider
Provides a simple abstraction for creating validator service subclasses.
|
Modifier and Type | Method and Description |
---|---|
Validator |
createValidator(ObjectNode configuration)
Creates a validator using configuration.
|
static java.lang.String |
determineValidatorName(java.lang.Class<?> clazz)
Determines the name of a validator based on a class name.
|
java.lang.String |
getName()
Gets the name of the validator.
|
java.lang.String getName()
This name is used to find a matching validator configured in the Smithy model and match it to an implementation.
Validator createValidator(ObjectNode configuration)
configuration
- Validator configuration.static java.lang.String determineValidatorName(java.lang.Class<?> clazz)
This method returns the simple name of a class and strips off "Validator" from the end of the name if present.
clazz
- Class to determine the validator name of.