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

public abstract static class ValidatorService.Provider extends Object implements ValidatorService
Provides a simple abstraction for creating validator service subclasses.
  • Constructor Details

  • Method Details

    • getName

      public final String 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 interface ValidatorService
      Returns:
      Returns the name of the validator it creates.
    • createValidator

      public final Validator createValidator(ObjectNode configuration)
      Description copied from interface: ValidatorService
      Creates a validator using configuration.
      Specified by:
      createValidator in interface ValidatorService
      Parameters:
      configuration - Validator configuration.
      Returns:
      Returns the created validator.