Class ValidatorService.Provider
java.lang.Object
software.amazon.smithy.model.validation.ValidatorService.Provider
- All Implemented Interfaces:
ValidatorService
- Direct Known Subclasses:
AbbreviationNameValidator.Provider
,CamelCaseValidator.Provider
,EmitEachSelectorValidator.Provider
,EmitNoneSelectorValidator.Provider
,InputOutputStructureReuseValidator.Provider
,MissingClientOptionalTrait.Provider
,MissingPaginatedTraitValidator.Provider
,MissingSensitiveTraitValidator.Provider
,NoninclusiveTermsValidator.Provider
,RepeatedShapeNameValidator.Provider
,ReservedWordsValidator.Provider
,ShouldHaveUsedTimestampValidator.Provider
,StandardOperationVerbValidator.Provider
,StutteredShapeNameValidator.Provider
- Enclosing interface:
- ValidatorService
Provides a simple abstraction for creating validator service subclasses.
-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.smithy.model.validation.ValidatorService
ValidatorService.Provider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Validator
createValidator
(ObjectNode configuration) Creates a validator using configuration.final String
getName()
Gets the name of the validator.
-
Constructor Details
-
Provider
-
Provider
-
Provider
-
-
Method Details
-
getName
Description copied from interface:ValidatorService
Gets the name of the validator.This name is used to find a matching validator configured in the Smithy model and match it to an implementation.
- Specified by:
getName
in interfaceValidatorService
- Returns:
- Returns the name of the validator it creates.
-
createValidator
Description copied from interface:ValidatorService
Creates a validator using configuration.- Specified by:
createValidator
in interfaceValidatorService
- Parameters:
configuration
- Validator configuration.- Returns:
- Returns the created validator.
-